/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(90deg, #4a148c, #1e88e5);
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.6);
}

/* Flashcard Container */
.flashcard-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ensure 3 cards in a row */
    gap: 20px;
    margin-top: 30px;
    justify-items: center;
    align-items: start;
}

/* Flashcard Design */
.flashcard {
    background: #1f1f1f;
    border-radius: 15px;
    padding: 20px;
    width: 350px; /* Adjusted width */
    height: 450px; /* Adjusted height */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.5), 0px 4px 15px rgba(75, 0, 130, 0.5);
    animation: fadeIn 1s ease-in-out;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure content is spaced evenly */
    overflow: hidden; /* Prevent overflow */
}

.flashcard:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.6), 0px 6px 20px rgba(75, 0, 130, 0.7);
}

.flashcard h2 {
    font-size: 1.8rem; /* Adjusted font size */
    margin-bottom: 15px;
    color: #4caf50;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}

.flashcard p {
    margin-bottom: 15px;
    color: #cccccc;
    font-size: 1rem; /* Adjusted font size */
}

.flashcard ul {
    list-style: none;
    padding: 0;
}

.flashcard ul li {
    margin-bottom: 10px;
    font-size: 1rem; /* Adjusted font size */
}

.flashcard ul li strong {
    color: #4caf50;
}

/* Footer Styles */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 10px;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
}

footer p {
    font-size: 1rem;
    color: #777;
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .flashcard-container {
        grid-template-columns: repeat(1, 1fr); /* One card per row on smaller screens */
    }

    header h1 {
        font-size: 2rem;
    }

    .flashcard {
        padding: 15px;
        width: 90%;
        height: auto; /* Adjust height for smaller screens */
    }

    .flashcard h2 {
        font-size: 1.6rem; /* Adjusted font size for smaller screens */
    }

    .flashcard p {
        font-size: 0.9rem; /* Adjusted font size for smaller screens */
    }

    .flashcard ul li {
        font-size: 0.9rem; /* Adjusted font size for smaller screens */
    }

    footer p {
        font-size: 0.9rem;
    }
}
