.hud {
    flex-grow: 1;
    justify-content: space-between;
    padding: 24px;
}

.hud__health {
    flex-direction: row;
    align-items: center;
}

.hud__health-label {
    color: rgb(220, 220, 220);
    font-size: 18px;
    margin-right: 8px;
}

.hud__health-track {
    width: 320px;
    height: 18px;
    background-color: rgba(0, 0, 0, 0.55);
    border-radius: 9px;
    overflow: hidden;
}

.hud__health-fill {
    width: 100%;
    height: 100%;
    background-color: rgb(214, 69, 65);
    transition-property: width;
    transition-duration: 0.15s;
    transition-timing-function: ease-out;
}

.hud__health-value {
    color: rgb(255, 255, 255);
    font-size: 18px;
    margin-left: 8px;
}

.hud__hotbar {
    flex-direction: row;
    align-self: center;
}

.hud__slot {
    width: 56px;
    height: 56px;
    margin: 4px;
    font-size: 20px;
}

/* The studio mirrors every :hover rule onto .ugx-state-hover so an offscreen preview can show it. */
.hud__slot:hover,
.hud__slot.ugx-state-hover {
    background-color: rgb(90, 90, 96);
}

.hud__warning {
    align-self: center;
    color: rgb(240, 190, 70);
    font-size: 22px;
    /* Driven by a binding on warningOpacity, so it must stay laid out rather than display: none. */
    opacity: 0;
}

.hud__pause {
    align-self: flex-end;
    width: 96px;
    height: 36px;
}
