/* Winter Palette */
colors {
    jordyblue: #90b7ed;
    cloudburst: #222162;
    harvestgold: #e1c181;
    monarchred: #8b082a;
    goldendream: #edc721;
}

/* Note: Only Nav BG, Nav Hover, Footer BG, Side Link and Side Link Hover colors need changing in this file. */

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: #fff;
}

.layout-wrapper {
    width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Header */
.header-img {
    width: 100%;
    display: block;
}

/* Navigation */
nav {
    background: #222162;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.nav-menu li a:hover {
    background: #8b082a;
    color: white;
}

/* Main Content */
.main-content {
    display: flex;
    padding: 20px;
}

a.side {
    color: #8b082a;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: all 0.25s ease;
}

a.side:hover,
a.side:focus {
    color: #222162;
    border-bottom: 1px solid #222162;
}

.left-column {
    flex: 1;
    padding-right: 20px;
}

.sidebar {
    width: 300px;
    background: #e6e6e6;
    padding: 15px;
    border-radius: 10px;
}

/* Footer */
footer {
    position: relative;
    background: #222162;
}

.footer-img {
    width: 100%;
    display: block;
}

.footer-links {
    position: absolute;
    top: 15px;
    right: 20px;
}

.footer-links a {
    margin-left: 15px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-note {
    position: absolute;
    bottom: 5px;
    left: 20px;
    font-size: 12px;
    color: white;
}

/* Mobile Compatibility */
@media screen and (max-width: 768px) {
    .layout-wrapper {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    nav ul.nav-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .main-content {
        flex-direction: column;
    }

    .left-column,
    .sidebar {
        width: 100%;
    }

    .footer-links {
        position: static;
        text-align: center;
        margin-top: 10px;
    }

    .footer-img {
        width: 100%;
    }

    .game-prize-table td,
    .glowing-egg-table td {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .avatar-table td {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .search-box,
    .pagination-controls {
        text-align: center;
    }
}

/* ==== THEME SWITCHERS ==== */
.theme-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.theme-option {
    flex: 1 1 0;
    min-width: 140px;
    border-radius: 14px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.1s ease,
        border-color 0.15s ease, background 0.15s ease;
}

.theme-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.theme-option.theme-active {
    border-color: #51cea0;
    box-shadow: 0 0 0 2px rgba(81, 206, 160, 0.25);
}

.theme-labels {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.theme-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.theme-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
}

.theme-swatches {
    display: flex;
    gap: 4px;
}

.theme-swatches .swatch {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-switcher-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.theme-mascot {
    width: 48px;
    height: auto;
    display: block;
}

.theme-switcher-title {
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

.footer-theme-switcher {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 0 4px;
}

.footer-theme-switcher .theme-switcher-header {
    margin-bottom: 0;
}

.footer-theme-row {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-theme-row .theme-option {
    flex: 0 0 calc(25% - 6px);
    min-width: 0;
    padding: 6px 8px;
}

.footer-theme-row .theme-title {
    font-size: 0.8rem;
}

.footer-theme-row .theme-swatches .swatch {
    width: 14px;
    height: 14px;
}

@media (max-width: 900px) {
    .footer-theme-row .theme-option {
        flex: 0 0 calc(33.333% - 6px);
    }
}

@media (max-width: 600px) {
    .footer-theme-switcher {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-theme-row .theme-option {
        flex: 0 0 100%;
    }
}