
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #e0f7fa, #f1f8e9);
  margin: 0;
  padding: 2rem;
  color: #333;
}

.container {
  max-width: 600px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  text-align: center;
}

h1 {
  margin-bottom: 1rem;
  color: #00796b;
}

input[type="text"], select {
  width: 100%;
  padding: 1rem;
  margin: 0.5rem 0;
  font-size: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.input-row button {
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  border-radius: 8px;
  background-color: #00796b;
  color: white;
  border: none;
  cursor: pointer;
}

.input-row button:hover {
  background-color: #004d40;
}

button {
  padding: 0.6rem 1.2rem;
  margin: 0.5rem;
  border: none;
  border-radius: 8px;
  background-color: #00796b;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: #004d40;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hidden {
  display: none;
}

.feedback {
  margin-top: 1rem;
  font-size: 1.2rem;
  padding: 0.5rem;
}

.success {
  color: green;
}

.error {
  color: red;
}

.score {
  margin-top: 1rem;
  font-weight: bold;
  font-size: 1.1rem;
}

.definition {
  min-height: 2.5rem; /* reserves space */
  margin-top: 1rem;
  font-style: italic;
  color: #444;
}

.button-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.modal {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.modal button {
  margin: 0.5rem;
  padding: 0.5rem 1.2rem;
  border: none;
  background-color: #00796b;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}
.modal button:hover {
  background-color: #004d40;
}