* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background-color: #000;
}

#start-screen {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#requirements {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    font-size: 0.85em;
    color: #fff;
    text-shadow: none;
    font-weight: normal;
    font-family: 'Press Start 2P', monospace;
    letter-spacing: 0.5px;
    font-family: 'Inter', Arial, sans-serif; /* Thinner, modern font */
    font-weight: 300; /* Thinner weight */
}

#requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#requirements li {
    margin: 2px 0;
    font-weight: 300;
}

#start-screen:has(~ #minimap) ~ #minimap {
    display: none;
}

#start-screen.active ~ #minimap,
#start-screen:not([style*="display: none"]) ~ #minimap {
    display: none;
}

.start-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 0 50%; /* Take up half the screen height */
    min-height: 50vh; /* Ensure at least half the viewport height */
    gap: 10px;
}

.start-content h1 {
    font-family: 'Press Start 2P', sans-serif; /* Use the pixelated font */
    font-size: 80px; /* Adjust size as needed */
    font-weight: normal; /* Ensure the font weight matches the pixel style */
    letter-spacing: 2px; /* Add spacing for a retro feel */
    color: #ffffff; 
    text-transform: uppercase; /* Make the text all uppercase */
    margin-bottom: 20px; /* Add spacing below the heading */
    text-shadow: 0 0 15px rgba(151, 151, 152, 0.8);
}

#password-input {
    width: 200px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid black; /* Black outline */
    border-radius: 4px; /* Rounded corners */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
    outline: none; /* Remove default focus outline */
}

#start-button {
    background: linear-gradient(to bottom, #4facff, #0055ff); /* Gradient for liquid gel effect */
    color: white;
    border: 2px solid #0044cc; /* Border for depth */
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px; /* Rounded corners for a gel-like look */
    cursor: pointer;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Text shadow for depth */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Shadow for 3D effect */
    transition: all 0.2s ease-in-out;
}

#start-button:hover {
    background: linear-gradient(to bottom, #0055ff, #0044cc); /* Darker gradient on hover */
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4); /* Enhanced shadow on hover */
}

#start-button:active {
    transform: translateY(2px); /* Pressed effect */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Reduced shadow on press */
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#hud {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 14px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 4px;
    min-width: 120px;
}

#instructions {
    position: absolute;
    top: 180px; /* Position below the minimap */
    left: 20px; /* Align with the minimap */
    width: 150px; /* Match the minimap's width */
    color: white;
    font-size: 10px; /* Make the text smaller */
    background-color: rgba(0, 0, 0, 0.7); /* Optional: Add a background for contrast */
    padding: 5px; /* Add some padding for readability */
    border-radius: 4px; /* Optional: Rounded corners */
    text-align: left; /* Align text to the left */
    z-index: 10; /* Ensure it stays on top */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

#speed, #fps, #status {
    font-weight: 500;
    margin-bottom: 5px;
}

#minimap {
    display: none;
    position: absolute;
    top: 20px; /* Move to the top */
    left: 20px; /* Move to the left */
    width: 150px; /* Adjust size as needed */
    height: 150px; /* Adjust size as needed */
    border: 2px solid white; /* Optional: Add a border for visibility */
    background-color: rgba(0, 0, 0, 0.7); /* Optional: Add a background for contrast */
    z-index: 10; /* Ensure it stays on top */
    
}

#game-container[style*="display: block"] ~ #minimap {
    display: block;
}

#north-indicator {
    position: absolute;
    top: 5px; /* Adjust position near the top */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px; /* Adjust font size as needed */
    font-family: Arial, sans-serif;
    font-weight: bold;
}

#player-marker {
    width: 10px !important;
    height: 10px !important;
    background-color: #0055ff;
    position: relative;
    display: inline-block;
}

#player-marker:after {
    content: '';
    position: absolute;
    top: -4px;
    left: 3px;
    width: 0;
    height: 0;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-bottom: 6px solid #0055ff;
    transform-origin: bottom center;
}