* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-image: url('./runescape.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 800px;
    text-align: center;
    position: relative;
}

h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-content h1, .modal-content h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}

.yes-btn {
    background: #4CAF50;
    color: white;
}

.yes-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.no-btn {
    background: #f44336;
    color: white;
}

.no-btn:hover {
    background: #da190b;
    transform: translateY(-2px);
}

.nerd-btn {
    background: #2196F3;
    color: white;
}

.nerd-btn:hover {
    background: #0b7dda;
    transform: translateY(-2px);
}

.fresh-air-btn {
    background: #FF9800;
    color: white;
}

.fresh-air-btn:hover {
    background: #e68900;
    transform: translateY(-2px);
}

.fresh-air-link {
    background: #8BC34A;
    color: white;
}

.fresh-air-link:hover {
    background: #7cb342;
    transform: translateY(-2px);
}

.close-btn, .restart-btn {
    background: #9E9E9E;
    color: white;
}

.close-btn:hover, .restart-btn:hover {
    background: #757575;
    transform: translateY(-2px);
}


/* Animation Container */
.animation-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #87CEEB;
    z-index: 500;
    overflow: hidden;
}

.animation-container.active {
    display: block;
}

/* Stick Figure */
.stick-figure {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 120px;
}

/* Head */
.head {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #FFE4B5;
    border: 2px solid #333;
    position: absolute;
    left: 15px;
    top: 0;
}

/* Body */
.body {
    width: 4px;
    height: 50px;
    background: #333;
    position: absolute;
    left: 28px;
    top: 30px;
}

/* Arms */
.arm {
    width: 25px;
    height: 4px;
    background: #333;
    position: absolute;
    top: 40px;
}

.left-arm {
    left: 10px;
    transform-origin: right center;
}

.right-arm {
    right: 10px;
    transform-origin: left center;
}

/* Legs */
.leg {
    width: 4px;
    height: 30px;
    background: #333;
    position: absolute;
    top: 80px;
}

.left-leg {
    left: 20px;
    transform-origin: top center;
}

.right-leg {
    right: 20px;
    transform-origin: top center;
}

/* Step Text */
.step-text {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    background: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.step-text.visible {
    opacity: 1;
}

/* Props */
.props > * {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.props .visible {
    opacity: 1;
}

/* Computer */
.computer {
    width: 80px;
    height: 60px;
    background: #333;
    border-radius: 5px;
    left: 60%;
    top: 60%;
}

.computer::before {
    content: '';
    width: 70px;
    height: 40px;
    background: #00BFFF;
    position: absolute;
    top: 5px;
    left: 5px;
    border-radius: 3px;
}

/* Taco */
.taco {
    width: 40px;
    height: 25px;
    background: #F4A460;
    border-radius: 0 0 20px 20px;
    left: 40%;
    top: 70%;
}

.taco::before {
    content: '';
    width: 30px;
    height: 10px;
    background: #228B22;
    position: absolute;
    top: 5px;
    left: 5px;
    border-radius: 2px;
}

/* Toilet */
.toilet {
    width: 50px;
    height: 40px;
    background: white;
    border: 2px solid #333;
    border-radius: 10px;
    left: 30%;
    top: 75%;
}

.toilet::before {
    content: '';
    width: 40px;
    height: 15px;
    background: white;
    border: 2px solid #333;
    border-radius: 5px;
    position: absolute;
    top: -10px;
    left: 3px;
}

/* Gravestone */
.gravestone {
    width: 30px;
    height: 50px;
    background: #696969;
    border-radius: 15px 15px 0 0;
    left: 45%;
    top: 65%;
}

.gravestone::before {
    content: 'RIP';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

/* Tears */
.tear {
    width: 8px;
    height: 12px;
    background: #87CEEB;
    border-radius: 50% 0 50% 50%;
    transform: rotate(45deg);
    top: 40%;
}

.tear1 {
    left: 40%;
    animation: tearFall 2s infinite;
}

.tear2 {
    left: 60%;
    animation: tearFall 2s infinite 0.5s;
}

.tear3 {
    left: 35%;
    animation: tearFall 2s infinite 1s;
}

.tear4 {
    left: 65%;
    animation: tearFall 2s infinite 1.5s;
}

/* Step 1 - Hardcore Props */
.glasses {
    width: 25px;
    height: 8px;
    border: 2px solid #333;
    border-radius: 8px;
    left: 47%;
    top: 42%;
    background: rgba(255,255,255,0.3);
}

.glasses::before {
    content: '';
    width: 2px;
    height: 8px;
    background: #333;
    position: absolute;
    left: 50%;
    top: -2px;
    transform: translateX(-50%);
}

.calculator {
    width: 20px;
    height: 25px;
    background: #333;
    border-radius: 3px;
    left: 25%;
    top: 65%;
}

.calculator::before {
    content: '';
    width: 16px;
    height: 8px;
    background: #000;
    position: absolute;
    top: 2px;
    left: 2px;
    border-radius: 1px;
}

.book {
    width: 15px;
    height: 20px;
    background: #8B4513;
    border-radius: 2px;
    border: 1px solid #654321;
}

.book1 {
    left: 20%;
    top: 70%;
    transform: rotate(-10deg);
}

.book2 {
    left: 75%;
    top: 68%;
    transform: rotate(15deg);
    background: #228B22;
}

/* Step 2 - Gaming Props */
.keyboard {
    width: 35px;
    height: 12px;
    background: #333;
    border-radius: 3px;
    left: 65%;
    top: 75%;
}

.keyboard::before {
    content: '';
    width: 30px;
    height: 8px;
    background: #222;
    position: absolute;
    top: 2px;
    left: 2px;
    border-radius: 1px;
}

.mouse {
    width: 12px;
    height: 18px;
    background: #444;
    border-radius: 8px;
    left: 75%;
    top: 72%;
}

.mouse::before {
    content: '';
    width: 2px;
    height: 6px;
    background: #666;
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
}

.energy-drink {
    width: 8px;
    height: 20px;
    background: #FF4500;
    border-radius: 2px;
    left: 80%;
    top: 55%;
}

.energy-drink::before {
    content: '';
    width: 6px;
    height: 3px;
    background: #FFD700;
    position: absolute;
    top: 5px;
    left: 1px;
    border-radius: 1px;
}



/* Step 4 - Bathroom Props */
.toilet-paper {
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    left: 20%;
    top: 70%;
}

.toilet-paper::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #f0f0f0;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
}

.phone {
    width: 10px;
    height: 16px;
    background: #333;
    border-radius: 2px;
    left: 70%;
    top: 65%;
}

.phone::before {
    content: '';
    width: 8px;
    height: 12px;
    background: #00BFFF;
    position: absolute;
    top: 2px;
    left: 1px;
    border-radius: 1px;
}


/* Step 5 - Death Props */
.game-over {
    width: 80px;
    height: 20px;
    background: #FF0000;
    border: 2px solid #8B0000;
    border-radius: 5px;
    left: 10%;
    top: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 10px;
}

.game-over::before {
    content: 'GAME OVER';
}

.respawn-timer {
    width: 40px;
    height: 15px;
    background: #333;
    border: 1px solid #666;
    border-radius: 3px;
    left: 15%;
    top: 45%;
    color: #00FF00;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.respawn-timer::before {
    content: '10s';
}

.skull {
    width: 20px;
    height: 20px;
    background: #F5F5DC;
    border-radius: 50% 50% 40% 40%;
    left: 70%;
    top: 40%;
}

.skull::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 5px;
    box-shadow: 6px 0 0 #333;
}

.skull::after {
    content: '';
    width: 3px;
    height: 6px;
    background: #333;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 50% 50%;
}

/* Step 6 - Crying Props */
.tissue-box {
    width: 25px;
    height: 15px;
    background: #E6E6FA;
    border: 1px solid #DDA0DD;
    border-radius: 3px;
    left: 20%;
    top: 75%;
}

.tissue-box::before {
    content: '';
    width: 15px;
    height: 3px;
    background: white;
    position: absolute;
    top: -2px;
    left: 5px;
    border-radius: 1px;
}

/* Crying Q Letters */
.cry-q {
    position: fixed;
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #4169E1;
    pointer-events: none;
    z-index: 600;
    animation: qFall 4s linear infinite;
}

.cry-q.small {
    font-size: 48px;
}

.cry-q.medium {
    font-size: 72px;
}

.cry-q.large {
    font-size: 96px;
}


/* Animations */
@keyframes tearFall {
    0% { transform: rotate(45deg) translateY(0); opacity: 1; }
    100% { transform: rotate(45deg) translateY(100px); opacity: 0; }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(20deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes cry {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Animation Classes */
.step1 .head {
    animation: bounce 1s infinite;
}

.step2 .left-arm {
    animation: wave 0.5s infinite;
}

.step3 .stick-figure {
    animation: shake 0.3s infinite;
}

.step4 .stick-figure {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 1s ease;
}

.step5 .head {
    animation: cry 1s infinite;
}

/* Final Modal Styles */
.final-content {
    background: #FFD700;
    border: 5px solid #FF4500;
    position: relative;
    overflow: hidden;
}

.final-content h1 {
    color: #FF4500;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: flash 1s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Confetti */
.confetti::before,
.confetti::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FF69B4;
    animation: confettiFall 3s infinite;
}

.confetti::before {
    left: 20%;
    animation-delay: 0s;
}

.confetti::after {
    right: 20%;
    animation-delay: 1s;
    background: #32CD32;
}

@keyframes confettiFall {
    0% { top: -10px; transform: rotate(0deg); }
    100% { top: 100%; transform: rotate(360deg); }
}

@keyframes rgbPulse {
    0% { background: #FF0000; }
    33% { background: #00FF00; }
    66% { background: #0000FF; }
    100% { background: #FF00FF; }
}

@keyframes flicker {
    0% { transform: scaleY(1) scaleX(1); }
    50% { transform: scaleY(1.2) scaleX(0.8); }
    100% { transform: scaleY(0.8) scaleX(1.2); }
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
    50% { transform: translateY(-20px) rotate(10deg); opacity: 1; }
    100% { transform: translateY(-40px) rotate(-5deg); opacity: 0; }
}

@keyframes musicFloat {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-15px); opacity: 0.7; }
    100% { transform: translateY(-30px); opacity: 0; }
}

@keyframes qFall {
    0% { 
        transform: translateY(-20px) rotate(0deg); 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
    }
    90% { 
        opacity: 0.8; 
    }
    100% { 
        transform: translateY(100vh) rotate(360deg); 
        opacity: 0; 
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .step-text {
        font-size: 1.5rem;
        padding: 0.8rem 1.5rem;
    }
    
    .final-content h1 {
        font-size: 2rem;
    }
}
