@font-face {
    font-family: freepixel;
    src: url("FreePixel.ttf");
}


html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    background-color: black;
}

#game {
    display: block;
}


/** Stats **/

#stats {
    position: absolute;
    left: 16px;
    top: 16px;

    padding: 8px;
    border-radius: 4px;

    background: rgba(100, 100, 100, 0.5);
    backdrop-filter: blur(16px);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.stat-bar {
    width: 96px;
    height: 8px;

    padding: 4px;

    background: rgba(100, 100, 100, 0.5);
}

.stat-bar-fill {
    background-color: #f36565;

    height: 100%;
}


/** Slots/Items **/

#slots {
    position: absolute;
    right: 16px;
    bottom: 16px;

    padding: 8px 0 8px 8px;
    border-radius: 8px;

    background: rgba(100, 100, 100, 0.5);
    backdrop-filter: blur(16px);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.slots-inner {
    display: flex;
    flex-direction: row;
}

.slot {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin-right: 8px;
    padding: 4px;

    border-radius: 4px;

    background: rgba(0, 0, 0, 0.2);

    cursor: pointer;
    user-select: none;
}

.slot:hover {
    background: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
}

.slot img {
    width: 100%;
}

#hunting-rifle img {
    transform: rotate(-45deg);
}

.slot-current {
    outline: 3px solid #cc5656;
    box-shadow: inset 0 0 6px #cc5656;
}

.slot-count {
    position: absolute;
    bottom: 4px;
    right: 4px;

    margin: 0;

    font-family: freepixel, sans-serif;
    text-align: right;
    color: white;
}


/** Interaction **/

#interact {
    display: none;

    position: absolute;
    left: 50%;
    top: 65%;
    transform: translate(-50%, -50%);

    padding: 8px;

    border-radius: 8px;

    background: rgba(100, 100, 100, 0.5);
    backdrop-filter: blur(16px);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);

    font-family: freepixel, sans-serif;
    font-weight: bold;
    color: white;

    pointer-events: none;
    user-select: none;
}

#interact-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#interact p {
    margin: 0;
}

#interact-key {
    margin-right: 8px;
    padding: 10px 16px;

    border-radius: 4px;

    background: rgba(0, 0, 0, 0.2);
    outline: 1px solid white;

    font-size: 24px;
}


/** Broadcast **/

#broadcast {
    display: none;

    position: absolute;
    left: 50%;
    top: 64px;
    transform: translateX(-50%);

    padding: 8px;

    border-radius: 8px;

    background: rgba(100, 100, 100, 0.5);
    backdrop-filter: blur(16px);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);

    pointer-events: none;
    user-select: none;
}

#broadcast-text {
    margin: 16px;

    font-family: freepixel, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: white;
}


/** Splash Images **/

.ted-splash {
    display: none;

    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    pointer-events: none;
    user-select: none;
}