@font-face {
  font-family: "Fragmentcore";
  src: url("../assets/fonts/Fragmentcore.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --accent: #d3c096;
  --ease-duration: 0.3s;
  --box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.6);
  --text-shadow: 0px 0px 8px #000;
}

body {
  margin: auto;
  font-family: "Fragmentcore";
}

body.no-scroll {
  overflow: hidden;
}

.container {
  max-width: 1440px;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;

  position: fixed;
  top: 0;
  z-index: 998;

  background-color: transparent;
  color: white;

  height: 64px;

  text-shadow: var(--text-shadow);
  width: 100%;

  transition: background-color var(--ease-duration) ease-in-out,
    color var(--ease-duration) ease-in-out,
    box-shadow var(--ease-duration) ease-in-out,
    text-shadow var(--ease-duration) ease-in-out;
}
header:hover,
header.active {
  background-color: white;
  color: black;
  box-shadow: var(--box-shadow);

  text-shadow: none;
}

header:hover .hamburger-menu,
header.active .hamburger-menu {
  filter: none;
}

header .bullet {
  background-color: white;
  box-shadow: var(--box-shadow);
  transition: background-color var(--ease-duration) ease-in-out,
    box-shadow var(--ease-duration) ease-in-out;
}

header:hover .bullet,
header.active .bullet {
  box-shadow: none;
  background-color: black;
}

.divider {
  width: 100%;
  height: 1px;
  margin: 1rem 0;
  opacity: 0.4;
  background-color: black;
}

.dimmer {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: inline;
  z-index: 999;
  background-color: black;
  opacity: 0;
  transition: opacity var(--ease-duration) ease-in-out;
  pointer-events: none;
}

.dimmer.active {
  opacity: 0.5;
  pointer-events: auto;
}

.sidebar {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  height: 100%;

  transform: translateX(-300px);
  transition: transform var(--ease-duration) ease-in-out;

  flex-direction: row;
  align-items: start;
  justify-content: start;
}

.sidebar.active .cancel {
  transform: rotate(90deg);
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar > .links {
  padding-top: 64px;
  background-color: white;
  width: 250px;
  height: 100%;
  display: flex;
  padding: 1rem;
  box-shadow: var(--box-shadow);

  flex-direction: column;
}

.sidebar > .cancel {
  margin-top: 0.5rem;
  filter: invert();
  height: 48px;
  width: 48px;
  transition: transform var(--ease-duration) ease-in-out;
}

.sidebar > .cancel > img {
  object-fit: contain;
}

header > div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  width: 100%;
}

.hamburger-menu {
  position: relative;
  z-index: 11;
  height: 36px;
  width: 36px;
  transition: filter var(--ease-duration) ease-in-out;
  filter: invert();
}

.hamburger-menu > img {
  object-fit: contain;
}

.hamburger-menu::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../assets/svgs/hamburger-menu.svg);
  background-size: contain;
  background-position: center;
  filter: blur(4px) invert();
  opacity: 0.6;

  transition: opacity var(--ease-duration) ease-in-out;
}

header:hover .hamburger-menu::after,
header.active .hamburger-menu::after {
  opacity: 0;
}

.main-image {
  position: relative;
  z-index: 10;
  aspect-ratio: 1 / 1;
  width: 100%;
  box-shadow: var(--box-shadow);
}

.main-image > img {
  position: absolute;
  top: 0;
  transition: opacity 1s ease-in-out;
  opacity: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.main-image img.active {
  opacity: 1;
}

.main-image > img.fade-out {
  opacity: 0;
}

main {
  background-color: white;
}
/*
.floating-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.image-1 {
  background-image: url("../assets/images/floating/1.jpg");
}
.image-2 {
  background-image: url("../assets/images/floating/2.jpg");
}
.image-3 {
  background-image: url("../assets/images/floating/3.jpg");
}*/

.accent {
  background-color: var(--accent);
  opacity: 1Z;
}

footer {
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1rem;
}

header nav {
  display: none;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  font-size: 1em;
}

.bullet {
  width: 4px;
  height: 4px;
  border-radius: 4px;
  border: 0px;
}

article {
  padding-top: 3rem;
  margin: auto;
  width: 60%;
}

.reverse {
  flex-direction: row-reverse;
}

article > section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;

  align-items: stretch;
}
section > div {
  gap: 2rem;
  justify-content: center;
  margin: auto;
  padding: 2rem 0;
  align-items: center;
  flex: 4;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

section > div > h1 {
  font-size: 2em;
}

section > div > p {
  font-size: 1.5em;
}

@media (min-width: 700px) {
  .main-image {
    aspect-ratio: 4 / 3;
  }

  header nav p {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 200;
  }

  header {
    height: 80px;
    font-size: 1.5em;
  }

  .sidebar {
    transform: translateX(-600px);

    flex-direction: row;
    align-items: start;
    justify-content: start;
  }

  .hamburger-menu {
    width: 48px;
    height: 48px;
  }

  .sidebar > .links {
    width: 530px;
    font-size: 1.5em;
  }

  .sidebar > .cancel {
    height: 64px;
    width: 64px;
  }
}

@media (min-width: 1200px) {
  .main-image {
    aspect-ratio: none;
    height: 100vh;
  }

  header {
    height: 96px;
    font-size: 1.75em;
  }

  .hamburger-menu {
    display: none;
  }

  header nav {
    display: flex;
  }

  header nav {
    font-size: 1.25em;
  }
}
