#tablero{
    /*display: flex;*/
    /*flex-direction: column;*/
    /*justify-content: space-around;*/
    width: 100%;
    gap: 20px;
    justify-items: center;
    margin: auto;
    display: grid;
    height: 75%;
    align-items: center;
}

*{
    font-family: sans-serif;
}

#seccionAudio{
    position: absolute;
    z-index: 2000;
    display: flex;
    background: beige;
    padding: 20px;
    flex-direction: column;
    font-size: 1.4em;
    bottom: 0;
}

#menu, #menu>form{
    display: flex;
    flex-direction: column;
    z-index: 500;
    gap: 30px;
    align-items: center;
}

#menu>form>label{
    font-size: 1.8em;
    background-color: #702d07;
    backdrop-filter: blur(12px);
}

#menu>form>input, #menu select{
    font-size: 1.5em;
}

#menu>form>button{
    font-size: 2.5em;
    width: fit-content;
    margin: auto;
    padding: 10px;
    cursor: pointer;

    background-color: #5e3e0e;
    color: white;
    font-family: Irish, sans-serif;
    border-radius: 45%;
    border: outset #362308 5px;
}

#modal{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;

}

#modal > h1{
    font-size: 4em;
}

#modal > h2{
    font-size: 3.2em;
}

#modal > button{
    padding: 30px;
    font-size: 3.5em;
    cursor: pointer;
}


#menu>form>input[type=submit]:hover{
    color: #989898;
    background-color: #362811;

}

#menu{
    margin: auto;
    width: 25%;
    backdrop-filter: blur(6px);
    border-radius: 10%;
    padding: 10px 50px;
    color: white;

}

#menu > h1{
    margin: 15px;
    text-align: center;
    font-size: 3em;
    font-family: Irish, sans-serif;
}

body{
    margin: 0;
    overflow-y: hidden;
    background-image: url("img/pub.png");
    backdrop-filter: blur(3px);
    background-repeat: no-repeat;
    background-size: cover;
    image-rendering: smooth;
    height: 100vh;
}

body.partida{
    background-image: url("img/mesa.jpg");

}

.fila{
    justify-content: space-between;
    display: flex;
    flex-direction: row;
}

.carta {
    width: 120px;
    aspect-ratio: 1/1.5;
    transition: 500ms;
    border: 1px solid black;
    cursor: pointer;
    background-size: cover;
    background-repeat: no-repeat;
    background-origin: content-box;
    border-radius: 4px;
    image-rendering: smooth;

}

.carta:not(.abierta):hover, .carta:not(.abierta):active{
    outline: 5px yellow solid;
    outline-offset: 10px;
}

.carta.focused{
    outline: 10px red solid;
    outline-offset: 15px;
}

.carta.abierta{
    background-color: white;
    cursor: auto;
    transform: rotateY(180deg) rotateX(0deg) perspective(0px);
    font-family: sans-serif;
    font-size: 3rem;

}

#controles{
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.56);
    padding: 15px;
    font-weight: bold;
    text-align: right;
}


footer{
    position: absolute;
    bottom: -70px;
    height: 100px;
    width: 99%;
    display: flex;
    justify-content: center;
    transition: 200ms;
    z-index: 100;
}

footer:hover, footer.focused{
    bottom: 0;
    #ui{
        background-position-y: -280px;
        filter: none;
    }
}

#ui{
    filter: blur(2px);
    border-radius: 30px 30px 0 0;
    background-image: url("img/shelf.webp");
    transition: 200ms;
    color: white;
    background-size: 100%;
    width: 50%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    visibility: hidden;
    user-select: none;
}

#ui > button{
    cursor: pointer;
    width: 200px;
    font-size: 1.6em;
    background-color: #d52121;
    color: white;
    border: outset 2px #770000;
    font-weight: bold;
}

#ui > button:hover, #ui > button:focus{
    border-width: 5px;
    background-color: #770000;
}



#ui > h2 {
    backdrop-filter: blur(8px);
    padding: 5px;
    border-radius: 15px;
}

#consecutivas{
    font-family: SpeedWay, sans-serif;
    color: #ffc400;
    font-weight: bold;
    position: absolute;
    font-size: 3rem;
    left: calc(35%);
    top: calc(45%);
    user-select: none;
    user-focus: none;
    z-index: 600;
    text-shadow: 2px 0 #ff8000, -10px 0 #ff0000, 0 2px #ff0000, 0 -2px #ff8000;
}

@font-face {
    font-family: Irish;
    src: url("fonts/IrishUncialfabeta-Bold.ttf");
}

@font-face {
    font-family: SpeedWay;
    src: url("fonts/Speedway.ttf");
}

@media screen and (width < 900px){
    #seccionAudio{
        top: 0;
        left: 2.5%;
        bottom: auto;
        width: 80% !important;
        position: relative;
    }
    #controlSonido{
        width: 50%;
    }
    #tablero{
        display: flex !important;
        flex-flow: row wrap;
        height: 86vh;
        overflow-y: scroll;
        justify-content: center;
        max-width: 100%;
    }
    body{
        height: 100%;
        overflow-y: visible;
    }

    footer{
        bottom: 0;
        position: sticky;
    }
    #ui{
        width: 100%;
        filter: none;
        bottom: 0;
        background-position-y: -280px;
        font-size: 60%;
    }
    #menu{
        width: 50%;
    }
}

@media screen and (width < 600px) and (orientation: portrait){
    #seccionAudio{
        width: 100%;
    }
    #menu, #menu>form{
        gap: 10px;
        font-size: 0.8em;
    }

}