html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

.coverimage {
  z-index: -1;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  height: 100vh;
  opacity: 0.9;
  object-fit: cover;
  mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 2%,
    rgba(128, 128, 128, 1) 50%
  ); /* Light grey to dark grey gradient */
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 2%,
    rgba(128, 128, 128, 1) 50%
  ); /* For Safari */
}

.opening-container {
  height: 100vh;
  width: 100%;
  background-color: black;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: -1;
  position: sticky;
  top: 0;
  animation: opening 0.4s ease;
}

.title {
  position: fixed;
  bottom: 4rem;
  left: 1.5rem;
  z-index: 3;
  color: white;
  line-height: 130%;
  font-size: 2.8rem;
  animation: 0.5s titleOpen ease-in-out;
  transition: opacity 0.7s ease-in-out;
  font-weight: 400;
  font-variation-settings: "slnt" 0, "wdth" 00, "wght" 530, "INKT" 00;
}

.subtitle {
  position: relative;
  font-size: 1.7rem;
  line-height: 130%;
  bottom: 0.7rem;
  font-weight: 300;
  font-variation-settings: "slnt" 0, "wdth" 00, "wght" 430, "INKT" 50;
}

.metadata {
  position: fixed;
  bottom: 0.3rem;
  margin-left: 1.5rem;
}

.ENGMETA,
.CHINMETA {
  width: 90vw;
  display: flex;
  justify-content: space-between;
}

.metadata p {
  font-size: 1.2rem;
  margin-top: 0rem;
  margin-right: 1.4rem;
  color: white;
  opacity: 0;
  animation: fadeIn 2s ease-out forwards;
  animation-delay: calc(var(--i) * 0.1s);
}

strong,
b,
.main a {
  font-weight: 400;
  font-variation-settings: "slnt" 0, "wdth" 00, "wght" 530, "INKT" 00;
}

a {
  color: black;
  text-decoration: none;
}

.main {
  margin: auto;
  width: 87%;
  max-width: 87rem;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

#content {
  background-color: white;
  position: sticky;
  margin-top: 99vh;
  padding-bottom: 1rem;
  box-shadow: 0px -1px 30px grey;
  bottom: 0;
  animation: 1s titleOpen ease;
}

.main p,
.main ul {
  font-size: 1.2rem;
  width: 80%;
  margin-left: 10%;
}

.imprint {
  color: black;
  background-color: white;
}

#st {
  filter: invert(1);
  mix-blend-mode: difference;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes opening {
  from {
    height: 100vh;
  }
  to {
    height: 100vh;
  }
}

@keyframes titleOpen {
  from {
    transform: translateY(10%);
    opacity: 1;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 130%;
  font-variation-settings: "slnt" 0, "wdth" 00, "wght" 530, "INKT" 00;
}

@media (max-width: 768px) {
  .opening-container,
  .coverimage {
    height: 99vh;
  }

  .title {
    font-size: 1.6rem;
    left: 1.3rem;
    top: 2.5rem; /* Increased to make room for metadata */
  }

  .subtitle {
    font-size: 1.2rem;
    top: 0rem;
  }

  h1,
  h2,
  h3,
  h4,
  h5 {
    font-size: 1.5rem;
  }

  .metadata {
    position: fixed;
    bottom: 1.5rem;
    left: 1.3rem;
    right: 1.3rem;
    margin-left: 0;
  }

  .ENGMETA,
  .CHINMETA {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .metadata p {
    font-size: 1rem !important;
    width: 100%; /* Adjust this value to control column width */
    margin-top: 0rem;
    margin-bottom: 1rem;
  }

  .main {
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin: auto;
    width: 90%;
    max-width: 100rem;
  }

  .main p,
  .main ul {
    font-size: 1rem !important;
    width: 100%;
    margin-left: 0%;
  }
}
