html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

canvas {
  margin: 0;
}

.spinSelected {
  background-color: #e68a00;
}

button:focus {
  outline: 0;
}

select:focus {
  outline: 0;
}

.selectmenu {
  position: fixed;
  left: 0;
  color: #e68a00;
  border: none;
  width: 15vw;
  height: 4vh;
  border-radius: 2px;
  cursor: pointer;
  min-width: 200px;
  min-height: 20px;
  background: rgba(60, 63, 66, 0.75);
}

#selectmenu {
  position: fixed;
  left: 0;
  color: #e68a00;
  width: 15vw;
  height: 4vh;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  min-width: 200px;
  min-height: 20px;
  background: rgba(60, 63, 66, 0.75);
}

#selectmenu:fullscreen {
  background-color: #faa;
}

select option {
  color: white;
  background: rgba(60, 63, 66, 0.75);
}

option:active {
  color: #010101;
  background: #e68a00;
}

option:hover {
  color: #010101;
  background: #e68a00;
}

/* HISTORY */
#history {
  font-family: Arial, Helvetica, sans-serif;
  width: 100%;
  height: calc(100% - 96px);
  position: relative;
  box-sizing: border-box;
  font-size: 16px;
  padding: 32px;
  padding-bottom: 96px;
  overflow-y: auto;
}

.game-title {
  margin: 0;
  padding: 12px 32px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 72px;
  height: 96px;
  text-align: left;
  color: #FFF;
}

.historyRow {
  color: #ffffff;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 16px;
}

.rowActions {
  padding: 8px;
  vertical-align: middle;
}

.rowWrapper {
  background-color: #22262b;
  border-radius: 2px;
  box-shadow: #000000 0 2px 6px;
  width: 100%;
}

.historyRow .rowHeader {
  background-color: #2e333b;
  padding: 8px;
  overflow: auto;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

.title {
  float: left;
  vertical-align: middle;
  padding-right: 10px;
}

.detail {
  float: right;
  font-size: 12px;
  color: #5380c2;
  vertical-align: middle;
}

.freebetHeader {
  background-color: #506f7f !important;
}

.freebetHeader .detail {
  color: #afbbce !important;
}

.buyFreespinsHeader {
  background-color: #812f53 !important;
}

.buyFreespinsHeader .detail {
  color: #e979aa !important;
}

.historyRow .rowBody {
  color: #dedede;
  font-size: 14px;
  box-sizing: border-box;
}

.rowBody .bodyParam {
  display: inline-block;
  border-left: 1px solid #aaaaaa;
  padding: 10px;
  vertical-align: top;
}

.rowBody .bodyParam:first-child {
  border-left: none;
}

.dialog-history-popup {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: black;
  z-index: 2000;
}

.dialog-close-button {
  background-color: #fff;
  border-radius: 4px;
  border-style: none;
  box-sizing: border-box;
  color: #000;
  cursor: pointer;
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 auto;
  max-width: none;
  min-height: 30px;
  min-width: 10px;
  outline: none;
  overflow: hidden;
  padding: 0 13px;
  position: relative;
  text-align: center;
  text-transform: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.dialog-close-button:hover,
.dialog-close-button:focus {
  opacity: .75;
}

.dialog-history-popup-iframe {
  border: 0;
  overflow: scroll !important;
  -webkit-overflow-scrolling: touch !important;
  flex-grow: 1;
}

.loading-spinner {
  display: block;
  position: absolute;
  width: 80px;
  height: 80px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loading-spinner div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid #fff;
  border-radius: 50%;
  animation: loading-spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}

.loading-spinner div:nth-child(1) {
  animation-delay: -0.45s;
}

.loading-spinner div:nth-child(2) {
  animation-delay: -0.3s;
}

.loading-spinner div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes loading-spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#shadow {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 35;
}

#closeGameDetail {
  font-family: Arial, Helvetica, sans-serif;
  padding: 10px;
  position: absolute;
  top: 0;
  right: 0;
  font-size: x-large;
  color: #ffffff;
  cursor: pointer;
  z-index: 36;
}

#gameDetail {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gameDetailWrapper {
  background-color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  width: 92%;
  max-width: 1000px;
  max-height: 508px;
  height: 92%;
  display: flex;
  flex-direction: column;
}

#gameDetailHeader {
  background-color: #2e333b;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 16px;
  height: 35px;
  box-sizing: border-box;
}

#gameDetailSubtitle {
  background-color: #22262b;
  color: #aaaaaa;
  font-size: 14px;
  height: 30px;
  padding: 6px 16px;
  box-sizing: border-box;
}

#gameDetailBody {
  position: relative;
  overflow-y: auto;
}

.sceneResults {
  width: 100%;
  position: relative;
}

.sceneResults.sceneWithReels {
  background-color: #8ea5c9;
}

.sceneInfo {
  background-color: #4b6ea3;
  color: #a9ccff;
  font-size: 14px;
  padding: 4px 16px;
  height: 25px;
  box-sizing: border-box;
}

.sceneInfoParam {
  display: inline-block;
  padding: 0px 10px;
  font-size: 12px;
}

.reelsTable {
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  padding: 4px;
  box-sizing: border-box;
  max-width: 700px;
}

.reelsTableCol {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 4px;
  box-sizing: border-box;
  justify-content: space-around;
  align-items: center;
}

.reelsTable .reelsTableCol .reelsTableSymbol {
  position: relative;
  pointer-events: none;
}

.reelsTable .reelsTableCol .reelsTableSymbol img {
  width: 100%;
}

.reelsTable .reelsTableCol .reelsTableSymbol p {
  top: 22.5%;
  left: 0px;
  position: absolute;
  transform: translateY(-50%) rotate(-5deg);
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 22px;
  color: #d59038;
}

#errorMessage {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
}

#errorMessageContainer {
  position: absolute;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  top: calc(50% - 20px);
  height: 40px;
}

#errorMessageWrapper {
  font-family: Arial, Helvetica, sans-serif;
  color: #8ea5c9;
  font-size: 14px;
  padding: 12px;
}


@media only screen and (max-width: 768px) {
  #history {
    font-size: 14px;
    height: calc(100% - 54px);
    padding: 16px;
    padding-bottom: 54px;
    text-align: justify;
  }
  
  .game-title {
    font-size: 36px;
    height: 54px;
    padding: 12px 16px 0;
  }

  .rowActions {
    padding: 0px 6px 0px 0px;
  }

  .rowActions img {
    max-width: 40px;
  }

  .detail {
    font-size: 10px;
  }

  .historyRow .rowBody {
    font-size: 12px;
  }

  .rowBody .bodyParam {
    padding: 6px;
    border-left: none;
  }

  #closeGameDetail {
    padding: 4px 12px;
  }

  #gameDetailWrapper {
    height: 100%;
    width: 100%;
    max-width: none;
    max-height: none;
  }

  #gameDetailHeader {
    padding: 8px;
  }

  #gameDetailHeader .detail {
    margin-right: 36px;
  }

  #gameDetailSubtitle {
    padding: 6px 8px;
  }

  .sceneInfo {
    font-size: 12px;
    padding: 2px 8px;
  }

  .sceneInfoParam {
    font-size: 11px;
    padding: 4px;
  }

  .reelsTable {
    padding: 0px;
  }

  .reelsTableCol {
    padding: 0px;
  }

  .reelsTable .reelsTableCol .reelsTableSymbol p {
    font-size: 18px;
  }
}



@media only screen and (max-width: 420px) {
  .reelsTable .reelsTableCol .reelsTableSymbol p {
    font-size: 12px;
  }
}
