#city-view {
    background-image: url('../img/city1.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px; /* Adjust based on your image size */
    position: relative;
    padding: 20px;
    color: #fff; /* Default text color for better contrast */
}

#city-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for better text readability */
    z-index: 0;
}

#city-view .header,
#city-view .content {
    position: relative;
    z-index: 1;
}

.content {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

#generals-list {
    width: 60%;
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white background */
    padding: 15px;
    border-radius: 8px;
}

.general-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: rgba(249, 249, 249, 0.9);
    color: #333; /* Dark text for readability */
}

.city-options {
    width: 35%;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white background */
    padding: 15px;
    border-radius: 8px;
}

.city-options button {
    margin: 8px 0;
    background-color: rgba(139, 0, 0, 0.8);
    color: white;
    border: none;
    transition: background-color 0.3s;
}

.city-options button:hover {
    background-color: rgba(165, 42, 42, 0.9);
}

.military-view .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border for contrast */
}

.city-resources {
    display: flex;
    gap: 20px;
    font-size: 18px;
    color: #fff; /* White text for resources */
}

.city-resources span {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
}

#city-name {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

#city-info {
    color: #fff;
}