body{
    background-color: #222;
    text-align: center;
    padding-top: 73px;
}
#fullPageContainer {
    position: fixed;
    top: 52px;
    left: 0;
    height: calc(100vh - 52px);
    width: 100%;
    background-color: rgba(255, 0, 0, 0);
    z-index: 10;
}
#containerSVG{
    height: calc(100vh - 85px);
    padding: 5px;
    display: block;
    position: relative;
}
#containerSVG svg{
    display: block;
    width: 100%;
    height: 100%;
}
*{
    user-select: none;
}
.space{
    width: 60px;
    height: 60px;
    background: #ff000000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    user-select: none;
    flex: 0 0 auto;
}
.backButton{
    display: none;
    margin-top: 25px;
}
body {
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.guessingGame-container {
    display: none;
    width: max-content;
    max-width: 95%;
    height: max-content;
    overflow-x: auto;
    box-sizing: border-box;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 15px;
}
.grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.row {
    display: flex;
    gap: 8px;
}
.tile {
    width: 60px;
    height: 60px;
    background: #3a3a3c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 5px;
    user-select: none;
    flex: 0 0 auto;
}
.backButton {
    padding: 8px 12px;
    font-size: 1rem;
    background-color: #538d4e;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}
.backButton:hover {
    background-color: #6aaa64;;
}
.keyboard {
    display: none;
    width: 100%;
    padding: 0 10px;
    margin-top: 25px;
    grid-template-columns: repeat(9, minmax(30px, 60px));
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
}
.keyboard button {
    width: 100%;
    aspect-ratio: 1;
    color: white;
    font-size: min(5vw, 2rem);
    font-weight: bold;
    border: 0px solid rgb(255, 255, 255);
    border-radius: 25%;
    background-color: #3a3a3c;
    user-select: none;
    box-sizing: border-box;
}
.keyboard button, .tile, .backButton{
    font-family: "Menbere", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}
.keyboard button.keyCorrect {
    background-color: #3CAE63;
}
.keyboard button.keyInWord{
    background-color: #f2b949;
}
.keyboard button.keyIncorrect{
    background-color: #80ff0000;
    border: 2px solid hsl(200, 2%, 20%);
    color: hsl(200, 2%, 20%);
}
.keyboard button:hover{
    border: 2px solid white;
}
.correct{
    background-color: #3CAE63;
}
.inword{
    background-color: #f2b949;
}
.incorrect{
    background-color: #36404a;
}
#phoneButtons{
    grid-column: span 9;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 5px;
    box-sizing: border-box;
}
#phoneButtons button{
    aspect-ratio: 0;
    border-radius: 0%;
    border: solid 2px rgba(255, 0, 0, 0);
    box-sizing: border-box;
}
.keyboard button:hover, #phoneButtons button:hover{
    border: 2px solid white;
}
.keyboard button:active{
    background-color: rgb(255, 255, 255);
    color: #3a3a3c;
}
#infoButton {
    transform: translate(2px, 2px) scale(0.25);
    cursor: pointer;
    fill: hsl(0, 0%, 90%);
}
#infoButton path{
    fill: hsl(0, 0%, 85%);
}
#infoButton:hover path{
    fill: #f3b229;
}
#infoButton text{
    font-size: 50%;
}
#matchInfoText {
    stroke: black;
    stroke-width: 2;
    paint-order: stroke;
    stroke-linejoin: round;
}
#onLoadMatchInfo {
    color: #F8F3CE;
    font-family: "Menbere", sans-serif;
    position: absolute;
    left: 50%;
    top: 300px;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 17%;
    align-items: center;
    text-align: center;
    justify-content: center;
    display: flex;
    z-index: 11;
}
#parrafodeprueba{
    background-color: #200c34;
    padding: 10px;
    border: 5px solid hsl(270, 63%, 8%);
    cursor: pointer;
}
#instrucciones {
    width: 30%;
    min-width: 550px;
    margin-bottom: 20px;
}
#instrucciones ul,  
#instrucciones p {
    text-align: justify;
    text-align-last: left;
}
@media screen and (max-width: 800px) {
    .tile {
        width: 8vw;
        max-width: 60px;
        height: 8vw;
        max-height: 60px;
    }
    .space {
        width: 8vw;
        max-width: 60px;
        height: 8vw;
        max-height: 60px;
    }
    .grid{
        gap: 6px;
    }
    .row {
        display: flex;
        gap: 6px;
        }
    #instrucciones {
        width: 90%;
        min-width: 0px;
        margin-bottom: 14px;
    }

}
@media screen and (max-width: 600px) {
    .tile, .space {
        font-size: 1.5rem;
    }
    #instrucciones {
        margin-top: 5.6vh;
        margin-bottom: 5.6vh;
    }
    #containerSVG{
        width: 98%;
        max-height: 100vh;
        height: 100%;
        padding: 5px;
    }
}
