/* Great Lakes MicroSim Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: aliceblue;
}

h2 {
    text-align: center;
    margin: 8px 0 4px 0;
    font-size: 18px;
    color: #333;
}

.subtitle {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

#map {
    width: 100%;
    height: 300px;
}

.info {
    padding: 10px 14px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    max-width: 240px;
}

.info h4 {
    margin: 0 0 8px;
    color: #2196f3;
    font-size: 16px;
    border-bottom: 2px solid #2196f3;
    padding-bottom: 4px;
}

.info p {
    color: #555;
    font-size: 12px;
    margin: 4px 0;
    line-height: 1.4;
}

.info .stat {
    font-weight: bold;
    color: #333;
}

.controls-container {
    background: white;
    padding: 8px 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid #ddd;
}

.control-btn {
    padding: 6px 14px;
    font-size: 12px;
    border: 2px solid #2196f3;
    background: white;
    color: #2196f3;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.control-btn:hover, .control-btn.active {
    background: #2196f3;
    color: white;
}

.quiz-panel {
    background: #e3f2fd;
    padding: 12px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.quiz-panel.hidden { display: none; }

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.quiz-progress {
    font-size: 12px;
    font-weight: bold;
    color: #2196f3;
}

.stars-display { display: flex; gap: 4px; }

.gold-star {
    font-size: 18px;
    color: gold;
    text-shadow: 0 0 3px orange;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease-out;
}

.gold-star.animated { opacity: 1; transform: scale(1); }

.quiz-question {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.quiz-options {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quiz-option {
    padding: 8px 16px;
    font-size: 12px;
    border: 2px solid #ccc;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-option:hover { border-color: #2196f3; background: #e3f2fd; }
.quiz-option.correct { border-color: forestgreen; background: #e8f5e9; color: forestgreen; }
.quiz-option.incorrect { border-color: crimson; background: #ffebee; color: crimson; }

.quiz-feedback {
    margin-top: 10px;
    font-size: 13px;
    font-weight: bold;
    min-height: 20px;
}

.quiz-feedback.correct { color: forestgreen; }
.quiz-feedback.incorrect { color: crimson; }

.legend-container {
    background: white;
    padding: 8px 12px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.legend-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.legend-items {
    font-size: 12px;
    color: #555;
}

.lake-letter {
    color: #2196f3;
    font-weight: bold;
    font-size: 14px;
}

.hover-instruction {
    text-align: center;
    font-size: 11px;
    color: #888;
    padding: 4px;
    font-style: italic;
}

.celebration-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.exploding-star {
    position: absolute;
    animation: explode 1.5s ease-out forwards;
}

@keyframes explode {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(0.5) translateY(-100px); opacity: 0; }
}

@media (max-width: 600px) {
    #map { height: 250px; }
    .info { max-width: 200px; }
}
