@keyframes itemRunDown {
  0% {
    transform: translateY(0); /* Start at the top of the reel */
  }
  50% {
    transform: translateY(100px); /* Move current image down */
  }
  100% {
    transform: translateY(200px); /* Move further down */
  }
}

.items.run-down {
  animation: itemRunDown 0.1s ease-in-out infinite; /* Apply continuous downward animation */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
}

.background {
  position: relative;
  width: 550px;
  height: 100%;
  overflow: hidden;
}

.background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 550px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 300px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.userid {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 300px;
}
.userid h1 {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2rem;
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  z-index: 10;
}

.userid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list {
  position: absolute;
  top: 35%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 340px;
}

.list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jackpont {
  position: absolute;
  top: 35%;
  left: 78%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 250px;
}

.jackpont img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text {
  position: absolute;
  top: 49.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 350px;
}

.text img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame {
  position: absolute;
  top: 61.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 600px;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container-item {
  position: absolute;
  top: 61%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 120px;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.items {
  width: 25%;
  max-width: 450px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  /* Stack images vertically */
  align-items: center;
}

.items img {
  width: 100%;
  /* Make images responsive */
  object-fit: cover;
  margin: 5px 0;
  /* Space out the images */
}

.spinbutton {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 400px;
}

.spinbutton img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Modal styles for popout */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-content.modal-col {
  border-radius: 24px;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 28px 20px;
  max-width: 95vw;
  min-width: 0;
  position: relative;
}
.modal-content.modal-col .modal-prize {
  max-width: 280px;
  width: 100%;
  margin-bottom: 12px;
  cursor: pointer;
}
.modal-content.modal-col .modal-title {
  max-width: 320px;
  width: 100%;
  margin-bottom: 18px;
  border-radius: 16px;
}
.modal-content.modal-col img:first-child {
  margin-bottom: 0;
}
/* Download button image in modal */
.modal-content.modal-col a img[alt=""] {
  width: 220px !important;
  max-width: 90vw;
  margin: 18px 0 18px 0;
  border-radius: 12px;
  transition: transform 0.15s;
}
.modal-content.modal-col a img[alt=""]:hover {
  transform: scale(1.04);
}
.modal-content .modal-input,
.modal-content input[type="text"] {
  width: 90%;
  max-width: 200px;
  width: 100%;
  margin-bottom: 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s;
}
.modal-content.modal-col .modal-prize:hover {
  transform: scale(1.04);
  font-size: 1.25rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(27, 25, 25, 0.1);
  color: #222;
  font-family: inherit;
}
.modal-content .modal-input::placeholder,
.modal-content input[type="text"]::placeholder {
  opacity: 0.8;
  font-size: 1.1rem;
}
.modal-prize {
  cursor: pointer;
  pointer-events: auto;
  z-index: 20;
}
@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

.modal-submit {
  cursor: pointer;
  z-index: 10;
  display: block;
  animation: zoomInOut 1.2s infinite;
}
/* Reduce gap between slot images */

.container-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.items {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.items img {
  margin-left: -4px;
  margin-right: -4px;
}
@media (max-width: 768px) {
  .logo {
    max-width: 200px;
  }
  .userid {
    max-width: 300px;
  }
  .frame {
    max-width: 450px;
  }
  .container-item {
    max-width: 400px;
    height: 80px;
  }
}
@media (max-width: 600px) {
  .background {
    width: 100%;
  }
  .main-content {
    width: 100%;
  }
  .logo {
    max-width: 250px;
  }
  .userid {
    max-width: 300px;
  }
  .userid h1 {
    top: 38%;
    font-size: 1.5rem;
  }
  .list {
    left: 30%;
    max-width: 300px;
    transform: translate(-50%, -50%);
  }
  .jackpont {
    left: 80%;
    max-width: 200px;
    transform: translate(-50%, -50%);
  }
  .text {
    max-width: 320px;
  }
  .frame {
    max-width: 500px;
  }
  .container-item {
    max-width: 350px;
    height: 80px;
  }
  .spinbutton {
    top: 80%;
    max-width: 350px;
  }
}
@media (max-width: 430px) {
  .main-content {
    width: 100%;
  }
  .list {
    left: 30%;
    max-width: 250px;
    transform: translate(-50%, -50%);
  }
  .jackpont {
    left: 80%;
    max-width: 180px;
    transform: translate(-50%, -50%);
  }
  .text {
    max-width: 280px;
  }
  .frame {
    max-width: 400px;
  }
  .container-item {
    max-width: 300px;
    height: 70px;
  }
  .spinbutton {
    max-width: 300px;
  }
}
@media (max-width: 390px) {
  .text {
    top: 50%;
    max-width: 260px;
  }
  .frame {
    max-width: 350px;
  }
  .spinbutton {
    top: 85%;
    max-width: 280px;
  }
}
@media (max-width: 360px) {
  .logo {
    max-width: 200px;
  }
  .userid {
    max-width: 250px;
  }
  .userid h1 {
    top: 37%;
    font-size: 1.2rem;
  }
  .list {
    left: 30%;
    max-width: 230px;
    transform: translate(-50%, -50%);
  }
  .jackpont {
    left: 80%;
    max-width: 150px;
    transform: translate(-50%, -50%);
  }
  .text {
    max-width: 240px;
  }
  .frame {
    max-width: 300px;
  }
  .container-item {
    max-width: 250px;
    height: 60px;
  }
  .spinbutton {
    max-width: 250px;
    top: 80%;
  }
}
