/* General Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

button {
  padding: 10px 20px;
  margin: 10px;
  font-size: 16px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
}

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

/* Progress Tracker */
#progress-tracker-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}

#progress-tracker {
  display: flex;
  gap: 10px;
  padding: 10px;
}

.progress-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ccc;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}

.progress-circle.attended {
  background-color: green;
  color: white;
}

.progress-circle.unattended {
  background-color: #ccc;
  color: black;
}

.progress-circle.skipped {
  background-color: red;
  color: white;
}

/* Timer */
#timer {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: green; /* Default color */
}

#timer.yellow {
  color: orange;
}

#timer.red {
  color: red;
}

/* Questions Container */
#questions-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: left;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
}

.question {
  margin-bottom: 25px;
}

.options {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
}

.option {
  padding: 10px;
  margin-bottom: 12px;
  background-color: #f4f5f7;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.option:hover {
  background-color: #e0e7ff;
  transform: translateX(5px);
}

.option.selected {
  background-color: #c7d2fe;
}

/* Navigation Buttons */
#navigation-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

#navigation-buttons button {
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  background-color: #28a745;
  transition: background-color 0.3s ease;
}

#navigation-buttons button:hover {
  background-color: #218838;
}

#navigation-buttons button:focus {
  outline: none;
}
/* Result Screen */
#answers-container {
  text-align: left;
  margin-top: 20px;
}

.correct {
  color: green;
}

.incorrect {
  color: red;
}

.unattended {
  color: blue;
}


#restart-btn {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  background-color: #ffc107;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#restart-btn:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

#restart-btn:active {
  transform: translateY(1px);
}

#restart-btn:focus {
  outline: none;
}

p {
  margin: 0;
  padding: 0;
}

span {
  font-size: 18px;
  font-weight: 600;
  margin-right: 20px; /* Space between score and button */
}

#instructions {
  background-color: #f4f7fb;
  border-radius: 10px;
  padding: 20px;
  width: 80%;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#instructions h2 {
  color: #2c3e50;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

#instructions ul {
  list-style-type: none;
  padding: 0;
  font-size: 16px;
}

#instructions li {
  margin: 10px 0;
  color: #34495e;
  text-align: left;
}

#instructions li strong {
  color: #e74c3c;
  font-weight: 600;
}

/* Styling for the inline elements */
.inline {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.separator {
  margin: 0 10px;
  color: #7f8c8d;
}

#instructions li:hover {
  background-color: #ecf0f1;
  padding-left: 10px;
  transition: all 0.3s;
}

#user-input {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
  }

  #user-input label {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
  }

  #user-input input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    transition: border-color 0.3s ease;
  }

  #user-input input:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
  }

  #user-input input::placeholder {
    color: #7f8c8d;
    font-style: italic;
  }

  #user-input input:hover {
    border-color: #95a5a6;
  }


  #subject-screen {
    display: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
    margin: auto;
  }
  
  #subject-screen h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
  }
  
  #subject-screen button {
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    width: 100%;
    border: none;
    border-radius: 5px;
    margin: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #subject-screen button:hover {
    background-color: #45a049;
  }
  


/* Responsive Design */
@media (max-width: 600px) {

  #timer {
    font-size: 20px;
  }

  #progress-tracker {
    gap: 5px;
  }

  .progress-circle {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }

  #navigation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  #navigation-buttons button {
    flex: 1 1 45%;
    font-size: 14px;
  }
}