
body {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    margin: 20px 0 0 0;
    color: #fff;
}

#container {
    display: flex;
    justify-content: space-between;
    width: 90%;
    padding: 20px;
}

#game {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 70%;
}

canvas {
    background: #001f3f;
    border: 1px solid #000;
    width: 100%;
    height: 80%;
    border-radius: 15px;
}

#rules {
    background: transparent;
    padding: 20px;
    width: 30%;
    color: #fff;
    font-family: Arial, sans-serif;
    text-align: left;
    height: auto;
    max-height: none;
    overflow: visible;
}

#rules img {
    display: block;
    margin: 0 0 20px 0; /* Alignement à gauche */
    width: 100%;
    max-width: 400px;
    height: auto;
}

#rules p, #rules li {
    text-align: left; /* Alignement à gauche */
    font-size: 18px;
}

#rules ul {
    text-align: left; /* Alignement à gauche */
    list-style-type: none;
    padding: 0;
}

#rules li {
    margin-bottom: 10px;
    font-size: 16px;
}

#rules li::before {
    content: '★ ';
    color: #FFFF00;
}

#rules a {
    color: #FFFF00;
    text-decoration: none;
}

#score-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
}

#score-label, #lives-label {
    font-size: 24px;
    font-family: 'Arial Black', Arial, sans-serif;
    color: #FFFFFF;
}

#score-value {
    font-size: 24px;
    font-family: 'Arial Black', Arial, sans-serif;
    color: #FFFF00;
    margin-left: 10px;
}

#lives {
    font-size: 24px;
    font-family: 'Arial Black', Arial, sans-serif;
    background: linear-gradient(to right, #FF0000, #FFFF00);
    -webkit-background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
}

#lives .life {
    margin-left: 5px;
}

.hidden {
    display: none;
}

#bonusMessage {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: black;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-family: Arial, sans-serif;
    white-space: pre-line;
}

#penaltyMessage {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: black;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-family: Arial, sans-serif;
    white-space: pre-line;
}

#pauseMessage {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: black;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-family: Arial, sans-serif;
    white-space: pre-line;
}

#gameOverMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: black;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    font-size: 48px;
    font-family: Arial, sans-serif;
    white-space: pre-line;
    animation: blink 1s linear 3;
}

@keyframes blink {
    0%, 100% { box-shadow: 0 0 0 0 red inset; }
    50% { box-shadow: 0 0 10px 10px red inset; }
}

#gameOverMessage span {
    font-size: 24px;
    display: block;
    margin-top: 10px;
}

#gameOverMessage button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 24px;
    font-family: Arial, sans-serif;
    background-color: #0095DD;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
