body {
    margin: 0;
    overflow: hidden;
    background: #87CEEB; /* Sky blue */
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Smaller and more stylish header */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    color: white;
    text-align: center;
    padding: 5px 0;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    border-radius: 10px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#gameHeader {
    font-family: 'Press Start 2P', cursive; /* Classic arcade font */
    font-size: 24px;
    color: cyan;
    text-shadow: 2px 2px 5px magenta;
    text-align: center;
    padding: 10px;
}

#gameTitle {
    margin: 0;
    font-size: 22px;
}

#score {
    font-size: 18px;
}
/* Mobile-specific styles */
@media (max-width: 768px) {
    #scoreContainer {
        font-size: 14px; /* Compensate for the extra height */
    }
}

#gameLibraryLink {
    color: #FFD700; /* Gold */
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.3s;
}
/* Mobile-specific styles */
@media (max-width: 768px) {
    #gameLibraryLink {
        font-size: 10px; /* Compensate for the extra height */
    }
}

#gameLibraryLink:hover {
    background: rgba(255, 215, 0, 0.3);
}

/* Game canvas fills the screen */
#gameCanvas {
    display: block;
    width: 100vw;
    height: 100vh;
    background: #87CEEB;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    #gameCanvas {
        margin-bottom: 50px; /* Compensate for the extra height */
    }
}

/* Stylish modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(135, 206, 235, 0.9); /* Sky blue with transparency */
    color: #ff3300; /* Gold text */
    font-family: 'Press Start 2P', cursive; /* Classic arcade font */
    width: 250px;
    padding: 20px;
    margin:10% auto 0 auto;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
/* Mobile-specific styles */
@media (max-width: 768px) {
    .modal-content {
        margin-top: 33%; /* Compensate for the extra height */
    }
}

#restartButton {
    font-family: 'Press Start 2P', cursive; /* Classic arcade font */
    background: #ff4500;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

#restartButton:hover {
    background: #ff6347;
}

#powerUpMessage {
    font-family: 'Press Start 2P', cursive; /* Classic arcade font */
    display: none; 
    position: absolute; 
    bottom: 20px; /* Position from the bottom */
    left: 20px; /* Position from the left */
    color: white; 
    font-size: 20px; 
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    padding: 10px; /* Padding for better visibility */
    border-radius: 5px; /* Rounded corners */
}
/* Mobile-specific styles */
@media (max-width: 768px) {
    #powerUpMessage {
        font-size: 10px !important; /* Compensate for the extra height */
        bottom: 12px; /* Position from the bottom */
        left: 12px; /* Position from the left */
        padding: 8px; /* Padding for better visibility */
    }
}

/* Style for final score in the modal */
#finalScore {
    font-family: 'Press Start 2P', cursive; /* Classic arcade font */
    font-size: 20px; /* Font size to match other text */
    color: #FFD700; /* Gold color for consistency */
    margin: 10px 0; /* Margin for spacing */
    text-align: center; /* Center the text */
}
