
.dark {
   --background: #151315;
   --colour: #f9f9df;
   --alt-colour: #2b2b2b;
}

.light {
  --background: #f0f1ea;
  --colour: #000;
  --alt-colour: #e1e1e1;
}

.theme-red {
  --title-bg: rgb(255, 0, 40);
  --light-bg: #000000;
}

.theme-blue {
  --title-bg: #6a78a5;
  --light-bg: #abdbe3;
}

.theme-orange {
  --title-bg: #caa53f;
  --light-bg: #abdbe3;
}

#orientation {
  display: none;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  text-align: center;
}

@media screen and (pointer: coarse) and (orientation: landscape) and (max-height: 599px) {
  #orientation {
    display: block;
    font-family: var(--font);
    font-size: var( --font-size-biggest);
    z-index: 1001;
    background: var(--background);
    color: var(
    --colour);
    padding-top: 15px;
  }
}

html,
body {
  --font: 'Jost', monospace;
  --font-size: 1em;
  --font-size-big: 1.1em;
  --font-size-bigger: 1.2em;
  --font-size-biggest: 1.3em;
  --font-size-small: 0.9em;
  --font-size-smaller: 0.8em;
  --font-size-smallest: 0.6em;
  --font-w-l: 300;
  --font-w-m: 400;
  --font-w-h: 500;
  --offwhite: #ffffea;
  --alert: #e42e2e;
  --ok: #32bd52;
  --group-a-background: #7ada25;
  --group-b-background: #dbe239;
  --group-c-background: #dba934;
  --border-standard: #ccc;
  --border-strong: #737373;
  --tab-bg: #fff;
  --tab-selected-bg: #e2e2e2;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--colour);
  background: #ccc;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

select,
input {
  font-family: var(--font);
  font-size: var(--font-size);
}

.center {
  text-align: center;
}

.left {
  text-align: left;
}

.right {
  text-align: right;
}

#balance_value {
  float: right;
  z-index: 1000;
  position: relative;
  margin: 0 2px 1px 0;
}

#balance_value:hover {
  opacity: 0.6;
  cursor: pointer;
}

#mode, #balance_toggle {
  height: 21px;
  float: right;
  margin: 2px 2px 0 5px;
  cursor: pointer;
  position: relative;
  z-index: 1000;
}

#balance_toggle {
   opacity: 0.9;
}

#mode:hover, #balance_toggle:hover {
  opacity: 0.7;
}


#app {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: var(--font-size);
  height: calc(100% - 0px);
  width: calc(100% - 50px);
  max-width: 800px;
  margin: 0px auto;
  min-width: 355px;
  box-sizing: border-box;
  padding: 0px;
  position: relative;
  background: var(--background);
}

#app .panel_container {
  display: flex;
  flex-direction: column;
  font-size: var(--font-size);
  flex: 1;
  max-height: 100%;
  width: 100%;
  background: var(--background);
}

#app #app_title {
  text-transform: uppercase;
  background: var(--title-bg);
  color: var(--offwhite);
  font-weight: var(--font-w-h);
  font-size: var(--font-size-big);
  margin: 0px 1px 0 1px;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
  /* position: relative; */
}

#app #app_title #env {
  display: none
}

#app #app_title .title {
  position: absolute;
  width: 100%;
  text-align: center;
}

#app .cost {
  text-align: center;
  color: var(--colour);
  /* border: 1px solid var(--colour); */
  margin: 2px 4px;
  border-radius: 2px;
  /* background: var(--background); */
  backdrop-filter: contrast(0.8);
}

#race_controls .bet_type_select.selected, #race_controls .bet_type_select:not([disabled]):hover {
  background-color: var(--title-bg);
  color: #fff;
  cursor: pointer;
}

#app .waiting {
  padding: 42px;
  text-align: center;
  flex: 1;
  /* display: none; */
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: var(--background);
  z-index: 1000;
}

#app .waiting img {
  width: 50px;
  height: 50px;
  border: 3px solid var(--colour);
  border-radius: 43px;
  padding: 4px;
  /* display: none; */
}

#app .flex_filler {
  flex: 1;
}

table tr th {
  font-weight: var(--font-w-m);
  text-align: left;
}

table tr td[bet_type] {
  text-align: center
}

@keyframes blink {
  0% {
    opacity: 1; 
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.blinking {
  animation: blink 0.5s step-start infinite;
}

.big {
  display: block;
}
.small {
  display: none;
}

@media only screen and (max-width: 460px) {

  .big {
    display: none;
  }
  .small {
    display: block;
  }

  #app {
    margin: 0;
    width: calc(100% - 0px);
  }

  #app #app_title .title {
    text-align: left;
    margin: 0 0 0 5px;
  }

}