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

body {
    font-family: 'Times New Roman', serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    perspective: 1000px;
    width: 100%;
    max-width: 800px;
}

.card {
    width: 100%;
    height: 300px;
    position: relative;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    background: white;
    border: 8px solid black;
    border-style: double;
    border-width: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 30px;
}

.card-back {
    transform: rotateY(180deg);
}

.front-text, .back-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.front-text h2, .back-text h2 {
    font-size: 2.2em;
    font-weight: normal;
    color: black;
    margin-bottom: 10px;
    font-style: italic;
}

.front-text p {
    font-size: 2.2em;
    font-weight: normal;
    color: black;
    font-style: italic;
}

.back-text p {
    font-size: 1em;
    line-height: 1.5;
    max-width: 95%;
    color: black;
    font-style: normal;
}

.front-bottom, .back-bottom {
    text-align: center;
}

.front-bottom span {
    font-size: 1em;
    font-weight: bold;
    color: black;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
}

.learn-more {
    font-size: 1em;
    font-weight: bold;
    color: black;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: #666;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .card {
        height: 250px;
    }
    
    .card-front, .card-back {
        padding: 20px 15px;
    }
    
    .front-text h2, .back-text h2 {
        font-size: 1.6em;
    }
    
    .front-text p {
        font-size: 1.6em;
    }
    
    .back-text p {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .card {
        height: 200px;
    }
    
    .card-front, .card-back {
        padding: 15px 10px;
    }
    
    .front-text h2, .back-text h2 {
        font-size: 1.3em;
    }
    
    .front-text p {
        font-size: 1.3em;
    }
    
    .back-text p {
        font-size: 0.8em;
    }
} 