@font-face {
    font-family: "Neon";
    src: url(../fonts/NeonSans.ttf);
}

@font-face {
    font-family: "Glitch";
    src: url(../fonts/GlitchGoblin-2O87v.ttf);
}

@font-face {
    font-family: "Typewriter";
    src: url(../fonts/TypeMachine.ttf);
}

@keyframes fluctuate {
    0% {
        margin-top: 10%;
    }
    50% {
        margin-top: 140%;
    }
    100% {
        margin-top: 10%;
    }
}


.heading {
    height: 100vh;
    width: 100%;
    display: flex;
    background-color: rgb(9, 9, 9);
    position: fixed;
    z-index: 1;
}

.heading.game {
    display: none;
}

.typewriter_container {
    height: 100px;
}

.typewriter {
    font-family: "Typewriter";
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(120, 180, 190, 0.3);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    z-index: 2;
    text-align: center;
    padding-top: 35px;
}

.heading_container h1 {
    font-family: "Neon";
    font-size: 6.5rem;
    color: rgb(4,217,255);
    text-shadow: 5px 5px 20px rgba(0, 178, 209, 0.3);
    top: 42%;
    left: 30%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    z-index: 2;
    white-space: nowrap;
}

.heading_container h1:hover {
    color: rgb(0, 178, 209);
    text-shadow: 2px 7px 25px rgba(0, 178, 209, 0.2);
    transition: all 0.2s ease-in-out;
}

#draggable {
    cursor: grab;
    position: absolute;
}

.scroller_container {
    position: relative;
    width: 100vw;
    margin-top: 67vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.scroller_box {
    width: 30px;
    height: 70px;
    background-color: rgba(9, 9, 9, 0.7);
    border: 1px solid;
    border-color: white;
    border-radius: 17px;
    box-shadow: 0px 3px 10px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    z-index: 3;
}

.fa-chevron-down {
    color: white;
    font-size: 20px;
    margin-top: 10%;
    animation: fluctuate 3s ease-in-out infinite;
}

.scroller_box:hover {
    width: 33px;
    height: 76px;
    transition: all 0.3s ease-in-out;
}

.game_button {
    position: absolute;
    right: 60px;
    font-family: "Glitch";
    color: rgb(4,217,255);
    text-shadow: 3px 3px 10px rgba(0, 178, 209, 0.3);
    cursor: pointer;
}

.game_button:hover {
    color: rgb(0, 178, 209);
    text-shadow: 2px 3px 8px rgba(0, 178, 209, 0.2);
    transition: all 0.2s ease-in-out;
}


/* GAME GAME GAME */

#timer {
    position: absolute;
    left: 40%;
    top: 5%;
    font-family: "Glitch";
    font-size: 3.5rem;
    color: rgb(40, 203, 56);
    text-shadow: 2px 2px 7px rgba(40, 203, 56, 0.3);
}

.game_info {
    position: absolute;
    left: 40%;
    top: 14%;
    font-family: "Glitch";
    color: rgb(40, 203, 56);
    text-shadow: 2px 2px 5px rgba(40, 203, 56, 0.3);
}

#game_over {
    display: none;
    font-family: "Glitch";
    color: rgb(40, 203, 56);
    text-shadow: 2px 2px 7px rgba(40, 203, 56, 0.3);
    position: absolute;
    left: 27%;
    top: 40%;
}

.play_again {
    display: none;
    top: 70%;
    left: 42%;
    cursor: pointer;
}

.play_again:hover {
    color: rgb(35, 165, 48);
    text-shadow: 2px 3px 8px rgba(40, 203, 56, 0.2);
    transition: all 0.2s ease-in-out;
}

#gameOff {
    font-family: "Glitch";
    color: rgb(40, 203, 56);
    text-shadow: 2px 2px 7px rgba(40, 203, 56, 0.3);
    margin-top: -55px;
}

#gameOff:hover {
    color: rgb(35, 165, 48);
    text-shadow: 2px 3px 8px rgba(40, 203, 56, 0.2);
    transition: all 0.2s ease-in-out;
}

.bug_container {
    display: flex;
    height: 90vh;
}

@keyframes moveRight {
    from {
        transform: translateX(-10vw);
    }
    to {
        transform: translateX(100vw);
    }
}

@keyframes moveLeft {
    from {
        transform: translateX(110vw);
    }
    to {
        transform: translateX(0vw);
    }
}

@keyframes moveDiagR {
    from {
        transform: translateX(-10vw) translateY(0vh);
    }
    to {
        transform: translateX(100vw) translateY(100vh);
    }
}

@keyframes moveDiagL {
    from {
        transform: translateX(0) translateY(100vh);
    }
    to {
        transform: translateX(100vw) translateY(0vh);
    }
}

.fa-bug {
    position: absolute;
    font-size: 30px;
    color: rgb(40, 203, 56);
}

.bug-right {
    animation: moveRight 6s linear infinite;
}

.bug-left {
    animation: moveLeft 6s linear infinite;
}

.bug-diagRight {
    animation: moveDiagR 6s linear infinite;
}

.bug-diagLeft {
    animation: moveDiagL 6s linear infinite;
}

.fa-computer-mouse {
    display: block;
    position: absolute;
    font-size: 20px;
    color: rgb(0, 241, 254);
    pointer-events: none;
}

.hide-cursor {
    cursor:de;
}

@media screen and (max-width: 960px) {
    .heading_container h1 {
        font-size: 5rem;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .heading_container h1 {
        left: 20%;
        white-space: default;
    }

    #game_over {
        left: 20%;
    }

    .play_again {
        left: 32%;
    }

    #timer {
        left: 30%;
    }

    .game_info {
        left: 30%;
    }
}

@media screen and (max-width: 560px) {
    .heading_container h1 {
        font-size: 4rem;
        left: 10%;
    }

    #game_over {
        left: 10%;
    }

    .game_button {
        font-size: 1rem;
        right: 30px;
    }
}