.grecaptcha-badge
{ 
    visibility: hidden;
}

.grecaptcha-footer
{
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    text-align: center;
}

.grecaptcha-footer, .grecaptcha-footer > a
{
    font-size: 0.7rem;
    max-width: 350px;
}







div#preloader
{
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(95,104,81,0.9);
}

div#preloader > p.text
{
    background-color: #faaa51;
    font-family: var(--systemFont);
    color: var(--black);
    font-size: var(--xsmallFontSize);
    color: #335232;
    padding: 0.5rem 1rem;
}

div#preloader > img.logo
{
    height: 100px;
}





div#buttons,
div#instructions,
div#save_to_list,
div#list,
div#new_user,
div#zero_point,
div#existing_user,
div#forget_password,
div#reset_password,
div#play_again
{
    width: 404px;
    height: 524px;
    background-image: url(../png/instructions_bg.png);
    background-repeat: no-repeat;
    background-position: center center;
    position: fixed;
    z-index: 9996;
    top: -200%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

div#buttons > div.play_button
{
    padding-top: 120px;
}

div#buttons > div.list_button
{
    padding-top: 30px;
}




div#instructions
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

div#instructions > div
{
    max-width: 300px;
}

div#instructions > div > img
{
    vertical-align: middle;
}

div#instructions > div.mobile_text
{
    display: none;
    padding-top: 30px;
    font-size: 0.9rem;
}

div#instructions > div.desktop_text
{
    padding-top: 70px;
    padding-bottom: 20px;
    font-size: 1.5rem;
}

div#instructions > div.play_button
{
    padding-top: 1rem;
}

div#instructions > div.play_button > a > img
{
    width: 80%;
}

div#instructions > div.back_button > a > img
{
    width: 60%;
}





div#save_to_list > div.bravo
{
    padding-top: 120px;
}

div#save_to_list > div.score > h1
{
    font-size: 4rem;
    font-weight: 400;
    line-height: 3.5rem;
}

div#save_to_list > div.score > p
{
    font-size: 1.25rem;
}

div#save_to_list > div.button
{
    padding-top: 30px;
}





div#list
{
    padding: 110px 44px 50px 40px;
}

div#list > div.no_result
{
    padding: 2rem;
    height: 250px;
}

div#list > div.no_result > span
{
    font-size: 3rem;
    display: block;
    padding-bottom: 2rem;
}

div#list > table.list_table
{
    height: 270px;
    overflow-y: auto;
    display: block;
    border-collapse: collapse;
    display: none;
}

div#list > table.list_table > tbody > tr > td:nth-child(2)
{
    width: 100%;
}

div#list > table.list_table > thead > tr > th,
div#list > table.list_table > tbody > tr > td
{
    overflow-wrap: break-word;
    min-width: 0;
    text-align: left;
    padding: 0.5rem;
    max-width: 140px;
}

div#list > table.list_table > thead > tr > th:first-child,
div#list > table.list_table > tbody > tr > td:first-child
{
    border-right: 1px solid #66360d;
}

div#list > table.list_table > tbody > tr:nth-child(even)
{
    background-color: rgba(255, 255, 255, 0.4);
}

div#list > div.back_button > a > img
{
    width: 60%;
}






div#zero_point
{
    padding: 80px 44px 50px 40px;
}

div#zero_point > div.message
{
    padding: 2rem;
    height: 250px;
}

div#zero_point > div.message > span
{
    font-size: 3rem;
    display: block;
    padding-bottom: 2rem;
}









div#new_user
{
    height: 695px;
    background-image: url(../png/instructions_bg_2.png);
    padding: 110px 44px 0 40px;
}

div#new_user > div.content,
div#existing_user > div.content,
div#forget_password > div.content,
div#reset_password > div.content,
div#play_again > div.content
{
    height: 520px;
    overflow-y: auto;
}

div#new_user > div.content > form,
div#existing_user > div.content > form,
div#forget_password > div.content > form,
div#reset_password > div.content > form
{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}

div#new_user > div.content > form > div.submit_but > a > img
{
    width: 70%;
}

div#new_user > div.content > form > div.back_button > a > img
{
    width: 50%;
}

div#new_user > div.content > div.returnMessage,
div#existing_user > div.content > div.returnMessage,
div#forget_password > div.content > div.returnMessage,
div#reset_password > div.content > div.returnMessage,
div#play_again > div.content > div.returnMessage,
div#user > div.form > div.returnMessage
{
    background-image: url(../svg/loading.svg);
    background-size: 60px auto;
    background-repeat: no-repeat;
    background-position: center top;
    padding-top: 70px;
    padding-bottom: 20px;
    display: none;
}

div#new_user > div.content > div.returnMessage.error,
div#existing_user > div.content > div.returnMessage.error,
div#forget_password > div.content > div.returnMessage.error,
div#reset_password > div.content > div.returnMessage.error,
div#play_again > div.content > div.returnMessage.error,
div#user > div.form > div.returnMessage.error
{
    background-image: url(../svg/exclamation.svg);
}

div#new_user > div.content > div.returnMessage.success,
div#existing_user > div.content > div.returnMessage.success,
div#forget_password > div.content > div.returnMessage.success,
div#reset_password > div.content > div.returnMessage.success,
div#play_again > div.content > div.returnMessage.success,
div#user > div.form > div.returnMessage.success
{
    background-image: url(../svg/success.svg);
}



div#new_user > div.content > div.new_game_button
{
    display: none;
}

div#new_user > div.content > div.new_game_button > a > img
{
    width: 60%;
}






div#existing_user
{
    padding: 110px 44px 50px 40px;
}

div#existing_user > div.content,
div#forget_password > div.content
{
    height: 340px;
}

div#existing_user > div.content > div.buttons
{
    display: flex;
    padding-top: 0.5rem;
}

div#existing_user > div.content > div.buttons > div > a > img
{
    width: 100%;
}

div#existing_user > div.content > div.start_playing_but
{
    display: none;
}







div#forget_password,
div#reset_password
{
    padding: 110px 44px 50px 40px;
}

div#forget_password > div.content > form > div.submit_but
{
    padding-top: 1rem;
}

div#forget_password > div.content > form > p
{
    padding-bottom: 0.5rem;
}

div#forget_password > div.content > div.back_button > a > img
{
    width: 40%;
}





div#play_again
{
    padding: 130px 44px 50px 40px;
}

div#play_again > div.content
{
    height: 320px;
}

div#play_again > div.content > div.returnMessage
{
    display: block;
}

div#play_again > div.content > div.play_again_button,
div#play_again > div.content > div.login_button
{
    display: none;
}




div#counter
{
    font-size: clamp(20rem, 30vw, 30rem);
    position: fixed;
    z-index: 9995;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    display: none;
    color: var(--white);
}






canvas#game
{
    position: fixed;
    z-index: 0;
}





div#logo
{
    position: fixed;
    z-index: 9997;
    left: 50%;
    transform: translateX(-50%);
    top: 5%;
}

div#logo > img
{
    width: 100px;
}

@media only screen and (max-height: 800px)
{
    div#logo
    {
        display: none;
    }
}



div#timeAndScore
{
    position: fixed;
    z-index: 9999;
    top: 1rem;
    left: 0;
    justify-content: space-between;
    width: 100%;
    padding: 2rem;
    display: none;
}

div#timeAndScore > div > p
{
    color: var(--white);
}

div#timeAndScore > div.time > div
{
    width: 350px;
    height: 12px;
    position: relative;
    margin-top: 1rem;
}

div#timeAndScore > div.time > div > div.bg
{
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.5);
}

div#timeAndScore > div.time > div > div.indicator
{
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, #e80707, #ffcc00, #0f91e8);
    border-radius: 10px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}


div#scoreText
{
    color: var(--white);
    font-size: calc(var(--middleFontSize) - 1rem);
    line-height: var(--middleFontSize);
}




div#joystick_div
{
    position: fixed;
    z-index: 9998;
    bottom: 30px;
    display: none;
}





div#cookie_policy
{
    position: fixed;
    z-index: 9999;
    left: 1rem;
    bottom: 1rem;
}



div#profile_icon_logged,
div#profile_icon_login
{
    position: fixed;
    z-index: 9999;
    right: 1rem;
    bottom: 1rem;
}

div#profile_icon_logged > a > img,
div#profile_icon_login > a > img,
div#cookie_policy > a > img
{
    height: 36px;
}



div#user
{
    position: fixed;
    z-index: 9998;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-image: url(../jpg/bg.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--white);
    overflow: auto;
    padding: 2rem;
    display: none;
}

div#user > img.logo
{
    height: 100px;
}

div#user > div.form
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 20px;
}

div#user > div.form > form
{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

div#user > div.form > form > input
{
    width: 100%;
}

div#user > div.form > form > div.title,
div#user > div.form > form > div.password
{
    margin-top: 1rem;
    font-size: calc(var(--smallFontSize) + 0.5rem);
    align-self: flex-start;
    max-width: 300px;
}

div#user > div.form > form > div.submit_but,
div#user > div.form > div.return_to_home_but
{
    padding-top: 1rem;
    text-align: center;
}

div#user > div.form > div.return_to_home_but
{
    display: none;
}





@media only screen and (max-width: 550px)
{
    div#buttons,
    div#instructions, 
    div#save_to_list,
    div#list,
    div#new_user,
    div#reset_password,
    div#zero_point,
    div#existing_user,
    div#forget_password,
    div#play_again
    {
        width: 90%;
        background-size: 90% auto;
    }

    div#instructions > div
    {
        padding-top: 0;
    }

    div#instructions > div.play_button > a > img
    {
        width: 60%;
    }
    
    div#instructions > div.back_button > a > img
    {
        width: 50%;
    }

    div#buttons > div.play_button
    {
        padding-top: 160px;
    }

    div#buttons > div.play_button > a > img, 
    div#save_to_list > div.button > a > img,
    div#zero_point > div.new_game_button > a > img
    {
        width: 60%;
    } 

    div#buttons > div.howto_button > a > img,
    div#buttons > div.list_button > a > img
    {
        width: 50%;
    }

    div#instructions > div.desktop_text
    {
        display: none;
    }

    div#instructions > div.mobile_text
    {
        display: block;
    }


    div#save_to_list > div.bravo
    {
        padding-top: 150px;
    }

    div#save_to_list > div.bravo > img
    {
        width: 60%;
    }

    div#save_to_list > div.button
    {
        padding-top: 20px;
    }

    div#save_to_list > div.score > h1
    {
        font-size: 2.5rem;
        line-height: 2.5rem;
    }
    div#save_to_list > div.score > p
    {
        font-size: 1rem;
    }



    div#list,
    div#zero_point
    {
        padding: 105px 64px 50px 60px;
    }

    div#list > table.list_table
    {
        height: 200px;
        margin-top: 40px;
    }

    div#list > table.list_table > thead > tr > th,
    div#list > table.list_table > tbody > tr > td
    {
        font-size: 0.9rem;
        text-align: left;
        padding: 0.25rem;
        max-width: 120px;
    }    



    div#zero_point > div.message
    {
        height: auto;
    }



    div#new_user
    {
        padding: 160px 44px 50px 40px;
    }

    div#new_user > div.content
    {
        height: 390px;
    }

    div#new_user > div.content > form
    {
        gap: 0.6rem;
    }

    div#new_user > div.content > form > div.new_user > div.button
    {
        padding-top: 0.5rem;
    }

    div#new_user > div.content > form > div.new_user > div.button > a > img,
    div#new_user > div.content > form > div.existing_user > div.login_button > a > img
    {
        width: 75%;
    } 



    
    div#existing_user
    {
        padding: 140px 44px 50px 40px;
    }

    div#existing_user > div.content
    {
        height: 260px;
    }

    div#existing_user > div.content > form > div.submit_but > a > img
    {
        width: 60%;
    }



    div#forget_password
    {
        padding: 140px 44px 50px 40px;
    }

    div#forget_password > div.content
    {
        height: 260px;
    }

    div#forget_password > div.content > form
    {
        gap: 0;
    }

    div#forget_password > div.content > form > div.submit_but > a > img
    {
        width: 60%;
    }





    div#play_again
    {
        padding: 150px 44px 50px 40px;
    }

    div#play_again > div.content
    {
        height: 260px;
    }

    div#play_again > div.content > div.login_button > a > img,
    div#play_again > div.content > div.play_again_button > a > img
    {
        width: 60%;
    }






    canvas#game
    {
        width: 100%;
        height: auto;
        bottom: 25%;
    }



    div#joystick_div
    {
        display: block;
    }
    


    div#timeAndScore > div.time > div
    {
        width: 40vw;
    }





    div#user > img.logo
    {
        display: none;
    }

    div#user > div.form > form > div.title,
    div#user > div.form > form > div.password
    {
        max-width: 100%;
        font-size: var(--smallFontSize);
    }

}
