* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  overflow: hidden;
}
.background {
  position: relative;
  width: 768px;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.main-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 160px;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* .text {
  position: absolute;
  top: 19%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
} */
/* .text img {
  width: 100%;
  height: 100%;
  object-fit: contain;
} */
/* .reward {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 350px;
} */
/* .reward img {
  width: 100%;
  height: 100%;
  object-fit: contain;
} */

.playbutton {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 200px;
}
.playbutton img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  animation: zoomInOut 2s ease-in-out infinite;
}
.catoon {
  position: absolute;
  top: 86%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 450px;
}
.catoon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Popup Styles */
.popout-win1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.popout-win1.show {
  display: flex;
}

.image-win1 {
  position: relative;
  width: 90%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-win1 img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.popout-win1 .buttons {
  position: absolute;
  bottom: 15%;
  display: flex;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.popout-win1 .buttons img {
  width: 150px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s;
  animation: zoomInOut 2s ease-in-out infinite;
}

.popout-win1 .buttons img:hover {
  transform: scale(1.05);
}

.popout-win1 .buttons img:active {
  transform: scale(0.95);
}

/* Popup Win 2 Styles */
.popout-win2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.popout-win2.show {
  display: flex;
}

.image-win2 {
  position: relative;
  width: 90%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-win2 img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.popout-win2 .buttons {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.popout-win2 .buttons img {
  width: 200px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s;
  animation: zoomInOut 2s ease-in-out infinite;
}

.popout-win2 .buttons img:hover {
  transform: scale(1.05);
}

.popout-win2 .buttons img:active {
  transform: scale(0.95);
}

.frame img:first-child {
  width: 100%;
  height: auto;
}
.frame {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gift {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 600px;
  left: 85%;
  height: 100%;
  z-index: 5;
  object-fit: cover;
}
.wheel {
  width: 100%;
  height: auto;
  max-width: 400px;
  object-fit: contain;
  animation: spin 4s linear infinite;
  position: relative;
  z-index: 10;
}
.middle {
  position: absolute;
  top: 49%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 90px;
}

.middle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media screen and (max-width: 440px) {
  img.gift {
    position: absolute;
    width: 70%;
    height: auto;
    left: 80%;
    object-fit: contain;
  }
  .wheel {
    width: 100%;
    height: auto;
    max-width: 230px;
    object-fit: contain;
    animation: spin 4s linear infinite;
    position: relative;
    z-index: 10;
  }
  .middle {
    position: absolute;
    top: 49%;
    left: 35%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 90px;
  }

  .middle img {
    width: 50%;
    height: 100%;
    object-fit: contain;
  }
}
