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

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

.game-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-info {
    display: flex;
    justify-content: space-between;
    width: 800px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
}

.score, .high-score, .health {
    padding: 10px 20px;
    background-color: #2a2a2a;
    border-radius: 5px;
}

.health {
    display: flex;
    align-items: center;
}

.health-bar {
    width: 100px;
    height: 20px;
    background-color: #444;
    border-radius: 10px;
    margin-left: 10px;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s;
}

.high-score {
    color: #ffd700; /* Gold color for high score */
}

#gameCanvas {
    border: 2px solid #444;
    background-color: #0a0a0a;
    display: block;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #fff;
    z-index: 10;
}

.game-over.hidden {
    display: none;
}

.game-over h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ff4444;
}

.game-over p {
    font-size: 24px;
    margin-bottom: 30px;
}

#restartBtn {
    padding: 15px 30px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

#restartBtn:active {
    background-color: #3d8b40;
}

.high-score-message {
    color: #ffd700;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.pause-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #4CAF50;
    z-index: 10;
}

.pause-menu.hidden {
    display: none;
}

.pause-menu h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #4CAF50;
}

.pause-menu p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #fff;
}

#resumeBtn {
    padding: 15px 30px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

#resumeBtn:active {
    background-color: #3d8b40;
}

.power-up-indicator {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 215, 0, 0.9);
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    z-index: 15;
    animation: fadeInOut 2s ease-in-out;
}

.power-up-indicator.hidden {
    display: none;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

