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 */
.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);
  }
}

#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;
  height: 96px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 72px;
  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;
}

#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: 80%;
height: 80%;
}

#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 {
width: 100%;
height: calc(100% - 65px);
position: relative;
overflow-y: auto;
}

.sceneResults {
width: 100%;
position: relative;
}

.sceneResults.sceneWithReels {
height: 100%;
}

.sceneResults.sceneWithReels.bonusScene {
  height: 50%;
}

.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 {
display: flex;
flex-direction: row;
justify-content: space-between;
height: calc(100% - 25px);
padding: 4px;
box-sizing: border-box;
background-color: #8ea5c9;
}

.reelsTableCol {
height: 100%;
width: 100%;
padding: 4px;
box-sizing: border-box;
max-height: 500px;
}

.reelsTable .reelsTableCol .reelsTableSymbol {
width: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: contain;
position: relative;
}

.reelsTable .reelsTableCol .reelsTableSymbol .reelsTableSymbolText {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 50px;
margin-left: -50%;
margin-top: -0.8vw;
text-align: center;
font-size: 3.2vw;
font-weight: bolder;
font-family: Verdana,Geneva,sans-serif; 
color: #ffde00;
-webkit-text-stroke-width: 1px;
-webkit-text-stroke-color: black;
text-shadow: 0px 2px 0px #904D27;
}


#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) and (orientation: portrait) {
#history {
  font-size: 14px;
  padding: 16px;
  height: calc(100% - 54px);
  padding-bottom: 54px;
  text-align: justify;
}

.game-title {
  font-size: 36px;
  padding: 12px 16px 0;
  height: 54px;
}

.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%;
}

#gameDetailHeader {
  padding: 8px;
}

#gameDetailHeader .detail {
  margin-right: 36px;
}

#gameDetailSubtitle {
  padding: 6px 8px;
}

#gameDetailBody {
  max-height: 100vh;
}

.sceneInfo {
  font-size: 12px;
  padding: 2px 8px;
  height: auto;
  min-height: 25px;
}

.sceneInfoParam {
  font-size: 11px;
  padding: 4px;
}

.sceneResults.sceneWithReels {
  height: 40%;
}

.sceneResults.sceneWithReels.bonusScene {
  height: 20%;
}

.reelsTable {
  padding: 0px;
}

.reelsTableCol {
  padding: 0px;
}

.reelsTable .reelsTableCol .reelsTableSymbol .reelsTableSymbolText {
  font-size: 6.4vw;
  margin-top: -1.5vw;
}

}