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

body {
    margin: 0;
    overflow: hidden;
    background: url('assets/th.jpg') repeat; /* Subtle blueprint-style background */
    background-size: cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Bungee Shade', cursive; /* Playful, aviation-inspired font */
}

/* Header - Flight Manual Style */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(255, 255, 255, 0.8); /* Light, paper-like */
    border: 2px solid #1E90FF; /* Sky blue border */
    color: #1E90FF; /* Sky blue text */
    text-align: center;
    padding: 10px 0;
    font-size: 20px;
    border-radius: 10px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.2);
}

#gameHeader {
    font-size: 28px;
    color: #1E90FF;
    text-shadow: 2px 2px 5px rgba(0, 0, 255, 0.3);
    text-align: center;
    padding: 10px;
}

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

#score {
    font-size: 20px;
    color: #1E90FF;
    text-shadow: 1px 1px 3px rgba(0, 0, 255, 0.3);
}

/* Game Canvas - Paper Sheet Look */
#gameCanvas {
    display: block;
    width: 100vw;
    height: 100vh;
    border: 5px dashed rgba(0, 0, 0, 0.5); /* Looks like a torn notebook paper border */
    background-color: rgba(255, 255, 255, 0.1);
}

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

.modal-content {
    background: url('assets/crumple.jpg') no-repeat center;
    background-size: cover;
    color: black;
    font-family: 'Bungee Shade', cursive;
    min-width: 300px;
    max-width: 85%;
    padding: 50px 20px;
    margin: 10% auto 0 auto;
    border-radius: 10px;
    text-align: center;
    box-shadow: none;
    min-height: 50%;
}

/* Game Over Title */
.modal-content h2 {
    color: #1E90FF;
    text-shadow: 2px 2px 5px rgba(0, 0, 255, 0.3);
}

/* Final Score */
.modal-content #finalScore {
    font-size: 20px;
    color: #1E90FF;
    margin: 10px 0;
    text-align: center;
}

/* Buttons - Flight Labels */
.modal-content button {
    background: white;
    color: #1E90FF;
    border: 2px dashed #1E90FF;
    font-family: 'Bungee Shade', cursive;
    padding: 10px 15px;
    margin: 20px auto;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.modal-content button:hover {
    background: #1E90FF;
    color: white;
}

/* Exit Button */
#exitButton {
    background: black;
    color: #1E90FF;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 16px;
    transition: 0.3s;
}

#exitButton:hover {
    background: rgba(30, 144, 255, 0.5);
}

/* Power-Up Messages */
#powerUpMessage {
    font-family: 'Bungee Shade', cursive;
    display: none;
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #1E90FF;
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #gameHeader {
        font-size: 20px;
    }
    #score {
        font-size: 16px;
    }
    #powerUpMessage {
        font-size: 12px;
        bottom: 12px;
        left: 12px;
        padding: 8px;
    }
}
