* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
}
.background {
  position: relative;
  width: 550px;
  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;
}
.text {
  position: absolute;
  top: 17.5%;
  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;
  z-index: 1;
}
.reward img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.frame {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 400px;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.middle {
  position: absolute;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 50px;
  z-index: 2;
}
.middle 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;
}
@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%;
  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: 11%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.popout-win1 .buttons img {
  width: 250px;
  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%;
  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);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popupZoom {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .background img {
    width: 100%;
    object-fit: fill;
  }
  .text {
    max-width: 280px;
  }
  .frame {
    max-width: 350px;
  }
  .reward {
    max-width: 320px;
  }
  .popout-win1 .buttons {
    bottom: 4%;
    align-items: center;
    flex-direction: column;
  }
}
@media (max-width: 440px) {
  .reward {
    max-width: 300px;
  }
}

@media (max-width: 375px) {
  .text {
    max-width: 280px;
  }
  .frame {
    max-width: 350px;
  }
  .reward {
    max-width: 320px;
  }
  .popout-win1 .buttons {
    bottom: 4%;
    align-items: center;
    flex-direction: column;
  }
}
@media (max-width: 360px) {
  .text {
    max-width: 280px;
  }
  .frame {
    max-width: 340px;
  }
  .reward {
    max-width: 310px;
  }
  .popout-win1 .buttons {
    bottom: 4%;
    align-items: center;
    flex-direction: column;
  }
}
