body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

h1,
h2 {
  text-align: center;
}

.form-container,
.results-container,
.loader-container,
.error-container,
.home-link {
  width: 90%;
  border: 1px solid #ccc;
  background-color: #f0f8f2;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.form-group {
  width: 80%;
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

#folio-label,
#folio-label-example {
  width: 80%;
  text-align: left;
}
#folio-label {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0;
}
#folio-label-example {
  color: gray;
  font-size: 0.9rem;
  font-weight: normal;
}

#folio-fieldWrapper {
  display: flex;
  flex-direction: row;
}
#folio-fieldWrapper label {
  text-align: center;
}

#prefix-subfield {
  width: 50px;
}
#prefix-subfield > .spacer {
  height: 1.45rem;
}

#serial-subfield {
  flex-grow: 1;
}
#serial-inputWrapper {
  display: flex;
  flex-direction: row;
}
#serial-inputWrapper > span {
  margin: 0 10px;
  line-height: 30px;
}

#year-subfield {
  width: 120px;
}

#serialError,
#yearError {
  width: 80%;
  text-align: left;
}
#yearError {
  margin-bottom: 1rem;
}

.req-star {
  color: red;
}

.label-note {
  font-size: 0.8rem;
  font-weight: normal;
  color: #343434;
}

input {
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
}

button {
  padding: 10px 15px;
  background-color: #5ec946;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #45a049;
}

.error {
  color: red;
  margin-top: 5px;
}

.home-link {
  margin-top: 20px;
  border: none;
  background: none;
}

.home-link a {
  color: #5ec946;
  text-decoration: none;
}

.loader-container {
  min-height: 200px;
}

.loader {
  width: 32px;
  height: 32px;
  position: relative;
  border-radius: 50%;
  color: #5ec946;
  animation: fill 1s ease-in infinite alternate;
}
.loader::before,
.loader::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  left: 48px;
  top: 0;
  animation: fill 0.9s ease-in infinite alternate;
}

.loader::after {
  left: auto;
  right: 48px;
  animation-duration: 1.1s;
}

@keyframes fill {
  0% {
    box-shadow: 0 0 0 2px inset;
  }
  100% {
    box-shadow: 0 0 0 10px inset;
  }
}

.hidden {
  display: none;
}

#searchDataError {
  text-align: center;
  line-height: 1.6rem;
  margin-bottom: 26px;
}
