/* ===== GLOBAL STYLE ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg,#0f2027,#203a43,#2c5364);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  direction: rtl;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

@keyframes gradientBG {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* ===== CONTAINER ===== */
.container {
  backdrop-filter: blur(15px);
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 35px 45px;
  width: 100%;
  max-width: 650px;
  box-shadow:
      0 20px 40px rgba(0,0,0,0.4),
      inset 0 0 0 1px rgba(255,255,255,0.2);
  color: white;
  transition: 0.4s;
}

.container:hover {
  transform: translateY(-5px);
}

/* ===== TITLE ===== */
h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
  letter-spacing: 1px;
}

/* ===== LANGUAGE BUTTON ===== */
#langToggle {
  background: linear-gradient(45deg,#4facfe,#00f2fe);
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  float: left;
  transition: 0.3s;
}

#langToggle:hover {
  transform: scale(1.05);
}

/* ===== QUESTION ===== */
.question {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 25px;
}

/* ===== OPTIONS ===== */
.options label {
  display: block;
  padding: 15px 20px;
  margin-bottom: 14px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 18px;
  background: rgba(255,255,255,0.15);
  transition: 0.3s;
  border: 2px solid transparent;
}

.options label:hover {
  background: rgba(255,255,255,0.25);
  transform: translateX(-5px);
}

/* hide radio */
input[type="radio"] {
  display: none;
}

/* SELECTED */
.options label.selected {
  background: linear-gradient(45deg,#667eea,#764ba2);
  border-color: white;
  box-shadow: 0 0 15px rgba(255,255,255,0.6);
}

/* CORRECT */
.correct {
  background: linear-gradient(45deg,#00b09b,#96c93d) !important;
  color: white;
}

/* WRONG */
.wrong {
  background: linear-gradient(45deg,#ff416c,#ff4b2b) !important;
  color: white;
}

/* ===== BUTTONS ===== */
button#nextBtn,
button#backBtn {
  margin-top: 20px;
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  background: linear-gradient(45deg,#00c6ff,#0072ff);
  color: white;
  transition: 0.3s;
}

button#nextBtn:hover,
button#backBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* ===== RESULTS ===== */
#results {
  margin-top: 25px;
  padding: 25px;
  border-radius: 15px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  display: none;
}

#results h3 {
  text-align: center;
  margin-bottom: 15px;
}

#results ul {
  list-style: none;
  padding: 0;
}

#results ul li {
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.2);
}

/* ===== SPEAK BUTTON ===== */
#toggleSpeakBtn {
  margin-left: 10px;
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(45deg,#ff9966,#ff5e62);
  color: white;
  transition: 0.3s;
}

#toggleSpeakBtn:hover {
  transform: scale(1.05);
}

/* CLEARFIX */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
/* ============================= */
/* 📱 MOBILE RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {

  body {
    padding: 15px;
    align-items: flex-start;
  }

  .container {
    padding: 20px;
    border-radius: 15px;
  }

  h2 {
    font-size: 22px;
  }

  .question {
    font-size: 20px;
  }

  .options label {
    font-size: 16px;
    padding: 14px;
  }

  button#nextBtn,
  button#backBtn {
    font-size: 16px;
    padding: 14px;
  }

  #langToggle {
    float: none;
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }

  #toggleSpeakBtn {
    width: 100%;
    margin-top: 10px;
    margin-left: 0;
  }

  #results {
    padding: 18px;
  }
}
* {
  box-sizing: border-box;
}
