* {
  font-family: sans-serif, system;
}

@media (orientation: landscape) {
  body {
    margin: 2rem 4rem;
  }
}
@media (orientation: portrait) {
  body {
    margin: 2rem;
  }
}

h1 {
  text-align: center;
  text-decoration: underline;
}

form {
  margin-block: 3rem 1rem;
  display: flex;
  gap: 0.2rem;
}

input[type="text"] {
  padding: 0.5rem;
  flex: 1;
  font-size: 1rem;
  text-align: right;
}

button {
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  color: white;
  background-color: darkblue;
  transition: background-color 0.4s;
}
button:focus,
button:hover {
  background-color: mediumblue;
}
button:active {
  background-color: darkblue;
}

article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: white;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

thead {
  color: white;
  background-color: #4a90e2;
}

th,
td {
  border: 1px solid #ddd;
  text-align: center;
}

th {
  padding: 0.75rem;
}
td {
  padding: 0.5rem;
}

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