* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 1.2rem;
    font-weight: bold;
}

.score, .found {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.game-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 30px;
}

.map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

#world-map {
    width: 100%;
    height: auto;
    display: block;
    cursor: crosshair;
    transition: transform 0.3s ease;
}

#world-map:hover {
    transform: scale(1.02);
}

.click-feedback {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.click-feedback.correct {
    background: radial-gradient(circle, #27ae60, #2ecc71);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
    animation: correctPulse 0.6s ease-out;
}

.click-feedback.incorrect {
    background: radial-gradient(circle, #e74c3c, #c0392b);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.6);
    animation: incorrectShake 0.6s ease-out;
}

@keyframes correctPulse {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

@keyframes incorrectShake {
    0%, 100% { transform: translate(-50%, -50%) translateX(0); opacity: 1; }
    25% { transform: translate(-50%, -50%) translateX(-10px); opacity: 0.8; }
    75% { transform: translate(-50%, -50%) translateX(10px); opacity: 0.8; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes hintPulse {
    0%, 100% { 
        transform: scale(1.1); 
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    }
    50% { 
        transform: scale(1.15); 
        box-shadow: 0 0 35px rgba(255, 255, 255, 0.8);
    }
}

.ocean-list {
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ocean-list h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.ocean-list ul {
    list-style: none;
}

.ocean-list li {
    padding: 12px 15px;
    margin: 8px 0;
    background: linear-gradient(45deg, #ecf0f1, #bdc3c7);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: none; /* Hidden by default, shown one by one */
}

.ocean-list li.current {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
    animation: currentPulse 2s infinite;
}

@keyframes currentPulse {
    0%, 100% { box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4); }
    50% { box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6); }
}

.ocean-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ocean-list li.found {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    transform: scale(0.95);
    display: block;
}

.ocean-list li.found::after {
    content: " ✓";
    font-weight: bold;
}

.game-message {
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.game-message.success {
    color: #27ae60;
    animation: bounce 0.6s ease-out;
}

.game-message.error {
    color: #e74c3c;
    animation: shake 0.6s ease-out;
}

.game-message.info {
    color: #3498db;
    font-size: 1.4rem;
    animation: fadeIn 0.5s ease-in;
}

.game-message.complete {
    color: #f39c12;
    font-size: 1.5rem;
    animation: celebration 1s ease-out;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes celebration {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.game-controls button {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#reset-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

#reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

#hint-btn {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

#hint-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.instructions {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.instructions h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.instructions p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-info {
        gap: 15px;
        align-items: center;
    }
    
    .game-header h1 {
        font-size: 2rem;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .game-controls button {
        width: 200px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .game-container {
        padding: 20px;
    }
    
    .game-header h1 {
        font-size: 1.8rem;
    }
}