body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    font-family: Arial, sans-serif;
    margin: 0;
    perspective: 1000px; /* Adicionado para o efeito 3D */
}

.flashcard-container {
    width: 300px;
    height: 200px;
    position: relative;
    cursor: pointer;
}

.flashcard {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.second-flashcard {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Esconde a face de trás */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 1.5em;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    font-size: small;
}

.second-flashcard-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 1.5em;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    font-size: small;
}

.flashcard-front {
    background-color: #fff;
    color: #333;
}

.flashcard-back {
    background-color: blue; 
    color: #fff;
    transform: rotateY(180deg); 
}

.second-flashcard-back {
    background-color: blue; 
    color: #fff;
    transform: rotateY(180deg); 
}

h1 {
    margin-top: 0; 
    margin-bottom: 20px; 
    padding: 20px; 
    background-color: #333; 
    color: #fff; 
    text-align: center; 
    border-bottom: 5px solid #007bff; 
}
