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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #E0F6FF 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #228B22;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
    width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 20px;
    background: linear-gradient(90deg, #32CD32, #228B22);
    border-radius: 10px;
    color: white;
}

header h1 {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#score-display, #lives-display {
    font-size: 18px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

#game-area {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

#canvas {
    border: 3px solid #696969;
    border-radius: 10px;
    background: #87CEEB;
    cursor: crosshair;
}

#hud {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#weather-station {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

#frog-alert {
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.alert-off {
    background: rgba(100, 100, 100, 0.7);
    color: white;
}

.alert-on {
    background: #FF6B6B;
    color: white;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

#mini-map {
    border: 2px solid #696969;
    border-radius: 5px;
    overflow: hidden;
}

#minimap-canvas {
    display: block;
    background: #87CEEB;
}

#controls {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 15px;
    align-items: start;
}

.control-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-panel button {
    padding: 10px 15px;
    border: 2px solid #228B22;
    border-radius: 8px;
    background: linear-gradient(135deg, #32CD32, #228B22);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-panel button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 139, 34, 0.4);
}

.control-panel button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(34, 139, 34, 0.4);
}

#emergency-btn {
    background: linear-gradient(135deg, #FF6B6B, #DC143C) !important;
    border-color: #DC143C !important;
}

#radio-panel {
    background: rgba(0, 0, 0, 0.8);
    color: #00FF00;
    border-radius: 8px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    height: 120px;
    overflow: hidden;
}

#radio-header {
    color: #FFD700;
    margin-bottom: 8px;
    font-weight: bold;
}

#radio-messages div {
    margin: 2px 0;
    opacity: 0.9;
}

#radio-messages div:first-child {
    opacity: 1;
    color: #FFFFFF;
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#game-over .modal {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
}

#game-over h2 {
    color: #DC143C;
    font-size: 32px;
    margin-bottom: 20px;
}

#game-over p {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

#game-over button {
    margin: 10px;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#restart-btn {
    background: linear-gradient(135deg, #32CD32, #228B22);
    color: white;
}

#menu-btn {
    background: linear-gradient(135deg, #696969, #2F4F4F);
    color: white;
}

#game-over button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hidden {
    display: none !important;
}

/* Responsive design */
@media (max-width: 900px) {
    #game-container {
        padding: 10px;
        margin: 10px;
    }
    
    #canvas {
        width: 100%;
        height: auto;
        max-width: 800px;
        max-height: 600px;
    }
    
    #controls {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .control-panel {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    header h1 {
        font-size: 18px;
    }
    
    #hud {
        position: static;
        flex-direction: row;
        justify-content: space-between;
        margin: 10px 0;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 10px;
    }
    
    #score-display, #lives-display {
        font-size: 16px;
    }
    
    .control-panel button {
        padding: 8px 12px;
        font-size: 14px;
    }
}