body {
    display: flex;
    height: 100vh;
    margin: 0;
    color: #fff8b8;
    background-image: url("../vector-images-forest-daytime_46176-155.webp");
    background-size: cover;
    flex-direction: column;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: all 0.5s ease;
}

.extra-margin {
    margin-bottom: 0.5rem;
}

.clear-body {
    box-shadow: none;
}

h1, h3, h4 {
    font-family: 'Bangers';
    text-align: center;
    text-shadow: 0 0 9px #000000b0;
}    

h1 {
    letter-spacing: 4px;
    font-weight: 400;
    font-size: 2rem;
    margin-block-start: 0.5rem;
    margin-block-end: 0.5rem;
    line-height: 2.6rem;
}

h3 {
    letter-spacing: 3px;
    font-weight: 400;
    font-size: 1.5rem;
    margin-block-start: 0.5rem;
    margin-block-end: 0.5rem;
    line-height: 2.2rem;
}

h4 {
    letter-spacing: 4px;
    font-weight: 400;
    font-size: 2rem;
    margin-block-start: 0.5rem;
    margin-block-end: 0.5rem;
}

/* Welcome windows styling */
.welcome-txt-body {
    display: flex;
    margin: 1rem;
    text-align: left;
    font-size: 1.2rem;
    flex-direction: column;
}

/* Loading animation */

#loading-window {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: unset;
    min-height: 600px;
    padding: 7% 0;

    
    
    
}


.loader {
    margin: auto;
    border: 20px solid transparent;
    border-radius: 50%;
    border-top: 20px solid #fff8b8;
    width: 200px;
    height: 200px;
    animation: spinner 2s linear infinite;
}
  
@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#notice {
    min-height: 2.5rem;
}

.logo-link {
    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;

}

.logo {
    height: 150px;
    margin: 1.5rem auto;
    transition: all 0.5s ease-in-out;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.first-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: none;
}

.box {
    margin: 0.1rem;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 77px;
    height: 77px;
    background: url("../images/char-bg.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.box:hover {
    cursor: pointer;
}

.char-box {
    width: 77px;
    height: 77px;
    margin: 0.1rem;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none; 
    -ms-user-select: none;
    user-select: none;                     
    background: url("../images/char-bg.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;                 
}

.box h4, .char-box h4 {
    padding: 1rem;
}

.char-box:hover {
    cursor: pointer;
}

.char-red {
    color: #ff712d;
    transition: all 0.2s ease-in-out;
}

.char-green {
    color: #7fcf7f;
    transition: all 0.2s ease-in-out;
}

.char-drag{
    transform: scale(2);
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff8b8;
    background: url("../images/wood-poster.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 1300px;
    margin: auto;
    transition: all 0.2s ease-in-out;
}

#message-window {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: unset;
    min-height: 400px;
    padding: 10% 0;
}

#end-game {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: unset;
    min-height: 400px;
    padding: 7% 0;
}


/* Highscore styling */

.highscore-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: unset;

}

.highscore-child {
    display: flex;

    align-items: center;
    justify-content: center;
    width: unset;
    margin: 0.5rem;

}

.highscore-child p {
    font-weight: bold;
}

#game-window {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 5% 0;
}

.char-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.chars {
    display: flex;
    margin: 2rem 0 1rem;
    flex-wrap: wrap;
    width: 45%;
    justify-content: center;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.button {
    color: #fff8b8;
    padding: 1rem;
    border: unset;
    border-radius: 10px;
    background: url("../images/button.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-width: 200px;
}

.mobile-buttons {
    display: none;


    width: 100%;
    justify-content: space-evenly;
    margin: 0 0 1rem;
}

.mobile-buttons-draw {
    margin: 0.5rem 1rem;
    background: url("../images/mobile-draw.png");
    background-size: contain!important;
    background-repeat: no-repeat;
    background-position: center;
    width: 70px;
    height: 70px;
    border: unset;
}

.mobile-buttons-delete {
    margin: 0.5rem 1rem;
    background: url("../images/mobile-back-wood.png");
    background-size: contain!important;
    background-repeat: no-repeat;
    background-position: center;
    width: 70px;
    height: 70px;
    border: unset;
}

.mobile-buttons-mute {
    margin: 1rem;
    background: url("../images/mobile-unmuted.png");
    background-size: contain!important;
    background-repeat: no-repeat;
    background-position: center;
    width: 70px;
    height: 70px;
    border: unset;
}

.mobile-buttons-draw:hover, .mobile-buttons-mute:hover, .mobile-buttons-delete:hover {
    cursor: pointer;

}



.mobile-header {
    display: none;
    align-items: center;
    width: 100%;
    justify-content: space-evenly;
    padding: 0rem 0;
}

.mobile-logo {
    height: 70px;
    margin-top: 0.5rem;

    transition: all 0.5s ease-in-out;
}

.button-dark-mobile {
    background-image: url("../images/mobile-muted2.png");
}

.button-dark {
    background-image: url("../images/button-dark.png");
}

.button:hover {
    cursor: pointer;
}

@media only screen and (max-width: 1300px) {

    

    .dark-body {
        box-shadow: inset 0 0 0 2000px rgb(0 0 0 / 54%);
    }


    .container {
        width: 100%;
        background: unset;

    }

    #game-window, #end-game, #message-window {
        
    
    /* background-repeat: no-repeat; */
    /* background-position: center; */
    width: 100%;
    height: 100%;
    }
    .welcome-txt-body {

        margin: 2rem 4rem;
    }

    .container {
        
        margin: unset;
    }
}

@media only screen and (max-width: 880px) {
    .chars {
        width: 60%;
    }

    .container {
        padding: 0;
        margin: 0;
    }

    #game-window {
        padding: 0;
    }

    #desktop-meta {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.8rem;
    }

    #notice {
        min-height: 2.3rem;
    }
    .chars {
        width: 80%;
    }

    .logo {
        width: unset;
        height: 95px;
        margin: 1rem auto;
    }

    #message-window {
        min-height: unset;
    }
}

@media only screen and (max-width: 600px) {
    .chars {
        width: 90%!important;
    }

    h1 {
        font-size: 1.4rem;
    }

    .char-box {
        width: 68px;
        height: 68px;
    }

    .button {
        min-width: 170px;
    }
    .mobile-buttons {
        display: flex;
    }
    .buttons {
        display: none;
    }
    .mobile-header {
        display: flex;
        flex-wrap: wrap;
    }


    .logo-link {
        width: 100%;
    }
    .logo {
        display:none;

    }
    .mobile-logo {
        display: flex;
    }
}

@media only screen and (max-width: 480px) {

    .chars {
        width: 80%;
    }
    .box, .char-box, .mobile-buttons-draw, .mobile-buttons-mute, .mobile-buttons-delete {
        width: 55px!important;
        height: 55px!important;
    }

    .container {
        margin: auto;
    }

    .logo {
        height: 70px;
        margin: 0.7rem auto 0 auto;
    }
    
}

@media only screen and (max-width: 450px) {

    #message-window {
        padding: 0;
    }

    #message-window-text {
        display: flex;
        flex-direction: column;
    }

    .welcome-txt-body {
        margin: 0;
        font-size: 1rem;
        margin: 0.7rem;
    }

    .chars {
        width: 90%;
        margin: 1rem auto;
    }



}

@media only screen and (max-width: 350px) {
    .mobile-logo {
        height: 60px;
    }

}