* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-weight: bold;
}

@media (min-width: 991px) {
    #contenedorAhorcado2 {
        width: 780px;
        height: 630px;
        font-size: 20px;
    }

    #cabeza {
        border: white solid 3px;
    }

    #cabeza::before {
        height: 125%;
        left: 43%;
        top: -133.5%;
    }

    #palo {
        border-top: white solid 5px;
        border-left: white solid 5px;
    }

    #soporte {
        border-top: white solid 5px;
    }

    #muñecoAhorcado {
        transform: translateX(-75px);
    }

    #tecladoAhorcado {
        width: 75%;
        padding-top: 2%;
    }

    #tecladoAhorcado span {
        padding: 0.3rem;
    }

    button,
    input {
        font-size: 15px;
    }
}

@media (min-width: 768px) and (max-width: 990px) {
    #contenedorAhorcado2 {
        width: 600px;
        height: 520px;
        font-size: 15px;
    }

    #cabeza {
        border: white solid 3px;
    }

    #cabeza::before {
        height: 125%;
        left: 43%;
        top: -133.5%;
    }

    #palo {
        border-top: white solid 4px;
        border-left: white solid 4px;
    }

    #soporte {
        border-top: white solid 4px;
    }

    #muñecoAhorcado {
        transform: translateX(-59px);
    }

    #tecladoAhorcado {
        width: 75%;
        padding-top: 2%;
        transform: scaleY(0.8);
    }

    #tecladoAhorcado span {
        padding: 0.2rem;
    }

    button,
    input {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    #contenedorAhorcado2 {
        width: 400px;
        height: 350px;
        font-size: 12px;
    }

    #cabeza {
        border: white solid 2px;
    }

    #cabeza::before {
        height: 130%;
        left: 43%;
        top: -140%;
    }

    #palo {
        border-top: white solid 4px;
        border-left: white solid 4px;
    }

    #soporte {
        border-top: white solid 4px;
    }

    #muñecoAhorcado {
        transform: translateX(-38px);
    }

    #tecladoAhorcado {
        width: 100%;
        margin-top: 1rem;
    }

    #empezar {
        transform: scale(0.7);
    }

    #tecladoAhorcado button,
    #tecladoAhorcado input {
        transform: scaleY(0.8);
    }
}

#empezar {
    position: absolute;
    font-family: 'Indie Flower', cursive;
    color: white;
    background-color: rgb(0, 89, 0);
    border: groove 5px;
    width: 150px;
    height: 80px;
    font-size: 20px;
    top: 30%;
    box-shadow: black 5px 5px 10px;
}

#empezar:hover {
    background-color: white;
    color: rgb(0, 89, 0);
}

#contenedorAhorcado1 {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

#contenedorAhorcado2 {
    color: white;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}

#cabeza::before {
    content: "";
    position: absolute;
    width: 15%;
    background-color: white;
}

#palo {
    width: 50%;
    height: 100%;
    align-self: flex-end;
}

#soporte {
    align-self: center;
    width: 50%;
}

#muñecoAhorcado {
    margin-top: 9%;
    width: 20%;
    height: 70%;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}

#tecladoAhorcado {
    display: flex;
    flex-flow: row wrap;
}

#tecladoAhorcado span {
    width: 10%;
}

#pizarra {
    font-family: 'Indie Flower', cursive;
    color: white;
    background-color: rgb(0, 89, 0);
    border: groove 10px;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 70%;
    box-shadow: inset black 3px 3px 10px, inset black -3px -3px 10px, black 3px 3px 10px;
}

#ahorcado {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    width: 100%;
    height: 75%;
    padding: 0.5rem;
}

#horca {
    padding-top: 3%;
    display: flex;
    flex-flow: column nowrap;
    width: 40%;
    height: 95%;
}

#cabeza {
    position: relative;
    border-radius: 50%;
    width: 30%;
    height: 20%;
}

#brazos {
    display: flex;
    flex-flow: row nowrap;
    width: 70%;
    height: 1%;
}


#cuerpo {
    background-color: white;
    width: 2%;
    height: 40%;
}

#piernas {
    display: flex;
    flex-flow: row nowrap;
    width: 70%;
    height: 1%;
}

#brazo1,
#pierna1 {
    background-color: white;
    width: 50%;
    height: 100%;
    transform: rotateZ(-45deg) translate(-12%, 850%);
}

#brazo2,
#pierna2 {
    background-color: white;
    width: 50%;
    height: 100%;
    transform: rotateZ(45deg) translate(12%, 850%);
}

#info {
    display: flex;
    flex-flow: column nowrap;
    width: 40%;
    height: 100%;
}

#palabraAhorcado {
    width: 50%;
    height: 12%;
    border-spacing: 5%;
}

#longitudPalabra td {
    width: 20px;
    text-align: center;
}

button {
    width: 80%;
}

input {
    width: 200%;
}

button,
input {
    border-radius: 5px;
    border: none;
    background-color: rgb(193, 193, 193);
    height: 40px;
}

#tecladoAhorcado button:hover,
#tecladoAhorcado input:hover {
    animation: seleccionBoton 0.3s 1 linear;
    border: solid rgb(0, 153, 255);
}

@keyframes seleccionBoton {
    0% {
        border: solid rgb(193, 193, 193);
    }

    100% {
        border: solid rgb(0, 153, 255);
    }
}

.hide {
    display: none;
}

.show {
    display: block;
}

.verde {
    color: white;
    background-color: green;
}

.rojo {
    color: white;
    background-color: red;
}

.letraVacia {
    border-bottom: solid white 2px;
}

.letraColocada {
    border: none;
    animation: colocarLetra 0.5s 1 ease-in-out;
}

@keyframes colocarLetra {
    0% {
        transform: scaleX(1);
        border-bottom: solid white 2px;
    }

    49% {
        border-bottom: solid white 2px;
    }

    50% {
        transform: scaleX(0);
        border: none;
    }

    100% {
        transform: scaleX(1);
        border: none;
    }
}