/* Loader */
#loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid #fff;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
iframe#game {
  position: relative !important;
  margin: 0 auto;
  overflow: hidden;
  border: none;
  width: 100%;
  max-width: 100%;
  min-height: 300px;
  max-height: 768px;
}
@media (max-width: 600px) {
  #Container:not(.fullscreen) iframe#game {
    height: calc(100vh - 130px);
  }
}
@media (max-height: 500px) {
  #Container:not(.fullscreen) iframe#game {
    max-height: 300px;
  }
}
@media (min-width: 1024px) {
  iframe#game {
    min-height: 600px;
  }
}

#Wrapper .PageCont {
  min-height: 300px !important;
}
@media only screen and (max-width: 600px) {
  #Wrapper {
    padding-top: 0;
  }
}

@media (max-width: 799px) {
  #Container {
    padding: 0 !important;
  }
  #Container:not(.fullscreen) #MainCNGame {
    padding: 0 !important;
  }
}
@media (min-width: 800px) {
  body:not(.full) #Wrapper {
    padding-top: 45px;
  }
  #Container:not(.fullscreen) #MainCNGame {
    padding: 50px 20px !important;
  }
}
#Container.fullscreen #MainCNGame {
  padding: 0px !important;
}
#Container.removedSidePadding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#MainCNGame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 30px;
  min-height: 100vh;
}
@media (max-width: 801px) and (max-height: 800px) {
  #MainCNGame {
    /*min-height: 86vh;*/
  }
}
#MainCNGame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(8.83px) brightness(0.29) opacity(0.82) saturate(1.53);
}

#GameContainer {
  position: relative;
  background: rgba(0, 7, 16, 0.8);
  border-radius: 4px;
  width: 100%;
  max-width: 1304px;
  min-height: 312px;
  max-height: 830px;
  margin: 0 auto;
  padding: 0 10px 10px 10px;
}
@media (max-height: 900px) and (max-width: 900px) {
  #GameContainer {
    min-height: 250px !important;
  }
  #MainCNGame {
    justify-content: start;
  }
}

/* Overlay */
#LoginOverlay {
  top: 50px;
  left: 10px;
  position: absolute;
  width: calc(100% - 20px);
  height: calc(100% - 60px);
  background: #252525;
  z-index: 999999999999999999999999999;
}
#LoginOverlay.hidden {
  display: none;
}
#LoginOverlay .PromoOffer {
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  max-height: 300px;
  max-width: 300px;
  position: absolute;
  -webkit-transform: translate(-50%, -60%);
  -moz-transform: translate(-50%, -60%);
  -o-transform: translate(-50%, -60%);
  transform: translate(-50%, -60%);
}
.inContent.BtnsUser {
  display: block;
  width: 100%;
  max-width: 500px;
  padding: 13px 0;
  margin: 15px auto 0;
  cursor: pointer;
  font-size: 20px;
  color: #015ecc;
  font-size: 2em;
  font-weight: normal;
  font-family: "Montserrat", sans-serif;
  background: #dbad64;
  border: solid 2px #dbad64;
  -webkit-border-radius: 40px;
  -moz-border-radius: 40px;
  border-radius: 40px;
  text-align: center;
}
.inContent.BtnsUser:hover {
  border: solid 2px #015ecc;
  background: #015ecc;
  color: #dbad64;
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1);
}
@media (max-width: 600px) {
  .inContent.BtnsUser {
    padding: 8px 0;
    font-size: 1.2em;
  }
  #LoginOverlay .PromoOffer {
    -webkit-transform: translate(-50%, -70%);
    -moz-transform: translate(-50%, -70%);
    -o-transform: translate(-50%, -70%);
    transform: translate(-50%, -70%);
  }
}

/* Fullscreen */
.PageCont.fullscreen {
  top: 0;
  left: 0;
  position: fixed !important;
  z-index: 99999999999999999999;
}
.PageCont.fullscreen,
.PageCont.fullscreen #MainCNGame,
.PageCont.fullscreen #GameContainer,
.PageCont.fullscreen #GameContainer #GameInner,
.PageCont.fullscreen #GameContainer #GameScreen {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  max-width: none !important;
  z-index: 99999999999999999999;
}
.PageCont.fullscreen #GameContainer iframe#game {
  min-width: 100%;
  min-height: 300px;
  max-height: none !important;
  max-width: none !important;
  height: calc(100% - 50px) !important;
  width: 100% !important;
  z-index: 99999999999999999999;
}

#UserControls {
  padding: 10px 0;
  height: 50px;
}
#goBack {
  display: inline-flex;
  align-items: center;
  float: left;
  text-decoration: none;
  color: #ffffff;
  margin-right: 10px;
  opacity: 0.7;
  -webkit-transition: 0.3s opacity ease-in-out;
  -moz-transition: 0.3s opacity ease-in-out;
  -o-transition: 0.3s opacity ease-in-out;
  transition: 0.3s opacity ease-in-out;
}
#goBack .icon-arrowleft {
  display: inline-block;
  height: 30px;
  width: 30px;
  background-image: url("/public/img/icons/arrow-l-white.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 80%;
}
#goBack:hover {
  opacity: 1;
}
#PlayForReal {
  display: inline-flex;
  align-items: center;
  float: right;
}
#PlayForReal .text {
  display: inline-block;
  font-size: 1.3em;
}
#PlayForReal_toggle {
  width: 55px;
  height: 30px;
  margin-left: 10px;
  margin-right: 10px;
  display: inline-block;
  position: relative;
  background-color: #1f344f;
  border: 5px solid #1f344f;
  border-radius: 20px;
  cursor: pointer;
}
#PlayForReal.x #PlayForReal_toggle {
  opacity: 0.7;
}
#PlayForReal.y #PlayForReal_toggle {
  opacity: 1;
}
#PlayForReal_toggle .toggle_bubble {
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: absolute;
  display: inline-block;
  -webkit-transition: left 0.2s ease-in-out;
  -moz-transition: left 0.2s ease-in-out;
  -o-transition: left 0.2s ease-in-out;
  transition: left 0.2s ease-in-out;
}
#PlayForReal.x .toggle_bubble {
  left: 0;
  background-color: grey;
}
#PlayForReal.y .toggle_bubble {
  left: 25px;
  background-color: #dbad64;
}
#DepositBtn {
  display: inline-flex;
  align-items: center;
  float: left;
  margin-left: 10px;
}
#DepositBtn .text.deposit {
  display: inline-block;
  font-size: 1.3em;
  background: #dbad64;
  color: #fff;
  padding: 7px 12px;
  border-radius: 25px;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
}
@media (max-width: 400px) {
  #PlayForReal .text {
    font-size: 1em;
  }
}

#GameControls {
  display: inline-flex;
  align-items: center;
  float: right;
}
#GameControls .ctrl {
  width: 20px;
  height: 30px;
  opacity: 0.7;
  margin: 0 10px;
  display: inline-block;
  cursor: pointer;
}
#GameControls .ctrl:hover {
  opacity: 1;
}
#fullscreen.in {
  background-image: url("/public/img/icons/fullscreen.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
#fullscreen.out {
  background-image: url("/public/img/icons/fullscreen-exit.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
#favourite.empty {
  width: 23px;
  background-image: url("/public/icons/star-empty.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
#favourite.full {
  width: 23px;
  opacity: 1 !important;
  background-image: url("/public/icons/star.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
#reload {
  display: none !important; /* too much action buttons - hide this one for now, leave the JS functionality as is */
  background-image: url("/public/img/icons/reload.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  -webkit-transition: transform 0.8s ease-in-out;
  -moz-transition: transform 0.8s ease-in-out;
  -o-transition: transform 0.8s ease-in-out;
  transition: transform 0.8s ease-in-out;
}

#description_bar {
  z-index: 2;
  display: flex;
  position: relative;
  flex-direction: row;
  align-items: flex-start;
  height: 10vh;
  width: 100%;
  max-width: 1304px;
  padding: 0;
  margin: 0 auto;
  background-color: rgba(0, 7, 16, 0.8);
}
#description_bar img {
  display: inline-flex;
  width: auto;
  height: 100%;
}
#description_bar header.HeaderBar {
  display: inline-flex !important;
  height: 100%;
  width: 55%;
  flex: 1;
  justify-content: flex-start;
  align-items: center;
  text-align: left !important;
  min-height: auto !important;
  line-height: 1 !important;
  padding: 0 0 0 20px !important;
  margin: 0 !important;
  position: static !important;
  clear: both;
}
#description_bar header.HeaderBar h1 {
  min-height: auto !important;
  line-height: 1 !important;
  margin: 0px !important;
  position: static !important;
  font-size: 1em !important;
  text-align: left !important;
}
#seeMore {
  display: flex;
  flex: 0 1 auto;
  height: 100%;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
  margin-right: 10px;
  cursor: pointer;
}
#seeMore::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 3px 3px 0;
  padding: 3px;
  transform: rotate(45deg) translateX(-16px);
  -webkit-transform: rotate(45deg) translateX(-16px);
  transition: 0.4s transform ease-in-out;
  -webkit-transition: 0.4s transform ease-in-out;
}
#seeMore.up::after {
  transform: rotate(225deg) translateX(8px);
  -webkit-transform: rotate(225deg) translateX(8px);
}
h3.cursive {
  font-family: "ThorceFree" !important;
  color: #dbad64;
  font-size: 1.5em;
}
p.game-description {
  text-align: left;
  line-height: 2;
  font-size: 1.3em;
  margin-left: 20px;
  margin-bottom: 30px;
}

@media (min-width: 800px) {
  #description_bar {
    height: calc(14vh - 50px);
    flex-flow: row wrap;
    padding: 10px 10px 10px 0;
    background-color: transparent;
  }
  #description_bar header.HeaderBar h1 {
    font-size: 3em !important;
    width: 75%;
  }
  #seeMore::after {
    width: 20px;
    height: 20px;
    border-width: 0 4px 4px 0;
  }
  p.game-description {
    margin-left: 0px;
  }
}

/* Recommended Games */
#RecommendedGames.PageCont {
  margin: 30px auto;
  width: calc(100% - 60px);
  max-width: 1150px;
  border-radius: 4px;
}
#GamePageContGamesRCM {
  display: flex;
  align-items: center;
  align-content: space-around;
  padding: 10px 0 30px;
  min-height: auto;
}
#GamePageContGamesRCM .BoxCGames_RCM {
  position: relative;
  flex-grow: 1;
  flex-basis: 25%;
  margin: 8px;
  overflow: hidden;
}
.BoxCGames_RCM img {
  width: 100%;
}
#GamePageContGamesRCM .BoxCGames_RCM:before {
  content: "";
  display: block;
  width: 80%;
  height: 15%;
  position: absolute;
  left: 10%;
  top: -100%;
  padding: 10px 0px;
  z-index: 2;
  background: url(/public/icons/play.svg) 50% 50% no-repeat #ffffff;
  background-size: 100%;
  -moz-transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -ms-transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -webkit-transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -o-transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -webkit-border-radius: 200px;
  -moz-border-radius: 200px;
  border-radius: 200px;
}
#GamePageContGamesRCM .BoxCGames_RCM:after {
  content: "";
  top: 0;
  left: 0;
  position: absolute;
  background: rgba(1, 40, 93, 0.8);
  z-index: 1;
  width: 100%;
  height: 0%;
  -webkit-transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -moz-transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -ms-transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -o-transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#GamePageContGamesRCM .BoxCGames_RCM:hover:before {
  top: 35%;
}
#GamePageContGamesRCM .BoxCGames_RCM:hover:after {
  display: block;
  height: 100%;
}

@media (max-width: 600px) {
  #RecommendedGames.PageCont {
    width: 100%;
  }
  #GamePageContGamesRCM {
    flex-wrap: wrap;
  }
  #GamePageContGamesRCM .BoxCGames_RCM {
    flex-basis: 50%;
    margin: 0px;
  }
}
