:root {
    --bg-color: #000000;
    --text-color: #00ff00;
    /* Hacker green / Retro terminal style */
    --accent-color: #ff0055;
    /* Heart color */
    --font-primary: 'Courier New', Courier, monospace;
    --font-secondary: 'Arial', sans-serif;
}

#blazor-error-ui {
    display: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.mission-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.btn-start {
    background: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    font-family: var(--font-primary);
}

.btn-start:hover {
    background: var(--text-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--text-color);
}

.hidden {
    display: none !important;
}

/* Typography & Effects */
h1 {
    font-size: 3rem;
    text-shadow: 0 0 10px var(--text-color);
}

/* Section Specifics */
#intro-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Similarities */
.similarity-card {
    border: 1px solid var(--text-color);
    padding: 2rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.8);
    margin-top: 1rem;
    min-width: 300px;
    max-width: 600px;
    /* Increased width for images */
    animation: fadeIn 0.5s forwards;
}

.coincidence-img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 4px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.img-caption {
    margin-top: 10px;
    font-style: italic;
    color: #ccc;
}

.similarity-icon {
    font-size: 4rem;
    margin: 1rem 0;
}

.similarity-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.btn-nav {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.btn-nav:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-finish {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-finish:hover {
    background: var(--accent-color);
    color: white;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--text-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    border: 2px solid var(--text-color);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    top: 15px;
    right: -20px;
    z-index: 1;
    font-size: 1.2rem;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
}

.timeline-content {
    padding: 20px;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--text-color);
    border-radius: 6px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Quiz */
.quiz-card {
    border: 1px solid var(--text-color);
    padding: 2rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.8);
    margin-top: 1rem;
    animation: fadeIn 0.5s forwards;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-option {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: background 0.2s;
}

.btn-option:hover {
    background: rgba(0, 255, 0, 0.2);
}

.alert-danger {
    color: red;
    font-weight: bold;
    animation: blink 0.5s infinite;
    margin-bottom: 1rem;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Game */
canvas {
    border: 2px solid var(--text-color);
    background-color: #000;
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 1rem auto;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    border: 2px solid red;
    text-align: center;
    z-index: 20;
}

.game-over h3 {
    color: red;
    margin-bottom: 1rem;
}

/* Final */
.map-container {
    margin: 2rem 0;
    border: 1px solid var(--text-color);
    padding: 1rem;
    background: #000;
}

.countdown-card {
    margin-top: 2rem;
    font-size: 1.5rem;
    border: 1px solid var(--text-color);
    padding: 1rem;
    display: inline-block;
}

.timer {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    color: var(--accent-color);
}