/* Index page*/

@media (min-width: 750px) {
  header {
    --background-color: #00000050 !important;
    --border-color: transparent !important;
    --input-hover-background-color: #0000006b !important;
    --input-hover-border-color: transparent !important;
  }
}

@media (max-width: 749px) {
  section.hero {
    position: relative !important;
    > .social.float {
      margin: var(--standard-input-padding);
    }
    /* padding-bottom: var(--xxl); */
    /* > .hero.grid {
      display: flex;
      flex-direction: column-reverse;
      align-items: center;
      p {
        flex-direction: column;
        gap: 1rem;
      }
    } */
  }
}

@media (max-aspect-ratio: 1/1) {
  section.hero {
    /* background-size: 177% auto; */
    max-height: 99.56vw;
    min-height: 99.54vw;
  }
  /* div.hero.grid {
    height: 40vw;
  } */
}

footer {
  display: none;
}

section.hero {
  background-image: url("hero_background.jpg?v=0.0.12");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* z-index: -1; */
}

section.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background-color);
  mask-image: linear-gradient(170deg, transparent 20%, black 90%);
  /* z-index: -1; */
}

/* @media (min-aspect-ratio: 2/1) {
  div.hero-background {
    background-size: auto 133%;
  }
} */

.hero.grid {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 2fr 1fr 2fr;
  width: min(max(1500px, 133vh), calc(100vw - 1rem));
  margin: auto;
  /* z-index: 0; */
  > div {
    display: flex;
    flex-direction: column;
  }
  #chinese-name {
    font-size: 3rem;
    line-height: 1em;
  }
  #english-name {
    font-size: 1.65rem;
  }
  #title-composer {
    font-size: 1.3rem;
  }
  h1,
  p {
    margin: 0;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--xxs) var(--m);
  }
}

.sub-hero {
  padding: var(--xl) var(--standard-padding);
  display: flex;
  flex-direction: column;
  #mobile-chinese-name {
    font-size: 2.5rem;
    line-height: 0.8em;
  }
  #mobile-english-name {
    font-size: 1.4rem;
  }
  #mobile-title-composer {
    margin-top: var(--m);
  }
  p {
    margin: 0;
  }
}

/* #notification {
  box-shadow: 10px 10px 10px black;
} */

.social.float {
  position: absolute;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 1em;
  margin: 1em;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  /* z-index: 1; */
}

a > .hover-to-show {
  display: none;
  padding-left: var(--xs);
}

a:has(> .hover-to-show):hover {
  text-decoration: none;
  > .hover-to-show {
    display: unset;
    /* opacity: 1;
    transition: opacity 0.3s ease-out;
    @starting-style {
      opacity: 0;
    } */
  }
}
