.ahorcado {
    text-align: center;
    font-size: 22px;
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.botonCalififcar {
    position: sticky;
    bottom: 0;
    text-align: center;
}

#reset {
    color: #fff;
    background: #2B8B4B;
    border: none;
    border-radius: 0;
    font-size: 21px;
    padding: 6px 20px;
}

#reset:hover {
    background: #ffd200;
    border: none;
    outline: 0;
}

.texto-ahorcado {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #333;
    font-size: 25px;
}

.letra {
    width: 30px;
    height: 30px;
    border: none;
    color: #fff;
    margin: 5px;
}

.espacio {
    width: 20px;
}

#container_abecedario {
    width: 100%;
    margin: auto;
    max-width: 450px;
}

@media (max-width: 767px) {
    #container_abecedario {
        width: 100%;
    }
}

#container_abecedario input {
    border-radius: 3px;
    padding: 0;
}

#container_abecedario input:nth-child(5n+1) {
    background: #009154;
    box-shadow: 0 0 0 2px rgb(0, 143, 83);
}

#container_abecedario input:nth-child(5n+2) {
    background: #dac400;
    box-shadow: 0 0 0 2px #dac50e;
}

#container_abecedario input:nth-child(5n+3) {
    background: #70B66D;
    box-shadow: 0 0 0 2px #77bd73;
}

#container_abecedario input:nth-child(5n+4) {
    background: #f3a600;
    box-shadow: 0 0 0 2px #e79e00;
}

#container_abecedario input:nth-child(5n+5) {
    background: #006d38;
    box-shadow: 0 0 0 2px rgb(0, 114, 59);
}

#container_abecedario input[disabled] {
    background-color: #eee;
    box-shadow: 0 0 0 2px #ddd;
    color: #bbb;
    cursor: not-allowed;
}

#container_palabra {
    color: #f57921;
    font-size: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px auto 10px;
}

@media (max-width: 767px) {
    #container_palabra {
        display: block;
    }
}

#info-palabras {
    text-align: center;
    color: #006d38;
    font-weight: bold;
}

#campo_ahorcado {
    max-width: 500px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.ahorcado .columns {
    display: grid;
    grid-template-columns: 1fr 40%;
    grid-gap: 10px;
}

@media (max-width: 992px) {
    .ahorcado .columns {
        grid-template-columns: 1fr;
    }
}

.px-0 {
    padding-left: 0;
    padding-right: 0;
}

.definicion {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    color: #d15700;
    border-radius: 10px;
    padding: 1vw;
    background: rgba(238, 238, 238, 0.6);
    padding: 20px;
}

.termino {
    font-size: 24px;
    color: #fff;
    font-weight: 600;
    margin-top: 10px;
    text-transform: uppercase;
}

.pista_titulo {
    font-size: 32px;
    color: #2B8B4B;
    font-weight: 600;
    margin-top: 10px;
}

#pista_palabra {
    padding-bottom: 10px;
    color: #333;
    font-size: 24px;
    line-height: 1.3;
}

.linea {
    font-size: 50px;
    color: #FFD83B;
    display: inline-block;
    margin-left: 4px;
    margin-right: 4px;
}

.linea:first-child {
    margin-left: 0;
}

.linea:last-child {
    margin-right: 0;
}

.letra-palabra {
    color: #333;
    position: relative;
    display: inline-block;
    font-size: 35px;
    width: 0;
    left: 10px;
    padding-bottom: 5px;
}

@media (max-width: 570px) {
    .linea {
        font-size: 22px;
    }

    .letra-palabra {
        font-size: 22px;
        left: 5px;
    }
}

/* Animación de entrada */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo semi-transparente */
    backdrop-filter: blur(5px);
    /* Efecto de desenfoque */
    justify-content: center;
    align-items: center;
}

/* Contenedor del contenido del modal */
.modal-content {
    background: #fff;
    padding: 10px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: modalFadeIn 0.3s ease-out;
}

#modal-ahorcado.modal--active {
    display: flex;
}


#modal-ahorcado {
    text-align: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.3);
}


/* #modal-ahorcado .modal-content {
    background: #FFD83B;
}

#modal-ahorcado.intentar .modal-content {
    background: #2B8B4B;
}

#modal-ahorcado button.close {
    background: #2B8B4B;
}

#modal-ahorcado.intentar button.close {
    background: #FFD83B;
} */

#modal-ahorcado button.close:hover {
    color: #fff;
}

#modal-ahorcado .modal-body {
    border: 2px dashed #fff;
}

#modal-ahorcado.modal.in .modal-dialog {
    top: 50%;
    transform: translateY(-70%);
}

#texto-modal {
    font-size: 22px;
    line-height: 1.3;
}

.intentalo {
    display: block;
    margin-top: 20px;
}

@media (min-width: 768px) {
    #texto-modal {
        font-size: 24px;
        line-height: 1.3;
    }
}

@media (max-width: 767px) {
    .espacio::before {
        content: '\A';
        white-space: pre;
    }
}