*{ /* applies to everything*/
    padding: 0; 
    margin: 0;
    text-decoration: none;/* takes away underlines in links*/
    list-style: none;/* takes away the dots in an unordered list*/
    box-sizing: border-box;/* https://www.youtube.com/watch?v=WlGQdgy-M6w */
}

html {
    scroll-behavior: smooth;
}



body {
    background: rgba(233, 241, 250, 100);
    font-family: "lexend";
}

#navbar{
    background: #00abe4ff;
    height: 80px;
    width: 100%;
    font-family: "montserrat";

}

label.logo{
    color: white;
    font-size: 45px;
    line-height: 80px;
    padding: 0 50px;
    font-weight: bold;
}

nav#navbar ul {
    float: right;
    /*padding-right: 20px;*/
}

nav#navbar ul li{
    display: inline-block;  /*links on the top right can change height and width without linebreaking*/
    line-height: 80px;
}

nav#navbar ul li a {
    display: block;
    color: white;
    font-size: 25px;
    padding: 0px 40px;
    text-align: center;
    /*border-radius: 3px;*/
}

#navbar a:active,#navbar a:hover {
    background: rgb(20, 191, 248);
    transition: .5s;
}

.intro {
    width: 100%;
    height: 0;
    background-size: contain;
    background-image: url("bg2.png");
    background-repeat: no-repeat;
    padding-top: 49.5%;/*49.5%*/
    
}

.opening-txt {
    display: block;
    position: absolute;
    top: 7vw;
    left: 10%;
    right: 10%;
}

.intro h4 {
    font-size: 2vw;
    margin-top: 100px;

}
.intro h1 {
    font-size: 10vw;
}

.intro h5 {
    margin-top: 5vw;
    font-size: 1.5vw;
    width: 50%;
    line-height: 3vw;
}

#seeMore {
    background-color: aquamarine;
    font-family: "lexend";
    font-size: 2vw;
    border-radius: 15px;
    padding: 15px;
}


.shanghai-photo {
    position: relative;
    top: 90px;
    height: 30vw;
    width: 30vw;
    float: right;
}

div#empty {
    width: 100%;
    height: 3vw;
}

section {
    position: relative;
    width: 100%;
    margin: auto;
    height: auto;
    padding-bottom: 7.5vw;

}


.section-title {
    font-size: 40px;
    line-height: 50px;
    color: black;
    display: flex;
    text-align: center;
    justify-content: center;
    padding-bottom: 50px;
}

section #line {
    width: 100px;
    height: 5px;
    background-color: black;
    margin: 25px 20px;
}

p.summary {
    position: relative;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 30px;
    font-size: 20px;
    margin: auto;
    padding-top: 1%;
    width: 60%;

}

p span {/*makes the text not wiggle around*/
    display: inline-block;
    width: 125px;
    text-align: right;
}

#resume h4 {
    text-decoration: underline;
    font-size: 40px;
    margin-left: 20%;
    margin-bottom: 3%;
}

.resume-content {
    margin: auto;
    width: 60%;
    display: flex;
    flex-direction: column;
    

}

#resume h5 {
    font-size: 25px;
}

#skills {
    text-align: center;
    line-height: 50px;
    margin: 30px 0;
}

.experience img {
    width: 150px;
    border-radius: 50%;
    float: left;
    margin: 0 20px;
}

.projects img {
    width: 150px;
    border-radius: 20px;
    float: left;
    margin: 0 20px;
    transition: transform .2s;
}

.projects img:hover {
  transform: scale(1.25);
}

.projects h5 a {
    color: black;
    text-decoration: underline;
    padding: 3px 5px;
    border-radius: 3px;
}

.projects h5 a:active,.projects a:hover {
    background: #00abe4ff;
    transition: 0.5s;
}

ul.experience li {
    padding-bottom: 5vw;
}

ul.projects li {
    padding-bottom: 3vw;
}

.title-and-location {
    display: flex;
    width: 80%;
    margin-bottom: 0.5vw;
}

h5.title {
    width: 50%;
    margin: 0 auto;
    text-align: left;
    font-size: 20px;
}
h5.location {
    width: 50%;
    margin: 0 auto;
    text-align: right;
    font-size: 20px;
}

.resume-content p {
    width: 80%;
    font-family: "Lexend";
    font-size: 20px;
    line-height: 40px;
    overflow: hidden;
}



img#square {
    object-fit: cover;
    border-radius: 50%;
}

footer {
    background: black;
    height: auto;
    width: 100%;
    font-family: "Lexend";
    padding-top: 80px;
    padding-bottom: 80px;
    color: white;
}

.footer-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-title {
    font-size: 35px;
    line-height: 0px;
    display: flex;
}

.footer-title #line {
    width: 100px;
    height: 5px;
    background-color: white;
    margin: 0 20px;
}

.socials {
    list-style: none;
    display: flex;
  flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-top: 75px;
}

.socials li a img{
    margin: 0 25px;
    border-radius: 20px; 
}

.socials img {
    height: 150px;
    width: 150px;
    transition: transform .2s;
}
.socials img:hover{
  transform: scale(1.25);
}

footer p {
    padding-top: 20px;
    color: white;
}

.download-btn {
    position: fixed;
    display: flex;
    vertical-align: center;
    bottom: 6%;
    right: 2%;
    background-color: rgb(196, 164, 132);
    color: white;
    font-family: "lexend";
    font-size: 1.25vw;
    border-radius: 15px;
    padding: 15px;
    z-index: 10000000;
    border: 3px solid black;
}

.download-btn img {
    padding-left: 5px;
    height: 1.5vw;
    width:auto;
}

.download-btn:hover {
    background-color: rgb(126, 94, 52);
    transition: .5s;
}

.webpage-top {
    width: 100%;
}

/* for when the screen is for i phones */

.toggle-button {
  position: absolute;
  right: 1rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 28px;
}

.toggle-button .bar {
  height: 4px;
  width: 100%;
  background-color: white;
  border-radius: 10px;
}

/*@media (max-width: 1200px) {
  .title-and-location {
    width: 60%;
  }
  
  .resume-content p {
      width: 60%;
  }
}*/
@media (max-width: 1600px) {
  .resume-content {
      width: 80%;
  }
}
@media (max-width: 1210px) {
  .resume-content {
      width: 90%;
  }
}

@media (max-width: 1075px) {
  .toggle-button {
    display: flex;
    top: 25px;
  }

  .navbar-links {
    width: 100%;
    background: #00abe4ff;
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  nav#navbar ul li{
    width: 100%;
}

  .navbar-links.active {
    display: flex;
  }

  .intro.active {
    margin-top: 240px;
  }

  .opening-txt.active {
    margin-top: 250px;
  }
  
  .experience img, .projects img {
    display: none;
  }
  .resume-content {
      width: 90%;
      margin: auto;
  }
  .title-and-location, .resume-content p {
      margin: auto;
  }

  
}



@media (max-width: 700px) {
  #line {
    display: none;
  }
  .section-title h3 {
    text-decoration: underline;
  }

  footer {
    text-decoration: underline;
  }
  #seeMore {
    display: none;
  }
}
