* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    color: white;
}

body {
    margin: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;

}

.visible {
    visibility: visible;
    opacity: 1;
    transition: opacity 1s linear;
}

.hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 1s, opacity 1s linear;
}

.answer {
    width: 25%;
    font-size: 1rem;
    padding: 1em;

    border: #fff 0.125em solid;
    border-radius: 0.5em;
    color: white;

    box-shadow:
          inset 0 0 0.5em 0 #156F7B,
          0 0 1em 0 #156F7B;
          padding: 0.25em 1em;
    
    display: inline-block;
    position: relative;
    text-align: center;
    cursor: pointer;
}

.answers {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin: 2em 0;
}

.question {
    width: 40%;
    margin-left: 2em;
    margin-top: 2em;
    font-size: 20px;
    color: #fff;
    text-shadow: 
    0 0 7px #fff, 
    0 0 10px #fff, 
    0 0 21px #fff, 
    0 0 42px #E61974E0, 
    0 0 80px #E61974E0;
}

.quiz {
    position: absolute;
    width: 100%;
    height: 50%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.match {
    position: relative;
    width: 100%;
    height: 100%;
}

.intro {
    position: absolute;
    left: calc(50% - 110px);
    bottom: 200px;
    width: 220px;
    z-index: 10;
    padding: 0 1em;
    cursor: pointer;
    user-select: none;
    
    font-size: 1.5rem;
    font-weight: 900;
}

#playButton {
    text-transform: uppercase;
    letter-spacing: 10px;
    -webkit-animation: text-flicker 3s linear infinite;
    animation: text-flicker 3s linear infinite;
}

.neon-text {
    color: white;
    text-shadow: 
    0 0 0.25em #fff, 
    0 0 0.5em #156F7B;
}

.neon-button {
    border: #fff 0.125em solid;
    border-radius: 0.5em;
    color: white;

    box-shadow:
          inset 0 0 1em 0 #156F7B,
          0 0 1em 0 #156F7B;
          padding: 0.25em 1em;
    
    display: inline-block;
    position: relative;
}

@keyframes border-flicker {
    0% {
        opacity: 0.1;
        -webkit-box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
        -moz-box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
        box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
    }

    2% {
        opacity: 1;
        -webkit-box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
        -moz-box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
        box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
    }

    4% {
        opacity: 0.1;
        -webkit-box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
        -moz-box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
        box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
    }

    8% {
        opacity: 1;
        -webkit-box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
        -moz-box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
        box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
    }

    70% {
        opacity: 0.7;
        -webkit-box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
        -moz-box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
        box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
    }

    100% {
        opacity: 1;
        -webkit-box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
        -moz-box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
        box-shadow: 0px 0px 78px 4px rgba(16, 134, 232, 0.73);
    }
}

@keyframes text-flicker {
    0% {
        opacity: 0.1;
        text-shadow: 0px 0px 29px rgba(242, 22, 22, 1);
    }

    2% {
        opacity: 1;
        text-shadow: 0px 0px 29px rgba(242, 22, 22, 1);
    }

    8% {
        opacity: 0.1;
        text-shadow: 0px 0px 29px rgba(242, 22, 22, 1);
    }

    9% {
        opacity: 1;
        text-shadow: 0px 0px 29px rgba(242, 22, 22, 1);
    }

    12% {
        opacity: 0.1;
        text-shadow: 0px 0px rgba(242, 22, 22, 1);
    }

    20% {
        opacity: 1;
        text-shadow: 0px 0px 29px rgba(242, 22, 22, 1)
    }

    25% {
        opacity: 0.3;
        text-shadow: 0px 0px 29px rgba(242, 22, 22, 1)
    }

    30% {
        opacity: 1;
        text-shadow: 0px 0px 29px rgba(242, 22, 22, 1)
    }

    70% {
        opacity: 0.7;
        text-shadow: 0px 0px 29px rgba(242, 22, 22, 1)
    }

    72% {
        opacity: 0.2;
        text-shadow: 0px 0px 29px rgba(242, 22, 22, 1)
    }

    77% {
        opacity: .9;
        text-shadow: 0px 0px 29px rgba(242, 22, 22, 1)
    }

    100% {
        opacity: .9;
        text-shadow: 0px 0px 29px rgba(242, 22, 22, 1)
    }
}

.highscore {
    position: absolute;
    top: 1em;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
}

.star {
    margin: 0 0.25em;
}

.star svg {
    width: 32px;
    height: 29px;
}

.star.wrong svg path {
    -webkit-transition: stroke 1s ease-in-out;
    transition: stroke 1s ease-in-out;
    stroke: #3e3e3e;
}

.star.right svg path {
    -webkit-transition: stroke 1s ease-in-out;
    transition: stroke 1s ease-in-out;
    stroke: #e61974;
}

.game {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 100;
}

#container {
    display: block;
    position: absolute;
}

.sound {
    position: relative;
    margin: 1.5em;
    width: 25%;
    height: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.soundButton {
    position: absolute;
}

.soundMessage {
    position: relative;
    font-size: 1rem;
    margin-bottom: 2px;
    width: 100%;
    color: white;
}

.audio {
    position: absolute;
    top: 0;
    right: 0;
    margin: 1em;
    display: flex;
    align-items: center;
}

.equalizer {
    display: flex;
    align-items: flex-end;
    width: 24px;
    height: 16px;
    overflow: hidden;
}

.equalizer .equalizer-amp {
    flex: 1;
    position: relative;
    height: 100%;
    margin-right: 2px;
}

.equalizer .equalizer-amp div {
    -webkit-animation-name: equalizer-animation;
    animation-name: equalizer-animation;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;
    background-color: #fff;
    position: absolute;
    width: 100%;
    height: 100%;
    transform: translateY(100%);
    will-change: transform;
}

@keyframes equalizer-animation {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

@-webkit-keyframes equalizer-animation {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

.equalizer-1-1 {
    animation-duration: 0.3s;
}

.equalizer-1-2 {
    animation-duration: 0.45s;
}

.equalizer-2-1 {
    animation-duration: 0.5s;
}

.equalizer-2-2 {
    animation-duration: 0.4s;
}

.equalizer-3-1 {
    animation-duration: 0.3s;
}

.equalizer-3-2 {
    animation-duration: 0.35s;
}

.equalizer-4-1 {
    animation-duration: 0.4s;
}

.equalizer-4-2 {
    animation-duration: 0.25s;
}

.loading_wrapper {
    position: absolute;
    color: white;
    width: 100%;
    height: 100%;
}

#loading {
    position: absolute;
    z-index: 400;
    bottom: 20%;
    left: 50%;
    transform: translate3d(-50%, -20%, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#loading h3 {
    margin: 0;
}

#loading-screen {
    position: absolute;
    z-index: 300;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
}

@keyframes spin {
    0%   {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 1em solid transparent;
    border-top-color: white;
    border-left-color: white;
    border-bottom-color:white;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

#loader:before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-radius: 50%;
    border: 1em solid transparent;
    background-color: #E61974;
    -webkit-animation: spin 3s linear infinite;
    animation: spin 3s linear infinite;
}

a {
    text-decoration: none;
}

#finale_win {
    display: flex;
    justify-content: center;
    align-items: center;
}

#finale_win h2 {
    text-align: center;
    margin-right: 1em;
}

#finale_lose {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1em;
}

#finale_lose h2 {
    text-align: center;
    margin-right: 1em;
}

.loadingPercent {
    display: flex;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}