* {
    margin: 0;
    user-select: none;
    box-sizing: border-box;
    font-family: monospace;
    /* border: 1px solid #408; */
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

footer {
    padding: 4px;
    line-height: 1;
}

#site_title {
    flex-grow: 1;
    font-size: 32px;
    text-decoration: none;
}

nav {
    gap: 16px;
    padding: 4px;
    display: flex;
    padding-right: 16px;
    align-items: center;
    border-bottom-width: 2px;
}

nav * {
    display: block;
}

#site_title {
    color: #c04;
}

nav {
    border-color: #000;
    background-color: #0d0d0d;
}

body {
    color: #ccc;
    background-color: #0b0b0f;
}

main {
    gap: 16px;
    margin: 16px;
    display: flex;
    max-width: 1600px;
    align-self: center;
    flex-direction: column;
}

#game_news,
#game_stats {
    gap: 8px;
    padding: 8px;
    display: grid;
    line-height: 1;
    font-size: 18px;
    border-radius: 4px;
    overflow-wrap: anywhere;
    border: 1px solid #333;
    background-color: #1d1d1d;
}

#game_container {
    gap: 16px;
    display: flex;
    flex-wrap: wrap;
}

#game_left,
#game_right {
    gap: 16px;
    display: flex;
    flex-direction: column;
}

#game_left {
    flex: 1;
    min-width: 192px;
}

#game_brownie {
    border-radius: 50%;
    transition-duration: 75ms;
}

#game_right {
    flex: 2;
    min-width: 384px;
}

.worker {
    display: flex;
    border-radius: 4px;
    align-items: center;
    background-color: #223;
    border: 1px solid #328;
}

.worker_img {
    margin: 8px;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
}

.worker_details {
    flex-grow: 1;
    line-height: 1;
    font-size: 16px;
    margin-block: 8px;
    overflow-wrap: anywhere;
}

.worker_count {
    color: #88f;
}

#game_count,
.worker_cost {
    color: #f88;
}

#game_bps,
.worker_bps {
    color: #8f8;
}

#game_total,
.worker_total {
    color: #ff8;
}

.worker_shop {
    gap: 8px;
    margin: 8px;
    width: 80px;
    height: 100%;
    display: grid;
    flex-shrink: 0;
    padding-block: 8px;
}

.worker_buy,
.worker_sell {
    display: grid;
    cursor: pointer;
    font-size: 20px;
    border-radius: 4px;
    place-items: center;
}

.worker_buy {
    background-color: #353;
}

.worker_buy:hover {
    background-color: #383;
}

.worker_sell {
    background-color: #533;
}

.worker_sell:hover {
    background-color: #833;
}

.gray,
.gray:hover {
    background-color: #333;
}

#game_brownie:active,
.worker_buy:active,
.worker_sell:active {
    transform: scale(95%);
}

.hidden {
    display: none;
}

.particle {
    position: absolute;
    border-radius: 4px;
    pointer-events: none;
    filter: contrast(1.2);
    animation-duration: 3s;
    animation-name: fade_out;
}

@keyframes fade_out {
    to {
        transform: scale(0) translateY(256px);
    }
}
