/* Layout Configuration */
html, body, #container { 
    height: 100%; 
    margin: 0; 
    padding: 0; 
    overflow: hidden; 
}

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

/* Sidebar: Using Flexbox to anchor content to bottom */
#sidebar { 
    width: 300px; 
    padding: 20px; 
    background: #e9e4d4; 
    display: flex; 
    flex-direction: column; 
    box-sizing: border-box;
    border-right: 1px solid #ccc;
}

#map { 
    flex-grow: 1; 
    height: 100%; 
}

/* Question Prompt Styling */
.prompt-box {
    background: #2b78e4;
    color: white;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: sans-serif;
}

/* Timer Styling */
#timer-box {
    background: #222;
    color: #00ff00;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 15px;
    font-family: monospace;
}

.timer-label {
    font-size: 0.7em;
    color: #aaa;
}

#timer {
    font-size: 1.8em;
    font-weight: bold;
}

/* Spacer pushes everything below it to the bottom of the sidebar */
.spacer { 
    flex-grow: 1; 
}

/* Current Score Line */
#running-total {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 5px;
    border-top: 2px solid #333;
    padding-top: 10px;
    font-family: serif;
}

/* Live Log (Correct/Incorrect) underneath Score */
#score-log p {
    margin: 5px 0;
    font-family: serif;
    font-size: 1.2em;
    font-weight: bold;
}

.correct-text { color: #008000; font-style: italic; }
.incorrect-text { color: #d90000; font-style: italic; }

/* TOP 3 RUNS SECTION */
#past-attempts {
    margin-top: 20px;
}

#past-attempts h3 {
    font-family: serif;
    font-size: 1.6em;
    font-weight: bold;
    margin: 0 0 10px 0;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

#past-attempts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#past-attempts li {
    font-family: serif; 
    font-size: 1.3em;   
    font-weight: bold;  
    margin-bottom: 5px;
    color: #333;
    border-bottom: 1px solid #c4bfaf;
    padding: 8px 0;
}

#retry-btn {
    display: none;
    margin-top: 10px;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
}