@font-face {
    font-family: SuperMario;
    src: url(../fuentes/SuperMario256.ttf);
}
:root{
    --urlFondo: url(https://res.cloudinary.com/dulupp7yk/image/upload/v1684114573/torresdehanoi/fondo_pc3jeh.jpg);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    min-height: 100%;
}
body {
    min-height: 100%;
    margin: 0;
    overscroll-behavior: contain;
    background-image: var(--urlFondo);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center;
    font-family: 'SuperMario', sans-serif;
    overflow-x: hidden;
}
.contenedor {
    padding: clamp(1rem, 3vw, 2rem);
    width: 100%;
    min-height: 100dvh;
    background-color: #e5c68d;
    background-image: var(--urlFondo);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    align-content: center;
    flex-direction: row;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: .8rem;
    gap: 1rem;
    overflow-y: auto;
}

.contenedorGanador {
    padding: clamp(1rem, 3vw, 2rem);
    width: 100%;
    min-height: 100dvh;
    background-image: var(--urlFondo);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

.contenedor div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contenedor button {
    text-align: center;
    margin: 10px;
}

.contenedor .mensajeError {
    display: none;
    max-width: 22rem;
    margin-top: .75rem;
    padding: .75rem 1rem;
    color: #7a120b;
    background-color: rgba(255, 241, 241, .92);
    border: 2px solid #d9362a;
    border-radius: 10px;
    font-family: sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

#ventanaGanador {
    color: black;
    font-size: 1.3rem;
    text-align: center;
}

#ventanaGanador img {
    width: 15rem;
    height: 15rem;
    border-radius: 20px;
    border: 5px solid white;
    margin: 2rem;
}

#gif-winner {
    height: 18rem;
    background-size: cover;
}


.contenedor img:hover {
    transform: scale(1.1);
    rotate: 360deg;
    transition: all 0.5s;
    cursor: pointer;
}

.tableEstadisticas {
    display: flex;
    flex-direction: column;
}


/*TORRES DE HANOI*/
.container {
    max-width: none;
    min-height: 100dvh;
    margin-top: 0;
    padding: clamp(1rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;

}

.containerTittle {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: clamp(1rem, 4vh, 3.5rem);
}


.containerTittle h1 {
    letter-spacing: .2rem;
    font-size: clamp(2.5rem, 8vw, 6rem);
    margin: 0;
    text-align: center;
    padding: .2rem;
    border-width: 2px 0;
    border-style: solid;
    border-color: black transparent;
}

.containerTiempo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: clamp(1rem, 4vh, 3.5rem);

}

.containerTiempo p {
    font-size: 2rem;
    padding: .5rem;
    background-color: rgba(255, 255, 255, 0.324);
    border-radius: 10px;
    letter-spacing: .3rem;
    border-width: 2px 0;
    border-style: solid;
    border-color: grey transparent;
}

.controlSonido {
    position: fixed;
    top: .75rem;
    right: .75rem;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    padding: .45rem .6rem;
    color: black;
    background: rgba(255, 255, 255, .72);
    border: 2px solid rgba(0, 0, 0, .25);
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.controlSonido button {
    padding: .25rem .55rem;
    color: #fff;
    background-color: #d9362a;
    border: 0;
    border-radius: 999px;
    font-family: sans-serif;
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
}

.controlSonido input {
    width: min(8rem, 32vw);
    accent-color: #d9362a;
}

.containerTorres {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(.25rem, 2vw, 1.25rem);
    width: 100%;
    overflow-x: hidden;
    padding-bottom: .5rem;
}

.torre {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 12rem;
    height: clamp(220px, 45vh, 300px);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: end;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.324);
    border-radius: 20px;

}

.torre:hover {
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5), 0 0 0 8px rgba(75, 75, 75, 0.1);
    transition: all 0.5s;
}

.disco {
    border: 2px solid black;
    height: 30px;
    background-color: #fff;
    border-radius: 10px;
    touch-action: none;
    user-select: none;
    transition: background-color 0.2s ease;
}

.disco[draggable="true"] {
    will-change: transform;
}

.disco:hover {
    cursor: pointer;
}


#btnRanking {

    height: 5rem;
}

/*MODAL*/
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#containerSearchDiscos {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 0.5rem;
}
#tbodyRanking td{
    color: rgb(56, 54, 46);
    font-weight: lighter;
}

#containerSearchDiscos select {
    width: 6rem;
}

@media screen and (max-width: 600px) {
    .contenedor {
        flex-direction: column-reverse;
    }

    .container {
        margin-top: 0;
        padding: .75rem;
    }

    .containerTittle {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .containerTittle h1 {
        font-size: 3rem;
        margin: .3rem;
        border: 0px solid transparent;
        border-bottom: 2px solid black;
    }
    .containerTorres{
        gap: .35rem;
    }
    .torre {
        height: 40vh;
    }

    .torre:hover {
        pointer-events: none;
        background-color: rgba(255, 255, 255, 0.324);
        box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent;
        transition: none;
    }
    #ventanaGanador img{
        width: 9rem;
        height: 9rem;
        margin: 0;
    }

}

@media screen and (max-height: 700px) {
    .container {
        justify-content: flex-start;
    }

    .containerTiempo p {
        font-size: 1.5rem;
    }

    .torre {
        height: clamp(180px, 42vh, 260px);
    }
}
