:root {
  font-family: 'Satoshi', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  background-color: var(--bg-color);
  background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20height%3D%22512%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cpath%20d%3D%22M%200%20256%20L%20512%20256%20M%20256%200%20L%20256%20512%22%20stroke%3D%22rgba(0,0,0,0.09)%22%20stroke-width%3D%221.01px%22%20vector-effect%3D%22non-scaling-stroke%22%20stroke-linecap%3D%22square%22%20%2F%3E%3C%2Fsvg%3E');
  background-size: 25px;
  background-repeat: repeat;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  color-scheme: light dark;
  --title-color: #93a778;
  --nav-color: light-dark(#8da174, #99af7f);
  --secondary-color: light-dark(#596e48, #FFF5DC);
  --list-number: light-dark(white, #495a3c);
  --list-number-bg: light-dark(#b8c9a1, #91a376);
  --bg-color: light-dark(#FFF5DC, #495a3c);
}

.light {
  color-scheme: light;
}

.dark {
  color-scheme: dark;
}

.dark #light-mode {
  display: none;
}

.light #dark-mode {
  display: none;
}

header {
  z-index: 1;
  position: fixed;
  display: flex;
  justify-content: space-between;
  background: var(--nav-color);
  color: var(--bg-color);
  backdrop-filter: saturate(180%) blur(20px);
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 1.5rem;
  transition: top 0.3s;
}

h3 {
  color: var(--secondary-color);
}

.button-active svg {
  transition: stroke 0.2s ease-in;
  stroke: var(--secondary-color);
}

#drop-down-button:hover svg {
  transition: stroke 0.2s ease-in;
  stroke: var(--secondary-color);
}

.top-nav {
  height: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  font-weight: bold;

}

.top-nav .nav-item a {
  color: var(--bg-color);
}

.top-nav .nav-item a:hover {
  transition: all .2s ease;
  color: var(--secondary-color);
}


.page-nav {
  display: flex;
  flex-direction: row;
  list-style: none;
}

.page-nav .nav-item {
  margin: 10px;
}

.nav-active {
  max-height: 100%;
}

.title-screen {
  display: flex;
  align-items: center;
  height: 100vh;
  opacity: 1;
  margin: 0;
  text-align: center;
  vertical-align: middle;
  font-family: 'Bebas Neue', sans-serif;
  background-image: url(./assets/Hero_image.png);
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: center;
}

.title-text {
  background-image: url('./assets/BrushStroke.png');
  background-repeat: no-repeat;
  background-size: 100% 120%;
  background-origin: content-box;
  transform: rotate(10deg);
}

.title-screen h1 {
  font-size: 8vw;
  line-height: 100%;
  color: var(--title-color);
  margin-bottom: 0;
}

.title-screen p {
  font-size: 3vw;
  margin-top: 0;
  text-align: end;
  margin-right: 10%;
  color: var(--title-color)
}

a {
  text-decoration: none;
}

a:visited {
  color: var(--bg-color);
}

#main-section {
  scroll-margin-top: 80px;
  margin-top: 3%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: fit-content;
}

#main-section .topic {
  max-width: 80%;
  width: max-content;
}

.topic {
  z-index: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: none;
  height: fit-content;
  margin-bottom: 20px;
  background: none;
  transition: background 2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

ul {
  color: var(--secondary-color);
}


.topic::before {
  content: "";
  z-index: -1;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border: var(--secondary-color) solid 2px;
  clip-path: ellipse(0 0 at 0 0);
  transition: clip-path 2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.topic-seen {
  background-color: var(--bg-color);
}

.topic-seen::before {
  clip-path: ellipse(150% 150% at 0 0);
}

article {
  max-width: 100%;
  width: 100%;
  display: flex;
  gap: 2%;
  align-items: start;
  margin-bottom: 5%;
}

article:nth-child(even) .topic {
  order: 2;
}

article:nth-child(even) {
  justify-content: end;
}

.topic:nth-child(even)::before {
  clip-path: ellipse(0 0 at 100% 0);
}

.topic-seen:nth-child(even)::before {
  clip-path: ellipse(150% 150% at 100% 0);
}

.topic-heading {
  font-size: 2rem;
  height: fit-content;
  width: max-content;
  margin-top: 0px;
  margin-bottom: 5px;
  margin-right: 20px;
  padding-left: 20%;
  padding-right: 3%;
  padding-bottom: .7rem;
  padding-top: .2rem;
  background: var(--secondary-color);
  color: var(--bg-color);
  clip-path: polygon(0 0, 0 100%, 0 100%, 0 0);
  transition: clip-path 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.topic:nth-child(even) h2 {
  padding-right: 20%;
  padding-left: 3%;
  margin-right: 0;
  margin-left: 20px;
  clip-path: polygon(100% 0, 100% 100%, 100% 100%, 100% 0);
}

h2.seen-heading {
  clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0);
}

.topic:nth-child(even) h2.seen-heading {
  clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0);
}

.topic-text {
  width: 100%;
  color: var(--secondary-color);
  font-size: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  transform: translateX(-5%);
  box-sizing: border-box;
  opacity: 0;
  transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 1s ease-in;
}

.topic-text p {
  margin-top: 0;
}

.left-side {
  text-align: end;
  transform: translateX(5%);
}

.topic-seen .topic-text {
  transform: translateX(0%);
  opacity: 1;
}

#planning {
  max-width: 70%;
}

#communication {
  max-width: 80%;
}

.collaborator-list {
  list-style: none;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.collaborator {
  display: flex;
  padding: 15px;
  margin-bottom: 20px;
  background: var(--list-number-bg);
  color: var(--secondary-color);
  font-size: 1.25rem;
}

.collaborator.left-side {
  flex-direction: row-reverse;
}

.collaborator h3 {
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.collaborator img {
  width: 95%;
  clip-path: circle(50%);
}

.list-point {
  display: flex;
  float: left;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
  font-size: 6rem;
  font-weight: bold;
  margin: 5px;
  background: var(--secondary-color);
  color: var(--list-number);
  clip-path: circle(50%);
}

.list-point span {
  margin-left: 0.75ch;
}

.left-side .list-point {
  float: right;
}

.collaborator-text {
  margin-right: .75rem;
  margin-left: .75rem;
}

.mode-toggle svg {
  stroke: var(--bg-color);
  stroke-linecap: round;
  stroke-width: 5px;
  stroke-linejoin: round;
  fill: none;
  cursor: pointer;
  display: flex;
  height: 100%;
}

.mode-toggle svg {
  height: 100%;
}

.mode-toggle div {
  height: 100%;
}

.mode-toggle:hover svg {
  transition: all .2s ease;
  stroke: var(--secondary-color);
}

.mode-toggle .hide {
  display: none;
}

.topic-img img {
  max-width: 100%;
}

#planning .topic-img {
  min-width: 40%;
}

@media only screen and (max-width: 480px) {
  header {
    top: 0;
  }

  .page-nav {
    display: none;
  }

  #drop-down-button {
    display: block
  }

  #drop-down-button svg {
    display: block;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    display: block;
  }

  .show-side-nav {
    background: var(--nav-color);
    display: block;
    margin: 0;
    padding: 0;
    right: 0;
    top: 60px;
    height: fit-content;
    position: fixed;
  }

  .title-screen h1 {
    font-size: 12vw;
  }

  .title-screen p {
    font-size: 6vw;
  }

  .topic h2 {
    font-size: 1.5rem;
  }

  .collaborator h3 {
    font-size: 1.5rem;
  }

  .list-point {
    width: 5rem;
    height: 5rem;
    font-size: 4rem;
  }

  #main-section .topic {
    max-width: 100%;
  }

  article {
    flex-direction: column;
    width: 100%;
  }

  article#planning {
    max-width: 100%;
  }

  article:nth-child(odd) {
    flex-direction: column-reverse;
  }

  .title-screen {
    background-size: 100% auto;
  }

  .topic {
    width: 100%;
  }

  .topic-img img {
    max-width: 90%;
  }

  #communication {
    max-width: 100%;
  }
}