/*
Colors used:
Primary Color (Lightgrey): #fafafa; (Black): #121212;
Secondary Color (Pink): #fbf2ef;
#EFBFBB
*/

* {
  box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

a:visited, span:visited, .texttag:visited{
  color: black;
}





body {
    background-color: #FAFAFA;
    font-family:'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: normal;
    margin: 0%;
    letter-spacing:normal;
  }

header, #hero, footer, #projects{
  padding-left:10%;
  padding-right:10%;
}

header{
  background: linear-gradient(180deg, #FBF2EF 0%, #FAFAFA 100%);
  position: fixed;
  
  width: 100%;
  z-index: 1;
}

footer{
  padding-top: 20%;
  background: linear-gradient(180deg, #FAFAFA 0%, #FBF2EF 100%);
}

#hero{
  padding-top: 10%;
  display: inline-block;
  justify-content: center;
}

.circle{
  height: 100px;
  width: 100px;
  background: radial-gradient(50% 50% at 50% 50%, #EFBFBB 9.9%, rgba(250, 250, 250, 0) 100%);
  border-radius: 50%;
  display: inline-block;
  transition: 0.2s;
}

.circle:hover{
  border: 1px solid black;
  background: #fafafa;
  
}

@keyframes circle-move {
  from {transform: translate(0,50px);}
  to {transform: translate(200px,100px);}
}

.circle {
  animation-duration: 30s;
  animation-name: circle-move;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function:linear;
}

#projects{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  padding-top: 10%;
  padding-bottom: 5%;
}

.divshortIntro{
  padding-top: 10%;
}

.button{
  display: inline-block;
  padding: 0.6em;
  border: 1px solid #000000;
  border-radius: 100px;
  line-height: 1;
  text-transform: uppercase;
}
.divoneproject{
  display: inline-block;
  padding-top: 10%;
}
.projecttag{
  display: flex;
  justify-content: space-between;
  height: 24px;
}
#projectContent{
  padding-top: 10%;
  padding-left:10%;
  padding-right:10%;
  background-color: #FAFAFA;
}

  h1, h2, h3, h5{
    line-height: 1.4;
  }
  h4{
    line-height: 1;
  }

  h1 {
    color: black;
    font-size: 2.2em;
    font-weight: 400;
    
  }
  
  .h1italic{
    color: black;
    font-weight: 500;
    font-style: italic;
    background-color: #fbf2ef;
    transition-delay: 200ms;
  }

  .h1italic:hover{
    text-decoration: underline;
  }
  
  .h1underline{
      text-decoration:underline;
      text-decoration-color:#EFBFBB;
  }

  h2 {
    font-size: 2em;
    font-weight: 700;
  }
  
  h3 {
    font-size: 1.2em;
    font-weight: 600;
  }
  h4 {
    font-size: 1 em;
    font-weight: 600;
    font-family: 'inter';
    
  }

  h5{
    font-size: 1em;
    font-weight: 400;
    
    text-transform: uppercase;
    color: #333333;
  }

  h6{
    font-size: 1em;
    font-weight: 400;
  
    margin-top: auto;
  }

  .texttag{
    font-size: 1em;
    font-family: "inter";
    font-weight: 400;
 }
  p{
    font-size: 1em;
  }

.bar{
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: black;
}

nav{
    display:flex;
    justify-content: flex-end;
}

.hamburger{
  margin-top: 30px;
}

.navtoggle li:not(:last-child){
  display: none;
}

.navtoggle.responsive nav {
  padding: 24px 0 0;
  transition: 0.3s;
}
.navtoggle.responsive li  {
  display: block;
  border-top: 1px solid #EFBFBB;
}

.navtoggle.responsive li:last-child  {
  display: block;
  padding: 0 0 10px;
}

.navtoggle.responsive .navibutton  {
  display: block;
  padding: 0;
}

.navtoggle.responsive .bar:nth-child(2){
  opacity:0;
  }


  .navtoggle.responsive .bar:nth-child(1){
  transform: translateY(8px) rotate(45deg);
  }
  
  .navtoggle.responsive .bar:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
  }


ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;

  }

li{
    text-decoration: none;
    display: block;
}

a{
  text-decoration: none;
  color: #000000;
}

.navibutton, .icon { 
  display: inline-block;
  color:black;
  padding-left: 20px;
  margin-top: 30px;
}

.navibutton:hover{ 
  color: darkgray;
  transition: 0.2s;
}

.coverimg{
    width: 100%;
    height: auto;
    transition: 0.3s;
    padding-top: 10%;
}

.coverimg:hover{
  filter: brightness(80%);
  
}


.img1{
  padding-top: 20px;
  width: 100%;
  height: auto;
}

.img2{
  padding-top: 20px;
  width: 30%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  
}

#TwoCo2{
  display: grid;
  grid-template-columns: 1fr, 20px, 1fr;
}

/* ==============================
 For the about page 
 ==============================*/
#about, #TwoCo{
  padding-right: 10%;
  padding-left: 10%;
}

#about{padding-top: 40%;}

#TwoCo{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}

.skilllist{ 
  display: list-item; 
}
  
.shenyu_photo{
  max-width: 100px;
}

.ContentBlock{
  padding-top:10%;
  padding-bottom:10%;
}



/* ==============================
 For the footer
 ==============================*/
footer{
  display: block;
  padding-top: 20%;
  
}


/* ==============================
Medium devices (640px and larger)
================================= */
@media only screen and (min-width: 640px) {
  #projects{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 2em;
  }

  footer{
    display: grid;
    grid-template-columns: 1fr 0.5fr 0.5fr;
    grid-column-gap: 2em;
  }

  #about{
    padding-top: 10%;
  }

  #TwoCo{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 1em;
  }

  #TwoCol{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 1em;
  }

  .navtoggle li:not(:last-child) {
    display: inline-block;
  }

  .navtoggle li:last-child {
    display: none;
  }
}

/* ==============================
Large devices (1024px or larger)
================================= */
@media only screen and (min-width: 1024px) {

  #about,#TwoCo{
    padding-left: 25%;
    padding-right: 25%;
  }

  #header, #hero, #projects {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  #projectContent{
    padding-top: 10%;
    padding-left:25%;
    padding-right:25%;
    background-color: #FAFAFA;
  }
 
}

/* ==============================
X-large devices (1440px or larger)
================================= */
@media only screen and (min-width: 1440px) {

}

/* ==============================
Extra-large devices (1920px or larger)
================================= */
@media only screen and (min-width: 1920px) {

}

