@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&display=swap');

body {
    margin: 0;
    overflow: hidden;
    /* background: url('path/to/your/land-sea-background.jpg') no-repeat center center fixed; /* Background image for land and sea */
    background: url('assets/moorhead_tm5_2009253.jpg') repeat center center fixed; /* Background image for land and sea
    background-size: cover; /* Cover the entire background */
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Black Ops One', cursive;
}

/* Smaller and more stylish header */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(0, 0, 0, 0.8); /* Darker semi-transparent black */
    color: #FFD700; /* Gold color for header text */
    text-align: center;
    padding: 10px 0;
    font-family: 'Black Ops One', cursive;
    font-size: 20px; /* Slightly larger font size */
    border-radius: 10px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#gameHeader {
    font-family: 'Black Ops One', cursive;
    font-size: 28px; /* Larger font size for title */
    color: #FFD700; /* Gold color */
    text-shadow: 2px 2px 5px black; /* Darker shadow for better visibility */
    text-align: center;
    padding: 10px;
}

#gameTitle {
    margin: 0;
    font-family: 'Black Ops One', cursive;
    font-size: 22px;
}

#score {
    font-family: 'Black Ops One', cursive;
    font-size: 20px; /* Font size for score */
    color: #FFD700; /* Gold color */
}
/* Mobile-specific styles */
@media (max-width: 768px) {
    #scoreContainer {
        font-size: 14px; /* Compensate for the extra height */
    }
    #score {
        font-size: 16px; /* Adjusted font size for mobile */
    }
}

#gameLibraryLink {
    color: #FFD700; /* Gold */
    text-decoration: underline; /* Underline for emphasis */
    font-size: 18px; /* Font size for link */
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.3s;
}
/* Mobile-specific styles */
@media (max-width: 768px) {
    #gameLibraryLink {
        font-size: 14px; /* Adjusted font size for mobile */
    }
}

#gameLibraryLink:hover {
    background: rgba(255, 215, 0, 0.5); /* Lighter gold on hover */
}

/* Game canvas fills the screen */
#gameCanvas {
    display: block;
    width: 100vw;
    height: 100vh;
    /* background: #87CEEB; */
    background: rgba(17, 22, 6, 0.66);
}

/* 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.9); /* Darker semi-transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(0, 0, 0, 0.8); /* Black background for modal */
    color: #FFD700; /* Gold text */
    font-family: 'Black Ops One', cursive;
    width: 300px; /* Slightly wider modal */
    padding: 20px;
    margin: 10% auto 0 auto;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Game Over Title */
.modal-content h2 {
    font-family: 'Black Ops One', cursive;
    color: #FFD700; /* Gold color */
    text-shadow: 2px 2px 5px black; /* Darker shadow for better visibility */
}

/* Game Over Message */
.modal-content #finalScore {
    font-family: 'Black Ops One', 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 */
}

/* Restart Button */
.modal-content button {
    font-family: 'Black Ops One', cursive;
    background: #ff4500; /* Button background color */
    color: white; /* Button text color */
    border: none; /* No border */
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 5px; /* Rounded corners */
    transition: 0.3s; /* Transition for hover effect */
}

.modal-content button:hover {
    background: #ff6347; /* Button hover color */
}

/* New styles for the button row */
.button-row {
    margin-top: 10px; /* Space above the exit button */
}

/* Style for the exit button */
#exitButton {
    font-family: 'Black Ops One', cursive;
    background: black; /* Black background */
    color: #FFD700; /* Gold text color */
    border: none; /* No border */
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 5px; /* Rounded corners */
    padding: 10px 15px; /* Padding for better visibility */
    font-size: 16px; /* Font size for the button */
    transition: 0.3s; /* Transition for hover effect */
}

#exitButton:hover {
    background: rgba(255, 215, 0, 0.5); /* Lighter gold on hover */
}

#powerUpMessage {
    font-family: 'Black Ops One', cursive;
    display: none; 
    position: absolute; 
    bottom: 20px; /* Position from the bottom */
    left: 20px; /* Position from the left */
    color: #FFD700; /* Gold */
    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: 'Black Ops One', cursive;
    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 */
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    #gameHeader {
        font-size: 20px; /* Adjusted font size for mobile */
    }
}
