* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  background-color: #F5EFE6;
  overflow-x: hidden;
}

.navbar {
  background-color: black;
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  font-weight: bold;
  box-shadow: 0 0 10px black;
  z-index: 5000;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-direction: row;
}

.left-section h1 {
  font-size: 24px;
}

.icon {
  font-size: 20px;
}

.center-section a {
  text-decoration: none;
  margin: 0 10px;
  transition: 0.3s;
  text-transform: capitalize;
  letter-spacing: 2px;
  font-weight: bold;
  opacity: 0.7;
  margin: 25px;
}

.center-section a:hover {
  color: rgba(0, 0, 0, 0.836);
}

.right-section {
  display: flex;
  gap: 10px;
  margin-right: 30px;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}


.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .center-section,
  .right-section {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .center-section.show,
  .right-section.show {
    display: flex;
  }

  .center-section a {
    margin: 10px 0;
  }

  .right-section {
    align-items: flex-start;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
}
}
.start-btn {
  background-color: #4CAF50; 
  color: white;
  padding: 12px 24px;
  font-size: 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.start-btn:hover {
  background-color: #45a049; 
}
.next-btn {
  background-color: #4CAF50;
  color: white;
  padding: 12px 24px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.next-btn:hover {
  background-color: #45a049;
}

#quizContainer{
    display: none;
}
.question-box {
  background-color: #ffffff;
  padding: 24px 28px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  font-size: 22px;
  font-weight: 600;
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
  margin-top: 20px;
}

.question-text {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  line-height: 1.7;
  text-align: right;
  direction: rtl;
}

.options-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 20px;
font-weight: bold;
}

.options-list li {
  background-color: #f2f2f2;
  padding: 14px 18px;
  margin-bottom: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.options-list li:hover {
  background-color: #e0e0e0;
}
#quizContainer {
  display: none;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

#quizContainer h3 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: #333;
    font-weight: bold;

}

.options-list {
  list-style: none;
  padding: 0;
}

.options-list li {
  background-color: #fff;
  padding: 10px 15px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s;
}

.options-list li:hover {
  background-color: #f0f0f0;
}

.options-list li.correct {
  background-color: green !important;
  color: white;
}

.options-list li.wrong {
  background-color: red !important;
  color: white;
}

#quizContainer h3.end-message {
  text-align: center;
  font-size: 1.4em;
  color: #555;
}
#showLevel button{
  margin: 4px;
}