body {
    background-color: #1e1e1e;
    color: #e6e6e6;
    padding: 1.5rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

p {
    margin: 0.5rem 0;
}

button {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #444444;
    padding: 0.4rem 0.6rem;
    margin-left: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
}

    button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        border-color: #333333;
    }

.back-link {
    display: inline-block;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #aaaaaa;
    text-decoration: none;
}

    .back-link:hover {
        color: #ffffff;
        text-decoration: underline;
    }

#event-box {
    background-color: #2a2a2a;
    border: 1px solid #666;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
}
  
    #event-box button {
        margin-top: 1rem;
        background-color: #222222;
        padding: 0.6rem 1rem;
    }

.feedback-tooltip {
    position: absolute;
    pointer-events: none;
    font-size: 0.9rem;
    opacity: 0.9;
    animation: floatUp 0.6s ease-out forwards;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

@keyframes floatUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

.version {
    font-size: 0.6em;
    color: #999;
    margin-left: 0.4rem;
}
#colony-status {
    font-style: italic;
    background-color: black;
    padding: 1rem;
}
#click-construction-ui {
    margin-top: 1rem;
}
#resources-display {
    width: 10rem;
    min-width: 10rem;
    margin-right: 2rem;

    background-color: #262626;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}
#info-panel {
    display: flex;
    margin-bottom: 1.5rem;
}
.resource.food .value {
    color: #c8e6a0;
}

.resource.wood .value {
    color: #deb887;
}

.resource.population .value {
    color: #9fd3ff;
}

.resource .value {
    transition: transform 0.15s ease, color 0.15s ease;
}

.resource.flash .value {
    transform: scale(1.05);
}

.resource {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.6rem;
}

    .resource .label {
        font-size: 0.85rem;
        opacity: 0.85;
    }

    .resource .value {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .resource .divider {
        opacity: 0.4;
        margin: 0 2px;
    }

    .resource:last-child {
        margin-bottom: 0;
    }