:root {
    --bg-color: #000000;
    --text-color: #e0e0e0;
    --accent-color: #ff0000;
    --secondary-color: #333333;
    --font-heading: 'Creepster', cursive;
    --font-body: 'Roboto Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-x: hidden;
    background-image: radial-gradient(circle at center, #1a0000 0%, #000000 100%);
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

header {
    margin-bottom: 3rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    letter-spacing: 2px;
}

.subtitle {
    opacity: 0.5;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Screens */
.screen {
    transition: opacity 0.5s, transform 0.5s;
}

.screen.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

.screen.active {
    display: block;
    opacity: 1;
    transform: scale(1);
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ominous-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Buttons */
button {
    font-family: var(--font-body);
    font-size: 1.2rem;
    padding: 1rem 2rem;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-danger {
    background-color: var(--accent-color);
    color: black;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.btn-danger:hover {
    background-color: #cc0000;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    margin-top: 2rem;
}

.btn-secondary:hover {
    background: var(--text-color);
    color: black;
}

/* Quiz */
.question-container {
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.options {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.option-btn {
    background: var(--secondary-color);
    color: white;
    min-width: 120px;
}

.option-btn:hover {
    background: var(--accent-color);
    color: black;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #222;
    margin-top: 2rem;
}

#progress {
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s;
}

/* Result */
#death-date {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.countdown-box {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
}

.time-unit span {
    font-size: 2.5rem;
    font-weight: 700;
}

.time-unit label {
    font-size: 0.8rem;
    opacity: 0.5;
}

.cause-text {
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 1rem;
}

footer {
    margin-top: 4rem;
    font-size: 0.7rem;
    opacity: 0.3;
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    #death-date {
        font-size: 2.5rem;
    }

    .countdown-box {
        gap: 0.5rem;
    }

    .time-unit span {
        font-size: 1.8rem;
    }
}