body {
    background-color: #1a1a1a;
    color: #eee;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

#game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header, footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1, footer {
    margin: 0;
}

#race-banner {
    display: flex;
    align-items: center;
}

#race-banner img {
    height: 50px;
    margin-right: 10px;
}

#resources {
    display: flex;
}

.resource {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.resource img {
    height: 24px;
    margin-right: 5px;
}

main {
    display: flex;
    margin-top: 20px;
}

#game-status {
    flex: 1;
    margin-right: 20px;
}

#game-status h2 {
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

#buildings ul {
    list-style-type: none;
    padding: 0;
}

#buildings li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#buildings img {
    height: 32px;
    margin-right: 10px;
}

.inline-form {
    margin-left: auto;
}

.inline-form button {
    background: none;
    border: none;
    cursor: pointer;
}

.inline-form button img {
    height: 24px;
}

#map {
    flex: 1;
}

#map h2 {
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

#actions {
    margin-top: 20px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
}

.action-buttons form {
    margin-right: 20px;
    margin-bottom: 10px;
}

.action-buttons button {
    background-color: #007acc;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.action-buttons button img {
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

.action-buttons button:hover {
    background-color: #005fa3;
}

#restart-btn {
    background-color: #cc0000;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#restart-btn img {
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

#restart-btn:hover {
    background-color: #990000;
}

.message {
    background-color: #444;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

#error {
    color: #ff0000;
}

#race-selection {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.race-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.race-option {
    background-color: #333;
    padding: 20px;
    margin-bottom: 20px;
    width: 220px;
    border-radius: 8px;
    text-align: center;
}

.race-option img {
    height: 100px;
    margin-bottom: 10px;
}

.race-option h2 {
    margin-top: 0;
}

.race-option form {
    margin-top: 10px;
}

.race-option input[type="submit"] {
    background-color: #007acc;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.race-option input[type="submit"]:hover {
    background-color: #005fa3;
}
