body {
  font: 1em sans-serif;
  width: 50%;
  padding: 0;
  margin: 0 auto;

  border: 1px solid #b88787;
  border-radius: 2%;
}

p * {
  display: block;
}

input[type="search"], #unit {
  appearance: none;

  width: 50%;
  height: 5vh;
  border: 1px solid #333333;
  margin: auto;

  font-family: inherit;
  font-size: 90%;

  box-sizing: border-box;
}

/* invalid fields */
input:invalid {
  border-color: #990000;
  background-color: #ffdddd;
}

input:focus:invalid {
  outline: none;
}

/* error message styles */
.error {
  width: 50%;
  padding: 0;
  margin: auto;

  font-size: 80%;
  color: white;
  background-color: #990000;
  border-radius: 0 0 5px 5px;

  box-sizing: border-box;
}

.error.active {
  padding: 0.3em;
}

label > .label-span {
    font-weight: 540;
    text-align: center;
    padding-bottom: 5px;
}

.button-section {
    display: flex;
    justify-content: center;
}

button {
    font-size: 90%;
    font-family: inherit;
    font-weight: bold;
    padding:10px 30px;
    background-color: rgb(31, 31, 95);
    color: white;
    border: #333333;
    border-radius: 5px;
}

.city-name {
  text-align: center;
  text-transform: capitalize;
  color: #201b1b;
}

.temp-div-heading {
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

.temp-div {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.daily-temps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;

  border-radius: 3%;
  margin: 5%;
  padding: 2%;

  background-color: #fa9999;
}

.daily-temp-div {
  text-align: center;
}

.week-day {
  text-transform: uppercase;
  color: #201b1b;

}

.weather-condition {
  font-size: 0.7rem;
}

.max-min-temp {
  font-weight: bold;
  color: #201b1b;
}

.daily-weather-data-div {
  margin: 5%;
  background-color: #fa9999;
  border-radius: 3%;
  display: flex;
  justify-content: center;
}

.caption {
  font-size: 1.1rem;
  font-weight: bold;
  padding: 10px;
  color: #201b1b;
}

table {
  width: 80%;
}

th, td {
  font-size: 0.9rem;
  padding: 2%;
  border-bottom: #fa9999;
}

th {
  text-align: start;
  font-size: 0.9rem;
}

td {
  text-align: end;
}