.menu {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column; /* Change the flex direction to column */

  
  /* 其他的样式设置 */
  box-shadow:inset 1px 1px 6px rgba(255, 255, 255, 0.3), 2px 2px 15px rgba(0, 0, 0, 0.5);
  border-radius: 0 30px 30px 0 ;
  top: 200px;
  
  position: fixed;
  background-color: rgb(231, 239, 244);
  width: 300px;
  transition: transform 1000ms cubic-bezier(0.19, 1, 0.22, 1);
  transform: translateX(-100%); /* 这个值保证元素在页面加载时是隐藏的 */
  left: 0px;
  z-index: 12;
  backdrop-filter: blur(1px); 
}

.menu.partial-expanded {
  transform: translateX(-80%); /* 当滚动超过200px时，menu元素部分显示 */
}

.menu.full-expanded {
  transform: translateX(0%); /* 当鼠标移入menu元素时，menu元素完全显示 */
}






.hamburger {
  top: 50px;
  right: 20px;
  position: absolute;
  width: 20px;
  height: 20px;
  margin-top: 0px;	
  z-index: 11;
}

.hamburger .line {
  width: 100%;
  height: 4px;
  background-color: #000000;
  position: absolute;
  z-index: 11;
}

.hamburger .line:nth-child(2) {
  top: 50%;
  margin-top: -2px;
}

.hamburger .line:nth-child(3) {
  bottom: 0;
}







.segmented-control > input:checked + label {
  left: 20px;
  transition: all 0.5s ease;
  color: var(--primary);
}

.segmented-control__ a {
  text-decoration: none; 
  width:auto;
  height: 3.6rem;
  font-size: 1rem;
  display: flex;
  margin-left: 20px;
  cursor: pointer;
  color: var(--greyDark);
  transition: all 0.5s ease;
}

.segmented-control__ a:hover {
  color: var(--primary);
}

.segmented-control__color {
  transition: top 0.3s ease-out;
  left: 0px;
  position: absolute;
  height: 3.3rem;
  width: 100%;
  margin-top: 3rem; /* Adjust the margin to position the color block vertically */
  
  box-shadow: inset 0.2rem 0.2rem 0.5rem var(--greyLight-2), inset -0.2rem -0.2rem 0.5rem var(--white);
  pointer-events: none;
}

.bt-glass{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);  /* Add this line to move it outside of the screen to the right */
    transition: transform 0.5s;
  backdrop-filter: blur(4px);
box-shadow: inset 1px 1px 6px rgba(255, 255,255,0.3),2px 2px 15px rgba(0,0,0,0.5);
height: 200px;
  width: 70px;
  position: fixed;
  bottom: 20px;
right: -5px;

border-radius: 20px 0 0 20px;
  z-index: 12;
  gap: 15px;
}

#back-to-top-btn {
  
  font-weight: bold;
  font-size: 28px;
    width: 42px;
 
    padding: 1px;
    background-color: rgba(255, 255, 255, 0.1); 
    color: #6e7880;
    border: none;
    cursor: pointer;
    z-index: 12;
    border-radius: 50%;
    box-shadow: 0px 2px 8px #111;
  }
  
  #back-home{
    padding: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
  font-size: 28px;
    width: 42px;
    height: 42px;

    
    background-color: rgba(255, 255, 255, 0.1); 
    color: #12161a;
    border: none;
    cursor: pointer;
    z-index: 12;
    border-radius: 50%;
    box-shadow: 0px 2px 8px #111;

  }

  #back-to-bottom-btn {
   
   
    font-weight: bold;
    font-size: 28px;
      width: 42px;
     
   height: 42px;
      
      background-color: rgba(255, 255, 255, 0.1); 
      color: #6e7880;
      border: none;
      cursor: pointer;
      z-index: 12;
      border-radius: 50%;
      box-shadow: 0px 2px 8px #111;
    }

  .bt-glass:hover
{
box-shadow: inset 1px 1px 3px rgba(255, 255,255,0.9),4px 4px 10px rgba(0,0,0,0.7);
backdrop-filter: blur(7px);
}


#back-to-top-btn:hover
{
color: rgb(112, 133, 92);
box-shadow: 0px 0px 10px #e1e1e1, inset 0px 0px 5px #a3a2a2;
}

#back-home:hover
{
  color: rgb(112, 133, 92);
box-shadow: 0px 0px 10px #e1e1e1, inset 0px 0px 5px #a3a2a2;
}

#back-to-bottom-btn:hover
{
 
color: rgb(112, 133, 92);
box-shadow: 0px 0px 10px #e1e1e1, inset 0px 0px 5px #a3a2a2;
}

#svg1{
  transform: translate(-3px, 5px);
}
#svg2{
  transform: translate(0.5px, 2px);

}


.mask {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300vh;
  position: relative;
  z-index: 1;
}

.fake-window {
  flex: 0;
  width: 100px;
  height: 100px;
  background: transparent;
}

.other-element {
  flex: 1;
  height: 100px;
  background: rgb(185, 51, 51);
  text-align: center;
  line-height: 100px;
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://static.igem.wiki/teams/4912/wiki/wiki-picture/maxresdefault.jpg");
  background-size: cover;
  background-position: center;
  clip-path: circle(200px at center);
  z-index: -1;
}