/* @media only screen and (max-width: 769px) {
  html {
    font-size: 10px;
  }
} 
@media only screen and (min-width: 770px) and (max-width: 1025px) {
  html {
    font-size: 14px;
  }
}
@media only screen and (min-width: 1026px) and (max-width: 1440px) {
  
  html {
    font-size: 14px;
  }
} */

/* *{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}
body{
  background-color: var(--BgColor);
}
:root{
  --BgColor: #FFFFB9;
  --newBgColor: rgba(253, 212, 136, 0.8);
  --SideNavToColor: #aa650c;
  --SideNavTextColor: #fca104;
  --NavColor: pink;
  --NavHoverColor: rgb(85, 26, 139);
  --NavFontColor: #aa650c;
  --TextHolderColor: #FFDC90;
  --TextHolderBorder: #FFBF1D;
}    
main, header, section, article{
  display: block;
} */

@media only screen and (max-width: 1024px) {
  html {
    font-size: 14px;
  }
  .nav-container{
    color: var(--NavFontColor);
    position: fixed;
    top: 0;
    left: 0;
    height: 4.5rem;
    width: 100vw;
    /* background-color: orange; */
    /* background-color: var(--newBgColor); */
    background: linear-gradient(to bottom, var(--newBgColor), 70%, transparent );
  
    display: flex;
    flex-direction: column;
    z-index: 999999;
  }
  /* Logo */
  .Logo{
    display: flex;
    align-items: center;
    height: 4.5rem;
    margin-left: 2rem;
    justify-content: space-between;
  }
  .Logo .LogoPic{/**/
    position: relative;
    height: 80%;
    /* top: .4rem; */
  }
  .Logo .MenuAndClose{
    height: 60%;
    margin-right: 3rem;
  }
  .Logo .CloseIt img{
    content: url(https://static.igem.wiki/teams/5242/wikitest-bylzr/close-line.svg);
  }
  .Logo .LogoText{/**/
    /* height: 50%; */
    display: none;
    
  }
  .Logo img{
    object-fit: contain;
    height: 100%;
    /* min-height: 2rem; */
  }
  
  /* ClassList */
  .nav-ClassList{
    /* margin-right: 3rem; */
    width: 100%;
  }
  .NotShow{
    display: none;
  }
  .nav-ClassList ul{
    list-style: none;
  }
  
  .nav-ClassList>ul{/**/
    /* display: flex;
    flex-direction: column;
    justify-content: space-around;*/
    height: 80vh; 
    overflow-y: scroll;
    overflow-x: hidden;
  }
  li.nav-class{/**/
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .TitleAOp{/**/
    background-color: var(--newBgColor);
    height: 2.5rem;
    display: flex;
    align-items: center;
    margin: 0 0px;
    width: 100vw;

    font-family: 'MyFont2';
    font-weight: 900;
  }
  .nav-dropbar .TitleAOp{
    background-color: var(--newBgColor);
  }
  a.nav-classname{
    /* height: 100%; */
    margin-left: 2rem;
    font-size: 1rem;
    font-weight: 900;
    display: block;
    transition: all 0.3s;
  }
  .TitleAOp .active{
    color: var(--NavHoverColor);
    font-size: 1.05rem;
    transform: translateY(-1px);
    /* background-color: rgb(254, 202, 105);
    padding: 2px;
    width: 90%; */
  }

  ul.nav-dropbar li{
    height: 2.5rem;
    width: 100%;
  }
  a.nav-subclassname{
    background-color: rgb(239, 200, 126);
    padding: 2px;
    /* width: 90%; */
    margin-left: 3rem;
    display: block;
    font-size: 1rem;
    font-weight: 900;
    transition: all 0.3s;
  }
  ul.nav-dropbar{
    transition: all 0.3s;
    display: none;
    /* opacity: 0; */
  }
  ul.nav-dropbar.ShowDrop{
    display: block;
  }
}

@media only screen and (min-width: 1025px) {
  /* iphone6p 或者更大的尺寸，以 iphone6p 的宽度（414px）比例设置 font-size */
  html {
    font-size: 16px;
  }
  .nav-container{
    color: var(--NavFontColor);
    position: fixed;
    top: 0;
    left: 0;
    height: 4.5rem;
    width: 100%;
    /* background-color: orange; */
    /* background-color: var(--newBgColor); */
    background: linear-gradient(to bottom, var(--newBgColor), 90%, transparent );
  
    display: flex;
    justify-content: space-between;
    z-index: 999;
  }
  /* Logo */
  .Logo{
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 2rem;
    
  }
  .Logo .MenuAndClose{
    display: none;
  }
  .Logo .LogoPic{
    position: relative;
    height: 90%;
    /* top: .4rem; */
  }
  .Logo .LogoText{
    height: 50%;
    
  }
  .Logo img{
    object-fit: contain;
    /* width: 100%; */
    height: 100%;
  }
  
  /* ClassList */
  .nav-ClassList{
    margin-right: 3rem;
  }
  .nav-ClassList ul{
    list-style: none;
  }
  /* .nav-ClassList ul li{
  
  } */
  
  .nav-ClassList>ul{
    display: flex;
    justify-content: space-around;
    height: 100%;
  }
  li.nav-class{
    width: 6rem;
    height: 100%;
  }
  .TitleAOp{
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0 0px;
    width: 10rem;
    /* background-color: aqua; */
  }
  .TitleAOp .active{
    color: var(--NavHoverColor);/*white*/
    font-size: 1.05rem;
    transform: translateY(-1px);
  }
  .nav-dropbar .TitleAOp{
    background-color: var(--newBgColor);
  }
  a.nav-classname{
    /* height: 100%; */
    font-size: 1rem;
    font-weight: 900;
    display: block;
    transition: all 0.3s;
  }
  
  ul.nav-dropbar li{
    height: 2.5rem;
    width: auto;
  }
  .DropAOp{
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0 5px;
  }
  a.nav-subclassname{
    margin-left: 5px;
    display: block;
    font-size: 1rem;
    font-weight: 900;
    transition: all 0.3s;
  }
  ul.nav-dropbar{
    transition: all 0.3s;
    visibility: hidden;
    opacity: 0;
    z-index: 1;
  }

}
/* 定下来1024 */


.nav-container a{
  color: var(--NavFontColor);
  text-decoration: none;
}
.nav-container{
  font-family: 'MyFont2';
}