@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  font-family: "Inter", sans-serif;

  background-image: url(../img/green-background-920072__340.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  position: relative;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.loader .text {
  position: absolute;
  display: flex;
  align-items: center;
  text-align: center;
  bottom: 15px;
  color: #b6b6b6;
  font-weight: 600;
}


.loader .img img {
  max-width: 200px;
  pointer-events: none;
  animation: loader-ani infinite alternate 5.8s;
}

@keyframes loader-ani {
  0% {
    transform: scale(0.4);
    opacity: 0.7;
  }

  50% {

    opacity: 0.9;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.content {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.game {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  border-radius: 16px;
  padding: 40px;
  background-color: transparent;
  max-width: 500px;
  min-width: 450px;
  text-align: center;
  box-sizing: border-box;
  font-family: 'Patrick Hand', cursive;
}

.problem {
  font-size: 8rem;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* işlem ortalanır */
  color: #fff;
}

.line {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%
    /* işlem satırı sabit genişlikte */

}

.empty {
  width: 20px;
}

.plus {
  margin-right: 10px;
}

.underline {
  width: 240px;
  /* konteynerin tamamı */
  display: flex;
  justify-content: center;
  /* ortalar */
  margin-top: 10px;
}

.underline::after {
  content: "";
  display: block;
  width: 340px;
  height: 5px;
  background-color: #000;
}

p {
  font-size: 3rem;
  margin: 20px 0 10px;
  text-align: center;
  color: #d4edda;
}

.answers {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.answer {
  padding: 30px;
  background-image: url(../img/bg-cvp.png);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  text-align: center;
  cursor: pointer;
  color: #000;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.line img {
  width: 300px;
  height: auto;
}

.feedback {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  background: #d4edda;
  color: #155724;
  padding: 1rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 10;
  font-family: "Inter", sans-serif;
  font-weight: 900;
}

.feedback.show {
  opacity: 1;
  transform: translate(-50%, -60%);
}

.hidden {
  display: none;
}

.wrong {
  background: #f8d7da;
  color: #721c24;
}

.time {
  position: absolute;
  top: -70px;
  right: -600px;
  padding: 10px;
  font-size: 20px;
  font-family: sans-serif;
  background-color: #fff;
  border-radius: 8px;
}

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  color: #000;
  padding: 15px;
  border-radius: 1rem;
  text-align: center;
}

.play p {
  color: #000;
  font-size: 2rem;
}

.play button {
  border: none;
  padding: 15px 30px;
  background-color: #1fa73f;
  border-radius: 15px;
  color: #f0f0f0;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.play button:hover,
.play button:active {
  opacity: 0.5;
}

/* Mobilde uyarı overlay’i gizli başlasın */
.wait {
  display: none;
  position: fixed;
  z-index: 9999;
  /* Üstte görünsün */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  /* Metin taşarsa kaydır */
}

.wait h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.wait span {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}

.wait p {
  font-size: 1rem;
  max-width: 90%;
  line-height: 1.4;

}

/* 768px ve altındaki ekranlarda */
@media screen and (max-width: 768px) {
  .wait {
    display: flex;
    /* Flex ile ortala */
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

}