.content {
    width: 100%;
    max-width: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: auto;
    padding: 40px 20px;
}

.con {
    max-width: 100%;
    width: 90%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: rgba(120, 131, 146, 0.5);
    gap: 10px;
    position: relative;
}

.con::before {
    content: "";
    background: url(/images/revista-24/n2/diente-1.webp);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    width: 120px;
    height: 120px;
    position: absolute;
    left: 0;
    top: 0;
    transform: scaleX(-1) rotate(-10deg);
    animation: dienteUno 1s ease infinite;
}

@keyframes dienteUno {
    0% {
        transform: scaleX(-1) rotate(-10deg);
    } 50% {
        transform: scaleX(-1) rotate(10deg);
    } 100% {
        transform: scaleX(-1) rotate(-10deg);
    }
}

.con::after {
    content: "";
    background: url(/images/revista-24/n2/diente-1.webp);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    width: 120px;
    height: 120px;
    position: absolute;
    right: 0;
    bottom: 10px;
    transform: rotate(10deg);
    animation: dienteDos 1s ease infinite;
}

@keyframes dienteDos {
    0% {
        transform: rotate(10deg);
    } 50% {
        transform: rotate(-10deg);
    } 100% {
        transform: rotate(10deg);
    }
}

.palabras {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.palabras>h3 {
    margin: 0;
    color: #000;
}

.palabras>h4 {
    margin: 10px;
    font-weight: lighter;
    text-align: center;
}

.botones {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    gap: 10px;
}

.botones>p {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
}

#input {
    margin: 20px;
    padding: 10px 20px;
    min-width: 300px;
    border-radius: 30px;
    font-size: 20px;
    outline: none;
    border: none;
    color: #000;
    font-weight: bolder;
}

button {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 0;
    outline: none;
    border: none;
    background-color: #fff;
    border: 2px solid #00889E;
    color: #00889E;
    font-weight: bolder;
    cursor: pointer !important;
    transition-property: all;
    transition-duration: .3s;
    transition-timing-function: cubic-bezier(0.65, -0.25, 0.25, 1.95);
    width: 150px;
}

button:hover,
button:focus,
button:active {
    background-color: #00889E;
    color: #fff;
}

button#Checkbtn,
button#Nxtbtn {
    width: 310px;
    background-color: #00889E;
    color: #fff;
}

button#Checkbtn:hover,
button#Checkbtn:focus,
button#Checkbtn:active,
button#Nxtbtn:hover,
button#Nxtbtn:focus,
button#Nxtbtn:active {
    color: #00889E;
    background-color: #fff;
}

button#Nxtbtn:hover {
    letter-spacing: 3px;
}

#msg {
    margin: 0 0 20px 0;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #000;
    max-width: 75%;
    line-height: 1.25em;
}

#score {
    display: none;
    width: 100%;
    justify-content: space-between;
    margin-top: 40px;
    padding: 20px;
}

.score>h2 {
    text-align: center;
}

.hidden {
    display: none;
}

input {
    font-family: "Poppins", sans-serif;
}

@media screen and (max-width: 850px) {
    .content {
        padding: 0;
    }
}

@media screen and (max-width: 767px) {
    .con {
        padding: 150px 20px;
    }
}

@media screen and (max-width: 400px) {
    .con {
        padding: 150px 20px 40px;
    }

    .con::before {
        right: 0;
        margin: auto;
    }
    
    .con::after {
        display: none;
    }

    .palabras {
        max-width: 100%;
    }

    .botones {
        max-width: 100%;
        justify-content: space-between;
    }

    button {
        width: 47%;
    }

    button#Checkbtn,
    button#Nxtbtn {
        width: 100%;
    }

    #input {
        min-width: unset;
    }

    #score {
        margin-top: 0;
    }
}