*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: Seravek, 'Gill Sans Nova', Ubuntu, Candara, 'DejaVu Sans', source-sans-pro, sans-serif;
  line-height: 1.5;
  max-width: 50rem;
  margin: 0 auto;
  padding: 1rem;
  color: #222;
  background: #fff;
}

h1, h2, label, legend, button[type="submit"] {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
}

h1, h2 {
  line-height: 1.2;
}

a {
  color: #005ea2;
}

a:visited {
  color: #54278f;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

textarea {
  display: block;
  width: 100%;
  padding: 0.5rem;
  font-family: inherit;
  font-size: inherit;
  border: 2px solid #767676;
  border-radius: 4px;
  margin-bottom: 1rem;
}

textarea:focus {
  outline: 3px solid #005ea2;
  outline-offset: 2px;
}

button {
  padding: 0.5rem 1rem;
  font-size: inherit;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 1rem;
}

button:focus {
  outline: 3px solid #005ea2;
  outline-offset: 2px;
}

/* Primary action button */
button[type="submit"] {
  background: #005ea2;
  color: #fff;
  display: block;
  margin-top: 1.5rem;
}

button[type="submit"]:hover {
  background: #004b87;
}

/* Secondary buttons */
fieldset button,
.button-group button {
  font-family: inherit;
  background: #e0e0e0;
  color: #222;
}

fieldset button:hover,
.button-group button:hover {
  background: #c8c8c8;
}

fieldset {
  max-width: 50%;
  border: 1px solid #767676;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 0;
}

legend {
  font-weight: bold;
  padding: 0 0.25rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1rem;
}

caption {
  font-weight: bold;
  text-align: left;
  margin-bottom: 0.5rem;
}

th, td {
  border: 1px solid #767676;
  padding: 0.5rem;
  text-align: left;
}

th {
  background: #f0f0f0;
}

#error-message {
  color: #d83933;
  border: 2px solid #d83933;
  border-radius: 4px;
  padding: 1rem;
  margin-top: 1rem;
}

#copy-confirmation {
  color: #008000;
  font-weight: bold;
}

/* Footer */
footer {
  margin-top: 8rem;
  padding: 2rem 1rem;
  background: #f5f5f5;
  border-top: 2px solid #e0e0e0;
}
