html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
html, body {
    height: 100%;
}
canvas {
    display: block;
}
body {
    margin: 0;
}

#game-container {
    width: 100%;
    height: 100%;
}
#game-canvas {
    width: 100%;
    height: 100%;
    background: #FFFFFF;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#loading-cover-inner {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#game-logo {
    width: 100%;
    height: 45%;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}
#game-logo img {
    max-height: 46%;
    position: absolute;
    top: -42%;
    left: 50%;
    transform: translate(-50%, 0);
}

#progress-bar {
    width: 32.7vh;
    width: 32.7dvh;
    height: 4.45vh;
    height: 4.45dvh;
    padding: 0.6vh;
    padding: 0.6dvh;
    box-sizing: border-box;
    border-radius: 40px;
    position: absolute;
    bottom: 18.5%;
    font: clamp(.625em, 7.5vw, 5em) monospace;
    background: #ff1b6b;
    box-shadow: inset 0 4px 4px 0px rgb(255 255 255 / 40%);
}
#progress-bar-space {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0.3vh 0.2vh 0.15vh 0.2vh;
    padding: 0.3dvh 0.2dvh 0.15dvh 0.2dvh;
    border: solid 0.2vh #ff1b6b;
    border: solid 0.2dvh #ff1b6b;
    border-bottom: solid 0.2vh #f56799;
    border-bottom: solid 0.2dvh #f56799;
    border-radius: 40px;
    background: linear-gradient(#550042, #801156);
}
#progress-bar-fill {
    width: 0;
    min-width: 3%;
    height: 100%;
    position: relative;
    border-radius: 40px 0 0 40px;
    transition: width 2s cubic-bezier(0, 0, 0.2, 1);
    background-image: linear-gradient(to bottom, #ffff4e, #ff8f00);
}

#fullscreen-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center;
    background-size: contain;
}

.play-button {
    cursor: pointer;
    color: rgb(130, 23, 24);
    font-family: Helvetica, sans-serif;
    font-weight: bold;
    font-size: 150%;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
    width: 90%;
    min-width: 120px;
    max-width: 300px;
    height: 50%;
    min-height: 40px;
    max-height: 75px;
    margin: 0;
    background-color: rgb(244, 180, 22);
    border: 0;
    border-radius: 5px;
    box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.22);
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: play-button-pulse 4s ease infinite;
}
@keyframes play-button-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    70% {
        transform: translate(-50%, -50%) scale(1);
    }
    85% {
        transform: translate(-50%, -50%) scale(1.075);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}
