html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
#LogoInstituto {
    display: block;
    margin: 2rem auto 0 auto;
    width: 250px; 
}
#LogoInstituto2 {
    display: block;
    margin: 2rem auto 0 auto; 
    width: 150px; 
}
#creadores {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
    line-height: 1.4;
}

#creadores h2 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

#creadores p {
    margin: 0;
}

body {
    background-image: url(../IMG/fondo.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    margin-top: auto;
}

.formulario {
    display: flex;
    justify-content: center;
}

.jugar {
    display: grid;
    justify-content: center;
    align-items: center;
    height: 40%;
}

#tituloIndex {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-top: 10%;
    justify-content: center;
    letter-spacing: 2px;
    color: white;
    -webkit-text-stroke: 1px black;
    text-transform: uppercase;
}

p {
    text-align: center;
    font-size: 1vw;
    font-weight: bold;
    display: inline-block;
}

.rosco {
    width: 40vw;
    height: 40vw;
    position: relative;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.contenedor-top {
    height: 85vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tabla {
    background: radial-gradient(circle, #7baffe, #006eff);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 70%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

#ranking {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#ranking li {
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.titulo-top {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-top: 20px;
    letter-spacing: 2px;
    color: white;
    text-transform: uppercase;
    -webkit-text-stroke: 2px black;
    border-radius: 20px;
    padding: 10px;
    display: inline-block;
}

.top {
    background-color: white;
    width: 80%;
    height: 80%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.reiniciar {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* boton de reiniciar */
.boton2 {
    background: linear-gradient(145deg, #ff7e5f, #feb47b);
    border: none;
    border-radius: 50px;
    padding: 1% 4%;
    color: white;
    font-size: 1.5vw;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2), -3px -3px 10px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

h1 {
    font-size: 1.5vw;
    font-weight: bold;
}

.tiempo-y-aciertos {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    margin-bottom: 15%;
    margin-right: 15%;
}

.temporizador {
    width: 7vw;
    height: 7vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #007bff;
    color: white;
    font-size: 1.8vw;
    font-weight: bold;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4), -4px -4px 10px rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, #005bb5, #0095ff);
}

.aciertos {
    width: 3vw;
    height: 3vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #28a745;
    color: white;
    font-size: 1vw;
    font-weight: bold;
    border-radius: 50%;
    border: 2px solid white;
    position: absolute;
    bottom: -10%;
    left: 65%;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), -4px -4px 8px rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, #34d058, #28a745);
}

.inRosco {
    text-align: center;
    width: 50%;
    overflow: hidden;
}

.boton {
    background: linear-gradient(145deg, #ff7e5f, #feb47b);
    border: none;
    border-radius: 50px;
    padding: 2% 5%;
    color: white;
    font-size: 1.5vw;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2), -3px -3px 10px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.botonJugar {
    background: linear-gradient(145deg, #ff7e5f, #feb47b);
    border: none;
    border-radius: 50px;
    padding: 2% 5%;
    color: white;
    font-size: 1.5vw;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2), -3px -3px 10px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}
#subtitulo {
    display: flex;
    font-size: 2rem;
    text-align: center;
    justify-content: center;
    letter-spacing: 2px;
    color: white;
    -webkit-text-stroke: 1px black;
    text-transform: uppercase;
}
.nombre {
    border: none;
    border-radius: 50px;
    padding: 2% 5%;
    color: black;
    font-size: 1vw;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2), -3px -3px 10px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70%;
}

#respuesta {
    border: none;
    border-radius: 50px;
    padding: 2% 5%;
    color: black;
    font-size: 1vw;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2), -3px -3px 10px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.botonEnviar {
    background: linear-gradient(145deg, #ff7e5f, #feb47b);
    border: none;
    border-radius: 50px;
    padding: 2% 5%;
    color: white;
    font-size: 1vw;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2), -3px -3px 10px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.correct, .incorrect, .currentLetter, .abecedario {
    border: 2px solid white;
    position: absolute;
    width: 7%;
    height: 7%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    font-size: 1.5vw;
    font-weight: bold;
    transform-origin: 50% 50%;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4), -4px -4px 10px rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, #005bb5, #0095ff);
}

.currentLetter {
    border: 2px solid black;
    position: absolute;
    width: 7%;
    height: 7%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #78b9ff;
    color: white;
    border-radius: 50%;
    font-size: 1.5vw;
    font-weight: bold;
    transform-origin: 50% 50%;
}

.correct {
    border: 2px solid white;
    position: absolute;
    width: 7%;
    height: 7%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: green;
    color: white;
    border-radius: 50%;
    font-size: 1.5vw;
    font-weight: bold;
    transform-origin: 50% 50%;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), -4px -4px 8px rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, #34d058, #28a745);
}

.incorrect {
    border: 2px solid white;
    position: absolute;
    width: 7%;
    height: 7%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: red;
    color: white;
    border-radius: 50%;
    font-size: 1.5vw;
    font-weight: bold;
    transform-origin: 50% 50%;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), -4px -4px 8px rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, #ff4f4f, #ff0000);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.message {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 2vw;
    color: white;
    z-index: 10;
    padding: 10px;
}

.message.acertar {
    font-weight: bold;
    text-align: center;
    font-size: 1.5vw;
    background-color: rgba(0, 204, 0, 0.01);
    color: #00cc00;
    width: 100%;
    align-items: center;
    text-shadow: 0 0 15px #fff, 0 0 30px #00cc00, 0 0 40px #00cc00, 0 0 50px #00cc00;
}

.message.fallar {
    font-weight: bold;
    text-align: center;
    font-size: 1.5vw;
    background-color: rgba(255, 0, 0, 0.01);
    color: red;
    width: 100%;
    align-items: center;
    text-shadow: 0 0 15px #fff, 0 0 30px #cc0000, 0 0 40px #cc0000, 0 0 50px #cc0000;
}

.rosco>div:nth-child(1) {
    transform: rotate(273.33deg) translateX(15vw) rotate(-273.33deg);
}

.rosco>div:nth-child(2) {
    transform: rotate(286.66deg) translateX(15vw) rotate(-286.66deg);
}

.rosco>div:nth-child(3) {
    transform: rotate(300deg) translateX(15vw) rotate(-300deg);
}

.rosco>div:nth-child(4) {
    transform: rotate(313.33deg) translateX(15vw) rotate(-313.33deg);
}

.rosco>div:nth-child(5) {
    transform: rotate(326.66deg) translateX(15vw) rotate(-326.66deg);
}

.rosco>div:nth-child(6) {
    transform: rotate(340deg) translateX(15vw) rotate(-340deg);
}

.rosco>div:nth-child(7) {
    transform: rotate(353.33deg) translateX(15vw) rotate(-353.33deg);
}

.rosco>div:nth-child(8) {
    transform: rotate(6.66deg) translateX(15vw) rotate(-6.66deg);
}

.rosco>div:nth-child(9) {
    transform: rotate(20deg) translateX(15vw) rotate(-20deg);
}

.rosco>div:nth-child(10) {
    transform: rotate(33.33deg) translateX(15vw) rotate(-33.33deg);
}

.rosco>div:nth-child(11) {
    transform: rotate(46.66deg) translateX(15vw) rotate(-46.66deg);
}

.rosco>div:nth-child(12) {
    transform: rotate(60deg) translateX(15vw) rotate(-60deg);
}

.rosco>div:nth-child(13) {
    transform: rotate(73.33deg) translateX(15vw) rotate(-73.33deg);
}

.rosco>div:nth-child(14) {
    transform: rotate(86.66deg) translateX(15vw) rotate(-86.66deg);
}

.rosco>div:nth-child(15) {
    transform: rotate(100deg) translateX(15vw) rotate(-100deg);
}

.rosco>div:nth-child(16) {
    transform: rotate(113.33deg) translateX(15vw) rotate(-113.33deg);
}

.rosco>div:nth-child(17) {
    transform: rotate(126.66deg) translateX(15vw) rotate(-126.66deg);
}

.rosco>div:nth-child(18) {
    transform: rotate(140deg) translateX(15vw) rotate(-140deg);
}

.rosco>div:nth-child(19) {
    transform: rotate(153.33deg) translateX(15vw) rotate(-153.33deg);
}

.rosco>div:nth-child(20) {
    transform: rotate(166.66deg) translateX(15vw) rotate(-166.66deg);
}

.rosco>div:nth-child(21) {
    transform: rotate(180deg) translateX(15vw) rotate(-180deg);
}

.rosco>div:nth-child(22) {
    transform: rotate(193.33deg) translateX(15vw) rotate(-193.33deg);
}

.rosco>div:nth-child(23) {
    transform: rotate(206.66deg) translateX(15vw) rotate(-206.66deg);
}

.rosco>div:nth-child(24) {
    transform: rotate(220deg) translateX(15vw) rotate(-220deg);
}

.rosco>div:nth-child(25) {
    transform: rotate(233.33deg) translateX(15vw) rotate(-233.33deg);
}

.rosco>div:nth-child(26) {
    transform: rotate(246.66deg) translateX(15vw) rotate(-246.66deg);
}

.rosco>div:nth-child(27) {
    transform: rotate(260deg) translateX(15vw) rotate(-260deg);
}


@media screen and (max-width: 600px) {
    body {
        background-size: cover;
        background-position: center;
    }

    .message {
        top: 19%;
      }

    .rosco {
        width: 40vw;
        height: 40vw;
        position: relative;
        border-radius: 50%;
    }

    .contenedor {
        margin-top: auto;
        margin-bottom: auto;
    }

    .temporizador {
        width: 8vw;
        height: 8vw;
        font-size: 2vw;
    }

    .aciertos {
        width: 4.5vw;
        height: 4.5vw;
        font-size: 1.5vw;
    }

    .boton,
    .botonEnviar {
        font-size: 1.5vw;
        padding: 3% 6%;
    }

    #respuesta {
        font-size: 1.5vw;
        padding: 3% 6%;
    }

    .correct,
    .incorrect,
    .currentLetter,
    .abecedario {
        font-size: 1.5vw;
        border: 1px solid white;
        align-items: center;
        justify-content: center;
    }

    #pregunta {
        font-size: 1.5vw;
    }
}

@media screen and (min-width: 601px) and (max-width: 1024px) {
    body {
        background-size: cover;
        background-position: center;
    }
    .message {
        top: 40%;
    }
    .contenedor {
        margin-top: auto;
        margin-bottom: auto;
    }

    .rosco {
        width: 50vw;
        height: 50vw;
        margin: 0 auto;
    }

    .correct,
    .incorrect,
    .currentLetter,
    .abecedario {
        font-size: 1.5vw;
        border: 1px solid white;
        align-items: center;
        justify-content: center;
    }

    #pregunta {
        font-size: 1.5vw;
    }

    #respuesta {
        font-size: 1.5vw;
        padding: 3% 6%;
    }

    .boton,
    .botonEnviar {
        font-size: 1.5vw;
        padding: 3% 6%;
    }

    .aciertos {
        width: 3.5vw;
        height: 3.5vw;
        font-size: 1.5vw;
    }
}