/* ===========================
   Base Styles
=========================== */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f3f4f6;
    color: #222;
}

/* ===========================
   Intro / Welcome Box
=========================== */
.intro {
    max-width: 600px;
    margin: 2rem auto 1.5rem;
    padding: 1.5rem;
    text-align: center;
    background: #fff7df;
    border-radius: 14px;
    border: 2px solid #e6d8b5;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===========================
   Schedule / Calendar
=========================== */
.schedule {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.schedule .event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.event.unlocked:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    filter: brightness(1.03);
}

.event.locked {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.event-date {
    font-size: 1.05rem;
    font-weight: 600;
}

.event-icon {
    font-size: 1.6rem;
    text-decoration: none;
}

/* 8 Shades of Green */
.schedule .event:nth-child(8n+1) { background-color: #e6f9e6; }
.schedule .event:nth-child(8n+2) { background-color: #d9f2d9; }
.schedule .event:nth-child(8n+3) { background-color: #ccedcc; }
.schedule .event:nth-child(8n+4) { background-color: #bfe6bf; }
.schedule .event:nth-child(8n+5) { background-color: #b3e0b3; }
.schedule .event:nth-child(8n+6) { background-color: #a6d9a6; }
.schedule .event:nth-child(8n+7) { background-color: #99d299; }
.schedule .event:nth-child(8n+8) { background-color: #8cd98c; }

.event.locked .event-icon {
    animation: lockPulse 2s infinite;
}

@keyframes lockPulse {
    0%   { transform: scale(1); opacity: 0.6; }
    50%  { transform: scale(1.08); opacity: 0.9; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* ===========================
   Event Page (Overlay Card)
=========================== */
.event-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.event-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.5s ease;
    max-height: 90vh;
    overflow-y: auto;

    -webkit-overflow-scrolling: touch; /* smooth mobile scrolling */

}

.event-card.show {
    transform: translateY(0);
    opacity: 1;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    text-decoration: none;
}

/* Clues */
.clues {
    margin-top: 2rem;
}

.clue {
    background: #f0fff0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease;
    font-style: italic;
}

.clue.show {
    opacity: 1;
    max-height: 300px;
    transform: translateY(0);
}

/* Reveal button */
.reveal-btn {
    display: inline-block;
    padding: 8px 15px;
    margin-top: 10px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.reveal-btn:hover {
    background: #45a049;
}

/* Optional image in event card */
.event-image {
    width: 100%;
    border-radius: 14px;
    margin: 1.5rem 0;
}



.event-header {
    background-image: url('images/day1_header_image.png'); /* path to your image */
    background-size: cover;
    background-position: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.event-header .event-date {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}




.content {

    margin-top: 2rem;
    padding: 1.5rem 1.75rem;

    background: linear-gradient(135deg, #e8f8e8, #f4fff4);
    border: 2px solid #9ccc9c;

    border-radius: 16px;

    font-size: 1.05rem;
    line-height: 1.7;
    color: #1f4d1f;

    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.content.show {
    display: block;
    animation: contentReveal 0.6s ease;
}

@keyframes contentReveal {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Sparkle particles */
.sparkle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #c8f7c5 0%, #6fcf97 60%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleFloat 2.5s ease-out forwards;
    z-index: 2000;
}

@keyframes sparkleFloat {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-120px) scale(0.3);
    }
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1;

    color: #245c24;
    text-decoration: none;

    background: linear-gradient(135deg, #e9f7e9, #c8eec8);
    border: 2px solid #8fcf8f;

    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);

    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.close-btn:hover {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, #c8eec8, #e9f7e9);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Hidden by default */
.event-description {
    opacity: 0;
    transform: scale(0.96) translateY(20px);
    filter: blur(6px);
    max-height: 0;
    overflow: hidden;

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(.2,1,.3,1),
        filter 0.8s ease,
        max-height 1s ease;
}

/* When revealed */
.event-description.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
    max-height: 500px; /* enough for content */
}



#fullContent {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    max-height: 0;
    overflow: hidden;
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(.2,1,.3,1),
        max-height 1s ease;
}

#fullContent.dramatic-reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 600px;
}

/* Answer container */
.answer {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: none;
    background: #dff4df;              /* light green */
    border-left: 4px solid #6fcf97;
    border-radius: 10px;

    padding: 1px 3px;
    margin: 2px 0;

    font-size: 0.80rem;
    font-weight: bold;
    line-height: 1.1;

    text-align: right;
    #color: #245c24;
    color: black;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateX(20px);
    transition: opacity 1s ease, max-height 1s ease, transform 1s ease;
}

.answer.answer-reveal {
    opacity: 1;
    max-height: 80px;
    transform: translateX(0);
}



@keyframes answerIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   Gift Reveal
=========================== */

#giftBox {
    transition:
        max-height 0.6s ease,
        margin 0.6s ease;
    width: 180px;
    max-width: 70%;
}

#giftBox.gone {
    max-height: 0;
    margin: 0;
    overflow: hidden;
}




#giftReveal {
    position: relative;
    margin-top: 2rem;
    text-align: center;
}

/* Present image */
/* #giftBox {
    width: 180px;
    max-width: 70%;
    cursor: pointer;
    transition: transform 0.3s ease;
} */

#giftBox:hover {
    transform: scale(1.05);
}

/* Explosion animation */
#giftBox.explode {
    animation: giftExplode 0.9s ease forwards;
}

@keyframes giftExplode {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    40% {
        transform: scale(1.3) rotate(8deg);
    }
    100% {
        transform: scale(3) rotate(-15deg);
        opacity: 0;
    }
}

/* Dramatic content reveal */
#fullContent {
    opacity: 0;
    transform: scale(0.92) translateY(30px);
    max-height: 0;
    overflow: hidden;
    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(.2,1,.3,1),
        max-height 1.2s ease;
}

#fullContent.dramatic-reveal {
    opacity: 1;
    transform: scale(1) translateY(0);
    max-height: 800px;
}

.present {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 1.5rem auto;
    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        max-height 0.6s ease,
        margin 0.6s ease;
}

.present.hide {
    opacity: 0;
    transform: scale(1.4) rotate(8deg);
    max-height: 0;
    margin: 0;
    overflow: hidden;
}

.event-link {
    margin-top: 1.5rem;
    text-align: center;
}

.event-link a {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4CAF50, #6fcf97);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

