html {
    touch-action: none;
}

body {
    display: flex;
    flex-direction: row;
    align-content: center;
    height: 100vh;
    text-align: center;
    justify-content: space-evenly;
    touch-action: none;
}

.header {
    align-self: center;
    padding-bottom: 10px;
    background-color: black;
    width: 100%;
    height: 100%;
    color: white;
}

h1 {
    font-family: 'Shadows Into Light', cursive;
    font-size: 40px;
}

#stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    background-color: black;
    border: 20px solid black;
    box-shadow: 0px 0px 36px 0px rgba(0, 0, 0, 0.51);
    border-radius: 10px;
    order: 1;
}

.statContainer {
    display: flex;
    flex-direction: column;
    margin: 5px 0;
    text-align: center;
}

h2 {
    font-size: 13px;
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    color: white;
    margin-top: 1px;
    font-weight: 100;
}

.stat {
    width: 50px;
    height: 50px;
    border-radius: 7px;
    color: white;
    border: 1px solid white;
    font-family: 'Roboto Mono', monospace;
    font-weight: 400;
}

#level {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#level span {
    align-self: center;
    font-size: 25px;
}



#hold {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-content: center;
    overflow: hidden;
}

.holdRow {
    display: flex;
    flex-direction: row;
    height: 25%;
}

.holdBox {
    width: 25%;
}



#upNext {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-content: center;
    overflow: hidden;
}

.upNextRow {
    display: flex;
    flex-direction: row;
    height: 25%;
}

.upNextBox {
    width: 25%;
}







#startBtn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: rgb(88, 0, 0);
    font-size: 12px;

}

#startBtn span {
    align-self: center;
}

#swipeToggler {
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: rgb(0, 66, 88);
}

#swipeToggler span {
    align-self: center;
    font-size: 10px;
}


#game {
    align-self: center;
    display: flex;
    flex-direction: column;
    border: 20px solid black;
    box-shadow: 0px 0px 36px 0px rgba(0, 0, 0, 0.51);
    border-radius: 10px 50px 20px 40px;
    order: 2;
}

#controls {
    align-self: center;
    order: 3;
}

.row {
    display: flex;
    flex-direction: row;
}

.box {
    height: 20px;
    width: 20px;
    background-color: black;
    margin: 0;
}

.box.preview_move:not(.filled):not(.active) {
    background-color: #333;
    box-shadow: inset 0 0px 2px 0px  #fff;
}

.active {
    background-color: ;
}

.filled {
    background-color: rgb(255, 255, 255);
}


#game:has(.row .gameOverLetters) .box.filled {
    background-color: #403b3b
}

.gameOverLetters {
    opacity: 1 !important;
    background-color: rgb(195, 0, 0) !important;
}


.arrowBtn {
    width: 50px;
    height: 50px;
    margin: 3px 1px;
    border-radius: 10px;
    background-color: black;
    color: white;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.51);
}

#spaceBtn {
    width: 200px;
}


.hidden {
    display: none;
    height: 0px;
}

/* #showControls {
    position: fixed;
    bottom: 0px;
    right: 2px;

} */

@media (min-width: 600px) {
    #showControls {
        display: none;
    }

    #swipeToggler {
        display: none
    }
}

@media (max-width: 600px) {

    .header {
        display: none;
    }

    #stats {
        flex-direction: row;
        justify-content: space-evenly;
        border: 10px solid black;
        order: 2;
    }

    #game {
        order: 1;
    }

    body {
        flex-direction: column;
    }

    .box {
        width: 3vh;
        height: 3vh;
    }

    .stat {
        margin: 0 3px;
    }

    #startBtn {
        display: ;
    }

    #arrows {
        display: none;
    }

}