
:root {
    --color--common-black:      #000000;
    --color--common-white:      #ffffff;
    --color--primary-lighter:   #6D61FF;
    --color--primary:           #4A3AFF;
    --color--primary-darker:    #2C20B0;
    --color--secondary:         #05003A;
    --color--grey:              #C4C4C4;
}

*,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--color--secondary) url("../images/grid-bg.svg") no-repeat top;
    background-size: auto 100%;
    font-family: 'Slackey', sans-serif;
    font-size: 16px;
}

body.remove-preloader #preloader {
    transition: 1s all;
    pointer-events: none;
    opacity: 0;
}

    body.remove-preloader #preloader img {
        transition: 1s all;
        -webkit-animation-name: none;
        animation-name: none;
    }

a {
    text-decoration: none;
}

iframe {
    border: none;
}

main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* padding-top: 45px; */
    padding-top: 15px;
    height: 100vh;
}

.hero {
    padding: 15px;
    text-align: center;
}

._h1 {
    margin: 0;
    color: var(--color--primary);
    font-size: 48px;
}

._p {
    color: var(--color--primary);
    font-size: 24px;
}

#steam-wishlist-iframe {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 480px;
    height: 190px;
    filter: drop-shadow(9px 2px 12px rgba(0, 0, 0, 0.5));
    transition: 1s all;
}
    #steam-wishlist-iframe.hide {
        transition: 1s all;
        pointer-events: none;
        opacity: 0;
    }

#steam-wishlist-trigger {
    display: none;    
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    -webkit-animation: heartbeat 1.2s ease-in-out infinite alternate forwards;
    animation: heartbeat 1.2s ease-in-out infinite alternate forwards;
}

.preloader {
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color--common-black);
}

    .preloader img {
        width: 140px;
        height: auto;
        /* -webkit-animation: pulse 1.4s ease-in-out infinite alternate forwards;
        animation: pulse 1.4s ease-in-out infinite alternate forwards; */
    }


.hero ._p {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 16px 64px;
    border-radius: 18px;
    box-shadow: 0px 9px 0px 0px var(--color--primary-darker);
    background-color: var(--color--primary);
    color: var(--color--common-white);
    font-size: 18px;
    transition: 0.4s all;
}

    .btn:hover {
        transform: translateY(-10px);
    }


.trailer-container {
    position: relative;
    /* margin-top: 96px; */
    margin-top: 25px;
    margin-bottom: 45px;
    padding-top: 56.25%;
    border-radius: 3px;
    border: 3px solid var(--color--primary);
    background-color: var(--color--primary);
    overflow: hidden;
}

    .trailer-overlay {
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* border-radius: 4px; */
        background-color: rgba(109, 97, 255, 0.85);
    }

    .trailer-play {
        width: auto;
        height: 74px;
        transition: 0.4s all;
    }
        .trailer-play:hover {
            cursor: pointer;
            transform: translateY(-10px);
        }

    .trailer-iframe {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
    }

.floating-character-group {
    display: none;
    justify-content: space-around;
    z-index: -10;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

    .floating-character-group ._left-group {
        display: flex;
        align-items: flex-end;
        position: relative;
    }

    .floating-character-group ._right-group {
        display: flex;
        align-items: flex-end;
        position: relative;
    }



#pink-char {
    bottom: 0px;
    margin-right: 15px;
    width: 5rem;
    height: auto;
    margin-bottom: -1000px;
}

#blue-char {
    margin-bottom: 0;
    width: 6rem;
    height: auto;
    margin-bottom: -1000px;
}

#green-char {
    margin-right: 30px;
    width: 5rem;
    height: auto;
    margin-bottom: -1000px;
}

#yellow-char {
    width: 5rem;
    height: auto;
    margin-bottom: -1000px;
}



@media (min-width: 400px) {
    .floating-character-group {
        display: flex;
    }
}

@media (min-width: 500px) {
    #steam-wishlist-trigger {
        display: block;
    }

    #steam-wishlist-iframe {
        display: block;
    }
}

@media (min-width: 576px) {
    main {
        padding-top: 60px;
    }

    .btn {
        font-size: 24px;
    }

    .trailer-play {
        height: 90px;
    }
}

@media (min-width: 768px) {
    .preloader img {
        width: 200px;
        height: auto;
    }

    .hero {
        padding: 0;
    }

    ._h1 {
        margin: 0;
        color: var(--color--primary);
        font-size: 5.25rem;
    }
    
    ._p {
        color: var(--color--primary);
        font-size: 1.5rem;
    }

    .btn {
        padding: 16px 64px;
    }

    .trailer-container {
        width: 578px;
    }

    .floating-character-group {
        justify-content: space-between;
    }
        .floating-character-group ._left-group {
            padding-left: 4%;
        }

        .floating-character-group ._right-group {
            padding-right: 4%;
        }

    #pink-char {
        margin-right: 10%;
    }
    
    #blue-char {
        width: 6rem;
    }
    
    #green-char {
        margin-right: 35px;
        width: 5rem;
    }
}

@media (min-width: 992px) {
    .preloader img {
        width: 240px;
        height: auto;
    }

    #pink-char {
        margin-right: 10%;
        width: 6rem;
    }
    
    #blue-char {
        width: 7rem;
    }
    
    #green-char {
        width: 6rem;
    }
    
    #yellow-char {
        width: 6rem;
    }
}

@media (min-width: 1200px) {
    main {
        padding: 0;
        align-items: center;
    }

    #pink-char {
        bottom: 0px;
        margin-right: 10%;
        width: 7rem;
    }
    
    #blue-char {
        width: 8rem;
    }
    
    #green-char {
        width: 7rem;
    }
    
    #yellow-char {
        width: 7rem;
    }
}



@media (min-width: 1400px) {
    #pink-char {
        margin-right: 5%;
        width: 8rem;
    }
    
    #blue-char {
        width: 9rem;
    }
    
    #green-char {
        width: 8rem;
        height: auto;
    }
    
    #yellow-char {
        width: 8rem;
    }
}


@media (min-width: 1600px) {
    #pink-char {
        width: 11rem;
    }
    
    #blue-char {
        width: 14rem;
    }
    
    #green-char {
        margin-right: 64px;
        width: 11rem;
    }
    
    #yellow-char {
        width: 11rem;
    }
}

@media (min-width: 2456px) {
    body {
        background-size: 100% auto;
    }

    .floating-character-group {
        margin-left: 50%;
        max-width: 1800px;
        transform: translateX(-50%);
    }
}



@keyframes pulse {
    0% { opacity: 1; }
    100% { opacity: 0.4; }
}

@keyframes heartbeat {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.0); }
}