/* General styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

header {
  text-align: center;
  background-color: #4CAF50;
  color: white;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.student-subject {
  display: flex;
  justify-content: space-between;
}

#timer {
  margin-top: 20px;
  font-size: 0.8rem;
  background: #930823;
  color: #fff;
  border-radius: 20px;
  padding: 5px;
}

.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.hidden {
  display: none;
}

#studentId, #password {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
}

.show-password {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.modal-content button {
  padding: 12px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  margin: 20px 0;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #45a049;
}

#questionContainer {
  padding: 20px;
  margin: 0 auto;
  width: 100vw;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#questionContainer h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #333;
}

#questionContainer p {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #666;
}

.options {
  display: flex;
  align-items: center;
  margin-bottom: -5px;
  font-size: 1rem;
  color: #333;
  gap: 10px;
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 0 20px;
}

.navigation button {
  padding: 10px 20px;
  background-color: #4c78af;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  flex: 1;
  margin: 0 10px;
}

.navigation button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.navigation button:hover:not(:disabled) {
  opacity: 0.6;
}

#submitBtn {
  background-color: #45a049;
}

.progress {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding-bottom: 20px;
}

.circle {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  text-align: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.circle:hover {
  background-color: #888;
}

.circle.attempted {
  background-color: #4CAF50;
  color: white;
}
#confirmText {
  font-size: 20px;
  font-weight: bold;
  margin: 50px;
}
.confirm-button {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 50px;
}
.confirm-button button {
  font-weight: bold;
}
.confirm-button button:nth-child(2) {
  background-color: #4c78af;
}

@media (max-width: 600px) {
  header {
    padding: 10px;
  }

  #questionContainer {
    padding: 15px;
  }

  .navigation button {
    padding: 8px 16px;
    margin: 0 5px;
  }

  .circle {
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 0.8rem;
  }
  
  .confirm-button {
    flex-direction: column;
    gap: 0;
  }
  .confirm-button button {
    margin-bottom: 2px;
  }
  
}
