* {
    font-family: "Play", sans-serif;
    font-weight: 400;
    font-style: normal;
}

html, body {
    background-color: darkslategrey;
    margin: 0;
    height: 100%;
    overflow: hidden;
    text-align: center;
}

a-scene {
    display: inline-block;
    height: 100vh;
    width: 100vw;
}

#enter-name {
    position: fixed;
    top: 10px;
    left: 10px;
    user-select: none;
    padding: 20px;
    text-align: left;
    font-size: 20pt;
}

#enter-name > input {
    font-size: 20pt;
    border: 20px;
    border-radius: 5px;
    padding: 5px;
}

#hud-container {
    position: fixed;
    width: 100%;
    top: 90%;
    padding: 0;
}

#healthbar-container {
    display: inline-block;
    width: 60%;
    height: 40px;
}

#healthbar-container > div {
    height: 40px;
    position: relative;
    border-radius: 5px;
}

#healthbar-base {
    background-color: rgba(0, 0, 0, 50%);
    height: 40px;
    position: relative;
    top: 0;
}

#healthbar-trailing {
    background-color: #A80000;
    top: -40px;
    transition: 1s;
}

#healthbar {
    background-color: #16a800;
    top: -80px;
    transition: 0.25s;
}

#information {
    display: flex;
    width: 60%;
    height: 40px;
    position: relative;
    top: -90px;
    left: 20%;
    user-select: none;
    font-size: 25pt;
    color: white;
}

#information > div {
    flex: 1;
    padding: 0 10px;
}

#health-value {
    text-align: left;
}

#ammo-value {
    text-align: right;
}

#ammo-bar-container {
    flex: 1;
}

#ammo-bar-container > div {
    height: 30px;
    position: relative;
    border-radius: 5px;
}

#ammo-bar-base {
    background-color: rgba(0, 0, 0, 50%);
    top: 5px;
    width: 100%;
}

#ammo-bar-count {
    background-color: white;
    top: -25px;
    transition: 0.5s;
}