:root{
  --primary-color: #28496b;
  --second-color: #b49b85;
  --dark-color: #0f132e;
  --light-color: #eac195;
  --primary-dark-color: #19274e;
  --primary-color-inv: #886f53;
}



.ui {
  margin-left: 5vw;
  margin-top: 10vh;
  opacity: 0.8;
}

.ui div {
  margin-bottom: 0.8vh;
  font-size: 1em;
  color: #0f132e;
}

.ui>div {
  pointer-events: none;
}
.ui input, .ui select, .ui option, .ui canvas {
  pointer-events: auto;
}

.gman-slider-label, .gman-widget-label, .gman-checkbox-label {
  font-size: small;
  min-width: 10em;
  text-align: right;
}
.gman-checkbox-label {
  pointer-events: auto;
}
.gman-widget-value {
  float: right;
  font-size: small;
  order: 1;
  min-width: 3em;
}

.gman-slider-upper {
  height: 1.5em;
}
.gman-slider-outer, .gman-widget-outer {
  float: right;
  display: flex;
  align-items: center;
  height: 1.7em;
}
.gman-widget-slider, .gman-widget-checkbox, .gman-widget-select {
  opacity: 0.5;
  font-size: large;
  margin-left: .3em;
  margin-right: .3em;
}
.gman-widget-select {
  font-size: small;
}
.gman-widget-slider {
  min-width: 120px;
}


/* styles to apply if in an iframe */

html.iframe {
    height: 100vh;
}
body.iframe {
  width: 100vw;
  height: 100vh;
  margin: 0;
}

.iframe>.description {
  display: none;
}
.iframe .divcanvas {
  width: 100vw;
  height: 100vh;
}
.iframe canvas {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  border: none;
}

.iframe>#example {
  width: 100%;
  height: 100%;
}
.ui #rotation>canvas {
  background-color: rgba(255, 255, 255, 0.6);
}
.ui {
    width: 200px;
}

.buy {
  position: relative;
  width: 8vw;
  height: 5vh;
  border-radius: 20px;
  background: var(--second-color);
  color: black;
  text-align: center;
  top: 90vh;
  right: 42vw;
  padding-top: 1vh;
}

.buy:hover {
  background: var(--light-color)
}

.buy:active {
  background: var(--primary-color-inv);
  margin-top: 0.3vh;

}

@media (max-width: 390px) {
  pre {
    font-size: xx-small !important;
    max-width: 300px !important;
  }
  canvas {
    width: 100vw;
  }
  .iframe canvas {
    width: 100vw;
    height: 100vh;
    border: none;
  }
  .ui-hud {
    top: 120px;
  }
  .iframe .ui-hud {
      top: 10px;
  }
}

@media (prefers-color-scheme: dark) {
  .ui .ui-dark-support {
    color: white;
    text-shadow:
      -1px -1px 0 #000,
      1px -1px 0 #000,
      -1px 1px 0 #000,
        1px 1px 0 #000;
  }
}
