/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #ff0000;
    font-family: 'VT323', monospace;
    line-height: 1.6;
    overflow: hidden;
    position: relative;
    height: 100vh;
}

/* Animated background - more unsettling */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 0, 0.05) 0%, transparent 50%);
    animation: backgroundShift 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* Popup Stages */
.popup-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1000;
}

.popup-stage.active {
    display: block;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.popup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 90%;
    z-index: 1001;
}

.popup-content {
    background: #000;
    border: 2px solid #ff0000;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    position: relative;
    animation: popupAppear 0.3s ease-out;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes popupAppear {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff0000;
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
}

.popup-close:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* Simple Greeting Styles */
.simple-greeting {
    background: #000;
    border: none;
    box-shadow: none;
    padding: 0;
}

.greeting-text {
    font-family: Arial, sans-serif;
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 50px;
    font-weight: normal;
    text-align: center;
}

.next-button {
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    background: transparent;
    border: 2px solid #ffffff;
    padding: 15px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    font-weight: normal;
    border-radius: 5px;
}

.next-button:hover {
    background: #ffffff;
    color: #000000;
    transform: scale(1.05);
}

/* You Win Screen Styles */
.win-screen {
    background: #000;
    border: none;
    box-shadow: none;
    padding: 0;
}

.win-text {
    font-family: Arial, sans-serif;
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: normal;
    text-align: center;
}

.win-instruction {
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    text-align: center;
    margin-top: 30px;
}

.win-link {
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.win-link:hover {
    color: #cccccc;
    transform: scale(1.05);
}

/* Bouncing Image Background */
.bouncing-image {
    position: fixed;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    z-index: 10001;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.bouncing-image:hover {
    transform: scale(1.1);
}

/* Main Stage Styles (Final Birthday Page) */
.main-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 500;
}

.main-stage.active {
    display: block;
}

.birthday-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: #000;
    position: relative;
    z-index: 501;
}

.birthday-text {
    font-family: 'Elliot Six', Arial, sans-serif;
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: normal;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.birthday-subtitle {
    font-family: Arial, sans-serif;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: normal;
}

.video-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    border: 3px solid #ffffff;
}

/* Confetti Styles - White Only */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: transparent;
}

.confetti {
    position: fixed;
    width: 15px;
    height: 15px;
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 2px;
    animation: confettiFall 4s linear infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 1);
    z-index: 10000;
}

.confetti:nth-child(2n) {
    background: #ffffff;
    width: 12px;
    height: 12px;
    animation-duration: 3.5s;
    border-radius: 50%;
}

.confetti:nth-child(3n) {
    background: #ffffff;
    width: 18px;
    height: 8px;
    animation-duration: 4.5s;
    border-radius: 0;
}

.confetti:nth-child(4n) {
    background: #ffffff;
    width: 8px;
    height: 18px;
    animation-duration: 3s;
    border-radius: 0;
}

.confetti:nth-child(5n) {
    background: #ffffff;
    width: 15px;
    height: 15px;
    animation-duration: 5s;
    border-radius: 50%;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .popup-container {
        width: 98%;
        height: 95%;
    }
    
    .popup-content {
        padding: 15px;
    }
    
    .greeting-text {
        font-size: 2.5rem;
    }
    
    .next-button {
        font-size: 1rem;
        padding: 12px 30px;
    }
    
    .win-text {
        font-size: 3rem;
    }
    
    .win-link {
        font-size: 1.2rem;
    }
    
    .bouncing-image {
        width: 80px;
        height: 80px;
    }
    
    .birthday-text {
        font-size: 2.5rem;
    }
    
    .birthday-subtitle {
        font-size: 1.5rem;
    }
    
    .popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .popup-container {
        width: 100%;
        height: 100%;
    }
    
    .popup-content {
        border-radius: 0;
        padding: 10px;
    }
    
    .greeting-text {
        font-size: 2rem;
    }
    
    .next-button {
        font-size: 0.9rem;
        padding: 10px 25px;
    }
    
    .win-text {
        font-size: 2.5rem;
    }
    
    .win-link {
        font-size: 1rem;
    }
    
    .bouncing-image {
        width: 60px;
        height: 60px;
    }
    
    .birthday-text {
        font-size: 2rem;
    }
    
    .birthday-subtitle {
        font-size: 1.2rem;
    }
    
    .popup-close {
        top: 5px;
        right: 5px;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
} 