/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    text-align: center;
}

h1 {
    color: #333;
}

/* List Styling */
ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

/* Meme List Items */
ul.meme-list li {
    display: inline-block;
    background: white;
    margin: 10px;
    padding: 10px;
    border-radius: 8px;
    width: auto;
    vertical-align: top;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Buttons */
button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

/* Fix Pink Bar in MDL Cards */
.mdl-card {
    background: white !important;
    border-left: none !important;
    box-shadow: none !important;
    text-align: center;
    border-radius: 8px;
}

/* Fix Padding in Card Media */
.mdl-card__media {
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure Images Display Correctly */
.mdl-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Make header sticky */
.mdl-layout__header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensures it stays above other content */
    background-color: #3f51b5; /* Ensures background is visible */
}

/* Prevent content from being hidden behind sticky header */
.mdl-layout__content {
    padding-top: 64px; /* MDL header default height */
}

/* Ensure memes remain in a grid layout */
.meme-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Responsive Grid for Memes */
.meme-gallery .mdl-cell {
    flex: 1 1 30%; /* Each meme card takes ~30% width */
    max-width: 30%;
    min-width: 250px;
    box-sizing: border-box;
}
