body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  margin: 0;
  padding: 20px;
  direction: rtl;
  color: #fff;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo-img {
  width: 180px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

h1 {
  text-align: center;
  color: #fff;
  font-size: 36px;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
}

.levels-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  margin: 20px auto;
  max-width: 350px;
  width: 90%;
}

.level-btn {
  width: 80%;
  max-width: 280px;
  padding: 15px;
  font-size: 20px;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(45deg, #2980b9, #3498db);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 15px 0;
  font-weight: bold;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.level-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  transition: all 0.3s ease;
}

.level-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background: linear-gradient(45deg, #2573a7, #2980b9);
}

.level-btn:hover:before {
  transform: translateX(100%);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin-bottom: 30px;
  overflow: hidden;
}

#progress {
  height: 100%;
  background: linear-gradient(45deg, #00b4db, #0083b0);
  border-radius: 6px;
  transition: width 0.5s ease;
}

.choice {
  display: block;
  width: 100%;
  padding: 16px;
  margin: 15px 0;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
  font-size: 18px;
  text-align: right;
}

.choice:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.choice.selected {
  background: rgba(52, 152, 219, 0.3);
  border-color: #3498db;
}

.choice.correct {
  background: rgba(46, 204, 113, 0.3);
  border-color: #2ecc71;
  animation: celebrate 0.75s ease;
}

.choice.wrong {
  background: rgba(231, 76, 60, 0.3);
  border-color: #e74c3c;
  animation: shake 0.5s ease;
}

@keyframes celebrate {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.explanation {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 18px;
}

button#submit {
  display: block;
  width: 200px;
  margin: 25px auto;
  padding: 16px;
  background: linear-gradient(45deg, #00b4db, #0083b0);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button#submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#results {
  text-align: center;
  padding: 30px;
}

#score {
  font-size: 28px;
  color: #fff;
  margin: 30px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.dev-info-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 12px 25px;
  background: linear-gradient(45deg, #2ecc71, #27ae60);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block;
  opacity: 1;
  visibility: visible;
}

.dev-info-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  margin: 15% auto;
  padding: 30px;
  border-radius: 20px;
  width: 80%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.close {
  color: #666;
  float: left;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #000;
}

.dev-info {
  text-align: center;
  padding: 20px;
  color: #333;
}

.dev-info h3 {
  color: #2ecc71;
  margin-bottom: 15px;
  font-size: 24px;
}

.restart-btn {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin: 20px auto;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: block;
  width: 200px;
}

.restart-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #2980b9, #2573a7);
}