body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; 
    background-color: #fefefe;
    display: none; 
    flex-direction: column;
}

#game-header {
    background: #f0f0f0;
    padding: 5px;
    border-bottom: 2px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
 
#timer-display {
    background: white;
    padding: 5px 15px;
    border: 2px solid #333;
    font-size: 1em;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
}
 
#start-game-button {
    padding: 5px 15px;
    font-size: 1em;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#start-game-button:hover {
    background: #0056b3;
}

#progress-bar-container {
    height: 10px;
    background-color: #ddd;
    width: 100%;
}

#progress-bar {
    height: 100%;
    width: 0%; 
    background-color: #4CAF50; 
    transition: width 0.5s ease-in-out; 
}

#close-button {
    position: absolute;
    top: 60px;
    right: 10px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2001;
}

#game-container #map {
    flex-grow: 1; 
    width: 100%;
    height: 90vh; 
}

#city-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 2010; 
    font-size: 2em; 
    font-weight: 90;
    color: black;
    text-shadow: 0 0 10px rgba(0, 0, 0, 1); 
    opacity: 0; 
    transition: opacity 0.5s ease-in-out; 
    pointer-events: none; 
}

@media (max-width: 900px) {
    /* Existing rule for city-display (kept for completeness) */
    #city-display {
        max-width: 90vw;
        padding: 0 5px;
        word-wrap: break-word;
        text-align: center;
        font-size: 1.5em;
    }

    /* 1. COMPACT GAME HEADER */
    #game-header {
        /* Keep column layout */
        flex-direction: column;
        /* Reduce padding to the absolute minimum */
        padding: 3px; 
        align-items: center;
    }

    /* 2. COMPACT CLOSE BUTTON */
    #close-button {
        top: 3px; /* Move closer to the top edge */
        right: 3px; /* Move closer to the right edge */
        width: 20px; /* Smaller button */
        height: 20px;
        font-size: 0.9em; /* Smaller font */
        line-height: 20px; /* Center 'X' */
        z-index: 2002;
    }

    /* 3. MINIMIZE ALL HEADER ITEMS */
    #start-game-button,
    #timer-display,
    #game-status {
        margin: 1px 0; /* Minimal vertical margin between elements */
        width: 95%; /* Make them slightly wider */
        text-align: center;
    }

    /* Start Button Styling */
    #start-game-button {
        /* Significant reduction in padding and font size */
        padding: 5px 10px; 
        font-size: 0.8em; 
    }
    
    /* Game Status Styling */
    #game-status {
        /* Smaller font for the status text */
        font-size: 0.8em !important;
    }

    /* 4. REMOVE THE BOX FROM TIMER DISPLAY */
    #timer-display {
        /* Remove the box-like styling */
		background-color: #fefefe;
        border: none; /* Remove border */
        border-radius: 0; /* Remove border radius */
        /* Drastically reduce padding */
        padding: 2px 2px; 
        /* Smaller font size */
        font-size: 0.8em; 
        /* Match font weight to game-status for a unified look */
        font-weight: bold; 
    }
}
 
#lock-map-button {
    position: absolute;
    bottom: 10px; 
    left: 10px;
    z-index: 1000; 
    padding: 5px 10px;
    background-color: #2196F3; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}