@font-face {
  font-family: "MuseoSansCyrl-500";
  src: url("./font/MuseoSansCyrl-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MuseoSansCyrl-700";
  src: url("./font/MuseoSansCyrl-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MuseoSansCyrl-900";
  src: url("./font/MuseoSansCyrl-900.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "MuseoSansCyrl-500";
}
body {
  width: 100vw;
  height: 100vh;
  background-color: #d7f252;
  background-image: none;
  overflow: hidden;
}
.screen {
  width: 100%;
  height: 100%;
  position: relative;
}
.hidden {
  display: none !important;
}

.wheel-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}
.wheel-screen .wheel {
  width: 700px;
  position: absolute;
  bottom: -60%;
  transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.wheel-screen .gradient {
  width: 100%;
  height: 20%;
  position: absolute;
  bottom: -10%;
  background: linear-gradient(#d7f25200, #d7f252, #d7f252);
  z-index: 10;
}
.wheel-screen .union {
  width: 10%;
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
}
.wheel-screen h2 {
  width: auto;
  font-family: "MuseoSansCyrl-900";
  font-size: 2.4vw;
  font-weight: 900;
  color: #000;
  margin-bottom: 0;
  position: absolute;
  top: 10%;
}
.wheel-screen input[type="submit"] {
  position: absolute;
  bottom: 5%;
  z-index: 100;
  width: 20%;
  margin-bottom: 1vw;
  border: none;
  outline: none;
  border-radius: 10vw;
  padding: 1.1vw 2vw;
  background-color: #00b923;
  font-family: "MuseoSansCyrl-500";
  font-size: 1vw;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  transition: .3s ease-in-out;
}
.wheel-screen input[type="submit"]:hover {
  cursor: pointer;
  scale: 1.01;
}
.wheel-screen p {
  width: auto;
  position: absolute;
  top: 95%;
  text-align: center;
  z-index: 1000;
  font-size: 1vw;
  color: #000;
}

.result-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.result-screen .gradient {
  width: 100%;
  height: 20%;
  position: absolute;
  bottom: -10%;
  background: linear-gradient(#ffffff00, #FFFFFF, #FFFFFF);
  z-index: 10;
}
.result-screen .food {
  max-width: 320px;
  position: relative;
  top: -6vw;
  animation: scale .7s ease-in-out;
}
@keyframes scale {
  from {
    scale: 0;
  }
  to {
    scale: 100%;
  }
}
.result-screen .bg {
  background-image: url(./img/bg3.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: fixed;
  top: -65vh;
  left: -25vw;
  width: 150vw;
  height: 250vh;
  z-index: -1;
  animation: rotate 25s linear infinite;
  transform-origin: center center;
}
@keyframes rotate {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}
.result-screen h2 {
  width: 80%;
  font-family: "MuseoSansCyrl-900";
  font-size: 2.2vw;
  font-weight: 900;
  color: #000;
  text-align: center;
  position: relative;
  top: 3vw;
  z-index: 1;
  margin-bottom: 0;
}
.result-screen .message {
  width: 13vw;
  position: absolute;
  top: 73%;
  left: 30%;
}
.result-screen .badges {
  width: 8vw;
  position: absolute;
  top: 29%;
  left: 58%;
  animation: badge 5s ease-in-out infinite;
}
@keyframes badge {
  0% {
    rotate: 0;
  }
  20% {
    rotate: 4deg;
  }
  40% {
    rotate: -4deg;
  }
  60% {
    rotate: 4deg;
  }
  80% {
    rotate: -4deg;
  }
  100% {
    rotate: 0;
  }
}

@media (max-width: 960px) {
  .wheel-screen .wheel {
    width: 80%;
    bottom: 17%;
  }
  .wheel-screen p {
    font-size: 2vw;
  }

  .result-screen .bg {
    top: -70vh;
    left: -30vw;
  }
  .result-screen .food {
    width: 80%;
    top: -20%;
  }
  .result-screen h2 {
    font-size: 4vw;
  }
  .result-screen .message {
    width: 30vw;
    top: 70%;
    left: 10%;
  }
  .result-screen .badges {
    width: 15vw;
    top: 37%;
    left: 63%;
  }
}
@media (max-width: 480px) {
  .wheel-screen h2 {
    top: 7%;
    width: 90%;
    font-size: 7vw;
  }
  .wheel-screen .wheel {
    width: 200%;
    bottom: -62%;
  }
  .wheel-screen .union {
    width: 20%;
    top: 30%;
  }
  .wheel-screen .gradient {
    height: 40%;
    bottom: 0;
    background: linear-gradient(#d7f25200, #d7f252);
  }
  .wheel-screen input[type="submit"] {
    bottom: 5%;
    width: 90%;
    padding: 5vw;
    font-size: 5vw;
  }
  .wheel-screen p {
    width: 95%;
    top: 95%;
    font-size: 4vw;
  }

  .result-screen h2 {
    top: 7vh;
    font-size: 6vw;
  }
  .result-screen .bg {
    width: 300vw;
    height: 200vh;
    top: -40vh;
    left: -100vw;
  }
  .result-screen .food {
    top: -15%;
    max-width: 75%;
  }
  .result-screen .message {
    width: 40vw;
    top: 80%;
    left: 10%;
  }
  .result-screen .badges {
    width: 27vw;
    top: 35%;
    left: 65%;
  }
}
