html,
body,
#app {
  max-height: 100%;
  height: 100%;
  overflow: hidden;
  background-color: white;
  color: black;
  font-family: Montserrat, sans-serif;
}

#app {
  overflow-y: auto !important;
}

.app-section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 9;
  background-color: white;
  color: black;
  padding-top: 4rem;
  padding-bottom: 4rem;

  &.end {
    align-items: flex-end;
    padding-bottom: 0px;
  }

  &.dark-section {
    background-color: black;
    color: white;
  }

  &.blue-section {
    background-color: var(--color-primary-blue);
    color: white;
  }

  &.topbar-section {
    position: absolute;
    z-index: 10;
    transition: transform 0.5s ease-out;
    pointer-events: none;
    height: 4rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1),
      rgba(0, 0, 0, 0) 100%
    );
    @starting-style {
      transform: translateY(-100%);
    }
    &.hidden {
      transform: translateY(-100%);
    }
    a,
    button {
      pointer-events: auto;
    }

    @media screen and (min-width: 768px) {
      height: 6rem;
      padding-top: 1rem;
      padding-bottom: 3rem;
    }

    @media screen and (min-width: 1024px) {
      height: 9rem;
    }
  }

  &.gradient-section {
    background: linear-gradient(to bottom, #ffffff, #ebebeb);
  }

  > .container {
    position: relative;
    z-index: 2;
  }

  > .section-bg-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    .bg {
      position: absolute;
      height: 100%;
      width: 100%;
      object-fit: cover;
      z-index: 1;
      @media screen and (min-width: 768px) {
        width: auto;
        height: 200%;
      }
    }
    .arrow {
      position: absolute;
      left: 0px;
      top: 50%;
      height: auto;
      transform: translate(0, -60%);
      object-fit: contain;
      object-position: left bottom;
      z-index: 2;
      width: 100%;
      transition: transform 1s ease-out;
      @starting-style {
        transform: translate(-100%, -60%);
      }
      @media screen and (min-width: 768px) {
        width: max(calc(50vw - 100px), 480px);
      }
      @media screen and (min-width: 1024px) {
        width: max(calc(50vw - 100px), 600px);
      }
      @media screen and (min-width: 1280px) {
        width: max(calc(50vw - 100px), 720px);
      }
    }
    .character {
      position: absolute;
      object-fit: contain;
      object-position: left bottom;
      height: 70%;
      top: 15%;
      z-index: 3;
      transition: opacity 1s ease-out;
      transition-delay: 1s;
      @starting-style {
        opacity: 0;
      }
      @media screen and (min-width: 768px) {
        left: 0px;
        height: 120%;
        top: 50%;
        transform: translate(
          max(
            2rem,
            calc(((100vw - 200vh * (1369 / 831)) / 2) + (1369 / 831) * 25vh)
          ),
          -30%
        );
      }
      @media screen and (min-width: 1280px) {
        transform: translate(
          max(
            5rem,
            calc(((100vw - 200vh * (1369 / 831)) / 2) + (1369 / 831) * 35vh)
          ),
          -30%
        );
      }
    }
  }

  > .container {
    width: calc(100% - 48px);
    max-width: calc(100% - 48px);
    padding: 0 24px;

    @media screen and (min-width: 768px) {
      max-width: 768px;
      padding: 0 24px;
    }

    @media screen and (min-width: 1024px) {
      max-width: 960px;
    }

    @media screen and (min-width: 1280px) {
      max-width: 1068px;
    }
  }
  > .container.no-mobile-padding {
    padding: 0px;
    width: 100%;
    max-width: 100%;
  }
}

.topbar {
  display: flex;
  align-items: center;
  gap: 32px;
  nav > ul {
    display: flex;
    align-items: center;
    gap: 32px;
    li {
      a {
        text-decoration: none;
        color: currentColor;
        font-weight: 700;
        font-size: 14px;
        line-height: 1.25;
        transition: color 0.3s ease;

        &:hover {
          color: var(--color-primary-blue);
        }

        &:focus {
          outline: 2px solid var(--color-primary-blue-focus);
          outline-offset: 2px;
        }
      }
    }
  }
}

.copyright {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 2rem;
  font-size: 12px;
  line-height: 1.5;
  justify-content: space-between;
  text-align: center;
}
