*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    min-height: 100vh;
}
.main_title{
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .3);
    font-size: 2.5rem;
}
.carousel{
    position: relative;
    width: 100%;
    max-width: 31.25em;
    height: 450px;
    /* margin: 0 auto; */
}
.carousel_container{
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 1em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    background: white;
    transform-style: preserve-3d;/*o que é essa propriedade?*/
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}
.carousel_container.flipped{
    transform: rotateY(180deg);
}
.carousel_container__cardFront,
.carousel_container__cardBack{
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1em;
    display: flex;
    flex-direction: column;
    align-items:center ;
    justify-content: center;
    padding: 20px;
}
.carousel_container__cardBack{
    transform: rotateY(180deg);
    background: #fff;
    color: #333;
}
.carousel_container__cardEnglish{
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}
.carousel_container__cardPortuguese{
    font-size: 1.8em;
    color:#6e8efb;
    margin-bottom: 20px;
    font-weight: 600;
}
.carousel_container__cardTranslation, 
.hint {
    position: absolute;
    bottom: 15px;
    color: #888;
    font-size: .9em;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
}/* adicionado na correção*/
.carousel_container__cardTranslation:hover, 
.hint:hover {
    background: #6e8efb;
    color: white;
}
.card_image{
    width: 200px;
    height: 200px;
    margin-bottom: 25px;
    border-radius: 10px;
    object-fit: cover;

}
.hint{
    position: absolute;
    bottom: 15px;
    color: #888;
    font-size: .9em;
}
.navigation{
    margin-top: 40px;
    display: flex;
    gap: 15px;
}
.nav_btn{
    background: rgba(255, 255, 255, .8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav_btn:hover{
    background: white;
    transform: scale(1.1);
}
.counter{
    margin-top: 15px;
    color: white;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .3);
}
.flip_instruction{
    margin-top: 10px;
    color: white;
    font-size: 1em;
    text-align: center;
}
@media (max-width: 650px){
    .carousel{
        height: 400px;
    }
    .carousel_container__cardPortuguese,
    .carousel_container__cardEnglish{
        font-size: 1.5rem;
    }
    .card_image{
        width: 120px;
        height: 120px;
    }
}