.meme-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.meme-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.meme-item img {
    width: 100%;
    height: auto;
    display: block;
}

.meme-voting {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 20px;
    color: white;
}

.vote-button {
    background: #4CAF50;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    margin-right: 5px;
}

.vote-button:hover {
    background: #3e8e41;
}

.vote-count {
    font-weight: bold;
}

.meme-of-the-day {
    border: 3px solid gold;
    padding: 15px;
    margin-bottom: 30px;
    position: relative;
}

.meme-of-the-day:before {
    content: "★ MEME OF THE DAY ★";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: gold;
    padding: 0 10px;
    font-weight: bold;
    border-radius: 20px;
}

.leaderboard {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.leaderboard ol {
    padding-left: 20px;
}

.leaderboard li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.leaderboard .votes {
    font-weight: bold;
    color: #4CAF50;
}

/* Form Styles */
#meme-submission-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group .description {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.submit-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
}

.submit-button:hover {
    background: #3e8e41;
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    background: #dff0d8;
    color: #3c763d;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
}

/* Image Preview */
#image-preview {
    margin-top: 10px;
    max-width: 300px;
}

#image-preview img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Error Message */
.error-message {
    background: #f2dede;
    color: #a94442;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}

@media (max-width: 600px) {
    .meme-container {
        grid-template-columns: 1fr;
    }
    
    #meme-submission-form {
        padding: 15px;
    }
} 