/* new-year.css */
/* This file overrides the default styles for the New Year's event page */

:root {
    --ny-dark-blue: #0d2149;
    --ny-gold: #FFD700;
    --ny-silver: #c0c0c0;
    --ny-light-text: #fdfaf5;
    --ny-dark-text: #0d2149;
}

/* --- Page Body Override --- */
body.new-year-theme {
    background-color: var(--ny-dark-blue);
    color: var(--ny-light-text);
}

/* --- Splash Screen --- */
#entry-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Black background for stars */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10004; 
    transition: opacity 1s ease-in, visibility 1s;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
}

/* Starry Sky Background */
#starry-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    overflow: hidden;
    z-index: 0; /* Behind fireworks and content */
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

#fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.splash-title {
    font-family: var(--header-font);
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--ny-light-text);
    text-shadow: 0 0 10px var(--ny-gold), 0 0 20px var(--ny-gold);
    margin: 0 0 2rem 0;
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    from { text-shadow: 0 0 10px var(--ny-gold), 0 0 20px var(--ny-gold); }
    to { text-shadow: 0 0 20px var(--ny-gold), 0 0 40px var(--ny-gold); }
}

#entry-button {
    padding: 1rem 2rem;
    font-size: 1.4rem;
    font-family: var(--header-font);
    background-color: var(--ny-gold);
    color: var(--ny-dark-text);
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
#entry-button:hover {
    transform: scale(1.05);
    background-color: var(--ny-silver);
}

/* --- Main Content Theming --- */
/* MODIFIED: Changed to a video container */
.new-year-theme .event-hero {
    position: relative;
    min-height: 60vh;
    margin-top: -70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* ADDED: Styles for the video background */
.event-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
}

/* ADDED: Overlay to ensure text readability over the video */
.new-year-theme .event-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 33, 73, 0.7);
    z-index: -1;
}

.new-year-theme #countdown-section {
    background-color: var(--ny-silver);
    color: var(--ny-dark-text);
}

/* FIX: Redesigned Countdown Timer */
#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    flex-wrap: wrap;
    font-family: var(--header-font);
}
.time-block {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    min-width: 120px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.time-block span {
    display: block;
    font-size: clamp(2.5rem, 10vw, 4rem);
    font-weight: bold;
    line-height: 1;
    color: var(--ny-dark-text);
}
.time-block div {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    opacity: 0.8;
}


.new-year-theme #event-details {
    background-color: var(--ny-dark-blue);
}
.new-year-theme #event-details .section-header h2,
.new-year-theme #new-year-booking-cta .section-header h2 {
    color: var(--ny-gold);
}

/* --- Flip Card Effect for Perks --- */
.perks-grid {
    perspective: 1000px;
}
.flip-card {
    background-color: transparent;
    width: 100%;
    aspect-ratio: 5 / 4;
    border: none;
    cursor: pointer;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    box-sizing: border-box;
}
.flip-card-front {
    background-color: #fff;
    color: var(--ny-dark-text);
}
.flip-card-front i {
    color: var(--ny-dark-blue);
    font-size: 3rem;
    margin-bottom: 1rem;
}
.flip-card-front h3 {
    color: var(--ny-dark-text);
    font-size: 1.5rem;
}
.flip-card-back {
    background-color: var(--ny-gold);
    color: var(--ny-dark-text);
    transform: rotateY(180deg);
}
.flip-card-back p {
    font-size: 1.1rem;
    font-weight: 600;
}


.new-year-theme #new-year-booking-cta {
    background-color: var(--ny-silver);
}
.new-year-theme #new-year-booking-cta .section-header h2,
.new-year-theme #new-year-booking-cta .section-header p {
     color: var(--ny-dark-text);
}

.new-year-theme .cta-button {
    background-color: var(--ny-gold);
    color: var(--ny-dark-text);
}
.new-year-theme .cta-button:hover {
    background-color: var(--ny-dark-blue);
    color: var(--ny-light-text);
}

/* Override header for this page */
.new-year-theme header.scrolled #main-nav a,
.new-year-theme header.scrolled .login-icon a,
.new-year-theme header.scrolled #theme-toggle,
.new-year-theme header.scrolled .menu-button {
    color: var(--ny-dark-text);
}