#popup {
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
}

#popup.show {
  display: block;
}

#popup-content {
  margin-left: 10%;
  margin-top: 50vw;
  width: 80%;
  position: relative;
}

#popup-bg {
  width: 80vw;
}

#popup-bg:hover {
  cursor: pointer;
}

#popup-button {
  width: 100%;
  position: absolute;
  text-align: center;
  top: 60%;
}

#popup-button img{
  width: 65%;
}


/* Small devices (mobile, 767px and below) */
@media (max-width: 1284px) {
  .crown2{
    top: 43%;
  }
  .crown2 img{
    width: 65%;
  }
  .gem2 {
    top: 33%;
  }
  .gem2 img{
    width: 65%;
  }
  .five_x2{
    top: 33%; 
  }
  .five_x2 img{
    width: 75%;
  }
  .d-wheel {
    left: 8%;
  }
  .d-wheel img {
    width: 83vw;
  }
  .spin_btn
  {
    top: 44.5%;
  }
}

@media (max-width: 769px) {
  .crown2{
    top: 43%;
  }
  .crown2 img{
    width: 50%;
  }
  .gem2 {
    top: 33%;
  }
  .gem2 img{
    width: 50%;
  }
  .five_x2{
    top: 33%; 
  }
  .five_x2 img{
    width: 75%;
  }
  .d-wheel {
    left: 8%;
  }
  .d-wheel img {
    width: 85vw;
  }
  .spin_btn
  {
    top: 44.5%;
  }
}

/* Small devices (mobile, 425px and below) */
@media (max-width: 430px) {

  .crown2{
    top: 44%;
  }
  .crown2 img{
    width: 30%;
  }
  .gem2 {
    top: 33%;
  }
  .gem2 img{
    width: 30%;
  }
  .five_x2{
    top: 33%; 
  }
  .five_x2 img{
    width: 70%;
  }
  .d-wheel {
    left: 8%;
  }
  .d-wheel img {
    width: 85vw;
  }
  .spin_btn
  {
    top: 44.5%;
  }
}

/* Small devices (mobile, 374px and below) */
@media (max-width: 376px) {

  .crown2{
    top: 43%;
  }
  .crown2 img{
    width: 25%;
  }
  .gem2 {
    top: 33%;
  }
  .gem2 img{
    width: 25%;
  }
  .five_x2{
    top: 33%; 
  }
  .five_x2 img{
    left: 72%;
    width: 90%;
  }
  .d-wheel {
    left: 10%;
  }
  .d-wheel img {
    width: 80vw;
  }
  .spin_btn
  {
    top: 44%;
  }
  
}

/* Small devices (mobile, 320px and below) */
@media (max-width: 321px) {
 
  .crown2{
    top: 43%;
  }
  .crown2 img{
    width: 25%;
  }
  .gem2 {
    top: 33%;
  }
  .gem2 img{
    width: 25%;
  }
  .five_x2{
    left: 78%;
    top: 33%; 
  }
  .five_x2 img{
    width: 80%;
  }
  .d-wheel {
    left: 9.5%;
  }
  .d-wheel img {
    width: 80vw;
  }
  .spin_btn
  {
    top: 44%;
  }

}

