body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 20px;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
}

textarea {
  width: calc(100% - 24px);
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
  resize: vertical;
}

select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  margin-right: 10px;
}

button {
  background-color: #3498db;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #2980b9;
}

#score {
  margin-top: 30px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow-x: auto; /* Enable horizontal scrolling */
}

table {
  width: 100%; /* Initial width, will expand if content overflows */
  border-collapse: collapse;
  margin-bottom: 20px;
}

thead th {
  background-color: #34495e;
  color: white;
  padding: 12px;
  text-align: left;
  white-space: nowrap; /* Prevent header text from wrapping */
}

tbody td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  white-space: nowrap; /* Prevent cell content from wrapping */
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

#score p {
  font-weight: bold;
  font-size: 18px;
  color: #27ae60;
  white-space: nowrap; /* Prevent score paragraph from wrapping if it becomes wide */
}

#total {
  font-weight: bold;
}
