.tmpdiv {
  position: absolute;
  left: 0;
  color: white;
}

.bonusgame-canvas {
  background-image: url(../img/prize-game/bg.jpg);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  position: fixed;
  z-index: 90;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}
.bonusgame-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.bonusgame-header {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 20px 0;
  width: 100%;
  position: relative;
  flex-direction: row-reverse;
}

.bonusgame-user-balance {
  color: #a0a0a0;
  white-space: nowrap;
  padding: 12px 15px 12px 40px;
  background-color: #333;
  box-shadow: 0 0 5px #000 inset;
  border: 2px solid #000;
  border-radius: 25px;
  font-weight: bold;
  cursor: default;
  position: relative;
  display: inline-block;
}
.bonusgame-user-free-tryout {
  color: #f00;
}

.bonusgame-user-balance::before {
  position: absolute;
  width: 45px;
  height: 39px;
  content: '';
  background-image: url(../img/prize-game/balance-icon.png);
  left: -8px;
  top: 50%;
  margin-top: -20px;
  background-repeat: no-repeat;
}
.bonusgame-header-nav {
  margin: 0 auto;
}
.bonusgame-navigation-index {
  text-align: center;
  color: rgb(116, 116, 116);
  margin-top: 10px;
  font-weight: bold;
}

.bonusgame-navigation {
  display: flex;
}

.bonusgame-navigation-tab {
  background-color: #414141;
  width: 60px;
  height: 60px;
  margin: 0 5px;
  border-radius: 100%;
  align-items: center;
  cursor: pointer;
  background-position: center center;
  background-repeat: no-repeat;
  outline: none;
  border: none;
  box-shadow: 0 0 3px rgba(0,0,0,0.8);
  background-size: auto;
}

.bonusgame-navigation-tab:hover {
  background-color: #333;
}

.bonusgame-navigation-tab.back {
  background-image: url(../img/prize-game/arrow-back.png);
  margin: 0 55px 0 0;
}

.bonusgame-navigation-tab.castle {
  background-image: url(../img/prize-game/castle-nav.png);
}

.bonusgame-navigation-tab.tower {
  background-image: url(../img/prize-game/tower-nav.png);
}

.bonusgame-navigation-tab.door {
  background-image: url(../img/prize-game/door-nav.png);
}

.bonusgame-navigation-tab.chest {
  background-image: url(../img/prize-game/chest-nav.png);
}

.bonusgame-footer-message {
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 5px;
  color: #ffbc07;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  max-width: 700px;
  font: bold 1.6rem/1 "Roboto Condensed", Arial, Helvetica, sans-serif;
  min-width: 700px;
}
.bonusgame-message-carousel .carousel-control {
  background: transparent;
  color: #ffbc07;
  opacity: 0.9;
  top: 14px
}
.bonusgame-message-carousel .carousel-control:hover {
  background: transparent;
  color: #fff;
}
.bonusgame-message-carousel .carousel-control .glyphicon {
  font-size: 1.4rem;
}
.bonusgame-message-carousel .left {
  left: -36px;
}
.bonusgame-message-carousel .right {
  right: -36px;
}

.bonusgame-message-carousel .carousel-inner {
  margin: 0 30px;
  width: auto;
  text-align: left;
}
.bonusgame-message-carousel .item .inner{
  display: flex;
  align-items: center;
}
.bonusgame-footer {
  position: relative;
}
.bonusgame-footer .btn-help {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1.6rem;
  color: #ffbc07;
}
.bonusgame-footer .btn-help:hover {
  color: #fff;
}
.bonusgame-footer-message img {
  margin: 0 20px 0 0;
  width: 70px;
  height: auto;
}
.prize-win-container .bonusgame-footer-message .btn {
    margin: 10px auto;
  font-size: 1.6rem;
  font-weight: bold;
  padding: 10px 20px;
}
.bonusgame-card-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -10px;
  position: relative;
}

.bonusgame-card {
  width: 190px;
  height: 250px;
  margin: 6px;
  display: block;
}

.bonusgame-card-header {
  display: flex;
  height: 35px;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 0 5px 0 10px;
  align-items: center;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.7);
}

.bonusgame-card-footer {
  margin-bottom: 10px;
  margin-top: auto;
}

.bonusgame-card-status {
  padding: 12px 5px;
  color: rgb(146, 146, 146);
  cursor: default;
  font-size: 12px;
}

.bonusgame-card-pouch-counter {
  color: #ffbc07;
  background-image: url(../img/prize-game/icon-pouch.png);
  background-position: 0 0;
  background-repeat: no-repeat;
  padding: 0 0 0 22px;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  cursor: default;
  min-height: 22px;
}

.bonusgame-card-pouch-counter.bitten {
  color: #fff
}

.bonusgame-card-footer .bonusgame-card-pouch-counter {
  display: inline-block;
  border-radius: 15px;
  padding: 2px 15px 2px 35px;
  background-position: 10px center;
  line-height: 30px;
  font-size: 12px;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: inherit;
}

.bonusgame-card-pack-unlock {
  margin-left: auto;
  background-color: #171717;
  width: 27px;
  height: 27px;
  border-radius: 5px;
  background-image: url(../img/prize-game/icon-key.png);
  background-position: center center;
  background-repeat: no-repeat;
  cursor: pointer;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) inset;

}

.bonusgame-card-pack-unlock:hover {
  background-color: #000;
}

.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border: 5px solid #282826;
}
.flip-card-inner:hover {
  box-shadow: 0 0 20px rgb(255, 141, 0, 0.75);
}

.flip-card.flip-animation .flip-card-inner {
  transform: rotateY(180deg);
}


.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background-color: #353535;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  background-repeat: no-repeat;
  background-image: url(../img/prize-game/card-bg.jpg);

}

/* Style the front side (fallback if image is missing) */
.flip-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background-position: center 10px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.pouch .flip-card-content, .pouch .flip-card-back-content {
  cursor: default;
}

.flip-card-back-content {
  background-position: center center;
  background-repeat: no-repeat;
}

.bonusgame-canvas .chest .flip-card-content {
  background-image: url(../img/prize-game/chest-closed.png);
  background-position: center 20px;
}

.bonusgame-canvas .chest.flip .flip-card-back-content,
.bonusgame-canvas .chest.open .flip-card-content {
  background-image: url(../img/prize-game/chest-open.png);
  background-position: center 20px;
}

.bonusgame-canvas .door .flip-card-content {
  background-image: url(../img/prize-game/door-closed.png);
}

.bonusgame-canvas .door.flip .flip-card-back-content,
.bonusgame-canvas .door.open .flip-card-content {
  background-image: url(../img/prize-game/door-open.png);
  background-position: center 10px;
}

.bonusgame-canvas .tower .flip-card-content {
  background-image: url(../img/prize-game/tower-closed.png);
}

.bonusgame-canvas .tower.flip .flip-card-back-content,
.bonusgame-canvas .tower.open .flip-card-content {
  background-image: url(../img/prize-game/tower-open.png);
  background-position: center 10px;
}

.bonusgame-canvas .castle .flip-card-content {
  background-image: url(../img/prize-game/castle-closed.png);
}

.bonusgame-canvas .castle.flip .flip-card-back-content,
.bonusgame-canvas .castle.open .flip-card-content {
  background-image: url(../img/prize-game/castle-open.png);
  background-position: center 10px;
}

.bonusgame-canvas .pouch .flip-card-content {
  background-image: url(../img/prize-game/pouch-closed.png);
  background-position: center 30px;
}

.bonusgame-canvas .pouch.flip .flip-card-back-content,
.bonusgame-canvas .pouch.open .flip-card-content {
  background-image: url(../img/prize-game/pouch-open.png);
  background-position: center 30px;
}

.bonusgame-canvas .pouch.opened-auto .flip-card-content {
  background-image: url(../img/prize-game/spider.png);
  background-position: right top;
}

.bonusgame-canvas .winner-card:not(.flip-animation):not(.pouch) .flip-card-content {
  background-image: url(../img/prize-game/treasure.png) !important;
  background-position: center 20px !important;
}

.bonusgame-canvas .winner-card.flip-animation:not(.pouch) .flip-card-back-content {
  background-image: url(../img/prize-game/treasure.png) !important;
  background-position: center 20px !important;
}

.bonusgame-canvas .winner-card:not(.flip-animation) .flip-card-content {
  background-image: url(../img/prize-game/treasure.png) !important;
  background-position: center 50px !important;
}

.bonusgame-canvas .winner-card.flip-animation .flip-card-back-content {
  background-image: url(../img/prize-game/treasure.png) !important;
  background-position: center 50px !important;
}

.bonusgame-canvas .winner-card .bonusgame-card-status {
  color: #fcdf60 !important;
  font-size: 13px !important;
}

/* Style the back side */
.flip-card-back {
  transform: rotateY(180deg);

}

.flip-card-back-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
}

.bonusgame-card-button {
  padding: 7px 10px;
  outline: none;
  background-color: #f2f2f2;
  background-image: linear-gradient(to bottom, #f2f2f2, #f2f2f2);
  border: 1px solid #bfbfbf;
  box-shadow: inset 0 1px 0 white, inset 0 -1px 0 #d9d9d9, inset 0 0 0 1px #f2f2f2, 0 2px 4px rgba(0, 0, 0, 0.2);
  color: #3b3101;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  cursor: pointer;
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  margin: 0 20px !important;
  transition: all 20ms ease-out;
  white-space: normal;
  line-height: 1;
}

.bonusgame-card-button:hover,
.bonusgame-card-button:focus {
  background: #f2f2f2;
  border-color: #8c8c8c;
  box-shadow: inset 0 1px 0 white, inset 0 -1px 0 #d9d9d9, inset 0 0 0 1px #f2f2f2;
}

.bonusgame-card-button:active {
  background: #f2f2f2;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.2);
}

.action-button {
  background-color: #fce374;
  background-image: linear-gradient(to bottom, #fce374, #fcdf5b);
  border: 1px solid #c9ae34;
  box-shadow: inset 0 1px 0 #fff6ce, inset 0 -1px 0 #e3c852, inset 0 0 0 1px #fce88d, 0 2px 4px rgba(0, 0, 0, 0.2);
  color: #3b3101;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.action-button:hover,
.action-button:focus {
  background: #fcdf5b;
  border-color: #967d09;
  color: #3b3101;
  box-shadow: inset 0 1px 0 #fff6ce, inset 0 -1px 0 #e3c852, inset 0 0 0 1px #fce88d;
}
.action-button:active {
  background: #fcdf5b;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.2);
}
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animated.fast {
  animation-duration: 800ms;
}

.animated.faster {
  animation-duration: 500ms;
}

.animated.slow {
  animation-duration: 2s;
}

.animated.slower {
  animation-duration: 3s;
}
@keyframes bonusBounceIn  {
  from,
  20%,
  40%,
  60%,
  80%,
  to {
    animation-timing-function: cubic-bezier(0.2, 0.6, 0.1, 1);
  }
  0% {
    opacity: 0;
    transform: scale3d(0.1, 0.1, 0.1);
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}
.bonusgame-container .bounceIn {
  animation-duration: 0.75s;
  animation-name: bonusBounceIn;
}

@keyframes bonusBounceOut {
  to {
    opacity: 0;
    transform: scale3d(0.1, 0.1, 0.1);
  }
}
.bonusgame-container .bounceOut {
  animation-duration: 0.75s;
  animation-name: bonusBounceOut;
}

.bonusgame-modal-window {
  width: 600px;
  height: 381px;
  background-image: url(../img/prize-game/wooden-bord-big.png);
  background-repeat: no-repeat;
  position: fixed;
  display: flex;
  top: 50%;
  left: 50%;
  margin: -190px 0 0 -300px;
  z-index: 100;
}

.bonusgame-modal-container {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.8);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
}

.bonusgame-modal-content {
  padding: 60px 80px 40px;
  font: bold 1.6rem/1.5 Arial, sans-serif;
  color: #662f02;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.bonusgame-modal-message {
  text-shadow: 1px 1px 1px #eed190;;
}
.bonusgame-modal-message b {
  color: #301702
}
.bonusgame-modal-message a {
  color: #fff;
  text-shadow: 1px 1px 1px #222;
}
.bonusgame-modal-message a:hover {
  color: #fff;
}
.bonusgame-modal-message-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}
.bonusgame-modal-window .btn-set {
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.bonusgame-modal-window .btn {
  border: none;
  font: bold 16px/1 Arial, sans-serif;
  cursor: pointer;
  margin: 0 10px;
  padding: 12px 20px 12px 20px;
  background-position: 10px center;
  background-repeat: no-repeat;
  text-align: left;
  background-color: #76371d;
  color: #eee;
  box-shadow: 0 0 3px rgba(0,0,0,0.9) inset;
}

.bonusgame-modal-window .btn:hover {
  color: #fff;
}

.bonusgame-modal-window .btn-proceed {
  padding-left: 40px;
  background-image: url(../img/prize-game/check.png);
}

.bonusgame-modal-window .btn-cancel {
  padding-left: 40px;
  background-image: url(../img/prize-game/cross.png);
}

.bonusgame-modal-enter {
  transform: scale(0);
}
.bonusgame-modal-enter.bonusgame-modal-enter-active {
  transform: scale(1);
  transition: transform 0.5s;
}
.bonusgame-modal-leave {
  transform: scale(1);
}
.bonusgame-modal-leave.bonusgame-modal-leave-active {
  transform: scale(0);
  transition: transform 0.5s;
}

.absolute-hidden {
  position: absolute;
}

.bonus-game-quit-btn {
  position: absolute;
  right: 20px;
  top: 15px;
  width: 48px;
  height: 48px;
  background-image: url(../img/prize-game/close-button.png);
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: 0 0;
}
@media (max-width: 767px) {
  .bonusgame-container {
    flex-direction: column;
    height: auto;
    min-height: 100%;
  }
  .bonusgame-canvas {
    overflow: auto;
    height: auto;
  }
  .bonusgame-header {
    margin: 10px 0 20px 0;
  }
  .bonusgame-header-nav,
  .bonusgame-navigation-tab.back {
    margin: 0;
  }

  .bonusgame-navigation-tab {
    width: 40px;
    height: 40px;
  }
  .bonusgame-card-wrapper {
    width: 100%;
    margin: 0;
  }
  .bonusgame-card {
    width: calc(33.333% - 6px);
    margin: 3px;
    height: 200px;
  }
  .bonusgame-footer {
    margin-top: auto;
  }
  .bonusgame-card-footer {
    margin-bottom: 0;
  }
  .bonusgame-card-footer .bonusgame-card-pouch-counter {
    background-color: transparent;
    position: absolute;
    left: 0;
    top: 0;
    padding-top: 0;
  }
  .bonusgame-footer-message img {
    margin: 0 10px 0 0;
  }
  .flip-card-content {
    background-size: contain;
  }
  .bonusgame-card-pack-unlock {
    width: 20px;
    height: 20px;
    background-size: contain;
  }
  .bonusgame-footer-message {
    min-width: auto;
    padding: 10px 30px 10px 10px;
    font-size: 1.4rem;
    margin: 0;
  }
  .bonusgame-card .bonusgame-card-button {
    margin: 0  !important;
  }
  .bonus-game-quit-btn {
    height: 32px;
    width: 32px;
    background-size: contain;
    right: 10px;
  }
  .bonusgame-header {
    flex-wrap: wrap;
  }
  .bonusgame-header-balance {
    flex-basis: 100%;
    margin-bottom: 10px;
  }
  .bonusgame-user-balance {
    padding: 10px;
    margin: 0 0 0 10px;
  }
  .bonusgame-user-balance::before{
    content: none;
  }
  .bonusgame-user-balance > div {
    display: inline-block;
    margin: 0 4px;
  }
  .bonusgame-modal-window {
    width: 400px;
    height: 260px;
    margin: -130px 0 0 -200px;
    background-size: cover;
  }
  .bonusgame-modal-content {
    padding: 20px 40px 20px;
  }

}

