@font-face {
  font-family: "Authentic";
  src: url("/assets/fonts/AUTHENTIC-Sans.woff");
  font-display: swap;
}

@font-face {
  font-family: "AvaraBold";
  src: url("/assets/fonts/Avara-Bold.woff");
  font-display: swap;
}

:root {
  --header-font: "AvaraBold";
  --body-font: "Authentic";
  --fg-text: #292929;
  --bg-text: #fafafa;
  --border-radius: 50px;
}

body {
  position: relative;
  margin: 0;
  padding: 2vh 2vw 2vh 2vw;
  min-height: 96vh;

  font-family: var(--body-font), serif;
  font-size: 14px;
  color: var(--fg-text);

  background: linear-gradient(to right, rgb(191, 245, 121), #f3da7a);
  background-size: 360% 360%;
  animation: gradient-animation 60s ease infinite;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

hr {
  border: 1px solid black;
  margin: auto;
  margin-top: 30px;
  margin-bottom: 30px;
  width: 30%;
}

a {
  text-underline-offset: 0.2em;
  color: var(--fg-text);
}

header,
main,
footer {
  background-color: var(--bg-text);
  color: var(--fg-text);
  border-radius: var(--border-radius);
  border: 2px solid black;
}

main {
  width: 60vw;
  max-width: 60vw;
  min-width: 60vw;
  margin: auto;
  padding: 2vh 2vw 4vh 2vw;
  margin-bottom: 15vh;
  min-height: 65vh;
}

@media only screen and (max-width: 767px) {
  /* phones */
  main {
    max-width: unset;
    width: 86vw;
    padding: 3vh 4vw 3vh 4vw;
    margin-bottom: 15vh;
  }
}

main .main-content {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

@media only screen and (max-width: 767px) {
  /* phones */
  main .main-content {
    flex-direction: column-reverse;
    gap: 0px;
  }
}

main .main-text {
  display: flex;
  flex-direction: column;
  width: 58%;
  line-height: 1.6em;
}

main .main-text figure, main .main-text figure img {
  width: 90%;
}

main .last-updated {
  font-size: 0.7em;
  opacity: 0.7;
}

main .main-illustration {
  width: 42%;
}


@media only screen and (max-width: 767px) {
  /* phones */
  main .main-text,
  main .main-illustration {
    width: 100%;
  }
}

main h1,
main h2,
main h3 {
  font-family: var(--header-font), serif;
}

main h1 {
  font-size: 2.4em;
  line-height: initial;
}

main h2 {
  margin-bottom: 10px;
}

main a {
  text-decoration: underline;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1em 0 1em 0;
  gap: 10px;
}

.nav-list li {
  border: 2px solid black;
  border-radius: var(--border-radius);
  padding: 15px 10px 10px 10px;
  font-size: 1.2em;
  text-align: center;
}

.nav-list a {
  text-decoration: none;
}

.nav-list a:hover {
  font-style: italic;
}

@media only screen and (max-width: 767px) {
  
  main .nav-list {
    flex-direction: column;
  }
}

.news-list {
  list-style: none;
  margin: 0px;
  padding: 0px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  display: flex;
}

.news-item h2 {
  margin-top: 0;
  line-height: 1.4em;
}

.news-item .news-date {
  min-width: 120px;
  height: max-content;
}

@media only screen and (max-width: 767px) {
  
.news-item {
    flex-direction: column;
  }

  .news-item .news-date {
    margin-top: 0;
    margin-bottom: 30px;
  }
}
