:root {
    --background-back: rgb(239, 239, 239);
    --background-highlight: rgb(193, 142, 14);
    --background-deephighlight: rgb(117, 87, 10);
    --canvas-background: rgb(0, 0, 0);
    --skip-color: rgb(146, 148, 147);

    --standalone-margin: 50px;
    --loading-bar-size: 256px;
    --video-play-button-size: 128px;
    --controls-size: 38px;
    --controls-border: 4px;
    --skip-button-padding: 6px;

    --alert-foreground: rgb(138,109,59);
    --alert-background: rgb(252,248,227);
    --alert-border: rgb(250,235,204);
    --alert-margin: 10px;
}

body {
    background-color: #000;
    margin: 0%;
}

.common-background {
    position: relative;
    padding: 0%;
    margin: 0%;
    width: 100vw;
    height: 100vh;
    background-size: 5em 5em;
    overflow: hidden;
}

.common-background::before {
    content: "";
    position: absolute;
    width: 1000vw;
    height: 1000vh;
    top: -450%;
    left: -450%;
    z-index: -1;
    background: url(background.png) 0 0 repeat;
    transform: rotate(30deg);
}

#common-container { 
    position: relative;
}

#common-container.standalone { 
    outline: 4px solid var(--background-highlight);
}

#common-container.embedded { 
    width: 100vw;
    height: 100vh;
    margin: 0px;
    outline: none;
}


#version-zone {
    position: absolute;
    left: 2px;
    bottom: 2px;
    height: 16px;
    width: 40px;
}

#version-number {
    font-size: 8pt;
    color: var(--background-deephighlight);
}

.inner-container {
    width: 100%;
    height: 100%;
}

#mobile-container {
    background-color: var(--background-deephighlight);
}

#single-pixel-top-alert {
    height: 1px;
}

#alert-warning {
    color: var(--alert-foreground);
    background-color: var(--alert-background);
    border-color: var(--alert-border);
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 4px;
    margin-left: var(--alert-margin);
    margin-right: var(--alert-margin);
    margin-bottom: var(--alert-margin);
    margin-top: calc(var(--alert-margin) - 1px);
}

#game-container {
    background-color: black;
}

#game-canvas { 
    position: absolute; 
    left: 0%; 
    top: 0%; 
    width: 100%;
    height: 100%;
    background: var(--canvas-background);
}

#game-loading-bar { 
    position: absolute; 
    left: 0%; 
    right: 0%; 
    bottom: 0%;
    top: 97%; 
}

#game-loading-bar-progress { 
    position: absolute;
    width: 0%; 
    height: 100%;
    background-color: var(--background-highlight);
}

#game-fullscreen-button {
    display: none;
}

.fullscreen-button { 
    position: absolute;
    bottom: 0;
    left: 0;
    width: var(--controls-size); 
    height: var(--controls-size); 
    opacity: 0.5;
}

.fullscreen-button:hover {
    opacity: 1.0;
}

.fullscreen-button-on {
    background: url('fullscreen-on.png') no-repeat center;
}

.fullscreen-button-off {
    background: url('fullscreen-off.png') no-repeat center;
}

#video-play-button { 
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--video-play-button-size); 
    height: var(--video-play-button-size); 
    background: url('video-play.png') no-repeat center;
    opacity: 0.5;
    transform: translate(-50%, -50%); 
}

#video-play-button:hover {
    opacity: 1.0;
}

#game-play-button { 
    position: absolute;
    left: 60%;
    top: 25%;
    right: 0%;
    bottom: 45%; 
    background: none;
    cursor: pointer;
    display: none;
}

#starting-video {
    position: absolute; 
    left: 0%; 
    top: 0%; 
    width: 100%;
    height: 100%;
}

#video-music-button {
    position: absolute;
    bottom: 0;
    left: var(--controls-size);
    width: var(--controls-size); 
    height: var(--controls-size); 
    opacity: 0.5;
}

#video-music-button:hover {
    opacity: 1.0;
}

.video-music-button-on {
    background: url('music-on.png') no-repeat center;
}

.video-music-button-off {
    background: url('music-off.png') no-repeat center;
}

#video-skip-button {
    position: absolute;
    bottom: var(--controls-border); 
    right: var(--controls-border); 
    width: calc(2.5*var(--controls-size) - 2*var(--skip-button-padding)); 
    height: calc(var(--controls-size) - (2*var(--controls-border))  - 2*var(--skip-button-padding)); 
    background-color: var(--skip-color);
    border: 1px;
    border-color: black;
    opacity: 0.5;
    text-align: center;
    margin:auto;
}

#video-skip-button:hover {
    opacity: 1.0;
}

#video-skip-text {
    font-weight: bold;
}
