.fortune-wheel {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.fortune-btn-close-modal {
  background-image: url("../images/fortune-close-button.svg");
  top: 20px;
  right: 15px;
  background-size: 30px;
  width: 50px;
  height: 50px;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  pointer-events: all;
}

.deal-wheel {
  /*--size: clamp(700px, 350vmin, 750px);*/
  --size: 35vw;
  --lg-hs: 0 3%;
  --lg-stop: 50%;
  --lg: linear-gradient(
      hsl(var(--lg-hs) 0%) 0 var(--lg-stop),
      hsl(var(--lg-hs) 20%) var(--lg-stop) 100%
    );
  position: relative;
  display: grid;
  grid-gap: calc(var(--size) / 20);
  align-items: center;
  grid-template-areas:
    "spinner"
    "trigger";
  font-size: 16px;
  /*margin-top: 1%;*/
}

.deal-wheel > * {
  grid-area: spinner;
}

.deal-wheel .btn-spin {
  grid-area: trigger;
  justify-self: center;
}

.spinner {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-areas: "spinner";
  width: var(--size);
  height: var(--size);
  transform: rotate(calc(var(--rotate, 25) * 1deg));
  border-radius: 50%;
}

.spinner * {
  grid-area: spinner;
}

.prize {
  display: flex;
  align-items: center;
  padding-left: 5%;
  width: 50%;
  height: 50%;
  transform-origin: center right;
  transform: rotate(var(--rotate));
  user-select: none;
}

span.text{
  transform: scale(-1);
}
/*.ticker {*/
/*  position: relative;*/
/*  left: calc(var(--size) / -15);*/
/*  width: calc(var(--size) / 10);*/
/*  height: calc(var(--size) / 20);*/
/*  background: var(--lg);*/
/*  z-index: 1;*/
/*  clip-path: polygon(20% 0, 100% 50%, 20% 100%, 0% 50%);*/
/*  transform-origin: center left;*/
/*}*/

.ticker {
  position: relative;
    left: calc(var(--size) / 2.115);
    top: calc(var(--size) / -2);
    transform: rotate(90deg);
    width: calc(var( --size) / 15);
    height: calc(var( --size) / 10);
    background: black;
    z-index: 1;
    clip-path: polygon(0% 0, 100% 50%, 0% 100%, 0% 50%);
}

.btn-spin {
  color: black;
  background: #9DEA00;
  border: 1px solid #FFFFFF;
  font-size: 32px;
  padding: 0.9rem 2rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  margin-left: 25%;
  margin-top: 12%;
}
.win-prize-back-btn{
  margin-top: 5vh;
  font-size: 32px;
  color: black;
  font-weight: normal;
  background: #9DEA00;
  border: 1px solid #FFFFFF;
  padding: 1.2rem 3rem;
  cursor: pointer;
  border-radius: 15px;
  line-height: 39px;
}

.win-prize-back-btn:disabled {
  cursor: progress;
  opacity: 0.25;
}

.btn-spin:disabled {
  cursor: progress;
  opacity: 0.25;
}

.is-spinning .spinner {
  transition: transform 8s cubic-bezier(0.1, -0.01, 0, 1);
}

.is-spinning .ticker {
          animation: tick 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.overlay_fortune{
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0;
  left: 0;
}


@keyframes tick {
  40% {
    transform: rotate(-12deg);
  }
}

.prize.selected .text {
  color: white;
  animation: selected 800ms ease;
}

@keyframes selected {
  25% {
    transform: scale(1.25);
    text-shadow: 1vmin 1vmin 0 hsla(0 0% 0% / 0.1);
  }
  40% {
    transform: scale(0.92);
    text-shadow: 0 0 0 hsla(0 0% 0% / 0.2);
  }
  60% {
    transform: scale(1.02);
    text-shadow: 0.5vmin 0.5vmin 0 hsla(0 0% 0% / 0.1);
  }
  75% {
    transform: scale(0.98);
  }
  85% {
    transform: scale(1);
  }
}

.fortune-wheel-modal {
  background: url("../images/fortune_background.png") no-repeat;
  background-size: cover;
  border-radius: 40px;
}

.fortune-wheel-head-description {
    color: white;
    font-style: normal;
    font-weight: 800;
    font-size: 5vw;
    line-height: 5vw;
    text-align: center;
    padding-top: 10%;
    /*margin-top: 10%;*/
    /*padding-left: 14%;*/
}

.fortune-wheel-description {
  font-style: normal;
  color: white;
  font-size: 4vh;
  font-weight: 100;
  line-height: 4vh;
  padding-top: 5%;
  /*padding-left: 15%;*/
  text-align: center;
}

.win-prize-head {
  font-weight: 800;
  font-size: 64px;
  line-height: 78px;
  text-align: center;
  color: white;
  margin-top: 15%;
}

.win-prize-name {
  font-weight: 500;
  font-size: 40px;
  line-height: 49px;
  text-align: center;
  color: white;
}

.fortune-flex {
  align-items: center;
  -webkit-box-orient: horizontal!important;
  -webkit-box-direction: normal!important;
  flex-direction: row!important;
  display: flex!important;
}

.win-prize-info {
  font-weight: 400;
  font-size: 24px;
  line-height: 29px;
  text-align: center;
  color: white;
  margin-top: 30vh;
}

@media only screen and (max-width: 850px) {

  .fortune-wheel {
    justify-content: center;
  }

  .fortune-wheel-modal {
    border-radius: 40px 40px 0 0;
    background: url("../images/fortune_background_mobile.png") round;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-top: 15vh;
    min-width: 100vw;
  }

  .fortune-wheel-head-description {
    font-size: 40px;
    line-height: 5vh;
  }

  .fortune-flex {
    -webkit-box-orient: vertical!important;
    -webkit-box-direction: normal!important;
    flex-direction: column!important;
    display: flex!important;
  }

  .fortune-wheel-description {
    line-height: 5vh;
    font-size: 28px;
  }

  .btn-spin {
    font-size: 20px;
    position: center;
    margin-left: 20%;
    margin-top: 6vh;
  }

  .fortune-mobile {
    margin: 0!important;
    padding: 0!important;
  }

  .fortune-mobile-info {
    margin-bottom: 140%;
  }

  .btn-spin-mobile {
    margin-top: 15%;
  }

  .win-prize-head {
    font-size: 32px;
    line-height: 39px;
  }

  .fortune-btn-close-modal {
    top: 1vh;
    right: 1vw;
  }

  .deal-wheel {
    /*--size: clamp(260px, 360vmin, 360px);*/
    --size: 90vw;
    --lg-hs: 0 3%;
    --lg-stop: 50%;
    --lg: linear-gradient(
        hsl(var(--lg-hs) 0%) 0 var(--lg-stop),
        hsl(var(--lg-hs) 20%) var(--lg-stop) 100%
      );
    display: grid;
    grid-gap: calc(var(--size) / 20);
    align-items: center;
    grid-template-areas:
      "spinner"
      "trigger";
    font-size: 10px;
    margin-top: 10vh;
    position: fixed;
    bottom: -190px;
    left: 5%;
  }

}