/* ===== Variables ===== */
:root {
    --background: #0a0a0a;
    --surface: #141414;
    --accent: #e10600;
    --text-primary: #ffffff;
    --text-muted: #888888;
    --door-color: #1a1a1a;
    --door-line: #2a2a2a;
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* ===== SPLASH ===== */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== GARAGE DOOR ===== */
#garage-door {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        180deg,
        var(--door-color) 0px,
        var(--door-color) 48px,
        var(--door-line) 48px,
        var(--door-line) 50px
    );
}

/* ===== PRESS SPACE TEXT ===== */
#press-space {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10%;        /* change this to move it up and down */
    z-index: 101;
    text-align: center;
    letter-spacing: 0.3em;
    color: var(--text-primary);
    animation: pulse 2s ease-in-out infinite;
}

/* ===== PULSE ANIMATION ===== */
@keyframes pulse {
    0%   { opacity: 0.3; }
    50%  { opacity: 1;   }
    100% { opacity: 0.3; }
}

/* ===== GARAGE DOOR OPEN ANIMATION ===== */
#garage-door.open {
    animation: slideUp 1.2s ease-in-out forwards;
}

@keyframes slideUp {
    from { transform: translateY(0); }
    to   { transform: translateY(-100%); }
}

/* ===== HIDE PRESS SPACE WHEN OPENING ===== */
#press-space.hidden {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ===== RACE WIDGET ===== */
#race-widget-top {
    background: var(--surface);
    border: 1px solid var(--door-line);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 200px;
}

/* RACE TITLE */
#current-race-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: auto;
}

#race-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.2em;
}

#race-round {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
}

#race-countdown-label {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    margin-top: 8px;
}

/* RACE COUNTDOWN */
#race-countdown {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.countdown-value {
    background: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
}

/* === RACE SCHEDULE === */
#race-schedule {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
}

.session {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.session-label {
    font-size: 1rem;
    font-weight:700;
    color: var(--accent);
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.session-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

#race-widget-bottom {
    background: var(--surface);
    border: 1px solid var(--door-line);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

/* === RACE WEATHER === */
#race-weather {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

#weather-condition, #temperature, #humidity, #track-temp {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* === TIMEZONE DIFFERENCE === */
#timezone-difference {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

#track-time, #local-time {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
    white-space: nowrap;
}