@import url('https://fonts.googleapis.com/css2?family=Enriqueta:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@400;600&display=swap');

html {
    /* bg-c: 冬至-紫梅 */
    /* background-color: #BB7A87; */
    /* color-立秋-缟羽 */
    background-color: #EFEFEF;
    /* font-family: 'Hind', sans-serif; */
    font-family: 'M PLUS 1', sans-serif;
}

body {
    height: 100%;
    margin: 0 12% 0 8%;
    width: 75%;
}

@media (max-width:790px) { 
  #body {
    width:100%;
  }
}

::-moz-selection { /* Code for Firefox */
  background:rgba(235,225,169,0.6);
}

::selection {
  background: rgba(235,225,169,0.6);
}


/* #background{
  position: fixed;
  width: 900px;
  height: 900px;
  bottom:-150px;
  left: -120px;
  z-index: -1;
  opacity: 0.3;
} */

@media (max-width:790px) { 
  #background {
    width: 450px;
    height: 450px;
    margin-top: 80%;
  }
}

.sidebar {
  font-family: 'Enriqueta', serif;
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    /* bg-c: 冬至-银红 */
    background-color: #E7CAD3;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    text-align: center;
  }
  
  .sidebar a {
    font-family: 'Enriqueta', serif;
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    /* color-冬至-霁红 */
    color:#7C4449;
    display: block;
    transition: 0.3s;
  }
  
  .sidebar a:hover {
      /* color-冬至-濯绛  */
    color: #796860;
  }
  
  .sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
  }
  
  .openbtn {
    position: fixed;
    height: 100%;
    width: 7%;
    font-size: 20px;
    cursor: pointer;
    /* bg-c: 冬至-银红 */
   background-color: #E7CAD3;
    /* bg-c:冬至-霁红 */
    color: #7C4449;
    top:0;
    right: 0;
    border: none;
    font-family: 'Enriqueta', serif;
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }
  
  .openbtn:hover {
      /* bg-c:冬至-咸池 */
    background-color: #DAA9A9;
  }

  @media (max-width:790px) { 

    .openbtn {
      height: 5%;
      width: 100%;
      top:0;
      left: 0;
      writing-mode: horizontal-tb;
      text-orientation: unset;
    }
  }
  

  #index_header{
    margin-top:10px;
    text-align: center;
    width: 100%;
    } 

  #index_header a{
    color:#796860;
    text-decoration: none;
  }

  #index_header a:hover{
    text-decoration: underline;
  }

  #header{
    margin-top:10px;
    text-align: center;
    width: 100%;
  } 

  .icon {
    /* position:relative; */
    height: 300px;
    width: 300px;
    margin: 0, auto;
  }

  #index_header h1{
    font-family: 'Enriqueta', serif;
    padding-top: 1em;
    top: 20px;
    /* bg-color-冬至-霁红 */
    color:#7C4449;
    font: size 30px;
    /* color-立秋-缟羽 */
    /* color: #EFEFEF; */
  }

  #index_header p {
    /* color-冬至-霁红 */
    color:#7C4449;
    margin: 0 15%;
    padding-bottom: 1em;
    font-size: 1.2em;
  }

  #header h1{
    font-family: 'Enriqueta', serif;
    padding-top: 0.5em;
    /* color-冬至-霁红 */
    color:#7C4449;
    font: size 30px;
  }

  #button {
    transition: margin-left .5s;
    height: 100%;
    z-index:10;
}

@media (max-width:790px) { 

  #index_header {
    margin-left:5%;
  }

  #index_header p{
    font-size: 1.1em;
    padding-bottom:0.5em;
    margin: 0
  }
}

h2 {
  font-family: 'Enriqueta', serif;
padding-top: 0.5em;
padding-bottom: 0.1em;
text-align: center;
/* color-冬至-霁红 */
color: #7C4449;
}

h3{
  font-family: 'Enriqueta', serif;
  text-align: left;
  color: #7C4449;
  font-size: 22px;
}

.panels_section{
width:100%;
}

#panels_holder{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding: 2%;
  margin:0 auto;
}

.panels {
  margin-top: 2%;
  margin-top: 2%;
  margin-left:clamp(10px, 1.5vw, 20px);
  margin-right:clamp(10px, 1.5vw, 20px);
  height: 520px;
  width: 220px;
  border-style: solid;
  border-color: #7C4449;
  border-width: 4px;
  /* bg-c: 冬至-咸池 */
  /* background-color: rgba(218,169,169,0.2); */
}

.panels a{
  text-decoration: none;
}

.panel_img{
  padding: 10px 0px 10px 0px; 
  display: block;
  margin-left: auto;
  margin-right: auto;
  opacity: 1;
  transition: .5s ease;
  /* backface-visibility: hidden; */
}

.panel_pop {
  font-family: 'Enriqueta', serif;
  transition: .5s ease;
  opacity: 0;
  position: relative;
  top: -62%;
  text-align: center;
}

.panel_pop2{
  font-family: 'Enriqueta', serif;
  transition: .5s ease;
  opacity: 0;
  position: relative;
  top: -65%;
  text-align: center;

}


.panels:hover .panel_img{
  opacity: 0.2;
}

.panels:hover .panel_pop {
  opacity: 0.8;
}

.panels:hover .panel_pop2 {
  opacity: 0.8;
}

.pop_text {
  background-color: #7C4449;
  color: #EFEFEF;
  font-style: italic;
  font-size: 20px;
  padding: 10px 32px;
}

.pop_text_small {
  background-color: #7C4449;
  color: #EFEFEF;
  text-decoration: none;
  font-size: 15px;
  padding: 0px 32px 10px;

}

#video_holder{
  margin-left: 12%;
  margin-right: 12%;
  position: relative;
  padding-bottom: 47%;
  overflow: hidden;
  background-color: rgba(255,255,255,0);
}

#video_holder iframe {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height: 100%;
}  


.iframe_flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  width: 850px;
  height: 1300px;
  overflow: auto;
  flex-direction: row;
  margin:0 auto;
  }

  .iframe_flex #iframe_holder{
  width: 420px;
  height: 750px;
  margin-left: 0;
}

.iframe_flex #flex_text{
  width: 420px;
  height: 750px;
  margin-left: 10px;
}

.iframe_flex #iframe_holder2{
  width: 420px;
  height:530px;
  margin-left: 0;
  margin-top: 20px;
}

.iframe_flex #flex_text2{
  width:420px;
  height:530px;
  margin-left: 10px;
  margin-top: 20px;
}

#resume{
  margin-top: 1%;
  margin-left: 12%;
  margin-right: 12%;
  position: relative;
  background-color: rgba(255,255,255,0);
}



#gdrive_link {
  font-family: 'Enriqueta', serif;
  text-decoration: none;
  font-size: 26px;
  /* bg-c:冬至-霁红 */
  color: #7C4449;
  padding-bottom: 3em;
}

p {
  line-height:160%;
}

#gdrive_link:hover{
  color:#796860;
}

footer{
  margin-bottom: 3%;
}

footer ul{
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

footer li a{
  text-decoration: none;
  display: block;
  color:#7C4449;
}

footer li a:hover{
  color:#796860;
}

#text_video{
  margin-top: 3%;
  margin-left: 12%;
  margin-right: 12%;
}

#contact_info{
  text-align: center;
} 

#contact_info a{
  color:black;
}

#intext{
  color: black;
}




@media (max-width:920px) { 
  div.iframe_flex {
  flex-direction: row;
  position: static;
  width: 300px;
  margin:auto;
  } 

  div.iframe_grid #flex_text{
    width:290px;
  }
  div.iframe_grid #flex_text2{
    width:290px;
  }

  #gdrive_link {
    font-size: 15px;
  }
}

@media (max-width:790px) { 

  #header{
    margin-left:5%;
  } 

  #panels_holder {
    margin-left: 8%;
  }

  .panel_pop{
    left: -6%;
  }

  .panel_pop2{
    left: -6%;
  }

  .pop_text{
    padding: 12px 32px;
    margin-left:5%;
  }

  #project_context {
    width:100%;
    margin-left:5%;
  }


}