* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.wrapper,
.content2 {
  position: relative;
  width: 100%;
  z-index: 1;
}

.content2 {
  overflow-x: hidden;
}
.section {
  position: relative;
}
.content2 .section {
  width: 100%;
  height: 100vh;
}
.rightNav.hiddenCls {
  display: none;
}
.content2 .section.hero {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.image-container {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: url(https://static.igem.wiki/teams/5363/images/indexback.png) no-repeat center 70px #000;
  perspective: 500px;
  background-size: 100vw auto;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  z-index: 99;
  left: 0;top: 0;
}
.rightNav {
  width: 40px;background: rgba(0, 0, 0, .33);position: fixed;right: 6px;top: 50%;transform: translateY(-50%);z-index: 100;border-radius: 60px;
  padding: 22px 0;display: flex;align-items: center;justify-content: center;flex-direction: column;
}
.rightNavItem {
  width: 38px;height: 38px;border: 1px solid #fff;border-radius: 100%;margin-bottom: 26px;position: relative;cursor: pointer;
}
.rightNavItem:nth-last-of-type(1) {
  margin-bottom: 0;
}
.rightNavItem a.act {
  display: block;background: #e7566b;width: 24px;height: 24px;border-radius: 100%;position: absolute;z-index: 102;left: 50%;top: 50%;transform: translateX(-50%) translateY(-50%);
  transition: .2s linear;
}
.rightNavItem a {
  display: block;text-decoration: none;
}


/* 动画 */

.cell-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.cell-membrane,
.cell-nucleus,
.cell-mitochondria {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cell-membrane {
  z-index: 2;
  animation: rotateMembrane 10s infinite linear;
}

.cell-nucleus {
  z-index: 1;
  animation: rotateNucleus 15s infinite linear;
}

.cell-mitochondria {
  z-index: 1;
  animation: rotateMitochondria 20s infinite linear;
}

/* 定义动画 */
@keyframes rotateMembrane {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateNucleus {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateMitochondria {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 流星雨 */
.night {
  position: absolute;
  width: 100vw;
  height: 100vh;
  transform: rotateZ(45deg);
  left: 0;
  top: 0;
  z-index: 6;
}

.shooting_star {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 2px;
  background: linear-gradient(-45deg, #5f91ff, rgba(0, 0, 255, 0));
  border-radius: 999px;
  filter: drop-shadow(0 0 6px #699bff);
  -webkit-animation: tail 3000ms ease-in-out infinite, shooting 3000ms ease-in-out infinite;
          animation: tail 3000ms ease-in-out infinite, shooting 3000ms ease-in-out infinite;
}
.shooting_star::before {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  right: 0;
  height: 2px;
  background: linear-gradient(-45deg, rgba(0, 0, 255, 0), #5f91ff, rgba(0, 0, 255, 0));
  transform: translateX(50%) rotateZ(45deg);
  border-radius: 100%;
  -webkit-animation: shining 3000ms ease-in-out infinite;
          animation: shining 3000ms ease-in-out infinite;
}
.shooting_star::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  right: 0;
  height: 2px;
  background: linear-gradient(-45deg, rgba(0, 0, 255, 0), #5f91ff, rgba(0, 0, 255, 0));
  transform: translateX(50%) rotateZ(45deg);
  border-radius: 100%;
  -webkit-animation: shining 3000ms ease-in-out infinite;
          animation: shining 3000ms ease-in-out infinite;
  transform: translateX(50%) rotateZ(-45deg);
}
.shooting_star:nth-child(1) {
  top: calc(50% - -188px);
  left: calc(50% - 76px);
  -webkit-animation-delay: 9974ms;
          animation-delay: 9974ms;
}
.shooting_star:nth-child(1)::before, .shooting_star:nth-child(1)::after {
  -webkit-animation-delay: 9974ms;
          animation-delay: 9974ms;
}
.shooting_star:nth-child(2) {
  top: calc(50% - 132px);
  left: calc(50% - 198px);
  -webkit-animation-delay: 636ms;
          animation-delay: 636ms;
}
.shooting_star:nth-child(2)::before, .shooting_star:nth-child(2)::after {
  -webkit-animation-delay: 636ms;
          animation-delay: 636ms;
}
.shooting_star:nth-child(3) {
  top: calc(50% - 32px);
  left: calc(50% - 216px);
  -webkit-animation-delay: 4115ms;
          animation-delay: 4115ms;
}
.shooting_star:nth-child(3)::before, .shooting_star:nth-child(3)::after {
  -webkit-animation-delay: 4115ms;
          animation-delay: 4115ms;
}
.shooting_star:nth-child(4) {
  top: calc(50% - -168px);
  left: calc(50% - 239px);
  -webkit-animation-delay: 1850ms;
          animation-delay: 1850ms;
}
.shooting_star:nth-child(4)::before, .shooting_star:nth-child(4)::after {
  -webkit-animation-delay: 1850ms;
          animation-delay: 1850ms;
}
.shooting_star:nth-child(5) {
  top: calc(50% - 10px);
  left: calc(50% - 139px);
  -webkit-animation-delay: 6598ms;
          animation-delay: 6598ms;
}
.shooting_star:nth-child(5)::before, .shooting_star:nth-child(5)::after {
  -webkit-animation-delay: 6598ms;
          animation-delay: 6598ms;
}
.shooting_star:nth-child(6) {
  top: calc(50% - 100px);
  left: calc(50% - 220px);
  -webkit-animation-delay: 5896ms;
          animation-delay: 5896ms;
}
.shooting_star:nth-child(6)::before, .shooting_star:nth-child(6)::after {
  -webkit-animation-delay: 5896ms;
          animation-delay: 5896ms;
}
.shooting_star:nth-child(7) {
  top: calc(50% - -172px);
  left: calc(50% - 107px);
  -webkit-animation-delay: 7835ms;
          animation-delay: 7835ms;
}
.shooting_star:nth-child(7)::before, .shooting_star:nth-child(7)::after {
  -webkit-animation-delay: 7835ms;
          animation-delay: 7835ms;
}
.shooting_star:nth-child(8) {
  top: calc(50% - -190px);
  left: calc(50% - 27px);
  -webkit-animation-delay: 8795ms;
          animation-delay: 8795ms;
}
.shooting_star:nth-child(8)::before, .shooting_star:nth-child(8)::after {
  -webkit-animation-delay: 8795ms;
          animation-delay: 8795ms;
}
.shooting_star:nth-child(9) {
  top: calc(50% - -161px);
  left: calc(50% - 249px);
  -webkit-animation-delay: 4632ms;
          animation-delay: 4632ms;
}
.shooting_star:nth-child(9)::before, .shooting_star:nth-child(9)::after {
  -webkit-animation-delay: 4632ms;
          animation-delay: 4632ms;
}
.shooting_star:nth-child(10) {
  top: calc(50% - -15px);
  left: calc(50% - 156px);
  -webkit-animation-delay: 7754ms;
          animation-delay: 7754ms;
}
.shooting_star:nth-child(10)::before, .shooting_star:nth-child(10)::after {
  -webkit-animation-delay: 7754ms;
          animation-delay: 7754ms;
}
.shooting_star:nth-child(11) {
  top: calc(50% - 82px);
  left: calc(50% - 203px);
  -webkit-animation-delay: 6707ms;
          animation-delay: 6707ms;
}
.shooting_star:nth-child(11)::before, .shooting_star:nth-child(11)::after {
  -webkit-animation-delay: 6707ms;
          animation-delay: 6707ms;
}
.shooting_star:nth-child(12) {
  top: calc(50% - -38px);
  left: calc(50% - 23px);
  -webkit-animation-delay: 5688ms;
          animation-delay: 5688ms;
}
.shooting_star:nth-child(12)::before, .shooting_star:nth-child(12)::after {
  -webkit-animation-delay: 5688ms;
          animation-delay: 5688ms;
}
.shooting_star:nth-child(13) {
  top: calc(50% - -14px);
  left: calc(50% - 133px);
  -webkit-animation-delay: 5053ms;
          animation-delay: 5053ms;
}
.shooting_star:nth-child(13)::before, .shooting_star:nth-child(13)::after {
  -webkit-animation-delay: 5053ms;
          animation-delay: 5053ms;
}
.shooting_star:nth-child(14) {
  top: calc(50% - -13px);
  left: calc(50% - 7px);
  -webkit-animation-delay: 4842ms;
          animation-delay: 4842ms;
}
.shooting_star:nth-child(14)::before, .shooting_star:nth-child(14)::after {
  -webkit-animation-delay: 4842ms;
          animation-delay: 4842ms;
}
.shooting_star:nth-child(15) {
  top: calc(50% - 143px);
  left: calc(50% - 77px);
  -webkit-animation-delay: 8490ms;
          animation-delay: 8490ms;
}
.shooting_star:nth-child(15)::before, .shooting_star:nth-child(15)::after {
  -webkit-animation-delay: 8490ms;
          animation-delay: 8490ms;
}
.shooting_star:nth-child(16) {
  top: calc(50% - -24px);
  left: calc(50% - 236px);
  -webkit-animation-delay: 594ms;
          animation-delay: 594ms;
}
.shooting_star:nth-child(16)::before, .shooting_star:nth-child(16)::after {
  -webkit-animation-delay: 594ms;
          animation-delay: 594ms;
}
.shooting_star:nth-child(17) {
  top: calc(50% - 196px);
  left: calc(50% - 95px);
  -webkit-animation-delay: 2345ms;
          animation-delay: 2345ms;
}
.shooting_star:nth-child(17)::before, .shooting_star:nth-child(17)::after {
  -webkit-animation-delay: 2345ms;
          animation-delay: 2345ms;
}
.shooting_star:nth-child(18) {
  top: calc(50% - 79px);
  left: calc(50% - 235px);
  -webkit-animation-delay: 7172ms;
          animation-delay: 7172ms;
}
.shooting_star:nth-child(18)::before, .shooting_star:nth-child(18)::after {
  -webkit-animation-delay: 7172ms;
          animation-delay: 7172ms;
}
.shooting_star:nth-child(19) {
  top: calc(50% - -15px);
  left: calc(50% - 15px);
  -webkit-animation-delay: 1933ms;
          animation-delay: 1933ms;
}
.shooting_star:nth-child(19)::before, .shooting_star:nth-child(19)::after {
  -webkit-animation-delay: 1933ms;
          animation-delay: 1933ms;
}
.shooting_star:nth-child(20) {
  top: calc(50% - 134px);
  left: calc(50% - 42px);
  -webkit-animation-delay: 7042ms;
          animation-delay: 7042ms;
}
.shooting_star:nth-child(20)::before, .shooting_star:nth-child(20)::after {
  -webkit-animation-delay: 7042ms;
          animation-delay: 7042ms;
}

@-webkit-keyframes tail {
  0% {
    width: 0;
  }
  30% {
    width: 100px;
  }
  100% {
    width: 0;
  }
}

@keyframes tail {
  0% {
    width: 0;
  }
  30% {
    width: 100px;
  }
  100% {
    width: 0;
  }
}
@-webkit-keyframes shining {
  0% {
    width: 0;
  }
  50% {
    width: 30px;
  }
  100% {
    width: 0;
  }
}
@keyframes shining {
  0% {
    width: 0;
  }
  50% {
    width: 30px;
  }
  100% {
    width: 0;
  }
}
@-webkit-keyframes shooting {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(300px);
  }
}
@keyframes shooting {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(300px);
  }
}
@-webkit-keyframes sky {
  0% {
    transform: rotate(45deg);
  }
  100% {
    transform: rotate(405deg);
  }
}
@keyframes sky {
  0% {
    transform: rotate(45deg);
  }
  100% {
    transform: rotate(405deg);
  }
}
/*For nav bar*/
.navbar {
  background-color: rgba(0, 0, 0, 0.8); /* Background color with 0.8 opacity */
  color: rgb(248,245,234) !important; /* Ensure the text color remains readable */
}
#footerLinks {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #b8b8b8;
}
#footerLinks .footerLink {
  color: rgb(248,245,234);
  text-decoration: none;
}
#footerLinks .footerLink:hover {
  text-decoration: underline;
  color: rgb(248,245,234);
}
