@font-face {
  font-family: "Shantell";
  src: url("fonts/ShantellSans-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Sagoe-UI';
  src: url("fonts/Sagoe-UI.woff2") format("woff2");
  src: url("fonts/Sagoe-UI.woff") format("woff");
  src: url("fonts/Sagoe-UI.ttf") format("truetype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Sagoe-UI", sans-serif;
  background: url("bg.jpg") no-repeat center center fixed;
  background-size: contain;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transform: scale(1.6);
  -webkit-transform: scale(1.7);
  -moz-transform: scale(1.7);
  -ms-transform: scale(1.7);
  -o-transform: scale(1.7);
}

.game-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wheel-container {
  position: relative;
  width: 500px;
  height: 500px;
}

.daisy {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.center-circle {
  position: absolute;
  width: 180px;
  height: 180px;
  background: #693d18;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  border: 3px solid #cf811f;
  border-style: dashed;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: transform 0.2s;
}

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

.center-circle.spinning {
  animation: pulse 0.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.petal {
  position: absolute;
  width: 70px;
  height: 220px;
  /* background: linear-gradient(145deg, #f9fc24, #ae2121); */
  /* background: linear-gradient(145deg, #f8b131, #bd7f10); */
  /* background: linear-gradient(145deg, #ffa503db, #c47509); */
  background: linear-gradient(72deg, #df7c04, #f7b95e);
  border-radius: 48% 48% 50% 50%;
  top: 50%;
  left: 50%;
  margin-left: -35px;
  margin-top: -215px;
  transform-origin: center bottom;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -webkit-border-radius: 48% 48% 50% 50%;
  -moz-border-radius: 48% 48% 50% 50%;
  -ms-border-radius: 48% 48% 50% 50%;
  -o-border-radius: 48% 48% 50% 50%;
  box-shadow: 3px -2px 10px 0px #693d1859;
}

.petal.illuminated {
  background: linear-gradient(145deg, #ffd166, #ff9e00);
  box-shadow: 0 0 30px #ffd166;
  z-index: 5;
  filter: brightness(1.3);
}

.petal-question {
  font-size: 0.55rem;
  color: #693d18;;
  font-weight: bold;
  text-align: center;
  width: 100%;
  padding: 5px 2px;
  position: absolute;
  top: 25px;
  left: 0;
  transform-origin: center;
}

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

.question-modal.active {
  display: flex;
}

.question-content {
  background: #ffffffad;
  backdrop-filter: blur(5px);
  padding: 40px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.question-content h2 {
  color: #02687c;
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.answers {
  display: grid;
  gap: 15px;
}

.answer-btn {
  padding: 20px;
  font-size: 1.1rem;
  border: 1px solid #c27c17;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
  color: #c27c17;
  font-family: 'Sagoe-UI', sans-serif;
}

.answer-btn:hover {
  background: #c27c17;
  color: white;
  transform: translateY(-2px);
}

.answer-btn.correct {
  background: #06d6a0;
  color: white;
  border-color: #06d6a0;
}

.answer-btn.incorrect {
  background: #ef476f;
  color: white;
  border-color: #ef476f;
}

.answer-btn:disabled {
  cursor: not-allowed;
}

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

.popup-modal.active {
  display: flex;
}

.popup-content {
  background: white;
  padding: 40px;
  text-align: center;
  animation: fadeIn 0.5s;
}

.popup-content h2 {
  color: #1a2a6c;
  font-size: 2rem;
}

#congratulations-modal .popup-content h2 {
  color: #06d6a0;
}

#tryagain-modal .popup-content h2 {
  color: #ef476f;
}

.close-btn {
  margin-top: 30px;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #c27c17;
  color: white;
}

.close-btn:hover {
  background: #3da9a1;
}
