/* ===== practiceexam_styles.css ===== */

/* General body styling */
body {
  font-family: Arial, sans-serif;
  max-width: 600px;
  margin: 30px auto;
  padding: 15px;
  background-color: #fafafa;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 10px;
}

/* Intro screen container */
#intro-screen {
  padding: 20px;
  border: 1px solid #bbb;
  background-color: #f0f8ff;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
}

/* Intro buttons */
#intro-screen button {
  margin: 10px 10px 10px 0;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid #007acc;
  background-color: #0088ff;
  color: white;
  transition: background-color 0.3s ease;
}

#intro-screen button:hover {
  background-color: #005fa3;
}

/* Topic select container */
#topic-select-container {
  margin-top: 15px;
  text-align: center;
}

#topic-select {
  padding: 6px 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Section title */
#section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

/* Question text */
#question-text {
  font-size: 18px;
  margin-bottom: 15px;
  text-align: center;
}

/* Answer options */
#answer-options {
  margin-bottom: 20px;
}

/* Each label for options */
#answer-options label {
  display: block;
  background-color: #e7f0ff;
  border-radius: 5px;
  padding: 10px 15px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 16px;
  border: 1px solid #a3c0ff;
  transition: background-color 0.3s ease;
  text-align: left;
}

/* Highlight on hover */
#answer-options label:hover {
  background-color: #c4d9ff;
}

/* Radio buttons */
#answer-options input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.2);
  vertical-align: middle;
}

/* Submit and Reset buttons */
button[type="submit"], #reset-btn {
  background-color: #007acc;
  border: none;
  color: white;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  margin: 0 auto 20px auto;
  min-width: 140px;
}

button[type="submit"]:hover, #reset-btn:hover {
  background-color: #005fa3;
}

/* Results table styling */
#results-table {
  margin-top: 20px;
  text-align: center;
}

#results-table h2 {
  margin-bottom: 15px;
}

#results-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}

#results-table th, #results-table td {
  border: 1px solid #ccc;
  padding: 10px;
}

#results-table th {
  background-color: #007acc;
  color: white;
}

#results-table tr:nth-child(even) {
  background-color: #f2f9ff;
}

.score-good {
  font-weight: bold;
  color: #2ecc71;
  font-size: 18px;
  text-align: center;
}

.score-bad {
  font-weight: bold;
  color: #e74c3c;
  font-size: 18px;
  text-align: center;
}

.result-warning {
  color: #c0392b;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}

@media (max-width: 600px) {
  body {
    padding: 10px;
    margin: 0;
    border: none;
    border-radius: 0;
  }

  #section-title {
    font-size: 22px;
  }

  #question-text {
    font-size: 16px;
  }

  button {
    width: 100%;
  }

  #results-table th,
  #results-table td {
    font-size: 14px;
  }
}
