* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Courier New', monospace;
    background-color: #1a1a2e;
    color: #00ff00;
    overflow: hidden;
}

#game-container {
    width: 100%;
    height: 100%;
    background-color: #16213e;
    border: 3px solid #0f3460;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.1);
}

#header {
    background-color: #0f3460;
    padding: 10px 20px;
    border-bottom: 2px solid #00ff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header h1 {
    font-size: 24px;
    color: #00ff00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#population-display {
    font-size: 18px;
    color: #ffff00;
}

#resources-panel {
    background-color: #1a1a2e;
    padding: 20px;
    border-bottom: 2px solid #0f3460;
}

#resources-panel h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #00ff00;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.resource-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.resource-icon {
    width: 30px;
    font-size: 20px;
    margin-right: 10px;
}

.resource-name {
    width: 80px;
    color: #ffffff;
}

.resource-value {
    width: 60px;
    color: #00ff00;
    font-weight: bold;
}

.resource-rate {
    margin-left: 20px;
    color: #ffff00;
    font-size: 14px;
}

#buildings-panel {
    flex: 1;
    background-color: #16213e;
    padding: 20px;
    overflow-y: auto;
}

#buildings-panel h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #00ff00;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.building-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #1a1a2e;
    border: 2px solid #0f3460;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
}

.building-info {
    display: flex;
    flex-direction: column;
}

.building-name {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 5px;
}

.building-level {
    font-size: 14px;
    color: #00ff00;
}

.upgrade-button {
    padding: 10px 15px;
    background-color: #0f3460;
    color: #00ff00;
    border: 2px solid #00ff00;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
}

.upgrade-button:hover:not(:disabled) {
    background-color: #00ff00;
    color: #0f3460;
    box-shadow: 0 0 10px #00ff00;
}

.upgrade-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#status-bar {
    background-color: #0f3460;
    padding: 10px 20px;
    border-top: 2px solid #00ff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#status-text {
    font-size: 16px;
    color: #00ff00;
}

#game-time {
    font-size: 16px;
    color: #ffff00;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #1a1a2e;
    padding: 40px;
    border: 3px solid #00ff00;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.modal-content h2 {
    font-size: 36px;
    color: #ff0000;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 30px;
}

.modal-content button {
    padding: 15px 30px;
    background-color: #0f3460;
    color: #00ff00;
    border: 2px solid #00ff00;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 18px;
}

.modal-content button:hover {
    background-color: #00ff00;
    color: #0f3460;
}

