:root {
    --bg: #223344;
    --txt: #FFFFFF;
}

#header {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: stretch;
    column-gap: 5px;
}

#footer {
    padding: 1em;
    text-align: center;
}

.game h1 {
    padding: 0 10px;
    height: 28px;
}

.game p {
    padding: 2px 10px 0 0;
    height: 20px;
    text-align: center;
}

.game button {
    height: 24px;
}

.player {
    display: flex;
    flex-flow: column wrap;
    justify-content: flex-start;
    align-items: stretch;
    background: var(--bg-queue);
}

.player .info {
    display: flex;
    flex-flow: row nowrap;
}

.player .name {
    display: flex;
    flex-flow: column nowrap;
    padding: 1px;
}

.player .level {
    display: inline-block;
    padding: 5px;
    width: 28px;
    height:28px;
    border-bottom-left-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: var(--bg-running);
}

.player .name > span {
    padding: 5px;
}

.resources {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: stretch;
    margin: 1px;
}

.res {
    position: relative;
    padding: 4px 5px 2px 22px;
    background-repeat: no-repeat;
    background-position: left;
    background-size: contain;
    font-size:12px;
    height: 20px;
}

#header .res {
    min-width: 80px;
}

@keyframes animarrive {
    from {
        transform: scale(3) translateY(30px);
    }
  
    to {
        transform: scale(1) translateY(0);
    }
}

.anim {
    animation: animarrive 1s 1 ease-in;
}

.res-up {
    color: green;
}

.res-down {
    color: darkgoldenrod;
}

.ws {
    display: flex;
    flex-flow: column wrap;
    justify-content: flex-start;
    align-items: stretch;
    /*min-height: 90px;*/
    min-width: 180px;
    flex-basis: 32%;
}

.ws, .ws > header {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.ws > header button:last-child {
    border-top-right-radius: 5px;
}

.ws > header {
    background: var(--bg-header-t);
    flex-wrap: nowrap;
}

.ws h3 {
    font-size: 1.1em;
    font-weight: bold;
}

.ws > div {
    padding: 2px 5px;
    display:flex;
    align-items: center;
    column-gap: 5px;
}

.ws button {
    padding: 1px 5px;
}

.level {
    /*content:"\26A1"; /* &#9889; */
}

#workshops > * {
    flex-basis: 48%;
}
