@font-face {
    font-family: 'Pricedown';
    src: url('pricedown bl.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background-color: #1a1a1a; /* Dark background */
    color: white;
    overflow: hidden;
    position: relative; /* Essential for positioning children absolutely relative to the body */
}

/* Styles for the main menu, displayed initially */
.main-menu-container {
    background-image: url('cities-skylines-review_mzrq.1200.webp'); /* Set the background image */
    background-size: 100% 100%; /* Make the image take up the entire screen, potentially distorting aspect ratio */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block; /* Initially visible */
}

.title-container {
    text-align: center;
    position: absolute; /* Position the container precisely */
    top: calc(25vh - 50px); /* Sets the top edge of the container to be 25% down from the viewport top */
    left: 50%; /* Moves the left edge to the horizontal center */
    transform: translateX(-50%); /* Shifts the container left by half its width to truly center it */
}

.title {
    font-family: 'Pricedown', sans-serif;
    font-size: 80px;
    color: #7CB9E8; /* Changed to a 'baby blue' shade for a darker, richer light blue */
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(124, 185, 232, 0.7); /* Shadow matches new color */
}

.demo-version {
    position: fixed; /* Position relative to the viewport */
    bottom: 20px; /* 20px from the bottom */
    right: 20px; /* 20px from the right */
    font-size: 18px;
    color: #bbb;
    font-family: 'Pricedown', sans-serif; /* Applied Pricedown font */
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: absolute; /* Position relative to the parent (body) */
    top: 50%; /* Align the top edge to the vertical center */
    left: 50%; /* Align the left edge to the horizontal center */
    transform: translate(-50%, -50%); /* Shift by half its own width and height to truly center it */
}

.menu-button {
    font-family: 'Pricedown', sans-serif;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.menu-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.menu-button:active {
    background-color: #004085;
    transform: translateY(0);
}

/* New style for the game container */
#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* display is handled by JS: 'none' initially, then 'block' when game starts */
}

/* Style for the toolbar */
#toolbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px; /* Changed from 25px to 35px */
    background-color: #333333; /* Dark gray */
    z-index: 100; /* Ensure it's above other game elements if any overlap */
    display: flex; /* Use flexbox to easily position items */
    align-items: center; /* Vertically center items */
}

/* Base style for all toolbar icons */
#toolbar img {
    width: auto; /* Allow width to adjust to maintain aspect ratio */
    height: 30px; /* Set icon height */
    cursor: pointer; /* Indicate it's clickable */
}

/* Positioning for each icon from left to right based on corrected instructions */
#road-icon-two-lane {
    margin-left: 75px; /* 75px from the left edge of the toolbar */
    margin-right: 10px; /* 10px space after this icon */
}

#road-icon-four-lane {
    margin-right: 30px; /* 30px space after this icon */
}

#residential-low-icon {
    margin-right: 15px; /* 15px space after this icon */
}

#residential-high-icon {
    margin-right: 15px; /* 15px space after this icon */
}

#commercial-low-icon {
    margin-right: 15px; /* 15px space after this icon */
}

#commercial-high-icon {
    margin-right: 15px; /* 15px space after this icon */
}

#industrial-icon {
    margin-right: 15px; /* 15px space after this icon */
}

#office-icon {
    margin-right: 30px; /* 30px space after this icon */
}

/* New icons positioning */
#electricity-icon {
    margin-right: 15px; /* 15px space after this icon */
}

#water-icon {
    /* No margin-right needed as it's the last icon */
}