body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 640px;
  margin: 0;
  padding: 0;
  background-color: var(--color-off-white);
}

header {
  z-index: 1000;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-base);
  width: 100%;
  height: var(--size-header);
  >div {
    &:first-child {
      height: 100%;
      margin-left: var(--spacing-3xl);
      background-color: var(--color-dark-accent);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: center;
      height: 100%;
      >img {
        width: var(--size-logo);
        height: var(--size-logo);
      }
      >a {
        position: absolute;
        width: var(--size-logo);
        height: 100%;
      }
    }
    &:last-child {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: var(--spacing-sm);
      margin: var(--spacing-base);
      padding: var(--spacing-sm) var(--spacing-base);
      color: var(--color-dark-accent);
      background-color: var(--color-off-white-transparent);
      border: 1px solid var(--color-dark-accent);
      border-radius: var(--border-radius-lg);
      text-decoration: none;
      font-size: var(--font-size-xl);
      font-weight: var(--font-weight-bold);
      transition: background-color 0.3s ease, color 0.3s ease;
      cursor: pointer;
      -webkit-user-select: none;
      user-select: none;
      >svg {
        width: var(--size-icon);
        height: var(--size-icon);
        >path {
          transition: fill 0.3s ease;
          fill: var(--color-dark-accent);
        }
      }
      &:hover {
        color: var(--color-off-white);
        background-color: var(--color-dark-accent);
        >svg>path { fill: var(--color-off-white); }
      }
    }
  }
}

menu {
  z-index: 2000;
  display: none;
  &.open { display: flex; }
  flex-direction: row;
  justify-content: center;
  background-color: var(--color-dark-accent);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: var(--spacing-mega) 0 0 0;
  >svg {
    cursor: pointer;
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: var(--size-icon);
    height: var(--size-icon);
    >path {
      stroke-width: 2;
      stroke: var(--color-off-white);
      transition: stroke 0.3s ease;
    }
    &:hover { >path { stroke: var(--color-danger); } }
  }
  >div {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding-left: var(--spacing-3xl);
    background-color: var(--color-dark-accent);
    >a {
      &::before {
        content: "";
        position: absolute;
        border-left: 2px solid var(--color-off-white);
        width: var(--spacing-lg);
        aspect-ratio: 1 / 3;
        transform: translate(-100%, -33%);
      }
      font-size: var(--font-size-xl);
      font-weight: var(--font-weight-bold);
      font-family: var(--font-mono);
      text-decoration: none;
      color: var(--color-off-white);
      &:hover {
        color: var(--color-light-accent);
        text-decoration: underline;
      }
    }
  }
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

#panorama {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  position: relative;
  overflow: hidden;
  background-color: gray;
  display: flex;
  flex-direction: column-reverse;
  >img {
    position: absolute;
    top: 0;
    left: -5%;
    width: 110%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    filter: brightness(0.7);
    &:nth-child(1) {
      opacity: 1;
      animation:
        panorama-slide-move 60s linear infinite,
        panorama-slide-opacity-start 60s,
        panorama-slide-opacity 60s 60s infinite;
    }
    &:nth-child(2) {
      opacity: 0;
      animation:
        panorama-slide-move 60s linear 20s infinite,
        panorama-slide-opacity 60s 20s infinite;
    }
    &:nth-child(3) {
      opacity: 0;
      animation:
        panorama-slide-move 60s linear 40s infinite,
        panorama-slide-opacity 60s 40s infinite;
    }
  }
  >div {
    z-index: 900;
    margin: 0 0 var(--spacing-3xl) var(--spacing-3xl);
    color: var(--color-off-white);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
  }
  &::after {
    content: "";
    background-color: var(--color-dark-accent);
    width: 100%;
    height: var(--spacing-xl);
    position: absolute;
    bottom: 0;
  }
}
@keyframes panorama-slide-opacity-start {
  34% { opacity: 1; }
  36% { opacity: 0; }
}
@keyframes panorama-slide-opacity {
  0% { opacity: 0; }
  2% { opacity: 1; }
  34% { opacity: 1; }
  36% { opacity: 0; }
}
@keyframes panorama-slide-move {
  0% { transform: translateX(-5%); }
  36% { transform: translateX(5%); }
  37% { transform: translateX(-5%); }
}

.container {
  width: 100%;
  height: var(--size-container);
  display: flex;
  flex-direction: row;
  gap: var(--spacing-3xl);
  >* {
    margin-top: var(--spacing-3xl);
    margin-bottom: var(--spacing-3xl);
    &:first-child {
      margin-left: var(--spacing-3xl);
      margin-right: 0;
    }
    &:last-child {
      margin-right: var(--spacing-3xl);
      margin-left: 0;
    }
  }
  >img {
    width: var(--size-container-img);
    height: var(--size-container-img);
  }
  >div {
    display: flex;
    flex-direction: column;
  }
}

.floating-items-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--spacing-3xl);
  width: 100%;
  padding: calc(var(--spacing-3xl) / 2) var(--spacing-3xl) var(--spacing-3xl) var(--spacing-3xl);
  background-color: var(--color-light-accent);

  >div {
    width: 100%;
    height: var(--size-container);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-xl);
    color: var(--color-off-white);
    background-color: var(--color-dark-accent);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-3xl);
    >img {
      height: 100%;
      aspect-ratio: 1 / 1;
    }
    >div {
      display: flex;
      flex-direction: column;
      &:first-child {
        text-align: right;
        padding-left: var(--spacing-3xl);
      }
      &:last-child {
        text-align: left;
        padding-right: var(--spacing-3xl);
      }
      >a {
        margin-top: var(--spacing-lg);
        font-family: var(--font-mono);
        font-weight: var(--font-weight-bold);
        font-size: var(--font-size-lg);
        color: var(--color-off-white);
        text-decoration: none;
        &:hover {
          color: var(--color-light-accent);
          text-decoration: underline;
        }
      }
    }
    &.top, &.bottom, &.left, &.right {
      --horizontal: 0;
      --vertical: 0;
      &.top { --vertical: calc(-1 * var(--spacing-lg)); }
      &.bottom { --vertical: var(--spacing-lg); }
      &.left { --horizontal: calc(-1 * var(--spacing-lg)); }
      &.right { --horizontal: var(--spacing-lg); }
      filter: brightness(0.6);
      box-shadow: none;
      transform: translate(var(--horizontal), var(--vertical));
      transition: filter 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
      &.focus {
        filter: brightness(1);
        box-shadow: var(--horizontal) var(--vertical) var(--color-dark-shades);
        transform: translate(0, 0);
      }
    }

  }
}


footer {
  width: 100%;
  height: var(--size-footer);
  background-color: var(--color-dark-accent);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  color: var(--color-off-white);
  >img {
    width: var(--size-footer-logo);
    height: var(--size-footer-logo);
  }
  >div {
    &:not(:last-child) {
      width: 100%;
      height: 2px;
      -webkit-backdrop-filter: brightness(0.8);
      backdrop-filter: brightness(0.8);
    }
    &:last-child {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-evenly;
      gap: var(--spacing-xl);
      >a {
        width: var(--size-footer-icon);
        height: var(--size-footer-icon);
        >svg>path {
          fill: var(--color-off-white);
          transition: fill 0.3s ease;
        }
        &:hover { >svg>path { fill: var(--color-light-accent); } }
      }
    }
  }
}