@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@600&display=swap");

body,
html,
#root {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  max-width: 100vw;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
}

body,
#root > div {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 24px !important;
  font-family: "Quicksand";
}

h2 {
  font-size: 20px;
  font-family: "Quicksand";
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #2d8047;
}

p,
ul,
ol {
  font-size: 16px !important;
  line-height: 1.7em;
}

a {
  color: var(--sui-primary-color);
  text-decoration: none;

  &:hover {
    color: var(--sui-primary-color-hover);
    text-decoration: underline;
  }
}

hr {
  border: 0;
  border-top: 1px solid var(--sui-divider-color);
  margin: 0;
}

.header-wrap {
  max-width: 1024px;
  margin: 0 auto;
  position: relative;
  height: 60px;
  min-height: 300px;
}

.content-wrap {
  padding: 30px 30px 60px 30px;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  flex: 1;
}

.secondary-navigation {
  position: sticky;
  top: 60px;

  > nav {
    position: absolute;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #2d8047;
    max-width: 240px;
    top: -50px;
  }

  a {
    color: #2d8047;
    font-size: 1rem;
    line-height: 1.5em;

    margin-bottom: 0.5em;

    &:last-of-type {
      margin-bottom: 0;
    }
  }
}

.main-content {
  padding-right: 300px;
}

table {
  border-collapse: collapse;

  td,
  th {
    font-size: 0.9em;
    border: 1px solid #3ca85e;
    padding: 0.5em;
    vertical-align: top;
    text-align: left;
  }

  th {
    color: white;
    background: #3ca85e;

    &:not(:last-of-type) {
      border-right-color: #7fd099;
    }
  }
}

/* HEADER */

.header {
  background-size: cover;
  background-position: center center;

  .title {
    font-size: 2rem;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    font-family: Quicksand;
    top: 20px;
    position: absolute;
    color: white;
  }
}

.quote {
  color: white;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
  font-size: 1.5rem;
  padding: 1rem;
  position: absolute;
  width: 460px;
  right: 0px;
  top: 10px;
  background-color: rgba(0, 0, 0, 0.5);

  p {
    margin: 0;
  }
}

.navigation {
  display: flex;
  flex-direction: row;
  align-items: flex-end;

  ul {
    display: flex;
    flex-direction: row;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  a {
    color: white !important;
    font-family: "Quicksand";
    font-weight: 600;
    text-transform: uppercase;
  }
}

/* MAIN NAVIGATION */

nav.main-navigation {
  position: absolute;
  right: 1rem;
  bottom: 0px;
  padding: 0px;

  ul {
    padding: 0;
    margin: 0;
    display: flex;
    list-style: none;
    gap: 0.5rem;
  }

  .navigation-item {
    font-size: 24px;
    background-color: #2d8047;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
    color: white;

    > a,
    > span {
      display: block;
      padding: 0 16px;
      height: 48px;
      line-height: 48px;
    }

    &:hover {
      background-color: #3ca85e;
    }

    &.active {
      background-color: #3ca85e;
      pointer-events: none;

      &,
      a {
        cursor: default;
      }
    }

    a:hover {
      text-decoration: none;
    }
  }
}

/* FOOTER */

footer {
  background-color: #2d8047;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.8rem;
}

@media only screen and (max-width: 600px) {
  body {
    background-color: #add8e6;
  }
}
