html,
body {
  font-family: "TTFirs", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background: url("../assets/images/bg-mob.png") no-repeat center/cover, #0b0000;
  color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.btn {
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 30px;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    #ff1c6e 0%,
    #ff0059 28.83%,
    #cf002b 89.52%
  );
  min-width: 162px;
  box-shadow: 0px 0px 14px 0px #ff0033cc;
  box-shadow: 0px -2.76px 0px 0px #00000040 inset;
  box-shadow: 0px 1.38px 0px 0px #ffffff66 inset;
}
.btn:hover,
.btn:active {
  background: linear-gradient(
    360deg,
    #f80152 6.45%,
    #ff14d0 77.89%,
    #ff87ed 95.97%
  );
}
.header {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 32px 25px 12px 25px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}
.header-logo {
  flex-shrink: 0;
}
.header-logo img {
  width: 60px;
  height: 44px;
}

.header-title {
  font-size: 1.25rem;
  text-transform: uppercase;
  align-self: center;
  font-weight: 800;
  margin: 0 auto;
}
main {
  padding: 100px 0 0 0;
  position: relative;
}
.joker {
  position: absolute;

  display: none;
}

.joker-logo {
  margin: -50px auto 0 auto;
}
.wheel-container {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}
.wheel-container img {
  pointer-events: none;
}
.wheel-joker {
  display: block;
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -100px;
  transform: translate(-50%, 0);
}

.wheel-flame,
.wheel-outer,
.wheel-arrow {
  position: absolute;
}
.wheel-flame,
.wheel-outer {
  top: 0;
}

.wheel-arrow {
  left: 50%;
  top: 10%;
  transform: translate(-50%, 0);
  z-index: 1;
  width: 52px;
  height: 60px;
}
.wheel-flame {
  position: absolute;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: url("../assets/images/flame/1.png") no-repeat center/110%;
  animation: spinFrames 1s infinite;
  /* background: url("../assets/images/wheel-flame-sprite.png") no-repeat 0 0;
  background-size: 500% 400%;
  animation: flame 1s steps(20) infinite; */
}

.wheel-flame--active {
  display: block;
}
.wheel-button {
  position: absolute;
  width: 150px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.wheel-button img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wheel-button-default,
.wheel-button-hover,
.wheel-button-active {
  display: none;
}

.wheel-button .wheel-button-default {
  display: block;
}

.wheel-button:hover .wheel-button-default {
  display: none;
}
.wheel-button:hover .wheel-button-hover {
  display: block;
}

.wheel-button:active .wheel-button-hover {
  display: none;
}
.wheel-button:active .wheel-button-active {
  display: block;
}
.wheel-button--pulse {
  animation: pulse 1s infinite;
}
.wheel-sectors {
  width: 100%;
  height: 100%;
}
.footer {
  font-weight: 400;
  font-size: 10px;
  text-align: center;
  padding: 10px 0;
  margin-top: auto;
}
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;

  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal--active {
  visibility: visible;
  opacity: 1;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.modal-content,
.modal-content2 {
  position: relative;
  text-align: center;
}
.modal-content2 {
  cursor: pointer;
}
.modal-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Hide modalContent1 by default, show modalContent2 by default */
#modalContent1 {
  display: none;
}

#modalContent2 {
  display: block;
}
.modal-content-texture {
  position: absolute;
}
.modal2 {
  display: none;
}
.modal2--default {
  display: block;
}

.modal-content2:hover .modal2--default {
  display: none;
}
.modal-content2:hover .modal2--hover {
  display: block;
}

.modal-content-title {
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1;

  color: #ffecaa;
  text-shadow: -2px 3px 17px rgba(255, 236, 170, 0.6);
  font-weight: 900;
  margin-bottom: 20px;
}
.modal-content-title p {
  font-size: 14px;
}
.modal-content-title span {
  display: block;
}

@media (max-height: 600px) {
  .joker-logo {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  main {
    padding: 100px 0 0 0;
  }
}
@media (max-width: 425px) {
  .header-title {
    font-size: 16px;
  }
}
@media (max-width: 350px) {
  .header-title {
    font-size: 14px;
  }
  .modal-content-title {
    font-size: 18px;
  }
  .modal-content-title p {
    font-size: 12px;
  }
}
@media (max-width: 319px) {
  .header-title {
    font-size: 12px;
  }
}
@media (min-width: 1024px) {
  main {
    padding: 0;
  }
}
@media (min-width: 768px) {
  body {
    background: url("../assets/images/bg.png") no-repeat center/cover, #0b0000;
  }
  .btn {
    min-width: 240px;
    font-size: 24px;
  }

  .wheel-button {
    width: 200px;
    height: 200px;
  }
  .header {
    padding: 32px 120px 12px 120px;
    align-items: center;
  }

  .header-title br {
    display: none;
  }
  .wheel-arrow {
    top: 50px;
    width: auto;
    height: auto;
    transform: translate(-50%, 0);
  }
  .modal-content-title {
    font-size: 60px;
  }
  .modal-content-title p {
    font-size: 26px;
  }
}
.spin1 {
  animation: spin1 5s forwards;
}
.spin2 {
  animation: spin2 5s forwards;
}
.rotate {
  animation: rotate 5s infinite ease-in;
}
@media (min-width: 1024px) {
  .joker {
    left: auto;
    transform: none;
    right: 0;
    bottom: 0;
    top: initial;
    display: block;
  }
  .wheel-joker {
    display: none;
  }
}
@media (min-width: 1440px) {
  .joker {
    right: 177px;
  }
  .header-title {
    font-size: 2.25rem;
  }
}
