@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background: #000;
    color: #e8e8e8;
}

#container {
    display: flex;
    height: 100%;
}

/* ----- Left side: the quiz panel ----- */
#quizPanel {
    width: 380px;
    background:
        radial-gradient(circle at 20% 0%, rgba(204, 0, 0, 0.18), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(0, 180, 255, 0.10), transparent 60%),
        linear-gradient(180deg, #0a0a0e 0%, #050507 100%);
    padding: 20px 18px;
    box-sizing: border-box;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 60, 60, 0.25);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04),
                4px 0 24px rgba(0, 0, 0, 0.6);
    position: relative;
}

#quizPanel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

#quizPanel > * { position: relative; z-index: 1; }

#quizTitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 60, 60, 0.35);
    text-shadow: 0 0 12px rgba(255, 60, 60, 0.5);
}

#quizTitle::before {
    content: "▮ ";
    color: #ff2d2d;
    text-shadow: 0 0 8px #ff2d2d;
}

.question-bar {
    background: linear-gradient(135deg, rgba(255, 45, 45, 0.18), rgba(20, 20, 28, 0.85));
    color: #ffffff;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 12px 14px;
    margin-top: 10px;
    border-left: 3px solid #ff2d2d;
    border-radius: 4px;
    box-shadow: 0 0 16px rgba(255, 45, 45, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question-bar:hover {
    transform: translateX(2px);
    box-shadow: 0 0 22px rgba(255, 45, 45, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feedback {
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 6px 0 4px 0;
    padding: 4px 0;
    animation: fadeSlide 0.35s ease;
}
.feedback.correct {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}
.feedback.wrong {
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.6);
}

#map {
    flex: 1;
    height: 100%;
    filter: brightness(0.92) contrast(1.05);
}

/* ----- Progress bar ----- */
#progressWrap {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 0 16px 0;
    border: 1px solid rgba(255, 45, 45, 0.2);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8);
}
#progressBar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff2d2d, #ff7a3c, #ffb84d);
    box-shadow: 0 0 12px rgba(255, 45, 45, 0.8),
                0 0 4px rgba(255, 122, 60, 0.6);
    transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
}
#progressBar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* ----- Final score card ----- */
.score-card {
    background: linear-gradient(160deg, rgba(20, 20, 28, 0.95), rgba(8, 8, 12, 0.95));
    border: 1px solid rgba(255, 45, 45, 0.35);
    border-radius: 8px;
    padding: 24px 20px;
    margin-top: 18px;
    text-align: center;
    box-shadow: 0 0 32px rgba(255, 45, 45, 0.25),
                0 8px 24px rgba(0, 0, 0, 0.7),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    animation: pop 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.score-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff2d2d, transparent);
    box-shadow: 0 0 10px #ff2d2d;
}

.score-card .score-sub {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
}
.score-card .score-big {
    font-family: 'Orbitron', sans-serif;
    font-size: 56px;
    font-weight: 900;
    color: #ffffff;
    margin: 4px 0;
    letter-spacing: 2px;
    text-shadow: 0 0 24px rgba(255, 45, 45, 0.7),
                 0 0 8px rgba(255, 122, 60, 0.5);
}
.score-card .score-message {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ff7a3c;
    margin: 10px 0 16px 0;
    text-shadow: 0 0 10px rgba(255, 122, 60, 0.5);
}
.score-card .score-detail {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #c8c8c8;
    margin: 4px 0;
}
.score-card .restart-btn {
    margin-top: 18px;
    background: transparent;
    color: #ff2d2d;
    border: 1px solid #ff2d2d;
    padding: 10px 28px;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.score-card .restart-btn:hover {
    background: #ff2d2d;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 45, 45, 0.7);
    transform: translateY(-1px);
}

@keyframes pop {
    from { transform: scale(0.92) translateY(8px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);   opacity: 1; }
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Custom scrollbar for the dark theme */
#quizPanel::-webkit-scrollbar { width: 6px; }
#quizPanel::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
#quizPanel::-webkit-scrollbar-thumb {
    background: rgba(255, 45, 45, 0.4);
    border-radius: 3px;
}
#quizPanel::-webkit-scrollbar-thumb:hover { background: rgba(255, 45, 45, 0.7); }
