body {
  font-family: 'Segoe UI', sans-serif;
  background: #f7f9fb;
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 600px;
  margin: 40px auto;
  background: white;
  padding: 2em;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 10px;
}

h1, h2 {
  text-align: center;
  color: #007acc;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.module {
  background: #007acc;
  color: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
}

.module:hover {
  background: #005f99;
}

#question-container {
  margin-top: 20px;
}

button {
  padding: 10px 20px;
  margin-top: 20px;
  background: #007acc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #005f99;
}

.answer-btn {
  display: block;
  margin: 10px 0;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 5px;
  background: #f9f9f9;
  cursor: pointer;
  transition: 0.3s;
}

.answer-btn:hover {
  background: #e6f0fa;
}

#progress {
  font-size: 14px;
  text-align: right;
  color: #555;
}
.answer-btn.correct {
  background-color: #c8f7c5 !important; 
  color: #000 !important;
  border: 2px solid #28a745;
}

.answer-btn.wrong {
  background-color: #f8d7da !important; 
  color: #000 !important;
  border: 2px solid #dc3545;
}

.answer-btn {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 5px;
  background: #f9f9f9;
  cursor: pointer;
  color: #000;
  transition: background-color 0.3s, color 0.3s;
}

.answer-btn:hover {
  background-color: #e0f0ff;
}
.home-btn {
  margin: 20px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.home-btn:hover {
  background-color: #45a049;
}
.header-row {
  display: flex;
  justify-content: space-between; 
  margin-bottom: 15px;
}

#progress {
  font-size: 14px;
  color: #555;
}

#timer {
  font-size: 16px;
  font-weight: bold;
  color: #007acc;
  transition: color 0.3s ease;
}

#timer.warning {
  color: #d9534f;
}
#score-display {
  font-size: 16px;
  font-weight: bold;
  color: #28a745;              
  background: #e9f7ef;         
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #28a745;
  display: inline-block;
  min-width: 80px;
  text-align: center;
}
