/* World Map Styles - extracted from main.css and enhanced */
.world-map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.world-map-panel {
    width: 90%;
    max-width: 1200px;
    height: 90%;
    background-color: #222;
    border: 3px solid #555;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
}

.world-map-panel h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.world-map-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #444;
    background-color: #111;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

#world-map-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.stage-info-panel {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    min-height: 120px;
}

.stage-info-panel h3 {
    color: #aaa;
    margin-bottom: 10px;
}

.stage-details {
    color: #fff;
}

.stage-details h4 {
    color: #ffcc00;
    margin-bottom: 5px;
}

.world-map-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

#start-stage-btn {
    background: linear-gradient(to bottom, #006600, #004400);
    border-color: #008800;
}

#start-stage-btn:hover:not([disabled]) {
    background: linear-gradient(to bottom, #008800, #006600);
}

#close-map-btn {
    background: linear-gradient(to bottom, #660000, #440000);
    border-color: #880000;
}

#close-map-btn:hover {
    background: linear-gradient(to bottom, #880000, #660000);
}

/* Stage Effect Display */
.stage-effect {
    margin-top: 15px;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #ffcc00;
    font-size: 14px;
}

/* Responsive design for world map */
@media (max-width: 900px) {
    .world-map-panel {
        width: 95%;
        height: 95%;
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .world-map-panel {
        width: 100%;
        height: 100%;
        padding: 10px;
        border-radius: 0;
    }
    
    .world-map-controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .stage-info-panel {
        min-height: 100px;
    }
}