:root {
    --bg-color: #111216;
    --card-bg: #232527;
    --text-color: #FFFFFF;
    --accent-color: #FFFFFF;
    --hover-bg: #393b3d;
    --font-family: 'Inter', 'Gotham SSm', sans-serif;
    --navbar-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: var(--text-color);
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-top: var(--navbar-height);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('bg.jpeg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(15px) brightness(0.6) grayscale(0.4);
    z-index: -1;
    transform: scale(1.1);
}

.content-box {
    background-color: #111216;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-top: 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: #111216;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hero {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.hero p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.5;
}

.hero .highlight {
    color: var(--text-color);
    font-weight: 600;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.calendar-container {
    width: 100%;
    max-width: 560px;
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
}

.day-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: default;
    user-select: none;
    transition: transform 0.2s ease;
}

.day-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

.active .day-number {
    top: 10px;
    left: 10px;
    transform: none;
    color: white;
    font-size: 1rem;
    z-index: 2;
}

.disabled {
    opacity: 0.5;
    filter: blur(1px);
    pointer-events: none;
}

.active {
    cursor: pointer;
    perspective: 1000px;
    background-color: transparent;
}

.active.flipped .day-number {
    opacity: 0;
    pointer-events: none;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 12px;
}

.active.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.active:not(.flipped):hover .card-front {
    background-color: var(--hover-bg);
    transform: scale(1.02);
    transition: all 0.2s ease;
    border-color: rgba(255, 255, 255, 0.3);
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.card-back {
    transform: rotateY(180deg);
    background-color: #2b2d31;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #232527;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: scaleUp 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: white;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.reward-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 10px 0;
}

.claim-btn {
    background-color: white;
    color: black;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    width: 100%;
}

.claim-btn:hover {
    background-color: #e0e0e0;
    transform: scale(1.02);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1.2em;
    opacity: 0.8;
    animation: fall linear infinite;
    user-select: none;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; font-size: 1.5em; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 1s; font-size: 1.2em; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 9s; animation-delay: 2s; font-size: 1.8em; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 11s; animation-delay: 0.5s; font-size: 1em; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 13s; animation-delay: 1.5s; font-size: 1.4em; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 10s; animation-delay: 3s; font-size: 1.1em; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 14s; animation-delay: 2.5s; font-size: 1.6em; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 11s; animation-delay: 1s; font-size: 1.3em; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 12s; animation-delay: 0s; font-size: 1.7em; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 15s; animation-delay: 2s; font-size: 0.9em; }

@keyframes fall {
    0% {
        top: -10%;
        transform: translateX(0px);
        opacity: 0.8;
    }
    50% {
        transform: translateX(20px);
        opacity: 1;
    }
    100% {
        top: 110%;
        transform: translateX(-20px);
        opacity: 0.3;
    }
}

.christmas-lights {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    height: 3px;
    display: flex;
    justify-content: space-around;
    z-index: 999;
    pointer-events: none;
}

.light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    animation: twinkle 1.5s infinite alternate;
}

.light:nth-child(1) { background-color: #ff6b6b; animation-delay: 0s; }
.light:nth-child(2) { background-color: #4ecdc4; animation-delay: 0.3s; }
.light:nth-child(3) { background-color: #ffe66d; animation-delay: 0.6s; }
.light:nth-child(4) { background-color: #95e1d3; animation-delay: 0.9s; }
.light:nth-child(5) { background-color: #f38181; animation-delay: 0.2s; }
.light:nth-child(6) { background-color: #aa96da; animation-delay: 0.5s; }
.light:nth-child(7) { background-color: #fcbad3; animation-delay: 0.8s; }
.light:nth-child(8) { background-color: #a8e6cf; animation-delay: 0.1s; }
.light:nth-child(9) { background-color: #ffd3b6; animation-delay: 0.4s; }
.light:nth-child(10) { background-color: #ffaaa5; animation-delay: 0.7s; }

@keyframes twinkle {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.day-card.disabled::after {
    content: '❄️';
    position: absolute;
    font-size: 0.8rem;
    opacity: 0.3;
    pointer-events: none;
}

.day-card.disabled:nth-child(3n)::after { content: '⭐'; }
.day-card.disabled:nth-child(4n)::after { content: '🎄'; }
.day-card.disabled:nth-child(5n)::after { content: '🎁'; }

.confetti-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 3000;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .calendar-grid {
        gap: 8px;
    }

    .hero h1 {
        font-size: 1.8rem;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }

    .day-number {
        font-size: 1.2rem;
    }

    .snowflake {
        font-size: 1em;
    }
}