/* US Time Zones 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;
}

.main-container {
    display: flex;
    gap: 10px;
    padding: 0 10px;
}

#map {
    flex: 1;
    height: 280px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Clocks Panel */
.clocks-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 5px;
    background: white;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.clock-container {
    text-align: center;
    padding: 4px;
}

.clock-face {
    width: 50px;
    height: 50px;
    border: 3px solid #333;
    border-radius: 50%;
    position: relative;
    margin: 0 auto 4px;
    background: white;
}

.clock-center {
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.hour-hand {
    width: 3px;
    height: 14px;
    background: #333;
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
    border-radius: 2px;
}

.minute-hand {
    width: 2px;
    height: 18px;
    background: #666;
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
    border-radius: 2px;
}

.clock-label {
    font-size: 10px;
    font-weight: bold;
    color: #333;
}

.clock-time {
    font-size: 11px;
    color: #666;
}

#clock-pacific .clock-face { border-color: #4a90d9; }
#clock-mountain .clock-face { border-color: #f5a623; }
#clock-central .clock-face { border-color: #d4c000; }
#clock-eastern .clock-face { border-color: #7ed321; }

/* Info Panel */
.info {
    padding: 8px 12px;
    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: 200px;
}

.info h4 {
    margin: 0 0 6px;
    color: #333;
    font-size: 14px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 4px;
}

.info p {
    color: #555;
    font-size: 12px;
    margin: 3px 0;
}

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

.controls-container label {
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.time-slider {
    width: 150px;
    cursor: pointer;
}

#sliderValue {
    font-size: 12px;
    font-weight: bold;
    color: steelblue;
    min-width: 70px;
}

.control-btn {
    padding: 6px 14px;
    font-size: 12px;
    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: white;
    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;
    padding: 0 10px;
}

.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: 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: steelblue;
    background: aliceblue;
}

.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 */
.legend-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    text-align: center;
    border-top: 1px solid #ddd;
}

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

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

.legend-item {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: #555;
}

.legend-item i {
    width: 16px;
    height: 12px;
    margin-right: 4px;
    display: inline-block;
    border-radius: 2px;
}

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

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

.exploding-star {
    position: absolute;
    animation: explode 1.5s ease-out forwards;
    text-shadow: 0 0 10px currentColor;
}

@keyframes explode {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.5) rotate(180deg); opacity: 1; }
    100% { transform: scale(0.5) rotate(360deg) translateY(-100px); opacity: 0; }
}

/* Responsive */
@media (max-width: 600px) {
    .main-container {
        flex-direction: column;
    }

    #map {
        height: 220px;
    }

    .clocks-panel {
        flex-direction: row;
        justify-content: space-around;
    }

    .clock-face {
        width: 40px;
        height: 40px;
    }

    .hour-hand { height: 12px; }
    .minute-hand { height: 15px; }

    .controls-container {
        flex-direction: column;
        gap: 8px;
    }

    .time-slider {
        width: 100%;
        max-width: 200px;
    }
}
