/* General Styles */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
}

/* Navbar Styles */
.navbar {
    background-color: #007bff;
    padding: 10px;
    text-align: center;
}

.navbar a {
    color: white;
    font-weight: bold;
    margin: 0 15px;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.navbar a:hover {
    background-color: #0056b3;
}

/* Main Content Styles */
main {
    padding: 20px;
}

/* Contest Styles */
.contest {
    margin-bottom: 30px;
}

.contest-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #222;
    font-weight: bold;
    text-align: left;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.contest-wrapper {
    max-height: 0;
    overflow: hidden;
}

.contest-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}


.submission-container{
    flex: 1 0 300px;
    max-width: 400px;
    display: block;
    pointer-events: auto;
}

.submission-link {
    text-decoration: none;
}


/* Submission Styles */
.submission {
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    color: #222;
}

.submission:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15);
}

.submission-individual{
    max-width: 60%;
    max-height: 60%;
}

.submission-individual img,
.submission img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.submission-individual video,
.submission video {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}


.placeholder {
    width: 100%;
    height: 200px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.submission-content {
    padding: 15px;
    text-align: left;
}

.submission-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
    color: #777;
    justify-content: space-between;
}

.votes, .author {
    margin-right: 15px;
}

.contest-details summary {
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: bold;
    list-style: none;
}

.contest-details summary::before {
    content: "▶";
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

.contest-details[open] summary::before {
    content: "▼";
}

