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

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.game-container {
    width: 800px;
    height: 600px;
    display: flex;
    flex-direction: column;
    background-color: #333;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #0073e6;
    color: white;
    border-bottom: 3px solid #005bb5;
}

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

.score-container {
    font-size: 18px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
}

.game-area {
    position: relative;
    flex-grow: 1;
    background: linear-gradient(to bottom, #00bfff, #001e3c);
    overflow: hidden;
}

#player {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('player.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
    transition: transform 0.1s ease-out;
}

.fish {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.decoration {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.controls {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #222;
}

.control-info {
    font-size: 14px;
    color: #aaa;
}

button {
    background-color: #0073e6;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
    margin-left: 5px;
}

button:hover {
    background-color: #005bb5;
}

button:active {
    transform: scale(0.98);
}

#hat-button {
    background-color: #ffcc00;
}

#hat-button:hover {
    background-color: #e6b800;
}

/* Animation pour les poissons collectu00e9s */
.collected {
    animation: collect 0.5s forwards;
}

@keyframes collect {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Animation pour les bulles */
.bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    animation: bubble-rise 8s linear infinite;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-600px);
        opacity: 0;
    }
}
