html {
  font-size: 16px;
  /* 设置根元素的字体大小，可以根据需要进行调整 */
}

@media (max-width: 1400px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 12px;
  }
}

body {
  min-width: 800px;
}



body {
  font-size: 100%;
  font-family: "PT Sans", sans-serif;
  color: #091d23;
  background-color: gainsboro;
}

a {
  text-decoration: none;
}




header {
  z-index: 3;
}

.cd-logo,
.cd-nav-trigger {
  position: fixed;
  display: inline-block;
}

.cd-logo {
  top: 28px;
  left: 5%;
}

.cd-logo img {
  display: block;
}

.cd-nav-trigger {
  position: fixed;
  top: 5%;
  right: 3%;
  z-index: 100;
}

.cd-nav-trigger .cd-icon {
  /* icon created in CSS */
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;

  z-index: 10;
}

.cd-nav-trigger .cd-icon::before,
.cd-nav-trigger .cd-icon:after {
  /* upper and lower lines of the menu icon */
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* apply transition to transform property */
  -webkit-transition: -webkit-transform .3s;
  -moz-transition: -moz-transform .3s;
  transition: transform .3s;
}



.cd-nav-trigger::before,
.cd-nav-trigger::after {
  /* 2 rounded colored backgrounds for the menu icon */
  position: absolute;
  top: 0;
  left: 0;

  height: 100%;
  width: 100%;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
}

.cd-nav-trigger::before {
  background-image: url('../img/页面右上角的键.png');
  background-size: cover;

  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
  -webkit-transition-duration: 0.3s;
  -moz-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-delay: 0.4s;
  -moz-transition-delay: 0.4s;
  transition-delay: 0.4s;
}



.cd-nav-trigger.close-nav::before {
  /* user clicks on the .cd-nav-trigger element - 1st rounded background disappears */
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -ms-transform: scale(0);
  -o-transform: scale(0);
  transform: scale(0);
}

.cd-nav-trigger.close-nav::after {
  /* user clicks on the .cd-nav-trigger element - 2nd rounded background appears */
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
  -webkit-transition-duration: 0.3s;
  -moz-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-delay: 0.4s;
  -moz-transition-delay: 0.4s;
  transition-delay: 0.4s;
}

.cd-nav-trigger.close-nav .cd-icon {
  /* user clicks on the .cd-nav-trigger element - transform the icon */
  background-color: rgba(255, 255, 255, 0);
}



.cd-primary-nav {
  /* by default it's hidden */
  position: fixed;
  left: 0;
  top: 0%;
  height: 100%;
  width: 100%;

  z-index: 3;
  background-color: #091d23;
  overflow: hidden;
  /* this fixes the buggy scrolling on webkit browsers - mobile devices only - when overflow property is applied */
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: visibility 0s, opacity 0.3s;
  -moz-transition: visibility 0s, opacity 0.3s;
  transition: visibility 0s, opacity 0.3s;
}



.cd-primary-nav a {
  font-size: 20px;
  font-size: 1.25rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-transition: color 0.2s;
  -moz-transition: color 0.2s;
  transition: color 0.2s;
}

.no-touch .cd-primary-nav a:hover {
  color: #ffffff;
}

.cd-primary-nav.fade-in {
  /* navigation visible at the end of the circle animation */
  visibility: visible;
  opacity: 1;
}



.cd-overlay-nav,
.cd-overlay-content {
  /* containers of the 2 main rounded backgrounds - these containers are used to position the rounded bgs behind the menu icon */
  position: fixed;
  top: 18px;
  right: 5%;
  height: 4px;
  width: 4px;
  -webkit-transform: translateX(-20px) translateY(20px);
  -moz-transform: translateX(-20px) translateY(20px);
  -ms-transform: translateX(-20px) translateY(20px);
  -o-transform: translateX(-20px) translateY(20px);
  transform: translateX(-20px) translateY(20px);
}

.cd-overlay-nav span,
.cd-overlay-content span {
  display: inline-block;
  position: absolute;
  border-radius: 50%;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  -webkit-transform-origin: 50% 50%;
  -moz-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  -o-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -ms-transform: scale(0);
  -o-transform: scale(0);
  transform: scale(0);
}

.cd-overlay-nav.is-hidden,
.cd-overlay-content.is-hidden {
  /* background fades out at the end of the animation */
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity .3s 0s, visibility 0s .3s;
  -moz-transition: opacity .3s 0s, visibility 0s .3s;
  transition: opacity .3s 0s, visibility 0s .3s;
}

.cd-overlay-nav {
  /* main rounded colored bg 1 */
  z-index: 2;
}

.cd-overlay-nav span {
  /*点进来时候的颜色*/
  background-color: #e1d2cf;
}

.cd-overlay-content {
  /* main rounded colored bg 2 */
  z-index: 4;
}

.cd-overlay-content span {
  /*点出来时候的颜色*/
  background-color: rgb(255, 250, 234);
}

.cd-content {
  /* just some dummy content */
  padding: 80px 0;
  width: 90%;
  max-width: 768px;
  margin: 0 auto;
  z-index: 1;
}

.cd-content .cd-intro {
  height: 200px;
  padding-top: 4.6em;
}

.cd-content h1 {
  text-align: center;
  font-size: 20px;
  font-size: 1.25rem;
}

.cd-content p {
  line-height: 1.5;
  color: #a76500;
}

@media only screen and (min-width: 768px) {
  .cd-content .cd-intro {
    height: 250px;
    padding-top: 6em;
  }

  .cd-content h1 {
    font-size: 28px;
    font-size: 1.75rem;
  }

  .cd-content p {
    font-size: 18px;
    font-size: 1.125rem;
    line-height: 1.8;
  }
}

.navs {
  font-size: 1rem;
  animation: fadein 3s;
  animation-fill-mode: forwards;
  opacity: 0;
}

.navs:hover {
  transform: scale(1.1);
  cursor: pointer;

}

.navs_1 {
  animation-delay: 0.4s;
}

.navs_2 {
  animation-delay: 0.6s;
}

.navs_3 {
  animation-delay: 0.8s;
}

.navs_4 {
  animation-delay: 1.0s;
}

.navs_5 {
  animation-delay: 1.2s;
}

.navs_6 {
  animation-delay: 1.4s;
}

.navs_7 {
  animation-delay: 1.6s;
}

@keyframes fadein {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.navcon {
  display: none;
}

.word--swing {
  font-size: 11vw;
  font-family: 'Londrina Solid';
  font-weight: 400;
  text-transform: uppercase;
  color: #0e0e19;
  line-height: 0.725;
  perspective: 800px;
}

.word--swing>span:first-child {
  color: #ea757f;
}

.word--swing>span:nth-child(2) {
  color: #7577ea;
}

.word--swing>span:nth-child(3) {
  color: #8dea75;
}

.word--swing>span:nth-child(4) {
  color: #e2e623;
}

.word--swing>span:nth-child(5) {
  color: #ffc107;
}

.word--swing>span:nth-child(6) {
  color: #6830cb;
}

.word--swing>span:nth-child(7) {
  color: #f02424;
}

.word--swing>span:nth-child(8) {
  color: #4cc5f4;
}

.word--swing>span:nth-child(9) {
  color: #00eb6e;
}

.word--swing>span:nth-child(10) {
  color: #dc04f4;
}

.word--swing svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 450px;
  height: 510px;
  margin: -255px 0 0 -225px;
  pointer-events: none;
}

.word--swing svg circle {
  fill: currentColor;
  opacity: 0;
  transform-origin: 50% 50%;
}

.word--swing span {
  display: block;
  position: relative;
}

.word--swing span span:first-of-type {
  position: absolute;
  font-family: 'Londrina Outline';
}

.word--swing span span:last-of-type {
  transform-style: preserve-3d;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

/* Color schemes */
.demo-magneto {
  --color-text: #41353d;
  --color-background: #fff037;
  --color-link: #000;
  --color-link-hover: #41353d;
}

.demo-kidnap {
  --color-text: #d5c12e;
  --color-background: #191a19;
  --color-link: #d5c12e;
  --color-link-hover: #fff;
}

.demo-redraw {
  --color-text: #0c48a4;
  --color-background: #7d96df;
  --color-link: #0c48a4;
  --color-link-hover: #ededed;
}

.demo-swing {
  --color-text: #828284;
  --color-background: #1f1f21;
  --color-link: #828284;
  --color-link-hover: #fff;
}

@keyframes loaderAnim {
  0% {
    box-shadow: 20px 0 0 var(--color-text), -20px 0 0 transparent;
    background: transparent;
  }

  50% {
    box-shadow: 20px 0 0 transparent, -20px 0 0 transparent;
    background: var(--color-text);
  }

  100% {
    box-shadow: 20px 0 0 transparent, -20px 0 0 var(--color-text);
    background: transparent;
  }
}

/* CUSTOM */
.word {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.xm div {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 33.33%;
}

.cd-primary-indeix {
  position: relative;
  margin: 0;
  padding: 0;
  margin-bottom: 0px;
  width: 100%;
  height: 100%;
}

#homebackground {
  position: fixed;
  width: 100%;
  height: 70%;
  bottom: 0;
}

.menu_main_container {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url(https://static.igem.wiki/teams/4613/wiki/menu/backgro.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom;
  /* min-width: 800px;
  min-height: 532px; */
}

.menu_main_container .navs {
  position: absolute;
  width: 8%;
  height: 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.xm {
  width: 60%;
  height: 28%;
  position: absolute;
  background-color: transparent;
  bottom: 4%;
  left: 19%;
  z-index: 10;
  justify-content: space-around;
  align-items: center;
  display: none;
  align-content: end;
  flex-flow: row wrap;
}

.homebutton1,
.homebutton2 {
  width: 50px;
  height: 50px;
}

.homebutton1 img,
.homebutton2 img {
  width: 100%;
}

.navs .nav_name {
  font-size: 1.3rem;
  color: white;
  text-align: center;
  font-family: 'comic';
}

.cd-nav-trigger:hover {
  cursor: pointer;
}

.xm_content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.xm_content img {
  width: 3.5rem;
}

.xm .nav_name {
  font-size: 1rem;
  color: white;
  font-family: 'comic';
}

.nauchinaicon {
  position: fixed;
  top: 3%;
  left: 3%;
  z-index: 100;
}

.nauchinaicon img {
  width: 50px;
}