:root {
  --text-color: #1a1c20;
  --link-color: #4a76ee;
  --background-color: #ffffff;
  --secbackground-color: #EBEAEB;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: "Open Sans", sans-serif;
  background-color: var(--background-color);
}

a{
  color: var(--link-color);
  text-decoration: none;
}

nav{
  display: flex; 
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: var(--background-color);

  padding: 0 50px;
  height: 80px;
  max-width: 67rem;
  margin: auto;
  margin-bottom: 2rem;
}

nav .left a {
  color: var(--text-color);
  font-size:  22px;
  font-weight: 600;
}

nav .right a {
  color: var(--text-color);
  margin: 0 10px;
}

nav .right a:last-child {
  color: var(--background-color);
  background-color: var(--text-color);
  padding: 5px 15px;
  border-radius: 5px;
}

nav .right a span {
  margin-left: 5px;
}

/* Lists */

ul.simple-list {
  list-style: none;
  padding-left: 0;
}

ul.simple-list li,
ul.simplec-list li {
  position: relative;
  padding-left: 2em;
  margin-top: 0.5em;
}

ul.simple-list li::before {
  content: "\f0da";
  font-family: FontAwesome;
  position: absolute;
  left: 1em;
}

ul.simplec-list {
  list-style: none;
  padding-left: 0;
}

ul.simplec-list li::before {
  content: "•";
  position: absolute;
  left: 1em;
}


/*SECTION 1: Hero*/

.hero-section{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  /*margin: 50px 0;*/
  margin: auto;
  gap: 40px;
  margin-bottom: 50px;
  max-width: 67rem;
}

.hero-section .text{
  flex: 5;
}

.hero-section .text h2{
  font-size: 25px;
}

.hero-section .headshot{
  flex: 2;
  display: flex;
  justify-content: right;
}

.hero-section .headshot img{
  width: 180px;
  border-radius: 60%;
}


/*SECTION 2: Research*/

.research-section{
  display: flex;
  /*padding: 0 50px;*/
  /*margin: 20px 0px;*/
  margin: auto;
  margin-bottom: 30px;
  /*max-width: 67rem;*/
}

.research-section .text{
/*  background-color: var(--secbackground-color);
  display: flex;
  padding: 0 50px;
  margin: 20px 0px;
  
  margin-bottom: 30px;
*/
  padding: 0 50px;
  margin: auto;
  max-width: 67rem;
}

/*SECTION 3: Publications*/

.publications-section{
  display: flex;
  padding: 0 50px;
  /*margin: 20px 0px;*/
  margin: auto;
  margin-bottom: 30px;
  max-width: 67rem;
}


.publications-section .text .nestext {
  margin-top: 1rem;
}

.publications-section .text .nestext .simple-list .paper_links {
  margin-top: 0.4em;
  margin-bottom: 0.6em;
}

.publications-section .text .nestext .simple-list .paper_links a {
  display: inline-block;
  padding: 2px 9px;
  border: 1.5px solid var(--link-color);
  border-radius: 5px;
  margin-right: 8px;
  margin-bottom: 4px;
  font-size: 0.9em;
  transition: .1s;
}

.publications-section .text .nestext .simple-list .paper_links a:hover {
  color: var(--text-color);
  border-color: var(--text-color);
}

/*SECTION 4: Teaching*/

.teaching-section{
  display: flex;
  padding: 0 50px;
  /*margin: 20px 0px;*/
  margin: auto;
  margin-bottom: 30px;
  max-width: 67rem;
}

.teaching-section .text .nestext{
  padding: 0 0px;
  margin: 10px 0px;
}

/*SECTION 5: Service*/

.service-section .text .nestext{
  padding: 0 0px;
  margin: 10px 0px;
}

.service-section{
  display: flex;
  padding: 0 50px;
  /*margin: 20px 0px;*/
  margin: auto;
  margin-bottom: 30px;
  max-width: 67rem;
}



/*SECTION 6: Contact*/

.contact-section{
  /*display: flex;*/
  padding: 0 50px;
  /*margin: 20px 0px;*/
  margin: auto;
  margin-bottom: 30px;
  max-width: 67rem;
}


.contact-section .text_address_inf{
  flex: 1;
  justify-content: center;
}

.contact-section .text{
  margin-bottom: 1rem;
}

.contact-section .text h2{
  font-size: 25px;
}

.contact-section .ntext{
  display: flex;
/*  justify-content: space-between;
  gap: 1rem;*/
}

.contact-section .text_address_phys{
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Footer */

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 2rem;
}

/*Adapted Mobile Settings*/

@media (min-width: 1400px){
  /*SECTION 1: Hero*/
  .hero-section .text h2{
    font-size: 40px;
  }

  .hero-section .text {
    font-size: 20px;
  }
  .hero-section {
    /*flex-direction: column-reverse;*/
    margin: auto;
    margin-bottom: 4rem;
  }

  /*SECTION 2: Research*/
  .research-section .text h2{
    font-size: 40px;
  }

  .research-section .text {
    font-size: 20px;
  }
  .research-section {
    margin: auto;
    margin-bottom: 4rem;
  }

  /*SECTION 3: Publications*/
  .publications-section .text h2{
    font-size: 40px;
  }

  .publications-section .text {
    font-size: 20px;
  }
  .publications-section {
    margin: auto;
    margin-bottom: 4rem;
  }

  /*SECTION 4: Teaching*/
  .teaching-section .text h2{
    font-size: 40px;
  }

  .teaching-section .text {
    font-size: 20px;
  }
  .teaching-section {
    margin: auto;
    margin-bottom: 4rem;
  }

  /*SECTION 5: Service*/
  .service-section .text h2{
    font-size: 40px;
  }

  .service-section .text {
    font-size: 20px;
  }
  .service-section {
    flex-direction: column-reverse;
    margin: auto;
    margin-bottom: 4rem;
  }
  
  /*SECTION 6: Contact*/
  .contact-section .text h2{
    font-size: 40px;
  }

  .contact-section .text {
    font-size: 20px;
  }
  .contact-section {
    margin: auto;
  }


 /*NAVBAR*/
  nav{
    margin: auto;
    margin-bottom: 4rem;
  }

  nav .left a{
    font-size: 28px;
  }


  nav .right a{
    font-size: 28px;
  }

/*  nav .right a:last-child {
  color: var(--text-color);
  background-color: transparent;
  padding: 0;
  }*/

/*  nav .right a span {
    display: none;
  }*/
}


@media (max-width: 850px){
  /*SECTION 1: Hero*/
  .hero-section .text h2{
    font-size: 35px;
  }
  .hero-section {
    flex-direction: column-reverse;
  }
}

@media (max-width: 600px){
  /*NAVBAR*/
  nav{
    padding: 0 20px;
  }

  nav .left a{
    font-size: 18px;
  }

  nav .right a{
    font-size: 20px;
    margin: 0 6px;
  }

  nav .right a:last-child {
  color: var(--text-color);
  background-color: transparent;
  padding: 0;
  }

  nav .right a span {
    display: none;
  }
  
  /*SECTION 1: Hero*/
  .hero-section{
    padding: 0 20px;
  }

  .hero-section .text h2{
    font-size: 30px;
  }
  
  /*SECTION 2: Research*/
  .research-section .text{
    padding: 0 20px;
  }

  .research-section .text h2{
    font-size: 30px;
  }

  /*SECTION 3: Publications*/
  .publications-section{
    padding: 0 20px;
  }

  .publications-section .text h2{
    font-size: 30px;
  }

  /*SECTION 4: Teaching*/
  .teaching-section{
    padding: 0 20px;
  }

  .teaching-section .text h2{
    font-size: 30px;
  }
  
  /*SECTION 5: Service*/
  .service-section{
    padding: 0 20px;
  }

  .service-section .text h2{
    font-size: 30px;
  }

  /*SECTION 6: Contact*/
  .contact-section{
    padding: 0 20px;
  }

  .contact-section .text h2{
    font-size: 30px;
  }
}
