/* Basic styling for cognitive ability test questions */

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
}

.question-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.question-text {
  margin-bottom: 20px;
}

.options {
  margin-bottom: 20px;
}

.option {
  margin-bottom: 10px;
  padding: 5px;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.comparison-table th, .comparison-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.comparison-table th {
  background-color: #f2f2f2;
}

.submit-button {
  margin-top: 20px;
}

.correct {
  background-color: #dff0d8;
}

.incorrect {
  background-color: #f2dede;
}

.badge-correct {
  color: green;
  font-weight: bold;
  margin-left: 10px;
}

.badge-incorrect {
  color: red;
  font-weight: bold;
  margin-left: 10px;
}

.nav-links {
  margin-top: 20px;
}

/* Home Page Styles */
.home-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.notice-box {
  background-color: #f8f9fa;
  border-left: 4px solid #28a745;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.notice-box h3 {
  color: #28a745;
  margin: 0 0 10px 0;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.welcome-text {
  margin: 30px 0;
  line-height: 1.7;
}

.welcome-text p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333;
}

.question-types {
  margin: 40px 0;
}

.question-types h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
  position: relative;
  padding-bottom: 10px;
}

.question-types h2:after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #3498db;
  margin: 10px auto 0;
}

.question-types-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
  max-width: 600px;
}

.question-type-row {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.question-type {
  flex: 1;
  background: white;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.question-type:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.type-icon {
  color: #3498db;
  font-size: 1.5em;
  line-height: 1;
}

.type-name {
  font-size: 1em;
  color: #2c3e50;
}

.start-practice {
  text-align: center;
  margin: 40px 0;
}

/* Button styles */
.start-button, .next-button, .submit-button input[type="submit"], .home-button {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  margin: 5px;
}

/* Hover state for all buttons */
.start-button:hover, .next-button:hover, .submit-button input[type="submit"]:hover, .home-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Active state for all buttons */
.start-button:active, .next-button:active, .submit-button input[type="submit"]:active, .home-button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Specific style for home button */
.home-button {
  background-color: #6c757d;
}

.home-button:hover {
  background-color: #5a6268;
}
