body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

#map { 
    width: 100%; 
    height: 90vh;
    margin: 0 auto;
}

.header {
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
}

.control-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #18a45b;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 80px;
}

.control-btn:hover {
    background: #148a4a;
}

.control-btn.active {
    background: #0d6e3d;
}

.control-btn.pause {
    background: #e74c3c;
}

.control-btn.pause:hover {
    background: #c0392b;
}

.control-btn.pause.active {
    background: #a93226;
}

.route-selector {
    margin-top: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.camera-controls {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.camera-btn {
    padding: 8px;
    border: none;
    border-radius: 4px;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.camera-btn:hover {
    background: #2980b9;
}

.camera-btn.active {
    background: #1c6ea4;
}

.speed-indicator {
    margin-top: 10px;
    text-align: center;
    color: #666;
}

.info-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    min-width: 200px;
}

.info-item {
    margin: 10px 0;
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.info-label {
    color: #666;
    font-size: 0.9em;
}

.info-value {
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: #eee;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #18a45b;
    width: 0%;
    transition: width 0.3s;
}

.greeting-popup button {
    margin-top: 10px;
    padding: 8px 16px;
    background: #18a45b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.greeting-popup button:hover {
    background: #148a4a;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    background-color: #f8f8f8;
}

.character-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    margin: 0 auto 15px;
    background-color: #f8f8f8;
}

.station-marker {
    width: 20px;
    height: 20px;
    background: #18a45b;
    border-radius: 50%;
    border: 2px solid white;
}

.greeting-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    z-index: 1000;
    text-align: center;
    animation: fadeIn 0.5s;
    max-width: 300px;
}

.greeting-popup h2 {
    color: #333;
    margin: 10px 0;
    font-size: 1.2em;
}

.greeting-popup p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.event-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    z-index: 1000;
    text-align: center;
    animation: fadeIn 0.5s;
    max-width: 300px;
}

.event-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.event-title {
    color: #333;
    margin: 10px 0;
    font-size: 1.2em;
}

.event-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.weather-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.rain {
    background: linear-gradient(transparent, rgba(0,0,0,0.2));
    animation: rain 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rain {
    from { background-position: 0 0; }
    to { background-position: 0 100%; }
}