@import url('https://fonts.googleapis.com/css2?family=Shantell+Sans:wght@400;800&display=swap');

body {
    margin: 0;
    height: 100vh;
    width: 100vw;
}

#audio {
    display: none
}

#audio-click {
    display: none
}

#begin-btn {
    padding: 5px 30px 14px 30px;
    animation: wheelHueColor 4s infinite;
    background-color: currentColor;
    color: white;
    text-align: center;
    width: 100px;
    font-family: Shantell Sans;
    font-weight: 800;
    position: absolute;
    top: 42%;
    left: 38%;
    width: 20%;
    height: 35px;
    border-radius: 30px;
    border: 4px solid black;
    font-size: 24pt;
}

.container-loading {
    width: 400px;
    height: 20px;
    border: 2px solid black;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: absolute;
    top: 55%;
    left: 37%;
    box-shadow: -3px 4px 7px white;
}

.barLoading {
    width: 0;
    height: 100%;
    background-color: rgb(35, 199, 253);
    border-radius: 8px;
    font-family: Shantell Sans;
    font-weight: 400;
    font-size: 8pt;
    color: white;
    text-align: center;
    line-height: 2;
    transition: width 1s linear;
}



#loadingGif {
    width: 150px;
    position: absolute;
    top: 25%;
    left: 45%;
}

.slider {
    width: 250px;
    height: 10px;
    margin: 0 20px;
}

#container-menu {
    margin-top: 5%;
    margin-left: 24%;
    box-shadow: 1px 1px 20px 10px #ffffff66;
    background: linear-gradient(275deg, rgb(91, 249, 249) 4%, rgb(4, 187, 215) 100%);
    border: 6px solid black;
    height: 450px;
    width: 50%;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-menu {
    background: radial-gradient(circle, rgb(2, 205, 216) 6%, rgb(41, 105, 243) 81%);
    display: flex;
    align-items: center;
    border-radius: 50px;
    width: 50%;
    padding: 15px 0px 15px 40px;
    margin: 0;
    border: 3px solid black;
    gap: 30px;
    margin-bottom: 30px;

    &:hover {
        filter: brightness(1.12);
        width: 52%;
    }
}

.btn-menu img {
    width: 40px;
}


#toPlay,
#toAdjust,
#toExit {
    color: white;
    font-family: Shantell Sans;
    font-size: 20pt;
    font-weight: 800;
    margin: 0;

    &:hover {
        font-size: 22pt;
    }
}



#toBack {
    width: 30px;
    margin: 0;
    position: absolute;
    top: 16px;
    left: 20px;

    &:hover {
        width: 35px;
    }
}

#toVolume-image {
    width: 30px;
    cursor: pointer;
}


#btn-volume-container {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 60%;
}

#btn-volume {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#toVolume {
    color: white;
    font-family: Shantell Sans;
    font-size: 12pt;
    font-weight: 400;
    margin: 0;
}

#toChallenge {
    color: white;
    font-family: Shantell Sans;
    font-size: 12pt;
    font-weight: 400;
    margin: 0;
    text-align: left;
    margin-top: 20px;
}

.toChallenge-image {
    width: 30px;
    height: 30px;
}

.btn-challenge-card p {
    margin: 0;
    color: white;
    font-family: Shantell Sans;
    font-size: 16pt;
    font-weight: 400;

    &:hover {
        font-size: 18pt;
        cursor: pointer;

    }
}

#challengeFour {
    animation: textWheelHueColor 2.5s infinite;
    filter: brightness(1.5);
    font-weight: 800;
    text-shadow: 3px 3px 1px #000000b5;
}

.btn-challenge-card {
    display: flex;
    flex-direction: column;
    justify-content: left;

}

.btn-menuTwo {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}


.challenge-container-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgb(2, 205, 216) 6%, rgb(41, 105, 243) 81%);
    padding: 15px 25px 15px 15px;
    margin: 0;
    border: 3px solid black;
    border-radius: 40px;
    margin-top: 20px;
    gap: 20px;
    width: 230px;
    height: 32px;

    &:hover {
        width: 240px;
        filter: brightness(1.2);
    }
}

#btn-challenge-container {
    display: flex;
    justify-content: left;
    gap: 60px;
    margin-top: 10px;
}

#level-title {
    position: absolute;
    top: 5px;
    left: 40px;
    color: white;
    font-family: Shantell Sans;
    font-size: 16pt;
    font-weight: 400;
}

#score {
    position: absolute;
    top: 40px;
    left: 40px;
    color: white;
    font-family: Shantell Sans;
    font-size: 16pt;
    font-weight: 400;
}

#close-page {
    width: 40px;
    position: absolute;
    top: 10px;
    right: 20px;
}


#clown-gif {
    width: 150px;
    position: absolute;
    top: 0;
    right: 0;
}

#bomb-gif {
    width: 80px;
    position: absolute;
    top: 0;
    right: 0;
    visibility: visible;
}

#congrat-gif {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

@supports (background-blend-mode: overlay) {
    .background {
        background-image: rgb(0, 247, 255);
        background-blend-mode: overlay;
    }
}

@keyframes wheelHueColor {

    from,
    to {
        background-color: hsl(324, 70%, 45%);
    }

    10% {
        background-color: hsl(360, 65%, 45%);
    }

    20% {
        background-color: hsl(36, 80%, 45%);
    }

    30% {
        background-color: hsl(72, 75%, 35%);
    }

    40% {
        background-color: hsl(108, 65%, 35%);
    }

    50% {
        background-color: hsl(144, 75%, 35%);
    }

    60% {
        background-color: hsl(180, 75%, 35%);
    }

    70% {
        background-color: hsl(216, 60%, 45%);
    }

    80% {
        background-color: hsl(252, 65%, 50%);
    }

    90% {
        background-color: hsl(288, 60%, 40%);
    }
}

@keyframes textWheelHueColor {

    from,
    to {
        -webkit-text-fill-color: hsl(324, 70%, 45%);
        color: hsl(324, 70%, 45%);
    }

    10% {
        -webkit-text-fill-color: hsl(360, 65%, 45%);
        color: hsl(360, 65%, 45%);
    }

    20% {
        -webkit-text-fill-color: hsl(36, 80%, 45%);
        color: hsl(36, 80%, 45%);
    }

    30% {
        -webkit-text-fill-color: hsl(72, 75%, 35%);
        color: hsl(72, 75%, 35%);
    }

    40% {
        -webkit-text-fill-color: hsl(108, 65%, 35%);
        color: hsl(108, 65%, 35%);
    }

    50% {
        -webkit-text-fill-color: hsl(144, 75%, 35%);
        color: hsl(144, 75%, 35%);
    }

    60% {
        -webkit-text-fill-color: hsl(180, 75%, 35%);
        color: hsl(180, 75%, 35%);
    }

    70% {
        -webkit-text-fill-color: hsl(216, 60%, 45%);
        color: hsl(216, 60%, 45%);
    }

    80% {
        -webkit-text-fill-color: hsl(252, 65%, 50%);
        color: hsl(252, 65%, 50%);
    }

    90% {
        -webkit-text-fill-color: hsl(288, 60%, 40%);
        color: hsl(288, 60%, 40%);
    }
}



@media screen and (max-width: 600px) {
    #begin-btn {
        padding: 5px 0px 14px 0px;
        animation: wheelHueColor 4s infinite;
        background-color: currentColor;
        color: white;
        text-align: center;
        width: 100px;
        font-family: Shantell Sans;
        font-weight: 800;
        position: absolute;
        top: 38%;
        left: 20%;
        width: 60%;
        height: 25px;
        font-size: 18pt;
    }

    #loadingGif {
        width: 120px;
        position: absolute;
        top: 25%;
        left: 40%;
    }


    .container-loading {
        width: 200px;
        height: 15px;
        position: absolute;
        top: 55%;
        left: 30%;
        box-shadow: -3px 4px 7px white;
    }

    .barLoading {
        width: 0;
        height: 100%;
        background-color: rgb(35, 199, 253);
        border-radius: 8px;
        font-family: Shantell Sans;
        font-weight: 400;
        font-size: 6pt;
        color: white;
        text-align: center;
        line-height: 2;
        transition: width 1s linear;
    }

    #container-menu {
        margin-top: 20%;
        margin-left: 15%;
        box-shadow: 1px 1px 20px 10px #ffffff66;
        background: linear-gradient(275deg, rgb(91, 249, 249) 4%, rgb(4, 187, 215) 100%);
        border: 6px solid black;
        height: 350px;
        width: 70%;
        border-radius: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .btn-menu {
        background: radial-gradient(circle, rgb(2, 205, 216) 6%, rgb(41, 105, 243) 81%);
        display: flex;
        align-items: center;
        border-radius: 50px;
        width: 50%;
        height: 20px;
        padding: 15px 0px 15px 40px;
        margin: 0;
        border: 3px solid black;
        gap: 10px;
        margin-bottom: 30px;

        &:hover {
            filter: brightness(1.12);
            width: 54%;
        }
    }

    .btn-menu img {
        width: 20px;
    }


    #toPlay,
    #toAdjust,
    #toExit {
        color: white;
        font-family: Shantell Sans;
        font-size: 12pt;
        font-weight: 800;
        margin: 0;

        &:hover {
            font-size: 13pt;
        }
    }

    #toBack {
        width: 20px;
        margin: 0;
        position: absolute;
        top: 16px;
        left: 20px;

        &:hover {
            width: 22px;
        }
    }

    #volumeSlider {
        width: 150px;
    }

    #toVolume-image {
        width: 25px;
        cursor: pointer;
    }


    #btn-volume-container {
        display: flex;
        justify-content: left;
        align-items: center;
        width: 60%;
    }

    #toVolume {
        color: white;
        font-family: Shantell Sans;
        font-size: 9pt;
        font-weight: 400;
        margin: 0;
    }

    #toChallenge {
        color: white;
        font-family: Shantell Sans;
        font-size: 10pt;
        font-weight: 400;
        margin: 0;
        text-align: left;
        margin-top: 20px;
    }

    .toChallenge-image {
        width: 15px;
        height: 15px;
    }

    .btn-challenge-card p {
        margin: 0;
        color: white;
        font-family: Shantell Sans;
        font-size: 10pt;
        font-weight: 400;

        &:hover {
            font-size: 11pt;
            cursor: pointer;
        }
    }

    #challengeThree {
        font-size: 8pt;

        &:hover {
            font-size: 9pt;
        }
    }

    #challengeFour {
        font-size: 8pt;
        text-shadow: 2px 2px 1px #000000b5;

        &:hover {
            font-size: 9pt;
        }
    }

    .btn-challenge-card {
        display: flex;
        flex-direction: column;
        justify-content: left;

    }

    .btn-menuTwo {
        display: flex;
        margin-top: 10px;
        gap: 10px;
    }


    .challenge-container-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        background: radial-gradient(circle, rgb(2, 205, 216) 6%, rgb(41, 105, 243) 81%);
        padding: 15px 25px 15px 15px;
        margin: 0;
        border: 3px solid black;
        border-radius: 30px;
        margin-top: 10px;
        gap: 10px;
        width: 110px;
        height: 15px;

        &:hover {
            width: 115px;
            filter: brightness(1.2);
        }
    }



    #btn-challenge-container {
        display: flex;
        justify-content: left;
        gap: 10px;
        margin-top: 10px;
    }


    #level-title {
        position: absolute;
        top: 5px;
        left: 20px;
        color: white;
        font-family: Shantell Sans;
        font-size: 12pt;
        font-weight: 400;
    }

    #score {
        position: absolute;
        top: 30px;
        left: 20px;
        color: white;
        font-family: Shantell Sans;
        font-size: 12pt;
        font-weight: 400;
    }

    #close-page {
        width: 25px;
        position: absolute;
        top: 10px;
        right: 20px;
    }


    #clown-gif {
        width: 100px;
        position: absolute;
        top: 0;
        right: 0;
    }

    #bomb-gif {
        width: 50px;
        position: absolute;
        top: 0;
        right: 0;
        visibility: visible;
    }

    #congrat-gif {
        width: 100vw;
        height: 100vh;
        position: absolute;
        top: 0;
        left: 0;
    }
}


@media screen and (max-width: 380px) {
    #begin-btn {
        position: absolute;
        top: 30%;
        left: 20%;
        width: 60%;
        height: 25px;
        font-size: 18pt;
    }

    #loadingGif {
        width: 120px;
        position: absolute;
        top: 20%;
        left: 34%;
    }

    .container-loading {
        width: 150px;
        height: 15px;
        position: absolute;
        top: 40%;
        left: 30%;
        box-shadow: -3px 4px 7px white;
    }

    #container-menu {
        margin-top: 20%;
        margin-left: 15%;
        box-shadow: 1px 1px 20px 10px #ffffff66;
        background: linear-gradient(275deg, rgb(91, 249, 249) 4%, rgb(4, 187, 215) 100%);
        border: 6px solid black;
        height: 320px;
        width: 70%;
        border-radius: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    #toPlay,
    #toAdjust,
    #toExit {
        color: white;
        font-family: Shantell Sans;
        font-size: 10pt;
        font-weight: 800;
        margin: 0;

        &:hover {
            font-size: 11pt;
        }
    }

    .btn-menu {
        background: radial-gradient(circle, rgb(2, 205, 216) 6%, rgb(41, 105, 243) 81%);
        display: flex;
        align-items: center;
        border-radius: 50px;
        width: 60%;
        height: 12px;
        padding: 15px 0px 15px 20px;
        margin: 0;
        border: 3px solid black;
        gap: 10px;
        margin-bottom: 30px;

        &:hover {
            filter: brightness(1.12);
            width: 64%;
        }
    }

    #toBack {
        width: 15px;
        margin: 0;
        position: absolute;
        top: 12px;
        left: 20px;

        &:hover {
            width: 17px;
        }
    }

    #volumeSlider {
        width: 100px;
    }

    #toVolume-image {
        width: 15px;
        cursor: pointer;
    }


    #btn-volume-container {
        display: flex;
        justify-content: left;
        align-items: center;
        width: 60%;
    }

    #toVolume {
        color: white;
        font-family: Shantell Sans;
        font-size: 8pt;
        font-weight: 400;
        margin: 0;
    }

    #toChallenge {
        color: white;
        font-family: Shantell Sans;
        font-size: 8pt;
        font-weight: 400;
        margin: 0;
        text-align: left;
        margin-top: 40px;
    }

    .toChallenge-image {
        width: 10px;
        height: 10px;
    }

    .btn-challenge-card p {
        margin: 0;
        color: white;
        font-family: Shantell Sans;
        font-size: 4pt;
        font-weight: 400;

        &:hover {
            font-size: 5pt;
            cursor: pointer;
        }
    }

    #challengeThree {
        font-size: 4pt;

        &:hover {
            font-size: 5pt;
        }
    }

    #challengeFour {
        font-size: 4pt;
        text-shadow: 1px 1px 1px #000000b5;

        &:hover {
            font-size: 5pt;
        }
    }

    .btn-challenge-card {
        display: flex;
        flex-direction: column;
        justify-content: left;

    }

    .btn-menuTwo {
        display: flex;
        margin-top: 8px;
        gap: 6px;
    }


    .challenge-container-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        background: radial-gradient(circle, rgb(2, 205, 216) 6%, rgb(41, 105, 243) 81%);
        padding: 10px 20px 10px 10px;
        margin: 0;
        border: 3px solid black;
        border-radius: 30px;
        margin-top: 10px;
        gap: 10px;
        width: 70px;
        height: 6px;

        &:hover {
            width: 84px;
            filter: brightness(1.2);
        }
    }



    #btn-challenge-container {
        display: flex;
        justify-content: left;
        gap: 10px;
        margin-top: 10px;
    }


    #level-title {
        position: absolute;
        top: 5px;
        left: 20px;
        color: white;
        font-family: Shantell Sans;
        font-size: 8pt;
        font-weight: 400;
    }

    #score {
        position: absolute;
        top: 25px;
        left: 20px;
        color: white;
        font-family: Shantell Sans;
        font-size: 8pt;
        font-weight: 400;
    }

    #close-page {
        width: 18px;
        position: absolute;
        top: 13px;
        right: 14px;
    }


    #clown-gif {
        width: 60px;
        position: absolute;
        top: 0;
        right: 0;
    }

    #bomb-gif {
        width: 25px;
        position: absolute;
        top: 0;
        right: 0;
        visibility: visible;
    }

    #congrat-gif {
        width: 100vw;
        height: 100vh;
        position: absolute;
        top: 0;
        left: 0;
    }
}