@charset "UTF-8";

* {
    box-sizing: border-box;
}

html {
    width:auto;
    overflow-x: clip;
    /* overflow: scroll; */
    height: auto;
    -webkit-text-size-adjust: none;
}

body {
    width:auto;
    /* overflow: scroll; */
    height:auto;
    background: linear-gradient(white 10%, #ffd2d4 100%);
    min-height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    overflow-x: clip;
}

/* body-loading-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(#f9c0c3 0%, white 100%);
} */
.home-content{
	background:linear-gradient(#f8ecec 0%, #ffd2d4 100%);
}
.top {
    height: 60vw;
    position: relative;
    overflow: hidden;
    background: linear-gradient(#ffd2d4 0%, white 100%);
}

.shell {
    width: 50%;
    height: 400px;
    display: flex;
    margin: 0 auto;
}

.box {
    flex: 1;
    overflow: hidden;
    transition: .5s;
    margin: 0 20px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, .5);
    border-radius: 20px;
    border: 10px solid #fff;
    background-color: #fff;
}
.sfa {
    display: block;
    width: 100%;
    height: 80%;
}


.sfimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.sfspan {
    font: 200 18px;
    text-align: center;
    height: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family:"Salsa", sans-serif ;
    font-weight: bold;
}

.box:hover {
    flex-basis: 40%;
}

.box:hover>img {
    width: 100%;
    height: 100%;
}

.roll {
    position: fixed;
    width: 400px;
    height: 200px;
    margin-left: 10em;
    margin-top: -35em;
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}

.TK {
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 10px;
    height: auto;
    width: 50px;
    z-index: 999;
}

.nav {
    background-color: #ffd2d4;
    opacity: 100%;
}

.dropdown-menu.show {
    background-color: #ffe5e6;
	border-width: 0px;
}

.dropdown-menu.show a {
    color: #5e5e5e;
}
.dropdown-menu.show a:hover {
    color: black;
}
.dropdown-menu .dropdown-item {
    background-color: #ffffff00;
}
.dropdown-menu .dropdown-item:hover {
    background-color: #ffd2d4;
}

#title {
    font-weight: bold;
    color: black;
    text-shadow: 2px 2px 0 #EEEBEE;
    line-height: 300%;
    border-radius: 5px;
    user-select: none;
}

/* title image */
.G1-image {
    position: absolute;
    margin-top: 3%;
    margin-left: 2%;
    width: 30%;
}

.E2-image {
    position: absolute;
    margin-top: 8%;
    margin-left: 25%;
    width: 31%;
}

.I3-image {
    position: absolute;
    margin-top: 2%;
    margin-left: 47%;
    width: 31%;
}

.G4-image {
    position: absolute;
    margin-top: 8%;
    margin-left: 68%;
    width: 30%;
}

/* wavebar */
.wave-up {
    margin-top: -20px;
    height: 35px;
    width: 100%;
    background: -webkit-gradient(radial, 50% 100%, 10, 50% 100%, 50, from(#f5e3df), color-stop(0.49, #f5e3df), color-stop(0.51, rgb(250, 236, 236)), to(rgb(250, 236, 236)));
    background-size: 35px 100%;
    transform: rotateX(180deg) translateY(-20px);
}

/* typer */
.typer1 {
    font-weight: bold;
    color: #b54545;
    font-family: "Salsa", sans-serif;
    text-shadow: 2px 2px 0 #ffffff;
    border-radius: 5px;
    user-select: none;
}

.cursor1 {
    color: #EEEBEE;
    font-weight: bold;
    animation: blink 1s infinite;
}

.typer2 {
    font-weight: bold;
    color: #b54545;
    font-family: "Salsa", sans-serif;
    text-shadow: 2px 2px 0 #ffffff;
    border-radius: 5px;
    user-select: none;
}

.cursor2 {
    color: #EEEBEE;
    font-weight: bold;
    animation: blink 1s infinite;
}

.typer3 {
    font-weight: bold;
    color: #b54545;
    font-family: "Salsa", sans-serif;
    text-shadow: 2px 2px 0 #ffffff;
    border-radius: 5px;
    user-select: none;
}

.cursor3 {
    color: #EEEBEE;
    font-weight: bold;
    animation: blink 1s infinite;
}

.typer4 {
    font-weight: bold;
    color: #b54545;
    font-family: "Salsa", sans-serif;
    text-shadow: 2px 2px 0 #ffffff;
    border-radius: 5px;
    user-select: none;
}

.cursor4 {
    color: #EEEBEE;
    font-weight: bold;
    animation: blink 1s infinite;
}


.progress-bar-container {
    position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 8px;
        background-color: #d7979b;
        z-index: 99;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: #be696d;
    transition: width 0.1s ease;
}

.dongzuo {
    width: 60px;
        position: absolute;
        left: 0;
        z-index: 999;
        bottom: -10px;
        margin: auto;
        transition: right 0.1s ease;
}

/* loading */
#loader {
    width: 100%;
    height: 100%;
    background: linear-gradient(#f9c0c3 0%, white 100%);
    background-size: cover;
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    left: 0;
    /*相对浏览器窗口定位*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*内容水平垂直居中*/
    z-index: 9999;
    /* 设置一个较大的层级值 */
}

#gif {
    width: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-container {
	margin-left:-10%;
    text-align: center; /* 文本居中 */
}

.image-wrapper {
    display: inline-block; /* 将图片和文本包装在内联块级元素中 */
    position: relative; /* 设置相对定位，以容纳绝对定位的文本 */

}

.loading-image {
    opacity: 0;
    transition: opacity 1s;
    margin-right: 10px;
    width: 14vw;
    height: 14vw;
}

.loading-text {
	margin-left:15%;
    text-align: center; /* 文本居中 */
    margin-top: 10px; /* 增加一些上边距 */
    font-weight: bold;
    opacity: 0; /* 初始时不可见 */
    transition: opacity 1s;
    color: #4c0101;
    font-size: 11vw;
    font-family: "Comic Sans MS", cursive;
}
 /*
.loadingtext {
    text-align: center;
    font-family: "Comic Sans MS", cursive;
    color: black;
    font-size: 3em;
}  */
body-loading-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(#f9c0c3 0%, white 100%);
}

/* slide */
.slide-in {
    margin-top: 0em;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.slide-in.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    margin-top: 0em;
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.slide-in-right.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0%);
}

.slide-in-left-comics {
    margin-top: 0em;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.slide-in-left-comics.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(10%);
}

.slide-in-right-comics {
    margin-top: 0em;
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.slide-in-right-comics.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(70%);
}
/* fade-in */
.fade-in {
    opacity: 0;
  }
  .fade-in.active {
    opacity: 0;
    animation: fadeInAnimation 1s ease-in-out forwards;
  }
  
  @keyframes fadeInAnimation {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
/* image */
.img1{
	width:33%;
	margin-top:5%;
	margin-left:35%;
}
.img2{
	width:35%;
	margin-left:37%;
}
.img3{
	width:42%;
	margin-left:29%;
}
.img4{
	width:70%;
	margin-left:15%;
}
.img5{
	width:85%;
	margin-left:2.5%;
}
.img6{
	width:65%;
	margin-left:35%;
}
.img7{
	width:75%;
	margin-left:13%;
}

/* textbox */
.textbox1{
    position:absolute;
	width:35%;
	margin-top:-52%;
	margin-left:45%;
}
.textbox2{
	position:absolute;
	width:40%;
	margin-top:-56%;
	margin-left:25%;
}
.textbox3{
    position:absolute;
	width:35%;
	margin-top:-50%;
	margin-left:5%;
}
.textbox4{
	position:absolute;
	width:35%;
	margin-top:-47%;
	margin-left:48%;
}
.textbox5{
	position:absolute;
	width:40%;
	margin-top:-56%;
	margin-left:19%;
}
.textbox6{
	position:absolute;
	width:35%;
	margin-top:-57%;
	margin-left:35%;
}
.textbox7{
    position:absolute;
    width:35%;
    margin-top:-54%;
    margin-left:0%;
}
.textbox8{
    position:absolute;
    width:35%;
    margin-top:-60%;
    margin-left:22%;
}
.textbox9{
    position:absolute;
    width:31%;
    margin-top:-63.5%;
    margin-left:64%;
}

/* Promotion Video */
.video1{
	margin-top:10vw;
	margin-left:30%;
    
}

@media only screen and (max-width: 768px) {
    /* For mobile phones: */

.home-content .video1{
    width:50%;
}
.home-content .shell{
    display:none;
}
.container br{
	font-size:1px;
}
.home-content .img1{
	width:70%;
	margin-top:20%;
	margin-left:20%;
}
.home-content .textbox1{
    position:absolute;
	width:60%;
	margin-top:-115%;
	margin-left:35%;
}
.home-content .img2{
	width:65%;
	margin-left:25%;
}
.home-content .textbox2{
	position:absolute;
	width:70%;
	margin-top:-106%;
	margin-left:7%;
}
.home-content .img3{
	width:68%;
	margin-left:20%;
}
.home-content .img4{
	width:110%;
	margin-left:0%;
}
.home-content .textbox3{
    position:absolute;
	width:60%;
	margin-top:-80%;
	margin-left:-12%;
}
.home-content .textbox4{
	position:absolute;
	width:60%;
	margin-top:-77%;
	margin-left:38%;
}
.home-content .img5{
	width:155%;
	margin-left:2.5%;
}
.home-content .textbox5{
	position:absolute;
	width:70%;
	margin-top:-102%;
	margin-left:27%;
}
.home-content .img6{
	width:105%;
	margin-left:5%;
}
.home-content .textbox6{
	position:absolute;
	width:60%;
	margin-top:-97%;
	margin-left:15%;
}
.home-content .img7{
	width:100%;
	margin-left:0%;
}
.home-content .textbox7{
    position:absolute;
    width:45%;
    margin-top:-70%;
    margin-left:-10%;
}
.home-content .textbox8{
    position:absolute;
    width:55%;
    margin-top:-90%;
    margin-left:8%;
}
.home-content .textbox9{
    position:absolute;
    width:41%;
    margin-top:-93.5%;
    margin-left:58%;
}

}

.parallax-container {
    position: relative;
    width: 100%;
    perspective: 1000px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    margin-top: 15vw;
}

.parallax-image {
    position: absolute;
    width: 120%;
    object-fit: cover;
    z-index: 0;
    transition: transform 1s ease-out;
}


#background-map {
    position: relative;
    width: 96vw;
    left: 50%;
    transform: translateX(-50%);
    height: 1000px;
    margin-bottom: 20px;
    background-color: #f9c0c3;
    border: 2px solid #ffffff;
    opacity: 0.7;
    overflow-x: scroll;
    overflow-y: hidden;
}
#background-map::-webkit-scrollbar {
    height: 10px;
}

#background-map::-webkit-scrollbar-track {
    background: transparent;
}

#background-map::-webkit-scrollbar-thumb {
    background: #d68c8c;
    border-radius: 3px;
}

#background-map::-webkit-scrollbar-thumb:hover {
    background: #ba5a5a;
    border-radius: 3px;
}

.map {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 1000px;
}

.provinces img {
    position: absolute;
    transition: transform 0.3s ease;
}

.provinces img:hover {
    transform: scale(1.3);
    z-index: 8;
}

.province-container {
    position: absolute;
    width: 44px;
    transition: transform 0.3s ease;
}

.province-container:hover .popup {
    display: block;
}

.province-container .popup {
    display: none;
    position: absolute;
    width: 50vw;
    height: auto;
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    z-index: 10;
    overflow: hidden;
}

.province-container .popup p {
    font-size: 3em;
    color: #ffffff;
    font-weight: 400;
}

.image-slider {
    display: flex;
    overflow: hidden;
    max-width: 40vw;
    position: relative;
    left: 50%;
    transform: translate(-50%);

}

.slider-image {
    padding: auto;
    width: 100%;
    height: auto;
    display: none;
}

.slider-image:first-child {
    display: block;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.left-button,
.right-button {
    background-color: #ffffff54;
    color: #781b1b;
    border: 0px solid #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.left-button {
    left: 0;
}

.right-button {
    right: 0;
}


#button-container {
    position: absolute;
    width: 1000px;
    height: 1000px;
    left: 50%;
    transform: translate(-50%);
    z-index: 5;
}

.direction-button {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(200, 150, 150, 1);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 9;
}

.direction-button:hover {
    border: 1px solid rgba(200, 150, 150, 1);
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 20px rgba(255, 255, 255, 200);
}

.popup {
    display: none;
    position: absolute;
    width: auto;
    height: auto;
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.popup p {
    font-size: 1.5em;
    color: #ffffff;
    font-weight: 400;
    line-height: 100%;
    text-shadow: 2px 2px 0 #ba5a5a;
}

.popup.left {
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
}

.popup.right {
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
}

.popup.up {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.popup.down {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.popup-link {
    cursor: pointer;
}

.navbar-brand {
    height: 65px;
}

.UM-Macau-image{
    height: 100%;
}



.department {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40vw;
    background-color: #ffd7d9;
    border: 3px solid;
    border-color: #ffffff;
    border-radius: 10px;
    opacity: 1;
    /* overflow: hidden; */
    transition: top 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
    padding: 2vh;
}

.department-name {
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 15%;
    font-family: "Salsa", sans-serif;
    font-size: 5vw;
    color: #781b1b;
    text-shadow: 0.5vw 0.5vw 0 #ffffff;
    font-weight: 500;
    text-align: center;
    border: 0px solid;
    border-color: #ffffff;
    z-index: 12;          
}

.info-frame-container {
    position: absolute;
    top: 15%;
    left: 2%;
    width: 33%;
    height: 85%;
    border: 0px solid #ffffff;
    border-radius: 0px;
}

.image-frame-container {
    position: relative;
    top: 0%;
    width: 100%;
    height: 60%;
    border: 0px solid #ffffff;
    border-radius: 0px;
}
.image-frame {
    position: relative;
    width: 14.5vw;
    height: 18vw;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-image: url('https://static.igem.wiki/teams/4716/wiki/wiki/teammember/wheaty1.png');
    background-size: cover;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.intro-frame-container{
    position: absolute;
    top: 60%;
    width: 100%;
    height: 38%;
    border: 0px solid #ffffff;
    border-radius: 0px;
}
.intro-frame {
    position: absolute;
    padding: 0.5vw;
    width: 100%;
    height: 100%;
    font-family: 'K2D', sans-serif;
    font-size: 2vw;
    color: #781b1b;
    font-weight: 500;
    text-align: center;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

.intro-frame::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.intro-frame::-webkit-scrollbar-track {
    background: transparent;
}

.intro-frame::-webkit-scrollbar-thumb {
    background: #d68c8c;
    border-radius: 3px;
}

.intro-frame::-webkit-scrollbar-thumb:hover {
    background: #ba5a5a;
    border-radius: 3px;
}

.title-frame-container {
    position: absolute;
    top: 15%;
    left: 35%;
    width: 63%;
    height: 85%;
    border: 0px solid #ffffff;
    border-radius: 20px;
}

.name-frame {
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 35%;
    font-family: "Salsa", sans-serif;
    font-size: 4vw;
    line-height: 110%;
    color: #781b1b;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0px solid #ffffff;
    border-radius: 20px;
}

.major-frame {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 15%;
    font-family: "Salsa", sans-serif;
    font-size: 3vw;
    line-height: 100%;
    color: #781b1b;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0px solid #ffffff;
    border-radius: 20px;

}

.members-container {
    position: absolute;
    width: 100%;
    top: 50%;
    height: 50%;
    border: 0px solid #ffffff;
    border-radius: 20px;
}

.button-row1,
.button-row2 {
    position: relative;
    left: 0%;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border: 0px solid #ffffff;
    border-radius: 20px;
}

.button-img {
    width: 13%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    border: 2px solid #ffffff;
    border-radius: 50%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.button-img:hover {
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 1);
    transform: scale(2);
    z-index: 999;
}

@media (max-width: 768px) {
    .department-name {
        font-size: 4vw;
    }

    .intro-frame {
        font-size: 1.5vw;
    }
    .name-frame {
        font-size: 3vw;
    }

    .major-frame {
        font-size: 2vw;
    }

    .members-container {
        width: 100%;
    }
}

.attribution-container{
    padding: 15vw;
}

.img12{
    display: flex;
    justify-content: center;
    align-items: center;
    width:45%;
  margin-top:5%;
  margin-left:25%;
  }
  
  .img12 img {
    max-width: 65%;
    max-height: 65%;
  }

  .img3{
      display: flex;
    justify-content: center;
    align-items: center;
    width:60%;
  margin-top:5%;
  margin-left:22%;
  }
  
  .img3 img {
      max-width: 65%;
    max-height: 65%;
  }

  .img13{
      display: flex;
    justify-content: center;
    align-items: center;
    width:65%;
  margin-top:5%;
  margin-left:25%;
  }
  
  .img13 img {
      max-width: 65%;
    max-height: 65%;
  }

  .img6{
      display: flex;
    justify-content: center;
    align-items: center;
    width:60%;
  margin-top:5%;
  margin-left:20%;
  }
  
  .img6 img {
      max-width: 65%;
    max-height: 65%;
  }

  .img7{
      display: flex;
    justify-content: center;
    align-items: center;
    width:70%;
  margin-top:5%;
  margin-left:16%;
  }
  
  .img7 img {
      max-width: 65%;
    max-height: 65%;
  }

  .img16{
      display: flex;
    justify-content: center;
    align-items: center;
    width:70%;
  margin-top:5%;
  margin-left:16%;
  }
  
  .img16 img {
      max-width: 65%;
    max-height: 65%;
  }