body {
  margin: 0;
  overflow: auto;
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  width: 100%;
}



/* 折叠按钮 */
#naviButton{
  margin: 40px;
}

#naviButton button{
  border: none;
  box-shadow: none;
  z-index: 1001;
  border-color: transparent; /* 去掉边框颜色 */
  outline: none; /* 去掉聚焦时的边框 */
}
.navbar-toggler{
  position: relative;
  transition: transform 0.3s ease;
  width: 100%;
  height: 5px;
}

.navbar-toggler-icon{
  display: block;
  position: absolute;
  background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="UTF-8"%3F><svg id="_图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><defs><style> .cls-1 { fill: none; stroke: %23000; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 46px; } </style></defs><line class="cls-1" x1="205.55" y1="205.55" x2="594.45" y2="594.45"/><line class="cls-1" x1="205.55" y1="594.45" x2="594.45" y2="205.55"/></svg>');
  transition: transform 0.3s ease; 
  left: -60%;
  top: 10%;
  

}


/* 鼠标悬停样式 */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.navbar-toggler-icon:hover{
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
  animation: rotate 1s linear infinite; 
}






.navbar-nav{
  margin: 40px;
  font-family: 'Marcellus', sans-serif;
}












/* index.php content */
#floatingContent {
  margin-top: 8%;
  color: #000000;
  
}

#floatingContent h2{
  font-size: 9em;
  font-family: 'Marcellus', sans-serif;
  margin-bottom: 2%;

}

#floatingContent p{
  font-family: 'Inter', sans-serif;
  font-size: 0.9em;
  line-height: 1.5;
  font-weight: 200;
}

.nav-item:hover #overlay,
.nav-item:hover #floatingPage {
    display: block; /* 鼠标悬停在.nav-item上时显示浮动页面和遮罩层 */
}



#ContentH{
height: 60px;
margin-top:50px ;
white-space: nowrap;
font-family: 'Marcellus', sans-serif;

}

#text {
  font-size: 24px;
  animation: typing 3s steps(40) infinite, blink-caret 0.7s step-end infinite;

}

@keyframes typing {
  from, to {
      width: 0;
  }
  50% {
      width: 100%;
  }
}

@keyframes blink-caret {
  from, to {
      border-color: transparent;
  }
  50% {
      border-color: black;
  }
}

/*主页按钮 */

#floatingPage .btn-custom,
#floatingPage .btn-custom-2,
.btn-custom a{
  position: absolute;
  margin-top: 2%;
  border-radius: 0px;
  width: 8em;
  height: 2.5em;
  color: #FFFFFF; /* 设置按钮文本颜色，这里是白色 */
}

#floatingPage .btn-custom{
  z-index: 4;
}

#floatingPage .btn-custom-2{
  border: 1px solid black;
  transform: translate(4px, 4px);
  z-index: 3;
}


#floatingPage .btn-custom:hover {
  background-color: #A3FF2E;
  box-shadow: 4px 4px 0px 0px #000000;
}

.btn-custom a{
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: inline-block; 
  width: 100%; /* 设置链接宽度为父元素宽度 */
  height: 100%; /* 设置链接高度为父元素高度 */
  text-align: center; /* 水平居中对齐文本 */
  font-family: 'Inter', sans-serif;
  font-size: 1em;
  font-weight: 300;
}


.btn-custom a:hover {
  color: #000; /* 悬停状态下的链接文本颜色，这里是黑色 */
  /* 可以添加其他悬停效果等样式 */
}




.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
}

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

.nav-item a{
  text-decoration: none !important;
}



#imageCarousel .carousel-item {
  position: relative;
  height: 100vh; 
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
}

#imageCarousel .carousel-indicators{
margin: 0;
top: 82%;

}


.carousel-item img {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  padding-top: 3%;
  transform: translateY(-50%);
  height: 94%;
  width: 100%;
  object-fit: cover;
  overflow: hidden;
  padding-bottom:5%;
}


.carousel-caption{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: auto;
  width: 100%;
  object-fit: cover;
  overflow: hidden;
  color: #000;
 
}




#imageCarousel .carousel-item.active {
  opacity: 1;
}


#progressBar {
  margin-top: 2%;
  height: px;
  background-color: #000;
}

#progressBar .progress-bar {
  background-color: #000;
  transition: width 0.5s ease-in-out, opacity 0.5s ease-in-out;
}



footer {
  position: fixed;
  bottom: 0;
  width: 97%;
  text-align: center;
  padding: 5% 3.5% 3.5% 0;
  font-family: 'Marcellus', sans-serif;
  font-weight: 300;
  
}

footer a{
  color: #000;
  padding-left: 20px;
  text-decoration: none;
}
.CONTINUE{
  display: flex;
  justify-content: center; 
  align-items: center; 
  position: relative;
  width: 100%;
  height:150px;
  padding-top: 150px;
  padding-bottom: 100px;
}

.CONTINUE a{
  font-size: 1.5em;
  position: absolute;
  font-family: 'Marcellus', sans-serif;
  text-align: center;
  color: #000;
  text-decoration: none;
  display: inline-block; 

}


#works{
  overflow: scroll;
  overflow-x: hidden;
  padding:5% 3.5%;
  line-height:100%;
}

#works .project{
  padding: 5% 0%;
}

#works .project-item {
  padding: 0 0%;
  margin:5% 0%;
}

#works .project-tittle {

  font-family: 'Marcellus', sans-serif;
  font-weight: normal;

}

#works .project-pro {

  font-family: 'Inter', sans-serif;
  font-weight: 200;

}


#works .square-container {
  width: 100%;
  padding-top: 0%; 
  position: relative;
  overflow: hidden;
  padding-bottom: 0%; 
}



/*
#works .square-img {
  
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}
*/


#works .project-item a{
  text-decoration: none !important;
  color: #000;
}

#works .project-item a:hover{
  color: #454545;
}


#works .project-tittle{
  padding: 0;
  padding: -3;
  
  
  
}

#works .project-pro{
  padding: 0;
}


/*
#closebutton{
  padding-top: 10%;
}

.project-close{
  display: flex;
  align-items: center; 
  position: fixed;
  border: none;
  background-color: transparent;
}

#project-close-1{
  justify-content: flex-start; 
  position: fixed;
  left: 3%;
}

#project-close-2{
  justify-content: center; 
  justify-content: flex-end;
  right: 3%;
  position: fixed;
}


.project-close a{
  text-decoration: none !important;
  color: #ababab;
  font-family: 'Inter', sans-serif;
  font-size: 0.8em;
  z-index:1002

}

*/


#reflection{
  padding: 4% 10%;
  overflow: scroll;
  overflow-x: hidden;

  
}

#reflection h2{
  font-size: 2em;
  font-weight: 800;
  font-style: italic;
  padding: 16% 30% 8% 0;/*top,right,bottom,left */
  
}

#reflection li{
  font-size: 1.2em;
  font-weight: 200;
  padding: 0% 0;
  padding-right: 35%;
  
}

.fade-text {
  transition: color 1.1s ease;
}



li {
  list-style-type: none;
}



#refbody{
  overflow: scroll;
  overflow-x: hidden;
}


#reference{
  word-wrap: break-word;
  padding: 4% 6.3%;
  vertical-align: baseline; 
}

#reference .text{
  font-weight: 100;
  font-size: 1.2em;
  color: #454545;
}

#reference .text2{
  font-weight: 100;
  font-size: 1.2em;
  color: #454545;
}


#reference li{
  padding: 1em 2em;
}


#contact{
  overflow: hidden;
}


#contact .text h1{
  padding: 0 18%;
  font-size: 2em;
  font-weight: 500;
  opacity: 50%;
  line-height:120%
  
}

#contact .text h2{
  padding: 5% 0;
  font-weight: 100;
  font-size: 1.5em;
}

#contact .text a{
  color: #474747;
  padding: 0 1%;
  text-decoration: none !important;
}

#contact .text a:hover{
  color: #000000;
  padding: 0 1%;
  text-decoration: none !important;
}

/*Project*/

.pageTitle{
  padding-top: 3%;
  font-family: 'Marcellus', sans-serif;
}

.projectName{
  padding-top: 1%;
  font-family: 'Inter', sans-serif;
  font-weight: 200;
}

.secondTitle{
  font-family: 'Marcellus', sans-serif;
}

.project-content{
  padding-top: 2%;
  font-family: 'Inter', sans-serif;
  font-weight: 200;

}

/*Project-Micro */


#micro-container p{
  font-family: 'Inter', sans-serif;
  font-weight: 200;
}

.tittle-line{
  margin: 1% auto;
  width: 10em;
}

/*Project-BWS */

#BWS-container img{
  width: 80%;
}

#BWS-container .text{
  max-width: 80%;
}

.tittle-line{
  margin: 1% auto;
  width: 10em;
}


.text-decoration-none {
  text-decoration: none;
}

.link-hover-effect:hover {
  color: rgb(157, 157, 157);
}





@media (max-width: 992px) {
  .navbar-brand {
    display: none;
  }
  
  .navbar-toggler {
    order: -1;
  }

  .navbar-brand-centered {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 100%;
    text-align: center;
  }

  .navbar-brand.d-lg-none {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 100%;
    text-align: center;
  }


  #reference{
    padding: 15% 0;
    width: 100%;
  }

  #reference li{
    padding: 5% 4%;
  }
  


  #reflection{
    padding:30% 10%;

  }

  #reflection h2{
    font-size: 1.9em;
    padding: 16% 0% 15% 0;/*top,right,bottom,left */
    
  }

  #reflection li{
    padding: 3% 0;
    padding-right: 0%;
    
  }


}
