/* Entry animation */
body {
    animation: fadeIn 1.5s ease-in-out forwards;
    background-color: #111;
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    margin: 0;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #ff1e00;
}

/* Card container */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Cards style */
.card {
    position: relative;
    width: 200px;
    height: 150px;
    perspective: 1000px;
    cursor: pointer;
}

.card .front,
.card .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
    transition: transform 0.6s ease-in-out;
}

.card .front {
    background-color: #222;
    color: #fff;
    border: 2px solid #ff1e00;
}

.card .back {
    background-color: #ff1e00;
    color: #fff;
    transform: rotateY(180deg);
}

/* Hover reveal */
.card:hover .front {
    transform: rotateY(180deg);
}

.card:hover .back {
    transform: rotateY(360deg);
}
