/* Default font */
@font-face {
    font-family: 'Gluten';
    src: url('../fonts/Gluten-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Gluten';
    src: url('../fonts/Gluten-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bayaya';
    src: url('../fonts/Bayaya-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'fontello';
    src: url('../fonts/fontello.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    line-height: 1.2;
    font-family: "Gluten", sans-serif;
    overflow: hidden; /* prevent scrolling, used to prevent scroll gesture handling on mobile browsers */
}

* {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    /*noinspection CssUnknownProperty*/
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    cursor: inherit;
}

/* For symbols like "\25b6  ";  "▶ " different font is necessary. We were able to find only this default capable to render these */
.unicode-font {
    font-family: "";
    cursor: default;
}

/* UI */

div.hud {
  position: absolute;
  top: 0;
  margin: auto;
  display: block;
  font-size: 20px;
}

#hud {
    pointer-events: none;
}

/*
 `#game-controls` needs to escape the `#ingameui` stacking context so it can stay above fade.
 Keep the rest of the in-game HUD below fade by leaving it inside `#ingameui`.
 */
#fade-layer {
    z-index: 20;
    pointer-events: none;
}

#ingameui {
    z-index: 10;
    pointer-events: auto;
}

#ingameui.paused {
    pointer-events: none;
}

#game-controls {
    pointer-events: auto;
}

#player-controls-container {
    z-index: 30;
    pointer-events: none;
}

#player-state-container {
    z-index: 1;
    pointer-events: none;
}

#menuui {
    z-index: 30;
    pointer-events: none;
}

.vertical-center-parent {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
}
.vertical-bottom-parent {
    display: table-cell;
    vertical-align: bottom;
    width: 100%;
    padding: 1em 4em;
}
.dark-background {
    background-image: linear-gradient(rgba(0, 0, 0, 0.0) 33%, rgba(0, 0, 0, 0.5));
}
.dark-background-top {
    background-image: linear-gradient(rgba(0, 0, 0, 0.25) 67%, rgba(0, 0, 0, 0.0));
}
.vertical-top-parent {
    display: table-row;
    vertical-align: top;
    width: 100%;
}

div.menu-background#loading-menu {
}

div.vertical-center {
    width: 100%;
    text-align: center;
}

div.vertical-bottom {
    width: 100%;
    text-align: center;
}
.vertical-top-parent > * {
    display: table-cell;
    text-align: center;
}

.debug div.vertical-center {
    background-color: rgba(0, 0, 0, 0.5);
}

.diag-text {
    font-family: "Inter", sans-serif;
    white-space: pre;
    text-align: right;
    margin-left: auto;
    background-color: rgba(0, 0, 0, 0.33);
    color: rgb(0, 255, 0);
    font-variant-numeric: tabular-nums; /* avoid frequent layout changes by changing numbers */
}

.scene-title {
    position: fixed;
    bottom: 50%;
    text-align: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0);
    color: rgb(255, 255, 255);
    font-size: 50px;
    font-family: "Bayaya", serif;
}

.scene-subtitle {
    position: fixed;
    top: 50%;
    text-align: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0);
    color: rgb(255, 255, 255);
    font-size: 28px;
    font-family: "Bayaya", serif;
}

.loco-background {
    background-color: rgba(102, 38, 0, 0.6);
}

.loco-text {
    white-space: pre;
    color: rgb(0, 255, 0);
}
.loco-left-text {
    white-space: pre;
    color: rgb(0, 200, 255);
}
.loco-right-text {
    white-space: pre;
    color: yellow;
}

#pos-text-show {
    width: 100%;
}

.state-text {
    background: rgba(0,0,0,0.3);
    color: rgb(255, 255, 100);
    white-space: pre;
    font-variant-numeric: tabular-nums;
}

.hud-header.outer {
    text-align: right;
    position: absolute;
    top: 0;
    z-index: 1;
    width: 100%;
}

.hud-header.inner {
    display: inline-block;
}


.hud-footer {
    width:100%;
    position: absolute;
    bottom: 0;
    z-index: 1;
}

.hud-footer.choice {
    width:100%;
}

.hud-footer .status {
    display: inline-block;
}

#choice-options li {
    list-style-type: none;
}
a.choice:before {
    font-family: Bayaya, serif;
    content: "\25cb";
    padding-right: 0.3em;
}
a.choice {
    color: white;
}

a.choice:hover {
    color: orange;
}


a.choice:active {
    color: red;
}

.sel-text-outer {
    position: fixed;
    height: 100%;
    width: 100%;
}

.sel-text-inner {
    font-family: "Inter", sans-serif;
    position: fixed;
    white-space: pre;
    background: rgba(0,0,0,0.3);
    color: rgb(255, 200, 100);
}

/*
note: many elements in .var-text-outer are placed on fixed position inside of
The element border enclosed only no-pos (static) elements
*/
.var-text-outer {
    position: fixed;
    border: 2px solid rgba(0,0,100,0.7);
    border-radius: 8px;
    background: rgba(255,255,255,0.75);
}

.var-text-outer.empty {
    border: none;
    background: none;
}

.stack { position: relative; display: inline-block; color: #fff;}
.stack.last { color: greenyellow; }

.stack-layer, .stack-top {
    position: absolute;
    left: 0; top: 0;
}

/* three layers under the text (shadow/outline) */
.stack-layer:nth-child(1) { color: rgba(0,0,0,0.7); margin:2px 0 0 2px; } /* bottom most shadow */
.stack-layer:nth-child(2) { color: rgba(0,0,0,0.5); margin:1px 0 0 1px; }
.stack-layer:nth-child(3) { color: rgba(0,0,0,0.3); margin:0.5px 0 0 0.5px; }

/* visible text */
.stack-top { position: relative; }

.count-down-outer {
    display: table;
    width: 100%;
    height: 40%;
    text-align: center; /* horizontal center */
}
.count-down-inner {
    display: table-cell;
    font-size: 200px;
    vertical-align: middle; /* vertical center */
}

.var-text-inner {
    position: fixed;
    white-space: pre;
    background: rgba(255,255,255,0.7);
    color: rgb(150, 10, 10);
    padding: 4px;
    border: 2px solid rgba(0,0,100,0.7);
    border-radius: 8px;
    font-variant-numeric: tabular-nums; /* avoid frequent layout changes by changing numbers */
}

.var-text-inner.quest.active {
    color: rgb(50, 150, 0);
}

.var-text-inner.quest.active.pending {
    color: rgb(100, 120, 100);
}

.var-text-inner.quest.done {
    color: rgba(100, 100, 100, 0.7);
}
.var-text-inner.quest.failed {
    color: rgb(255, 100, 50);
}

/* no-pos elements have a common background and border by .var-text-outer - disable layout provided by .var-text-inner */
.var-text-inner.no-pos {
    position: static;
    border: none;
    border-radius: unset;
    background: none;
}

.var-text-inner.cursor-hint {
    color: rgb(0, 100, 0);
    border-bottom-left-radius: 0;
}

#choice {
}
#choice-title {
    display: table;
    font-family: Gluten, serif;
    color: black;
    background: rgba(200,200,255,0.75);
    padding: 0.2em 0.4em;
    border: 2px solid rgba(0,0,100,0.7);
    border-radius: 8px;
}

#choice-options-panel {
    display: table;
    font-family: Gluten, serif;
    background: rgba(255,255,255,0.75);
    border: 2px solid rgba(0,0,100,0.7);
    border-radius: 8px;
}

#choice-options {
    margin: auto;
    padding-top: 0.2em;
    padding-left: 0.4em;
    padding-right: 0.3em;
    padding-bottom: 0.3em;
    color: rgb(0, 100, 0);
}

#choice-options a.choice {
    color: rgb(0, 100, 0);
}

#choice-options a.choice:hover {
    color: rgb(200, 150, 0);
}

.var-text-inner.destination-hint {
    color: rgb(50, 50, 200);
    border-bottom-left-radius: 0;
}

.var-text-inner.special-location-hint {
    color: rgb(200, 50, 50);
    border-bottom-left-radius: 0;
}

.var-text-inner.town-location-hint {
    color: rgb(50, 50, 50);
    border-bottom-left-radius: 0;
}

.var-text-inner.lake-location-hint {
    color: rgb(50, 100, 200);
    border-bottom-left-radius: 0;
}

.var-text-inner.hill-location-hint {
    color: rgb(100, 100, 20);
    border-bottom-left-radius: 0;
}

#virtual-stick-left-knob {
    position: absolute;
    width: 3em;
    height: 3em;
    left: 40%; /* (1 - (3 / 15)) * 50% */
    top: 40%;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

#virtual-stick-left {
    position: absolute;
    width: 15em;
    height: 15em;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

.virtual-stick-help-label {
    position: absolute;
    z-index: 101;
    width: 6em;
    margin-left: -3em;
    bottom: 16.6em;
    color: rgba(255, 255, 255, 0.88);
    font-family: "Inter", sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.virtual-stick-help-left {
    left: 7.5em;
}

.virtual-stick-help-right {
    right: 2.6em;
    margin-left: 0;
}

#virtual-stick-right {
    position: absolute;
    width: 10em;
    height: 10em;
    z-index: 100;
    right: 0.6em;
    bottom: 0.6em;
}

#virtual-stick-right:before {
    font-family: "bayaya", serif;
    content: "\25c0  \25b6";
    position: absolute;
    width: 100%;
    top: 50%;
    margin-top: -0.6em;
    text-align: center;
    font-size: 4em;
    color: rgba(0, 0, 0, 0.3);
    line-height: 1;
}

a.clickable.map-var-text-inner {
    position: absolute;
    white-space: pre;
    text-align: center;
    font-size: 14px;
}

a.clickable.map-var-icon-inner {
    position: absolute;
    font-size: 14px;
    margin: 2px;
}

a.clickable.map-var-icon-inner:hover {
    position: absolute;
    font-size: 14px;
    margin: 0px;
    border: 2px solid red;
}

svg.map { /* JS only */
    pointer-events: none;
}

.map-var-text-inner.special-location-hint:hover {
    color: rgb(256, 64, 64);
}

.map-var-text-inner.special-location-hint {
    color: rgb(128, 32, 32);
}

.map-var-text-inner.town-location-hint:hover {
    color: rgb(0, 0, 0);
}

.map-var-text-inner.town-location-hint {
    color: rgb(128, 128, 128);
}

.map-var-text-inner.lake-location-hint:hover {
    color: rgb(0, 128, 256);
}

.map-var-text-inner.lake-location-hint {
    color: rgb(0, 64, 128);
}

.map-var-text-inner.hill-location-hint:hover {
    color: rgb(200, 200, 40);
}

.map-var-text-inner.hill-location-hint {
    color: rgb(100, 100, 20);
}

.tooltip {
  white-space: nowrap;
  background-color: #ccc;
  color: #000;
  text-align: center;
  border-radius: 4px;
  padding: 5px;
  position: absolute;
  z-index: 5;
  bottom: 100%;
  left: 0%;
  margin-left: 0%;
}

/*
 this applies to Scala.js only - JVM does not use a canvas
 It is done so that inventory screen can be rendered behind the 3D scene
 Note: z-index is changed dynamically (see uiBehind3D)
*/

div#container {
    z-index: 1;
}
div#container canvas {
    /* inventory layer behind the 3D scene needs to get pointer events, therefore the 3D canvas needs to pass them through */
    pointer-events: none;
    overflow: hidden;
}

.whole-screen.splash {
}

.options {
    margin:0 auto;
    width: 100%;
    height: 100%;
    display: table;
    table-layout: fixed;
}

.whole-screen.options {
    background-color: transparent;
}

.whole-screen.inventory {
    background-color: #708540 !important; /* inventory is opaque - overwrite default full-screen background value */
    background-blend-mode: multiply;
    background-image: url("images/dark_wood_gray_256-c50.png");
    background-repeat: repeat;
    background-position: top 100px left 150px;
}

#menu-parent {
    /* By changing size of #menu-parent element we can resize all elements inside it which use em for sizing. */
    font-size: 20px;
}

#menu-parent table {
    font-size: 0.7em;
}
.menu {
    color: white;
    text-align: center;
    font-style: italic;
}

.left .menu {
    text-align: left;
    padding-left: 1.15em;
    margin-left: -0.6em;
    margin-right: 0.16em;
}

.debug * {
    font-family: "Inter", sans-serif;
}

.hud-footer {
    font-family: "Inter", sans-serif;
}
.debug .menu {
    color: #ffffa0;
    font-style: normal;
    font-size: 50px;
}

.debug div.menu {
    color: white;
    font-size: 20px;
}

.debug #dynamic-checkbox-inputs {
    font-size: small;
}

.debug #dynamic-value-inputs span {
    font-size: medium;
    color: white;
}

.debug #dynamic-checkbox-inputs td {
    text-align: center;
}

label {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.debug label {
    text-align: initial;
}

textarea#exec {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


div.menu-background {
    background-blend-mode: multiply;
    background-image: url("images/dark_wood_gray_256-c50.png");
    background-color: rgb(156, 84, 54);
    border: #4e2a1b 2px solid;
    border-radius: 5px;
}

div.menu-background.top h1 {
    margin-top: 22px;
}


div.menu-background.pause {
}
div.menu-background.settings {
    background-image: url("images/dark_wood_gray_256-c80.png");
    opacity: 0.95;
}

div.menu-background h1 {
    background-color: transparent;
}

h1,h2 {
    /* we do not want bold with Emilys Candy font, it does not look nice */
    font-weight: normal;
}

h1.menu#loading-menu-title {
    font-size: 2.5em;
    font-weight: normal;
    color: white;
    font-family: "Bayaya", serif;
    line-height: 1.0;
}


h1.menu img {
    width: 1em;
    height: 1em;
}
h1.menu#loading-menu-title * {
    vertical-align: middle;
}
h1.menu {
    font-size: 3em;
}
h1.menu#menu-title * {
    vertical-align: middle;
}
h2.menu {
    font-size: 2em;
}
.menu.item {
    font-size: 1em;
}
.menu.item.small {
    font-size: 0.75em;
}
.menu {
    font-family: "Bayaya", serif;
    margin: 0.5em;
}

#menuui.enable-input, #menuui .enable-input {
    pointer-events: auto;
}

/** enable map hints */
#menuui #dynamic-text-options {
    pointer-events: auto;
}

#menuui .menu {
    pointer-events: auto;
}

#menuui .menu-group {
    display: inline-block;
    pointer-events: auto;
    position: relative;
}
.menu.narrow-margin {
    margin: 0.25em;
}
.menu-group.menu-left {
    left: 30%;
}

.wide.header {
    height: 100%;
}
.header {
    display: table;
    width: 100%;
    font-family: "Bayaya", serif;
    font-size: 1.5em;
}

.header > * {
    display: table-cell;
}

.header * {
    vertical-align: middle;
    text-align: center;
}

.wide.header :first-child {
    text-align: left;
}
.wide.header :last-child {
    text-align: right;
}

.header img {
    height: 3em;
}

.header #menu-title {
    font-size: 3em;
}

.watermark-demo {
    position: absolute;
    font-size: 50px;
    font-family: "Bayaya", serif;
    font-style: italic;
    text-align: left;
    top: 30px;
    right: 30px;
    padding: 10px;
}

.watermark {
    background-color: #e0e0e0;
    opacity: 0.9;
    position: absolute;
    bottom: 1.5em;
    right: 1.5em;
    width: 5em;
    height: 5em;
    padding: 0.5em;
    border-radius: 50%;
    border: 0.1em solid black;
}
.menu#loading-menu-title {
    font-size: 2.5em;
}
p.menu.small {
    font-size: 1.5em;
}
p.menu.small.text {
    color: white;
    background-image: none;
    background-color: transparent;
    border: none;
    border-radius: unset;
}

p.menu.small.text.hint {
    padding: 0;
    margin: 0;
}


.menu.sep {
    height: 0.25em;
}

hr {
    border-color: #804200;
}

.menu-group .section {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    padding-top: 0;
}

.menu-group div.section {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    padding-top: 0;
}

p.menu.section {
    text-align: left;
    color: #ccc;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    padding-top: 0;
}

p.menu.small, span.menu.small {
    background-blend-mode: multiply;
    background-image: url("images/dark_wood_gray_256-c50.png");
    background-color: rgb(255, 131, 72);
    border: #804020 2px solid;
    border-radius: 5px;
    padding: 0 10px;
}

p.menu.small.primary {
    font-size: 3em;
    margin-bottom: 0;
    margin-top: 0;
}

span.menu.small {
    padding: 5px 10px;
}

span.menu.small,a.menu.small {
    margin: 0;
}

div.menu {
    color: #ffb25d;
}
p.menu {
    color: #ffb25d;
}

.debug p.menu {
    color: white;
    font-size: 20px;
}

.debug .value {
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 0, 0.4);
}
.button {
    display: inline;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 0, 0.4);

    background-color: rgba(50, 50, 50, 0.4);
}

a.selector {
    margin:0px 5px;
}

a.selector:after {
    font-family: "";
    content: "\25b6 ";  /* "▶ "; */
}
a.selector.full:before {
    font-family: "";
    content: "\25c0"; /* "◀"; */
}
a.leftArrow:before {
    font-family: "";
    content: "\25c0"; /* "◀"; */
}

a.menu, a.clickable {
    color: #ffb25d;
    text-decoration: none;
}

.debug a.menu, .debug a.clickable {
    font-size: 20px;
    font-style: normal;
}

p.menu.hoverable {
    padding: 0 10px;
}
p.menu.hoverable:hover, a.menu:hover, a.clickable:hover {
    color: #ffe070;
}
p.menu.hoverable.key-focus, a.menu.key-focus, a.clickable.key-focus {
    color: #ffe070;
}
a.menu.disabled, a.clickable.disabled {
    color: grey;
}
p.menu.hoverable:active, a.menu:active {
    color: red;
}

p.menu.small.hoverable > a.menu.small {
    display: block;
    width: 100%;
    padding: 0;
    cursor: pointer;
}
.debug div.menu a.simple:before, .debug div.menu a.simple:after {
    content: "";
}

.pause table {
    padding: 10px;
    margin: auto;
    width: 90%;
    align-self: center;
    border-collapse: collapse;
}

.pause table thead td {
    border: 2px solid #ffb25d;
    font-weight: bold;
}

.pause table tbody td {
    border: 2px solid #ffb25d;
}

.pause table tbody tr.highlight {
    color: #fff0d0;
    background-color: #804200;
    background-blend-mode: multiply;
}

.pause table thead td:first-child,
.pause table tbody td:first-child {
    width: 1.6em;
}

tr.medal td:first-child:before {
    content: "";
    display: block;
    width: 0.8em;
    height: 0.8em;
    margin: auto;
    border-radius: 50%;

    border: 1px solid rgba(200, 200, 200, 0.1);
    box-shadow:
            inset 2px 2px 3px rgba(255, 255, 255, 0.3),
            inset -3px -3px 4px rgba(0, 0, 0, 0.1),
            0 1px 2px rgba(0, 0, 0, 0.2);
}

tr.medal.gold td:first-child:before {
    background-color: #ffd54a;
}

tr.medal.silver td:first-child:before {
    background-color: #d5d9e0;
}

tr.medal.bronze td:first-child:before {
    background-color: #cd7f32;
}

/** By using @supports we check for Flying Saucer presence (JVM). Note: radial-gradient is in fact not tested, as Flying Saucer does not support @supports */
@supports (background: radial-gradient(circle, white, lightgray)) {
    tr.medal.gold td:first-child:before {
        background:
                radial-gradient(circle at 30% 25%, #fff6a8 10%, #ffd94a 22%, transparent 35%),
                linear-gradient(135deg, #fff1a0 0%, #e6a800 35%, #a06000 70%, #ffd45a 100%);
    }
    tr.medal.silver td:first-child:before {
        background:
                radial-gradient(circle at 30% 25%, #ffffff 10%, #e8edf2 22%, transparent 36%),
                linear-gradient(135deg, #ffffff 0%, #b8bec4 35%, #6d7378 70%, #e7ecef 100%);
    }
    tr.medal.bronze td:first-child:before {
        background:
                radial-gradient(circle at 30% 25%, #ffd29a 10%, #c9792d 24%, transparent 38%),
                linear-gradient(135deg, #f0a45a 0%, #a8561c 35%, #5b2d0c 72%, #d88942 100%);
    }
}

.pause table tbody tr.highlight td:nth-child(3) {
    font-weight: bold;
}

.share-name-dialog {
    min-width: min(32rem, 92vw);
    max-width: 92vw;
    padding-bottom: 0.8em;
}

input.menu-text-input {
    display: block;
    width: min(24rem, calc(100% - 2.4em));
    margin: 0.6em auto 1.1em;
    padding: 0.45em 0.65em;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    font-size: 1.1em;
    color: #2d140b;
    background: rgba(255, 245, 226, 0.95);
    border: #804020 2px solid;
    border-radius: 5px;
}

input.menu-text-input:focus {
    outline: 2px solid rgba(255, 224, 112, 0.9);
    outline-offset: 1px;
}

/* Conversation progress bar */
#conversation-progress {
    width: 100px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-left: 40px;
    display: inline-block;
    vertical-align: middle;
}

#conversation-progress-fill {
    height: 100%;
    background: #ffb25d;
    border-radius: 4px;
}

.whole-screen {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.menu-screen-background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: -5;
}

.loading-screen {
    position: absolute;
    text-align: left;
    height: 100%;
    display: table;
    table-layout: fixed;
    z-index: 2;
}

.progress {
    width: 100%;
    height: 1em;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
}

.progress-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 4px;
}

.loading-titles {
    width: 100%;
    text-align: center;
    font-family: "Bayaya", serif;
    background-color: #000000;
    z-index: 10;
}

.loading-titles h1 {
    font-size: 70px;
}

.loading-titles p {
    font-size: 35px;
}

.bootstrap-localization-pending {
    visibility: hidden;
}

.whole-screen.debug {
    display: table;
    table-layout: fixed;
    margin: 0px auto;
}

.whole-screen.fade {
    background-color: black;
    opacity: 0.0;
    display: none;
    z-index: 10; /* above canvas */
}

.whole-screen.fullscreen-image {
    object-fit: cover; /* cover is more flexible, even vertical (mobile) looks reasonable with it */
    pointer-events: none;
    background-color: black;
    z-index: 9; /* behind .whole-screen.fade */
}

body {
    color: #fff;
    background-color: #000;
    margin: 0;
    touch-action: none; /* no browser gestures - avoid events like scroll interrupting pointer events  */
    overscroll-behavior: none;
}

/* Splash Screen */

.splash {
    background-color: transparent;
    color: white;
    width: 100%;
}
.title {
    background-color: rgba(0,0,0,0.1);
    display: inline;
}
div.credit.group {
    clear: right;
    padding: 5px 20px;
    margin: 50px;
    cursor: pointer;
}

.credit.group {
    color: #fff0d0;
    background-blend-mode: multiply;
    background-image: url("images/dark_wood_gray_256-c50.png");
    background-color: #b05B32;
    border-radius: 5px;
}

.credit.group h2 {
    background-blend-mode: multiply;
    background-image: url("images/dark_wood_gray_256-c50.png");
    background-color: #d07040;
    clear: right;
    padding: 5px 20px;
    margin: 0 50px 20px 0;
}

.credit.group h3 {
    clear: right;
    padding: 5px 30px;
    margin: 10px 0 10px 0;
}

div.credit.entries {
    display: table;
    background-blend-mode: multiply;
    background-image: url("images/dark_wood_gray_256-c50.png");
    background-color: #d07040;
    opacity: 1.0;
    margin: 10px 50px 10px 30px;
}

div.credit.entry {
    display: table-row;
    clear: right;
    padding: 5px 50px;
}

div.credit span {
    vertical-align: middle;
}

.what {
    color: #ffe070;
    font-size: medium;
    padding: 0 5px;
    display: table-cell;
}
.who {
    color: #ffb25d;
    font-size: medium;
    padding: 5px;
    border-radius: 10px;
    display: table-cell;
}

.inventory.banner {
    background-color: rgba(10, 10, 10, 0.1);
    position: fixed;
    width: 100%;
    text-align: center;
    margin: 0;
}

.inventory.footer {
    bottom: 0;
}

.inventory.header {
    top: 0;
    font-weight: normal;
    font-size: 3em;
}

#money {
    text-align: left;
    margin: 2%;
    font-size: medium;
    color: white;
}

.inventory.content {
    position: absolute;
    left: 10px;
    top: 90px;
    right: 10px;
    bottom: 60px;
    text-align: left;
}

.inventory.background {
    position: absolute;
    border-radius: 15px;
    z-index: 2;
}
.inventory.background#inventory-player {
    background-color: #707880;
    background-image: url("images/dark_wood_gray_256-c80.png");
    background-repeat: repeat;
    background-blend-mode: multiply;
    /*background: linear-gradient(#404080, #303070);*/
}
.inventory.background#inventory-ground {
    background-color: #c08050;
    background-image: url("images/dark_wood_gray_256-c80.png");
    background-repeat: repeat;
    background-blend-mode: multiply;
    /*background: linear-gradient(#804020, #602010);*/
}
.inventory.background#inventory-container {
    background-color: #c0b8a0;
    background-image: url("images/dark_wood_gray_256-c80.png");
    background-repeat: repeat;
    background-blend-mode: multiply;
    /*background: linear-gradient(#807070, #805050);*/
}
.inventory.slot {
    position: absolute;
    background-image: url("images/dark_wood_gray_256-c80.png");
    background-repeat: repeat;
    background-blend-mode: multiply;
    background-size: 110%;
    border-radius: 10px;
    border: rgba(0,0,0,0.5) solid;
    background-color: #808080;
    z-index: 3;
}
.inventory.slot.selected {
    border: rgba(130,130,50,0.7) solid;
    opacity: 0.7;
    background-color: #ffffa0;
}
.inventory.slot.enabled {
    border: rgba(140,255,140,0.4) solid;
}
.inventory.slot.disabled {
    opacity: 0.5;
}

.footer {
    z-index: 99;
    color: yellow;
    background-color: rgba(10, 10, 10, 0.1);
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 2em;
}

#console {
    font-size: 20px;
}
#message {
    font-size: 20px;
}

.main-title {
    text-align: center;
    font-size: 15em;
    display: flex;
    justify-content: center;
    height: 100px;
    width: 100%;
}

.footer #credits {
    color: #ff8400;
}

div.options.top {
    height: 100%;
    width: 100%;
}

/* Customize the label (the container of checkbox) */
.checkbox {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.small .checkbox {
    margin-bottom: 18px;
}

.slider.label {
    background-color: #ff8400;
    display: inline-block;
    vertical-align: middle;
}

.slider.range {
    display: inline-block;
    width: 200px;
    height: 20px;
    border-radius: 10px;
    margin-left: 10px;
    background-color: white;
    position: relative;
    vertical-align: middle;
    white-space: nowrap;
}

.slider.range.hoverize, .slider.range:hover {
    background-color: #ccc;
}

.slider.part {
    width: 10px;
    height: 20px;
    background-color: white;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.0; /* invisible */
}

.slider.part.first {
    border-bottom-left-radius: 11px;
    border-top-left-radius: 11px;
    width: 15px;
}
.slider.part.last {
    border-bottom-right-radius: 11px;
    border-top-right-radius: 11px;
    width: 15px;
}
.slider.part.default {
    background-color: orange;
    opacity: 0.5;
}

.slider.part.hoverize, .slider.part:hover {
    opacity: 1.0;
}

.slider.thumb {
    width: 22px;
    height: 22px;
    border-radius: 11px;
    background-color: #2196F3;
    position: absolute;
    top: -1px;
    left: -1px;
    cursor: pointer;
}

.progressbar.range {
    display: inline-block;
    width: 10em;
    height: 1em;
    border-radius: 10px;
    margin-left: 10px;
    background-color: #ddd;
    position: relative;
    vertical-align: middle;
    overflow: hidden;
    contain: strict; /* make sure any changes to progress bar do not propagate outside */
}

.progressbar.value {
    height: 100%;
    border-radius: 10px;
    background-color: #2196F3;
    width: 0;
    /*transition: width 0.1s;*/ /* animations are suspected to be slow on mobile devices */
}


.debug .checkbox {
    padding-left: 30px;
    font-size: 20px;
}

/* Hide the browser's default checkbox */
.checkbox input {
  display: none;
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

.debug .checkmark {
    top: 5px;
    left: 5px;
    height: 15px;
    width: 15px;
}

.checkbox.hoverize, .checkbox:hover {
  color: orange;
}

.checkbox.disabled {
    color: grey;
    cursor: default;
}

/* On mouse-over, add a grey background color */
.checkbox.hoverize .checkmark, .checkbox:hover .checkmark {
    background-color: #ccc;
}

.checkbox.disabled.hoverize, .checkbox.disabled:hover {
    color: grey;
}

.checkbox.disabled .checkmark,
.checkbox.disabled.hoverize .checkmark,
.checkbox.disabled:hover .checkmark {
    background-color: #888;
}

/* When the checkbox is checked, add a blue background */
.checkbox.checked .checkmark {
    background-color: #2196F3;
}

.checkbox.checked.disabled .checkmark {
    background-color: #888;
}

/* Customize the label (the container of radio) */
.radio {
    display: inline-block;
    position: relative;
    padding: 0.2em 0.4em 0.2em 35px;
    margin: 0.5em;
    cursor: pointer;
    font-size: 0.9em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.debug .radio {
    padding: 5px 0.6em 5px 30px;
    font-size: 20px;
}

/* Hide the browser's default radio button */
.radio input {
    display: none;
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom radio button */
.rcheckmark {
    position: absolute;
    top: 0.25em;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 50%;
}

.debug .rcheckmark {
    top: 5px;
    left: 5px;
    height: 15px;
    width: 15px;
}

/* On mouse-over, add a grey background color */
.radio.hoverize .rcheckmark, .radio:hover .rcheckmark {
    background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.radio.checked .rcheckmark {
    background-color: #2196F3;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.rcheckmark:after, .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio.hoverize, .radio:hover {
    color: #ffe070;
}

.radio.disabled {
    color: #b09080;
    cursor: default;
}

.radio {
    /* Use the same dimensions as .radio.checked, but transparent. This makes sure layout stays the same. */
    background-color: rgba(0,0,0,0.0);
    border-radius: 2.0em;
    border: 1px solid rgba(0,0,0,0.0);
}

.radio.checked {
    color: #f8d070;
    background-color: rgba(0,0,0,0.25);
    border-color: rgba(0,0,0,0.4);
}

/* Show the indicator (dot/circle) when checked */
.radio.checked .rcheckmark:after, .checkbox.checked .checkmark:after {
    display: block;
}

.radio.disabled.hoverize, .radio.disabled:hover {
    color: #b09080;
}

.radio.disabled .rcheckmark,
.radio.disabled.hoverize .rcheckmark,
.radio.disabled:hover .rcheckmark {
    background-color: #888;
}

/* Style the indicator (dot/circle) */
.radio .rcheckmark:after {
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.debug .radio .rcheckmark:after {
    top: 4px;
    left: 4px;
    width: 7px;
    height: 7px;
}

.checkbox .checkmark:after {
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    background: white;
}

.debug .checkbox .checkmark:after {
    top: 4px;
    left: 4px;
    width: 7px;
    height: 7px;
}

/* Version display in menu-group upper left corner */
.version-number {
    color: #ffb25d;
    font-family: "Gluten", sans-serif;
    font-size: 14px;
    font-weight: normal;
    padding-bottom: 2px;
}

/* Icon menu */
#game-controls {
    text-align: right;
    margin-bottom: 5px;
}

#game-controls:empty {
    display: none;
    margin-bottom: 0;
}

.game-icon {
    font-family: 'fontello', sans-serif;
    font-size: 2em;
    width: 0.9em;
    margin-left: 10px;
    cursor: pointer;
    color: white;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
}

.game-icon.disabled {
    color: rgba(128, 128, 128, 0.5);
    cursor: default;
}

#icon-fullscreen.hidden {
    opacity: 0.0;
}

.hidden {
    display: none;
}
