
:root {
    --bg-color: #fffff0; /* light yellow for background (Ivory/Light Yellow) */
    --text-color: #333;
    --accent-color: #2c3e50;
    --btn-color: #007bff;
    --btn-text: #ffffff;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 800px;
    margin-top: 0;
    padding-bottom: 80px; /* space for Footer Buttons */
}

/* Header Styling */
.main-title {
    font-size: 5rem;
    margin-bottom: 0;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 2.2rem;
    color: #555;
    margin-top: 0;
    margin-bottom: -20rem;
    font-weight: 300;
}

/* Animation Style */
#animation {
    width: 100%;
    height: auto;
    margin: 0 auto 0 auto;
    padding-bottom: 0;
    background-color: transparent; /* white background for animation #ffffff */
    border-radius: 30px; /* soft corners */
    box-shadow: 0 -10px 25px transparent; /* soft shadow rgba(0,0,0,0.1)*/
    overflow: hidden;
}

/* Leaderboard Style */
#leaderboard-container {
    width: 100%;
    background: white;
    padding: 20px;
    margin-top: 0;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

#no-winners-message {
    font-size: 1.5rem;
    font-style: italic;
    color: #777;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #eee;
    color: #777;
    font-size: 0.9rem;
    text-transform: uppercase;
}

th:first-child, td:first-child {
    width: 80px;
    text-align: center;
}

td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
    text-align: left;
}

.badge {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    text-align: center;
    color: white;
    font-weight: bold;
    margin-right: 0;
}

.rank-1 .badge { background-color: var(--gold); box-shadow: 0 0 10px var(--gold); }
.rank-2 .badge { background-color: var(--silver); }
.rank-3 .badge { background-color: var(--bronze); }
.rank-other .badge { background-color: #eee; color: #555; }

.prize-col {
    color: #27ae60;
    font-weight: 600;
}

.hidden {
    display: none;
}

/* Bottom Buttons Style */
.nav-btn {
    position: fixed;
    bottom: 20px;
    padding: 12px 25px;
    background-color: var(--btn-color);
    color: var(--btn-text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s, background-color 0.2s;
    font-size: 2rem;
    z-index: 100;
}

.nav-btn:hover {
    transform: scale(1.05);
    background-color: #0056b3;
}

.btn-left {
    left: 20px;
}

.btn-right {
    right: 20px;
}

@media (max-width: 600px) {
    .main-title { font-size: 2rem; }
    #animation { width: 250px; height: 250px; }
    th, td { padding: 10px 5px; font-size: 0.9rem; }
}

#faq-page .subtitle {
    margin-bottom: 2rem;
}

/* Styling for the logo */
.brand-logo {
    max-width: 120px;
    margin-top: 2rem;
    border-radius: 10px;
}

/* Dedicated container for text/FAQ content (mimics the leaderboard card) */
.faq-container {
    width: 100%;
    background: white;
    padding: 30px;
    margin-top: 0;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: left;
    box-sizing: border-box; /* Ensures padding doesn't break the 100% width */
}

/* Styling for the accordion items */
.faq-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Removes the border from the very last item so it looks clean */
.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-question {
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--accent-color); /* Reusing your existing color variable */
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--btn-color); /* Reusing your existing color variable */
}

.faq-answer {
    margin-top: 10px;
    line-height: 1.6;
    color: var(--text-color); /* Reusing your existing color variable */
}

#info-page .subtitle {
    margin-bottom: 2rem;
}

.info-content {
    width: 100%;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: left;
    box-sizing: border-box;
}

.info-section {
    margin-bottom: 30px;
}

.info-section h2 {
    color: var(--accent-color);
    border-left: 4px solid var(--btn-color);
    padding-left: 15px;
    margin-bottom: 15px;
}

.info-section p {
    line-height: 1.8;
    font-size: 1.1rem;
}

.info-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
}

.top-bar .brand-logo {
    margin: 0 !important; /* Overrides existing margins */
    height: 40px; /* Adjust size as needed */
    width: auto;
}

.top-bar .main-title {
    margin: 0 0 0 15px !important;
    font-size: 1.5rem; /* Adjust for the top bar look */
}