@import url('https://fonts.googleapis.com/css2?family=Chewy&display=swap');

* {
    font-family: 'Chewy', cursive;
}

/* ===== MAIN THEME ===== */
:root {
    --background: #090909;
    --navbar: #141414;
    --card: #191919;
    --gold: #D4AF37;
    --bright-gold: #F5D77A;
    --text: #ffffff;
    --muted-gold: #BDA66E;
}

body {
    margin: 0;
    background-color: #000;

    background-image: url("images/cuties.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: white;
    font-family: 'Orbitron', sans-serif;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: var(--navbar);
    border-bottom: 1px solid #80652D;
    box-shadow: 0 3px 15px #000000;
}

.navbar h2 {
    margin-right: 20px;
    color: var(--gold);
    text-shadow: 0 0 10px #D4AF3760;
}

.navbar button {
    background: transparent;
    color: var(--gold);
    border: 1px solid transparent;
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

.navbar button:hover {
    background: #292313;
    border-color: var(--gold);
    color: var(--bright-gold);
    box-shadow: 0 0 12px #D4AF3740;
}

/* ===== MAIN CONTENT ===== */
main {
    padding: 40px;
}

h1, h2, h3 {
    color: var(--bright-gold);
}

p {
    color: var(--muted-gold);
}

/* ===== PAGE TABS ===== */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== GAME GRID ===== */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

/* ===== GAME CARDS ===== */
.game-card {
    position: relative;
    background: var(--card);
    border: 1px solid #59451E;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: white;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 0 18px #D4AF3760;
}

.game-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: auto;
}

/* Game name overlay */
.game-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    margin: 0;
    padding: 12px 8px;

    background: rgba(0, 0, 0, 0.9);
    color: var(--bright-gold);

    opacity: 0;
    transform: translateY(100%);

    transition: opacity 0.25s, transform 0.25s;
}

/* Show name when hovering */
.game-card:hover h3 {
    opacity: 1;
    transform: translateY(0);
}

.game-card h3 {
    margin-bottom: 5px;
}

/* ===== APP CARDS ===== */
.app-card, .gold-card {
    display: inline-block;
    vertical-align: top;
    background: var(--card);
    border: 1px solid #80652D;
    border-radius: 16px;
    padding: 20px;
    width: 200px;
    text-align: center;
    text-decoration: none;
    color: white;
    box-sizing: border-box;
    transition: 0.3s;
    object-fit: contain;
}

.app-card img,
.gold-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.game-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.app-card:hover, .gold-card:hover {
    transform: translateY(-6px);
    border-color: var(--bright-gold);
    box-shadow: 0 0 20px #D4AF3760;
}

/* ===== BUTTONS ===== */
.button {
    background: #1a1a1a;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

.button:hover {
    background: var(--gold);
    color: #090909;
    box-shadow: 0 0 15px #D4AF3760;
}

/* ===== GOLD DIVIDER ===== */
.gold-divider {
    border: none;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        var(--gold),
        transparent
    );
}

/* ===== GOLD HEADINGS ===== */
.gold-heading {
    color: var(--bright-gold);
    text-shadow: 0 0 12px #D4AF3780;
}

/* ===== MOBILE SUPPORT ===== */
@media (max-width: 650px) {
    .navbar {
        flex-wrap: wrap;
        padding: 12px;
    }

    main {
        padding: 20px;
    }
}

/* ===== BEE BACKGROUND ===== */

#beeCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Keep website content above the bees */

.bee-settings {
    background: var(--card);
    border: 1px solid var(--gold);
    border-radius: 15px;
    padding: 20px;
    max-width: 400px;
    margin-top: 20px;
}

#beeAmount {
    width: 100%;
    accent-color: var(--gold);
    cursor: pointer;
}

#beeAbove {
    accent-color: var(--gold);
    cursor: pointer;
}

.theme-settings {
    background: var(--card);
    border: 1px solid var(--gold);
    border-radius: 15px;
    padding: 20px;
    max-width: 400px;
    margin-top: 20px;
}

#themeSelect {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: #191919;
    color: white;
    border: 1px solid var(--gold);
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
}

/* DEFAULT B THEME */
:root {
    --background: #090909;
    --navbar: #141414;
    --card: #191919;
    --gold: #D4AF37;
    --bright-gold: #F5D77A;
    --text: #ffffff;
    --muted-gold: #BDA66E;
}

/* PRESENT SEASON */
body.present {
    --background: #10251B;
    --navbar: #153827;
    --card: #1D4933;
    --gold: #C83D3D;
    --bright-gold: #F5D77A;
    --text: #ffffff;
    --muted-gold: #D8E8D5;
    background-color: var(--background);
}

body.present .game-card,
body.present .app-card,
body.present .gold-card {
    border-color: #C83D3D;
}

body.present .navbar {
    background: var(--navbar);
}

body.present {
    background-image: url("images/christmas-bg.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #10251B;
}

#snowCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    display: none;
}

body.present #snowCanvas {
    display: block;
}

.christmas-decorations {
    display: none;
    margin-left: auto;
    align-items: center;
    gap: 10px;
    font-size: 25px;
}

body.present .christmas-decorations {
    display: flex;
}

/* PRESENT SEASON BACKGROUND */
body.present {
    background-image: url("images/christmas-bg.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #241509;
}
