/*
  npm install -g sass
  sass --version
  sass assets\scss\app.scss assets\css\app.css

  OR

    in package.json:
    {
        "requires": true,
        "devDependencies": {
            "sass": "^1.69.0"
        },
        "scripts": {
            "sass": "sass assets/scss/app.scss assets/css/app.css"
        },
        "dependencies": {}
    }

    npm install (one time only)

    npm run sass
*/
/*
  npm install -g sass
  sass --version
  sass assets\css\app.scss assets\css\app.css

  OR

    in package.json:
    {
        "requires": true,
        "devDependencies": {
            "sass": "^1.69.0"
        },
        "scripts": {
            "sass": "sass assets/scss/app.scss assets/css/app.css"
        },
        "dependencies": {}
    }

    npm install (one time only)

    npm run sass
*/
body.fullscreen {
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background-color: black;
}

body.fullscreen .aspect-responsive {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  margin: auto auto;
}

.aspect-container {
  overflow: hidden;
  position: relative;
  height: 0;
}

body.fullscreen .aspect-container {
  position: absolute;
  width: 100%;
  margin: 0;
  top: 50dvh;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

/* landscape */
body.fullscreen .aspect-1-1 {
  max-width: 100dvh;
}

.aspect-1-1 .aspect-container {
  padding-bottom: 100%;
}

body.fullscreen .aspect-4-3 {
  max-width: 134dvh;
}

.aspect-4-3 .aspect-container {
  padding-bottom: 75%;
}

body.fullscreen .aspect-3-2 {
  max-width: 150dvh;
}

.aspect-3-2 .aspect-container {
  padding-bottom: 66.67%;
}

body.fullscreen .aspect-16-10 {
  max-width: 160dvh;
}

.aspect-16-10 .aspect-container {
  padding-bottom: 62.5%;
}

body.fullscreen .aspect-5-3 {
  max-width: 167dvh;
}

.aspect-5-3 .aspect-container {
  padding-bottom: 60%;
}

body.fullscreen .aspect-16-9 {
  max-width: 178dvh;
}

.aspect-16-9 .aspect-container {
  padding-bottom: 56.25%;
}

body.fullscreen .aspect-2-1 {
  max-width: 200dvh;
}

.aspect-2-1 .aspect-container {
  padding-bottom: 50%;
}

body.fullscreen .aspect-19_5-9 {
  max-width: 217dvh;
}

.aspect-19_5-9 .aspect-container {
  padding-bottom: 46.15%;
}

body.fullscreen .aspect-21-9 {
  max-width: 234dvh;
}

.aspect-21-9 .aspect-container {
  padding-bottom: 42.86%;
}

/* portrait */
body.fullscreen .aspect-9-16 {
  max-width: 56dvh;
}

.aspect-9-16 .aspect-container {
  padding-bottom: 178%;
}

body.fullscreen .aspect-2-3 {
  max-width: 67dvh;
}

.aspect-2-3 .aspect-container {
  padding-bottom: 150%;
}

body.fullscreen .aspect-3-4 {
  max-width: 75dvh;
}

.aspect-3-4 .aspect-container {
  padding-bottom: 133%;
}

.aspect-container canvas {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}

canvas {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #333;
  touch-action: none !important;
  -ms-touch-action: none !important;
}

/* this is handled by picking system

.touchable {
  touch-action: none;
  -ms-touch-action: none;
}

*/
/* orientation prompt */
#orientation-prompt-landscape, #orientation-prompt-portrait {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: rgb(51, 51, 51);
  display: none;
}

#orientation-prompt-landscape::before, #orientation-prompt-portrait::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("./images/orientation-prompt.png") no-repeat;
  background-size: 50% auto;
  background-position: center;
}

@media (orientation: portrait) {
  #orientation-prompt-landscape {
    display: block;
  }
  /*
  #orientation-prompt-landscape::before {


    transform-origin: center;
    transform: rotate(90deg) translateX(-40px);

  }
  */
}
@media (orientation: landscape) {
  #orientation-prompt-portrait {
    display: block;
  }
}
button {
  background-color: #fff;
  color: #333;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
  margin: 3px 3px;
}

@media (-webkit-min-device-pixel-ratio: 2) and (min-width: 1280px) {
  button {
    min-width: 60px;
    min-height: 60px;
  }
}
button:hover {
  background-color: #ddd;
}

button:active {
  background-color: #888;
  color: #fff;
}

button.action {
  background-color: #3366cc;
  color: #ccc;
}

button.cancel {
  background-color: #cc3333;
  color: #ccc;
}

.dd-menu {
  position: relative;
  display: inline-block;
}

.dd-menu-btn {
  background-color: #000;
  color: #ddd;
}

.dd-menu-btn:hover {
  color: #ddd;
}

.dd-menu-content {
  position: absolute;
  display: none;
  z-index: 1;
  background-color: #000;
  color: #ddd;
}

.dd-menu-content a {
  display: block;
  color: #ddd;
  text-decoration: none;
}

.dd-menu-content a:hover {
  background-color: #ddd;
  color: #000;
}

.dd-menu:hover .dd-menu-content {
  display: block;
}

/* Version */
#VERSION {
  position: absolute;
  right: 0;
  top: 0;
  padding: 0.5em;
  background-color: rgba(51, 51, 51, 0.5);
  font-family: Monospace;
  color: white;
}

/* info */
#info-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
}

#info-box div {
  display: inline-block;
  margin: 0 auto;
  padding: 5px 8px;
  background-color: #444;
  color: #ccc;
}

/* back */
#back {
  position: absolute;
  left: 0;
  top: 50%;
  font-size: 1.5em;
  padding: 0.25em;
  color: white;
  background-color: rgba(51, 51, 51, 0.5);
}

#back a {
  text-decoration: none;
  color: inherit;
}

.progress-bar-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: #333;
  opacity: 0.8;
  display: none; /* flex */
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#progress-bar {
  width: 50%;
  margin-top: 0.5%;
  height: 2%;
  -webkit-appearance: none;
  appearance: none;
}

::-webkit-progress-inner-element {
  border: none;
  border-radius: 5px;
}

::-webkit-progress-bar {
  background-color: white;
}

::-webkit-progress-value {
  background-color: rgb(51, 102, 204);
}

.progress-bar-container label {
  color: white;
  font-size: 2rem;
}

/*

#loading-overlay {
  position:absolute;
  width:100%;
  height:100%;
  left:0;top:0;
  background-color: #333;
  z-index:1000;
}

@-webkit-keyframes spin {
  from {-webkit-transform:rotate(0deg);}
  to {-webkit-transform:rotate(360deg);}
}

@keyframes spin {
  from {transform:rotate(0deg);}
  to {transform:rotate(360deg);}
}

#loading-overlay::after {
  content:'';
  display:block;
  position:absolute;
  left:48%;top:40%;
  width:40px;height:40px;
  border-style:solid;
  border-color:white;
  border-top-color:transparent;
  border-width: 4px;
  border-radius:50%;
  -webkit-animation: spin .8s linear infinite;
  animation: spin .8s linear infinite;
}

*/
@font-face {
  font-family: EncodeSansSC_SemiExpanded_Medium;
  src: url(EncodeSansSC_SemiExpanded-Medium.ttf);
}
body {
  margin: 0 auto;
  padding: 0;
  background-color: #111;
  color: rgb(200, 200, 200);
  font-family: "Source Sans Pro", Helvetica, sans-serif;
}

a, a:visited {
  color: rgb(51, 102, 204); /* yellowgreen; */
}

header {
  width: 100%;
  margin: 0 auto;
  padding: 50px 0;
  text-align: center;
}

header img {
  width: 100%;
  max-width: 80vh;
  filter: brightness(0.8);
}

header h1 {
  font-family: EncodeSansSC_SemiExpanded_Medium;
  font-weight: 400;
  font-size: 4em;
  margin-bottom: 0;
}

content {
  display: block;
  width: 100%;
  margin: 0px auto;
}

.description-container {
  max-width: 1008px;
  margin: 20px auto;
}

.demo-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

/* https://css-tricks.com/snippets/css/a-guide-to-flexbox/ */
demo {
  position: relative;
  flex-grow: 1;
  flex-shrink: 1;
  display: block;
  height: calc(40vh - 2em);
  min-height: 20em;
  width: 25%;
}

demo a {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

demo h2 {
  position: absolute;
  left: 2em;
  top: 0;
  z-index: 1;
  font-family: EncodeSansSC_SemiExpanded_Medium;
  font-weight: 400;
  font-size: 1.25em;
  display: none;
}

demo:hover h2 {
  display: block;
}

@media screen and (max-width: 1680px) {
  .description-container {
    max-width: 60%;
    margin: 20px auto;
  }
  demo {
    height: calc(40vh - 2em);
    min-height: 20em;
    width: 33.333333%;
  }
}
@media screen and (max-width: 1280px) {
  .description-container {
    max-width: 60%;
    margin: 20px auto;
  }
  demo {
    height: calc(40vh - 2em);
    min-height: 20em;
    width: 50%;
  }
}
@media screen and (max-width: 980px) {
  .description-container {
    max-width: 80%;
    margin: 20px auto;
  }
  demo {
    height: calc(28.57143vh - 1.33333em);
    min-height: 18em;
    width: 50%;
  }
}
@media screen and (max-width: 480px) {
  .description-container {
    max-width: 100%;
    margin: 20px;
  }
  demo {
    height: calc(40vh - 2em);
    min-height: 18em;
    width: 100%;
  }
}
.lil-gui.autoPlace {
  right: 0px;
}

#FPS {
  position: absolute;
  left: 0px;
  top: 50px;
  padding: 0.5em;
  background-color: rgba(51, 51, 51, 0.5);
  font-family: Monospace;
  color: white;
}

@media screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 980px) {
  #FPS {
    top: 75px;
  }
}
:root {
  --controller-border: 50px;
  --controller-pad-size: 128px;
  --controller-button-size: calc(var(--controller-pad-size) * 0.40);
  --controller-button-offset: calc(var(--controller-pad-size) * 0.5 - var(--controller-button-size) * 0.5);
}

@media screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 980px) {
  :root {
    --controller-pad-size: 192px;
    --controller-button-size: calc(var(--controller-pad-size) * 0.40);
    --controller-button-offset: calc(var(--controller-pad-size) * 0.5 - var(--controller-button-size) * 0.5);
  }
}
@media screen and (max-width: 980px) {
  :root {
    --controller-border: 10px;
  }
}
.controller-left {
  left: var(--controller-border);
  bottom: var(--controller-border);
}

.controller-right {
  right: var(--controller-border);
  bottom: var(--controller-border);
}

.controller-pad {
  z-index: 1;
  width: var(--controller-pad-size);
  height: var(--controller-pad-size);
  position: absolute;
}

.controller-stick-base {
  opacity: 0.25;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.arrow-up {
  width: 0;
  height: 0;
  position: absolute;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 15px solid black;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.arrow-down {
  width: 0;
  height: 0;
  position: absolute;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid black;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.arrow-left {
  width: 0;
  height: 0;
  position: absolute;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 15px solid black;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.arrow-right {
  width: 0;
  height: 0;
  position: absolute;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid black;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.controller-stick {
  position: absolute;
  left: calc(var(--controller-pad-size) * 0);
  top: calc(var(--controller-pad-size) * 0);
  width: calc(var(--controller-pad-size) * 1);
  height: calc(var(--controller-pad-size) * 1);
  background-color: #000; /* rgb(51, 102, 204);*/
  border-radius: 50%;
  opacity: 0;
}

.controller-stick.active {
  opacity: 0.7;
}

.controller-button {
  width: var(--controller-button-size);
  height: var(--controller-button-size);
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 0.25;
  border-radius: 50%;
  position: absolute;
  color: black;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: center; /* vertical centering */
}

.controller-button.active {
  color: #fff;
  background-color: #000;
}

.button-top {
  top: 0;
  left: var(--controller-button-offset);
}

.button-bottom {
  bottom: 0;
  left: var(--controller-button-offset);
}

.button-left {
  top: var(--controller-button-offset);
  left: 0;
}

.button-right {
  top: var(--controller-button-offset);
  right: 0;
}

body {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

* {
  touch-action: none !important;
  -ms-touch-action: none !important;
}

#brand img {
  position: absolute;
  left: 0;
  top: 0;
  padding: 5px;
  width: 50px;
  border-radius: 1px;
  border: 0px solid #aaa;
  /*background-color: #000;*/
  opacity: 1;
  z-index: 1;
  filter: brightness(1);
}

@media screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 980px) {
  #brand img {
    width: 75px;
  }
}
#brand:hover img {
  border: 0px solid #aaa;
  filter: brightness(2);
  opacity: 1;
}

/*# sourceMappingURL=app.css.map */
