*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html,
body {
  min-height: 100vh;
}

html {
  font-size: 100%;
}

body {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;

  background: #2448b4;
  background: -webkit-linear-gradient(to right bottom, #b659f7, #2448b4);
  background: linear-gradient(to right bottom, #b659f7, #2448b4);
  color: #e3eaff;

  width: 100%;
  min-height: 100vh;

  display: grid;
  grid-template-rows: auto 50px;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h1 {
  text-align: center;
  font-weight: 400;
  white-space: nowrap;
  margin-bottom: 20px;
}

#holidayStatus {
  font-size: 5rem;
  text-align: center;
  max-width: 500px;
}

#holidayStatus.small-font {
  font-size: 24px;
}

.returned-states {
  font-weight: normal;
}

/* Form styles */
.form {
  margin-top: 3em;
}

.form-field {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.form-label {
  font-size: 1.1rem;
  margin-right: 0.5em;
}

.form-select {
  font-family: inherit;
  font-size: 1.1rem;
  color: #242424;

  border: none;
  border-radius: 0.15em;
  background-color: #e3eaff;
  padding: 0.3em;

  cursor: pointer;
}

/* Footer */
.footer {
  width: 100%;
  height: 100%;
}

.footer-container {
  max-width: 80vw;
  height: 100%;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link {
  text-decoration: none;
  line-height: 1;

  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 5px 5px;
  overflow: hidden;
  color: #eee;
  vertical-align: bottom;
  transition: color 0.3s ease-out;
}

.link::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  transform: translateY(calc(100% - 2px));
  width: 100%;
  height: 100%;
  background-image: linear-gradient(60deg, #b3ffab 0%, #12fff7 100%);
  transition: transform 0.25s ease-out;
}

.link:hover {
  color: #242424;
}
.link:hover::before {
  transform: translateY(0);
  transition: transform 0.25s ease-out;
}

/* Loader */
.lds-default {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}
.lds-default div {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #eee;
  border-radius: 50%;
  animation: lds-default 1.2s linear infinite;
}
.lds-default div:nth-child(1) {
  animation-delay: 0s;
  top: 29px;
  left: 53px;
}
.lds-default div:nth-child(2) {
  animation-delay: -0.1s;
  top: 18px;
  left: 50px;
}
.lds-default div:nth-child(3) {
  animation-delay: -0.2s;
  top: 9px;
  left: 41px;
}
.lds-default div:nth-child(4) {
  animation-delay: -0.3s;
  top: 6px;
  left: 29px;
}
.lds-default div:nth-child(5) {
  animation-delay: -0.4s;
  top: 9px;
  left: 18px;
}
.lds-default div:nth-child(6) {
  animation-delay: -0.5s;
  top: 18px;
  left: 9px;
}
.lds-default div:nth-child(7) {
  animation-delay: -0.6s;
  top: 29px;
  left: 6px;
}
.lds-default div:nth-child(8) {
  animation-delay: -0.7s;
  top: 41px;
  left: 9px;
}
.lds-default div:nth-child(9) {
  animation-delay: -0.8s;
  top: 50px;
  left: 18px;
}
.lds-default div:nth-child(10) {
  animation-delay: -0.9s;
  top: 53px;
  left: 29px;
}
.lds-default div:nth-child(11) {
  animation-delay: -1s;
  top: 50px;
  left: 41px;
}
.lds-default div:nth-child(12) {
  animation-delay: -1.1s;
  top: 41px;
  left: 50px;
}
@keyframes lds-default {
  0%,
  20%,
  80%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}

@media only screen and (max-width: 38.75em) {
  h1 {
    font-size: 1.1rem;
  }

  #holidayStatus {
    font-size: 3rem;
  }
}

@media only screen and (max-width: 28.75em) {
  body {
    grid-template-rows: auto 70px;
  }

  .form-field {
    flex-direction: column;
  }

  .form-label {
    margin-right: 0;
    margin-bottom: 0.5em;
  }

  .footer-container {
    flex-direction: column;
    justify-content: flex-start;
  }

  .copy:first-child {
    margin-bottom: 0.5em;
  }
}
