/* Latitude and Longitude Grid 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;
}

.coord-display {
    background: white;
    padding: 8px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border-top: 1px solid #ddd;
    font-family: monospace;
}

.coord-label {
    font-weight: bold;
    color: #333;
    font-size: 13px;
}

.coord-value {
    font-size: 14px;
    color: #555;
    min-width: 100px;
}

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

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

.control-btn:hover {
    background: steelblue;
    color: white;
}

.control-btn.active {
    background: steelblue;
    color: white;
}

/* Quiz Panel */
.quiz-panel {
    background: #fff3cd;
    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: steelblue;
}

.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: 5px;
}

.quiz-instruction {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

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

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

/* Legend */
.legend-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.legend-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.legend-item {
    font-size: 11px;
    color: #555;
}

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

/* Info panel on map */
.info {
    padding: 6px 10px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.info h4 {
    margin: 0 0 4px;
    font-size: 13px;
}

/* Celebration */
.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) rotate(0deg); opacity: 1; }
    100% { transform: scale(0.5) rotate(360deg) translateY(-100px); opacity: 0; }
}

/* City markers */
.city-label {
    font-size: 10px;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 2px white;
}

/* Responsive */
@media (max-width: 600px) {
    #map { height: 250px; }
    .coord-display { flex-direction: column; gap: 5px; }
    .controls-container { gap: 6px; }
    .control-btn { padding: 5px 10px; font-size: 10px; }
}
