/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures footer sticks to bottom */
}

/* Header Styles */
.project-header {
    background-color: #2c3e50; /* Dark blue/grey */
    color: #ecf0f1; /* Light grey/white */
    padding: 2.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.project-header h1 {
    margin-top: 0;
    font-size: 2.8em;
    color: #3498db; /* Brighter blue for the title */
    letter-spacing: 1.5px;
}

.project-header .project-date {
    font-size: 1.1em;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.project-header .project-description,
.project-header .page-info {
    max-width: 800px;
    margin: 0.8rem auto;
    font-size: 1.05em;
    line-height: 1.8;
}

/* Main Content Area for Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-grow: 1; /* Allows container to take up available space */
}

/* Basic Meme Card Styling (for future reference) */
.meme-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meme-card:hover {
    transform: translateY(-5px);
}

.meme-card h3 {
    color: #2980b9;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4em;
}

.meme-card .meme-image-wrapper {
    width: 100%;
    max-width: 250px; /* Constrain image width */
    height: auto;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #eee; /* Light border around image */
}

.meme-card img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below image */
    object-fit: contain; /* Ensures the entire image is visible without cropping */
}

.meme-card .meme-description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 0;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-header h1 {
        font-size: 2em;
    }
    .project-header {
        padding: 1.5rem 1rem;
    }
    .cards-container {
        padding: 1rem;
    }
}