@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

:root {
    --ice-blue: #dff9fb;
    --deep-freeze: #130f40;
    --santa-red: #ff4757;
    --gold: #f9ca24;
}

body {
    margin: 0;
    padding: 0;
    /* Changed background to be taller for scrolling */
    background: linear-gradient(to bottom, #0f2027 0%, #203a43 50%, #130f40 100%);
    min-height: 200vh; /* This allows scrolling */
    overflow-x: hidden;
    font-family: 'Fredoka One', cursive;
    color: white;
    cursor: crosshair;
}

/* --- Snow Container (Fixed so it snows everywhere) --- */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
}

/* --- SECTIONS --- */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* --- SECTION 1: The Party --- */
.hero h1 {
    font-size: 5rem;
    margin: 0;
    text-shadow: 0 0 20px #ffffff, 0 0 40px #74b9ff;
    animation: float 3s ease-in-out infinite;
    text-align: center;
}

.subtitle {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 10px 30px;
    border-radius: 50px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.boss-penguin {
    font-size: 8rem;
    margin-top: 20px;
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s;
}

.boss-penguin:hover { transform: scale(1.2) rotate(10deg); }
.boss-penguin::after {
    content: '🎅';
    position: absolute;
    font-size: 5rem;
    top: -50px;
    left: -20px;
    transform: rotate(-15deg);
}

.scroll-hint {
    margin-top: 50px;
    font-size: 1.2rem;
    animation: bounce 2s infinite;
    opacity: 0.8;
}

/* --- SECTION 2: The Deep Cave --- */
.cave-title {
    font-size: 3rem;
    margin-bottom: 50px;
    color: var(--ice-blue);
}

.mystery-box {
    font-size: 10rem;
    cursor: pointer;
    filter: drop-shadow(0 0 30px var(--gold));
    animation: bounce 1.5s infinite;
    transition: transform 0.3s;
}

.mystery-box:hover {
    transform: scale(1.1);
}

/* --- The Penguin Parade (Fixed to screen bottom) --- */
.ice-shelf {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to top, white, #dfe6e9 60%, transparent);
    z-index: 5;
    pointer-events: none;
}

.penguin-highway {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
    z-index: 6;
}

.marcher {
    position: absolute;
    font-size: 3rem;
    bottom: 10px;
    animation: waddle 1s infinite alternate;
}

/* --- ANIMATIONS --- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes waddle { 0% { transform: rotate(-10deg); } 100% { transform: rotate(10deg); } }
@keyframes snow-fall { 0% { transform: translateY(-10vh); } 100% { transform: translateY(110vh); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    opacity: 0.8;
    animation: snow-fall linear infinite;
}

.falling-object {
    position: fixed; /* Fixed so they fall relative to screen */
    pointer-events: none;
    z-index: 8;
}

/* --- THE GIFT MODAL (POPUP) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.gift-card-modal {
    background: white;
    color: var(--deep-freeze);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    transform: scale(0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
}

.modal-overlay.active .gift-card-modal {
    transform: scale(1);
}

.modal-title {
    font-size: 2.5rem;
    color: var(--santa-red);
    margin-bottom: 20px;
    line-height: 1.1;
}


.gift-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #eee;
/*     border: 2px dashed #bbb; */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.gift-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
}

.gift-code {
    background: #f1f2f6;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.5rem;
    letter-spacing: 2px;
    border: 2px solid var(--deep-freeze);
    margin-bottom: 20px;
    user-select: text; 
}

.close-btn {
    background: var(--santa-red);
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Fredoka One', cursive;
}

span{
    color: blueviolet;
}


  /* --- NEW SECTION 2: THE MESSAGE --- */
  .message-section {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

#typing-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.2rem;
    max-width: 800px;
    text-align: center;
    line-height: 1.6;
    color: var(--ice-blue);
    min-height: 200px;
}

.cursor {
    display: inline-block;
    width: 10px;
    background-color: white;
    margin-left: 5px;
    animation: blink 1s infinite;
}

.close-btn:hover { background: #d63031; }
