.main-container {
  background-image: url("../images/roulette-bg.jpg");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.roulette-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 1rem;
  z-index: 1;
}

.spin-count {
  background-image: url("../images/spin-count-frame.png");
  background-repeat: no-repeat;
  width: 400px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

#spin-left {
  font-weight: 700;
  color: #06ff00;
}

.spin-count p {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
}

.roulette-wheel {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.roulette-wheel .wheel {
  position: relative;
  width: 560px;
  height: 560px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wheel img {
  position: absolute;
  user-select: none;
}

.sandbar {
  width: 945px;
  z-index: 0;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring {
  width: 560px;
  z-index: 2;
}

.prizes {
  width: 490px;
  z-index: 2;
}

.pointer {
  width: 138px;
  z-index: 4;
  cursor: pointer;
  transition: transform 0.2s;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  pointer-events: auto;
}

.pointer:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.terms-overlay {
  width: 100%;
  margin-top: 3rem;
  background-color: #00000033;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #fff;
  padding: 2rem 8rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.wheel-guide{
  text-align: left;
}

.table-wrap{
  display: flex;
  justify-content: space-around;
}

.prize-table{
  width: 70%;
}

.mission-table{
  width: 60%;
}

.table-wrap table thead{
  border: 1px solid #ccc;
  background-color: #fff;
  color: #000;
  text-align: center;
}

.table-wrap table th,
.table-wrap table td{
  border: 2px solid #ccc;
  padding: 8px;
}

.terms-content {
  text-align: justify;
}

.wheel-guide h2,
.terms-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.prize-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.prize-content {
  background: url("../images/modal-bg.png");
  background-size: contain;
  background-repeat: no-repeat;
  padding: 0.5rem 2rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 90%;
  width: 570px;
  height: 365px;
}

.prize-content h2 {
  padding-bottom: 1rem;
  font-weight: 700;
  font-size: 28px;
  color: white;
}

.prize-content p {
  font-size: 28px;
  font-weight: 500;
  margin-top: 3rem;
  color: white;
}

.prize-content span {
  font-size: 46px;
  font-weight: 500;
  color: #ffff00;
}

#close-modal {
  background: url("../images/close.png");
  background-size: contain;
  background-repeat: no-repeat;
  position: relative;
  top: -305px;
  right: -265px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

#modal-no-spin2,
#modal-no-spin {
  display: grid;
  place-content: center;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 30;
}
#modal-no-spin2 .modal-container,
#modal-no-spin .modal-container {
  background: url(../images/modal-bg.png);
  background-size: contain;
  background-repeat: no-repeat;
  padding: 0.5rem 2rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 100%;
  width: 570px;
  height: 365px;
}

#no-spin-header {
  color: #fff;
  display: grid;
  align-items: center;
  position: relative;
  text-align: center;
}

#no-spin-header p {
  margin: 0;
  font-size: 28px;
}

#no-spin-header #close_modal2 {
  position: absolute;
  top: 0;
  right: 10px;
  opacity: 1;
  font-size: 30px;
  font-weight: 500;
  color: #fff;
  text-shadow: none;
}

#no-spin-header #close_modal2 span {
  position: absolute;
  top: -30px;
  right: -35px;
  background: #FFFFFF80;
  width: 30px;
  border-radius: 15px;
}

#no-spin-header #close_modal2 img {
  width: 25px;
}
#modal-no-spin2 .modal-body,
#modal-no-spin .modal-body {
  display: grid;
  flex-direction: row;
  grid-gap: 10px;
  justify-content: center;
  justify-items: center;
  width: 100%;
}

#modal-no-spin2 .modal-body {
  text-align: center;
}

#modal-no-spin .modal-body p,
#modal-no-spin2 .modal-body p {
  margin: 2rem 0;
  font-size: 34px;
  font-weight: 500;
  color: #fff;
}

@media (max-width: 600px) {
  .roulette-wheel img {
    width: 180px;
    height: 180px;
  }

  .roulette-header h1 {
    font-size: 1.5rem;
  }

  #spin-button {
    padding: 0.5rem 1rem;
  }
}

@font-face {
  font-family: pingpangsc;
  src: url("../fonts/PingFang SC Regular.ttf") format("ttf");
  font-weight: 400;
  font-style: normal;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background-color: white;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  max-width: 400px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.hidden {
  display: none;
}
