html,
body {
  overflow: hidden;
  padding: 0;
  margin: 0;
  height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-image: url("bg-color.jpg");
  background-repeat: repeat;
  background-size: auto 120%;
}

#main {
  min-width: 320px;
  max-width: 500px;
  margin: auto;
  height: 99vh;
  overflow-x: hidden;
  overflow-y: auto;
}

#main ::-webkit-scrollbar {
  width: 10px;
}

#main ::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#main ::-webkit-scrollbar-thumb {
  background: #888;
}

#main ::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#main .top-logo {
  background: url("logo-top.png");
  width: 100%;
  height: 80px;
  background-repeat: no-repeat;
  background-size: contain;
}

#main .game-wrapper {
  width: 100%;
  position: relative;
}

#main .game-wrapper .popup-box {
  display: none;
  opacity: 0;
  transition: all 0.3s ease-in;
  width: 100%;
  height: 100%;
  text-align: center;
  position: absolute;
  z-index: 10;
  left: 0;
  top: 0;
  align-items: center;
  background-color: rgba(0, 0, 0, 0);
  justify-content: center;
}

@media screen and (min-width: 500px) {
  #main .game-wrapper .popup-box img {
    width: 70%;
    height: auto;
  }
}

@media screen and (max-width: 499px) {
  #main .game-wrapper .popup-box img {
    width: 86%;
    height: auto;
  }
}

#main .game-wrapper .popup-box .reset-btn {
  width: 200px;
  height: 48px;
  position: absolute;
  z-index: 10;
  top: 193px;
}

#main .game-wrapper .game-container {
  width: 80%;
  height: 300px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  justify-content: center;
}

#main .game-wrapper .game-container .icon {
  width: 25%;
  height: 25%;
  margin: 10px;
  position: relative;
  perspective: 1000px;
}

#main .game-wrapper .game-container .icon img {
  width: auto;
  height: 100%;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  transition: transform 0.4s ease;
  backface-visibility: hidden;
}

#main .game-wrapper .game-container .icon .init-icon {
  z-index: 2;
}

#main .game-wrapper .game-container .icon .item-icon {
  z-index: 1;
  transform: rotateY(180deg);
  /* Initially hidden */
}

#main .game-wrapper .game-container .icon.flipped .init-icon {
  transform: rotateY(180deg);
}

#main .game-wrapper .game-container .icon.flipped .item-icon {
  transform: rotateY(0deg);
}

#main .bottom-box {
  width: 100%;
  height: auto;
}

#main .bottom-box .tagline {
  font-size: 1.2rem;
  color: #000;
  text-align: center;
  padding: 15px 10px;
  letter-spacing: 3px;
}

#main .bottom-box .voucher {
  width: 100%;
  min-height: 50vh;
  position: relative;
}

#main .bottom-box .voucher img {
  position: absolute;
}

#main .bottom-box .voucher img.cta-btn {
  width: 45%;
  max-width: 200px;
  z-index: 2;
  top: 30px;
  right: 20px;
}

#main .bottom-box .voucher img.cta-bg {
  width: 100%;
  max-width: 500px;
  height: auto;
  z-index: 1;
  top: 80px;
}

#main footer {
  width: 100%;
  height: 70px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}