body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  color: #333;
}

header {
  background-color: #6200ea;
  color: white;
  padding: 1rem;
  text-align: center;
}

h1 {
  margin: 0;
}

.main {
  padding: 1rem;
  width: 90%;
  margin: auto;
  background: #C7C7C7;
}

.feild {
  display: block;
  width: calc(100% - 2rem);
  margin: 0.5rem 0;
  padding: 0.5rem;
  border: 1px solid #5E0AFF;
  border-radius: 0.4rem;
  transition: all 0.3s linear;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.feild:focus{
  outline: none;
  box-shadow: 0 0 0.5rem #0A9CFF;
  border-color: #0A9CFF
}
button {
  background-color: #6200ea;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  border-radius: 0.3125rem; /* 5px */
  margin: 0.5rem 0;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #3700b3;
}

.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
}

.theme-label {
  margin-right: 0.5rem;
}

.slider {
  width: 3.125rem; /* 50px */
  height: 1.5625rem; /* 25px */
  background-color: #ccc;
  border-radius: 1.5625rem; /* 25px */
  position: relative;
  cursor: pointer;
  transition: background-color 0.4s;
}

.slider::before {
  content: '';
  position: absolute;
  width: 1.4375rem; /* 23px */
  height: 1.4375rem; /* 23px */
  background-color: white;
  border-radius: 50%;
  top: 0.0625rem; /* 1px */
  left: 0.0625rem; /* 1px */
  transition: transform 0.4s;
}

input[type="checkbox"]:checked + .slider::before {
  transform: translateX(1.5625rem); /* 25px */
}

input[type="checkbox"]:checked + .slider {
  background-color: #6200ea;
}

/* Timer Styles */
.timer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #6200ea;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 1.125rem; /* 18px */
  text-align: center;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.timer.hidden {
 display: none;
}

/* Progress Indicator */
.progress-container {
  width: 100%;
  background-color: #f3f3f3;
  border-radius: 1.5625rem; /* 25px */
  margin: 1rem 0;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 1.25rem; /* 20px */
  background-color: #6200ea;
  transition: width 0.4s ease-in-out;
}

/* Feedback Styles */
.correct {
  background-color: #d4edda;
  color: #155724;
}

.incorrect {
  background-color: #f8d7da;
  color: #721c24;
}
.error{
  color: #FF0000;
}
/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.red-text {
  color: red;
}

/* Dark Mode */
body.dark-theme {
  background-color: #121212;
  color: white;
}
.dark-theme .main{
  background: #515050;
}
.dark-theme header {
  background-color: #333;
}

.dark-theme button {
  background-color: #6200ea;
}

.dark-theme button:hover {
  background-color: #3700b3;
}

.dark-theme .feild {
  background-color: #333;
  color: white;
}
.hide{
  display: none;
}