* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Comic Sans MS', sans-serif;
}

#game-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.ui-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-left: 2vw;
    padding-right: 2vw;
    padding-top: 1vh;
    padding-bottom: 1vh;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.ui-left,
.ui-right,
.ui-center {
    display: flex;
    align-items: center;
    gap: 1vw;
    pointer-events: auto;
}

.ui-center {
    gap: 2vw;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.ui-button {
    background-color: transparent;
    margin: 0;
}

.ui-item {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    font-size: 2vw;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
}

.icon {
    width: 5vw;
    height: 10vh;
    cursor: pointer;
    background-size: cover;
}

.icon.small {
    width: 3vw;
    height: 6vh;
}

/* HUD */
#hud {
    position: fixed;
    top: 2vh;
    right: 2vw;
    color: black;
    text-align: right;
    font-size: 2vw;
    font-weight: bold;
}

#hud div {
    margin-bottom: 1vh;
}

#overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Fading */
#fade {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
    z-index: 9999;
}