body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    text-align: center;
    color: white;
    font-size: 2.5em;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#map {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-wrapper {
    margin-top: 320px; /* Height of the map + some spacing */
    padding-top: 20px;
}

.ocean-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ocean-card:hover {
    transform: translateY(-5px);
}

h2 {
    color: #1a2a6c;
    margin-top: 0;
    border-bottom: 2px solid #1a2a6c;
    padding-bottom: 10px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fact-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.fact-item p {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    line-height: 1.4;
}

.question {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.question p {
    font-weight: bold;
    color: #1a2a6c;
}

.answer-input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 2px solid #1a2a6c;
    border-radius: 4px;
    font-size: 1em;
}

.check-answer {
    background-color: #1a2a6c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.check-answer:hover {
    background-color: #2a3a7c;
}

.feedback {
    margin-top: 10px;
    font-weight: bold;
}

.feedback.correct {
    color: #2ecc71;
}

.feedback.incorrect {
    color: #e74c3c;
}

#pacific {
    border-left: 5px solid #0077be;
}

#atlantic {
    border-left: 5px solid #1e90ff;
}

#indian {
    border-left: 5px solid #00bfff;
}

#southern {
    border-left: 5px solid #87ceeb;
}

#arctic {
    border-left: 5px solid #b0e0e6;
}

.ocean-highlight {
    fill: rgba(0, 119, 190, 0.3);
    stroke: #0077be;
    stroke-width: 2;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .facts {
        grid-template-columns: 1fr;
    }

    #map {
        height: 250px;
    }

    .content-wrapper {
        margin-top: 270px;
    }
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
}

#gameCanvas {
    background-color: #8B4513;
    border: 1px solid #fff;
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 10px;
}

.resource {
    margin: 5px 0;
    font-size: 18px;
}

#upgrade-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    border-radius: 15px;
    z-index: 200;
}

#upgrade-menu.hidden {
    display: none;
}

.upgrade-item {
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.game-container {
    position: relative;
    width: 800px;
    height: 600px;
}

.hud {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.score, .health, .oxygen {
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.health span {
    color: #ff4444;
}

.oxygen span {
    color: #44ff44;
}

.controls {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.year-display {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 10px;
}

#year-slider {
    width: 100%;
    margin: 10px 0;
}

/* Style for the blue overlay */
.leaflet-overlay-pane {
    pointer-events: none;
}

.leaflet-popup-content {
    text-align: center;
    font-size: 1.1em;
}

.ocean {
    fill: #0077be;
    fill-opacity: 0.7;
    stroke: #fff;
    stroke-width: 1;
}

.ocean:hover {
    fill-opacity: 0.9;
} 