/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	vertical-align: baseline;
  box-sizing: border-box;
  font-family: 'Kumbh Sans', sans-serif;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

  .navbar {
    background: #131313;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999;
  }
  
  .navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 50px;
    padding-left: 50px;
  }
  
  #navbar__logo {
    background-color: #ff8177;
    background-image: linear-gradient(to top, #ff0844 0%, #ffb199 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
  }
  
  .fa-gem {
    margin-right: 0.5rem;
  }
  
  .navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
  }
  
  .navbar__item {
    height: 80px;
  }
  
  .navbar__links {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
  }
  
  .navbar__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    width: 100%;
  }
  
  .button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 10px 20px;
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    border-radius: 4px;
    background: #f77062;
    color: #fff;
  }
   	/* Contact me button turn blue once hover */
  .button:hover {
    background: #4837ff;
    transition: all 0.3s ease;
  }
  
  	/* menu button turn pink once hover */
  .navbar__links:hover {
    color: #f77062;
    transition: all 0.3s ease;
  }

  	/* Style the dropdown animation menu */
  .sub_menu {
    display:none;
  }
 
  .navbar__item:hover .sub_menu{
    display:block;
    position: absolute;
    margin: auto;
    width: max-content;
  }
  .submenu__links{
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
    white-space: nowrap;
  }

  .sub_menu li + li {
    margin-top: 0.5rem;
  }

  .submenu__links:hover {
    color: #f77062;
    transition: all 0.3s ease;
  }

  @media screen and (max-width: 960px) {
    .navbar__container {
      display: flex;
      justify-content: space-between;
      height: 80px;
      z-index: 1;
      width: 100%;
      max-width: 1300px;
      padding: 0;
    }
  
    .navbar__menu {
      display: grid;
      grid-template-columns: auto;
      margin: 0;
      width: 100%;
      position: absolute;
      top: -1000px;
      opacity: 1;
      transition: all 0.5s ease;
      height: 50vh;
      z-index: -1;
    }
  
    .navbar__menu.active {
      background: #131313;
      top: 100%;
      opacity: 1;
      transition: all 0.5s ease;
      z-index: 99;
      height: 70vh;
      font-size: 1.6rem;
    }
  
    #navbar__logo {
      padding-left: 25px;
    }
  
    .navbar__toggle .bar {
      width: 25px;
      height: 3px;
      margin: 5px auto;
      transition: all 0.3s ease-in-out;
      background: #fff;
    }
  
    .navbar__item {
      width: 100%;
    }
  
    .navbar__links {
      text-align: center;
      padding: 2rem;
      width: 100%;
      display: table;
    }
  
    .navbar__btn {
      padding-bottom: 2rem;
    }
  
    .button {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 80%;
      height: 80px;
      margin: 0;
    }
  
    #mobile-menu {
      position: absolute;
      top: 20%;
      right: 5%;
      transform: translate(5%, 20%);
    }
  
   .navbar__toggle .bar {
      display: block;
      cursor: pointer;
    }
 
    #mobile-menu.is-active .bar:nth-child(2) {
      opacity: 0;
    }
  
    #mobile-menu.is-active .bar:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }
  
    #mobile-menu.is-active .bar:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }
  }

  /* Main Content CSS */
.main {
    background-color: #141414;
  }
  
  .main__container {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    column-gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    min-height: 440px;
    background-color: #131313;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding-right: 30px;
    padding-left: 30px;
  }
  
  .main__content {
    color: #fff;
    width: 100%;
  }
  
  .main__content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 0;
    background-color: #ff8177;
    background-image: linear-gradient(-20deg, #b721ff 0%, #21d4fd 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
  }
  
  .main__content p {
    margin-top: 1rem;
    max-width: 32ch;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    border-left: 3px solid #f77062;
    padding-left: 1rem;
  }

  .main__content p span {
    display: block;
    white-space: nowrap;
  }

  .main__content .main__identity .main__tagline {
    max-width: 42ch;
    margin-top: 2rem;
    padding-left: calc(1rem + 3px);
    border: none;
    color: #ffffffb8;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.04em;
  }
  
  .main__btn {
    font-size: 1rem;
    background-image: linear-gradient(to top, #f77062 0%, #fe5196 100%);
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    color: #fff;
    margin-top: 2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.35s;
    outline: none;
  }
  
  .main__btn a {
    position: relative;
    z-index: 2;
    color: #fff;
    text-decoration: none;

  }
  
  .main__btn:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #4837ff;
    transition: all 0.35s;
    border-radius: 4px;
  }
  
  .main__btn:hover {
    color: #fff;
  }
  
  .main__btn:hover:after {
    width: 100%;
  }
  
  .main__img__container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }
  
  #main__img {
    display: block;
    width: min(100%, 340px);
    height: auto;
    border-radius: 8px;
  }

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .main__container {
      display: grid;
      grid-template-columns: auto;
      align-items: center;
      justify-self: center;
      width: 100%;
      margin: 0 auto;
      height: auto;
      min-height: 0;
      row-gap: 1.5rem;
      padding: 2.5rem 24px;
    }
  
    .main__content h2 {
      margin: 0;
      font-size: clamp(2.25rem, 7vw, 3rem);
      text-align: center;
    }
  
    .main__content p {
      max-width: 100%;
      margin: 0.75rem auto 0;
      font-size: clamp(1rem, 4.5vw, 1.8rem);
      text-align: center;
        text-align: left;
      }

    #main__img{
      width: min(100%, 250px);
    }
  }
  
  @media screen and (max-width: 480px) {
  
    .main__content {
      text-align: center;
      margin: 0 auto;
    }
    .main__content h2 {
      font-size: 2rem;
    }
  
    .main__content p {
      margin-top: 0.75rem;
      font-size: clamp(0.95rem, 4.4vw, 1.35rem);
    }
  
    #main__img{
      width: min(100%, 220px);
    }
  }

  .main__identity {
    margin-top: 1rem;
  }

  .main__content .main__identity p {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .main__content .main__identity > p:first-child {
    border-left: 3px solid #f77062;
    padding-left: 1rem;
  }

  @media screen and (max-width: 768px) {
    .main__content,
    .main__content h2,
    .main__content .main__identity .main__tagline {
      text-align: center;
    }
    .main__content .main__identity {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .main__content .main__identity > p:first-child {
      text-align: left;
    }
    .main__content .main__identity .main__tagline {
      max-width: 100%;
      font-size: 0.82rem;
      text-wrap: balance;
      padding-left: 0;
      margin-top: 1.5rem;
    }
    .main__img__container {
      width: 100%;
      justify-content: center;
    }
    #main__img {
      margin: 0 auto;
    }
  }

  @media screen and (min-width: 769px) {
    .main__content {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-self: stretch;
      padding-block: 1rem;
    }

    .main__content h2 {
      transform: translateY(-0.9rem);
    }

    .main__identity {
      display: block;
      margin-top: 1.5rem;
    }

    .main__content .main__identity .main__tagline {
      margin-top: 1.5rem;
    }

    #main__img {
      width: min(100%, 300px);
    }
  }

  /* Intro Section */
  .intro{
    background-color:#141414;
  }

  .intro__content {
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    z-index: 0;
    width: 100%;
    max-width: 1200px;
    padding: 10px 30px 30px 30px;
  }

  .intro__content h1{
    color:#fff;
    font-size:35px;
    Line-height:50px;
    font-weight: 700;
    box-sizing:border-box;
}

  .intro__content p{
  color:#fff;
  font-size:22px;
  Line-height:30px;
  font-weight: normal;
  width:100%;
  padding-top:25px;
  padding-left: 1rem;
  border-left: 3px solid #f77062;
  box-sizing:border-box;
  text-align: justify;
}

  @media screen and (max-width: 768px) {
  
    .intro h1 {
      font-size: 1.8rem;
      margin-top: 20px;
      text-align: justify;
    }

    .intro p {
      font-size: 1.2rem;
      margin-top: 5px;
      text-align: justify;
    }

  }
  
  @media screen and (max-width: 480px) {
  
    .intro h1 {
      font-size: 1.5rem;
      margin-top: 2px;
      text-align: justify;
    }

    .intro p {
      font-size: 1rem;
      margin-top: 0.8px;
      text-align: left;
    }
 
  }

  .intro__content {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .intro__content h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.2;
  }

  .intro__content .intro__lead,
  .intro__content .research__background p {
    padding: 0;
    border: 0;
    color: #ffffffc7;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.75;
    text-align: justify;
    text-justify: inter-word;
  }

  .intro__content .intro__lead {
    width: 100%;
    max-width: none;
    margin: 1.25rem 0 0;
    color: #fff;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    box-sizing: border-box;
  }

  .intro__content .research__background p {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  }

  .research__heading,
  .research__background h2 {
    margin: 3rem 0 1.25rem;
    color: #fff;
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    line-height: 1.3;
  }

  .research__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .research__card {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
    padding: 1.35rem 1.4rem;
    border: 1px solid #ffffff1c;
    border-radius: 10px;
    background: linear-gradient(145deg, #1d1d1d, #171717);
  }

  .research__card h3 {
    margin: 0;
    padding-bottom: 0.45rem;
    border-bottom: 3px solid #f77062;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .intro__content .research__card p {
    margin: 0;
    padding: 0;
    border: 0;
    color: #ffffffb8;
    font-size: 0.98rem;
    line-height: 1.65;
    text-align: left;
  }

  .research__background {
    margin-top: 3.5rem;
    padding-top: 0.25rem;
    border-top: 1px solid #ffffff1c;
  }

  .intro__content .research__background p {
    width: 100%;
    max-width: none;
  }

  .research__background h2 {
    margin-top: 2rem;
  }

  .intro__content .research__background p + p {
    margin-top: 1rem;
  }

  .research__background a {
    color: #7dd8ff;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .research__background a:hover {
    color: #fff;
  }

  @media screen and (max-width: 768px) {
    .intro__content {
      padding: 2.5rem 24px 3rem;
    }

    .research__heading,
    .research__background h2 {
      margin-top: 2.25rem;
    }

    .research__background {
      margin-top: 2.75rem;
    }
  }

  @media screen and (max-width: 480px) {
    .research__card {
      gap: 0.65rem;
    }
  }

/* Publication Section
Same format with the animation section
*/

/* Animation Section start*/
.animation,
.teaching {
  background-color: #141414;
}
.animation_content,
.teaching_content {
    height: 80vh;
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding-right: 30px;
    padding-left: 30px;
  }

.animation h2,
.teaching h2 {
  color: #fff;
  font-size:2.3rem;
  Line-height:1.3em;
  padding-top:10px;
  font-weight: 700;
  box-sizing:border-box;
}

.animation__links,
.teaching__links {
  color: #fff;
  font-size:1.5rem;
  display: flex;
  align-items: start;
  justify-content: space-between;
  text-decoration: none;
  padding-top:20px;
  height: 100%;
}

/* Animation button turn pink once hover */
.animation__links:hover,
.teaching__links:hover {
  color: #f77062;
  transition: all 0.3s ease;
}

.animation_content p {
  color:#ffffff84;
  font-size:1.2rem;
  Line-height:0.5em;
  font-weight: normal;
  width:100%;
  padding-top:1rem;
  padding-right:10px;
  box-sizing:border-box;
}

.animation_content li {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.animation_page_content {
  height: auto;
  padding-bottom: 3rem;
  padding-top: 2rem;
}

.animation_list {
  display: grid;
  gap: 0.75rem;
}

.animation_item {
  padding: 0.75rem 0;
}

.animation_item h3 {
  margin: 0;
  border-left: 3px solid #f77062;
  padding-left: 1rem;
  font-size: 1.3rem;
  line-height: 1.5;
}

.animation_item__link {
  color: #fff;
  text-decoration: none;
}

.animation_item__link:hover {
  color: #f77062;
  transition: color 0.3s ease;
}

.animation_item p {
  color: #ffffffa8;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 0.35rem;
  padding-left: calc(1rem + 3px);
}

.animation_item p a {
  color: inherit;
}

.animation_item p a:hover {
  color: #f77062;
}

.publication_list {
  display: grid;
  gap: 1rem;
}

.publication_item {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.75rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid #ffffff1c;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.animation_content .publication__authors {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  word-spacing: 0.12em;
}

.publication__title {
  margin: 0;
}

.publication__link {
  color: #fff;
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: #f77062;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.publication__link:hover {
  color: #f77062;
  transition: color 0.3s ease;
}

.animation_content .publication__journal {
  color: #ffffffa8;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.publication__journal a {
  color: inherit;
}

.publication__journal a:hover {
  color: #f77062;
}
/* Animation Section end*/

.teaching_content {
  height: auto;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.teaching_content h2 {
  margin-bottom: 0.75rem;
}

.teaching_intro {
  color: #ffffffc7;
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0.5rem 0 1.5rem;
}

.teaching_courses {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.teaching_courses a {
  color: #fff;
  text-decoration: none;
  border-left: 3px solid #f77062;
  padding-left: 1rem;
  font-size: 1.3rem;
  line-height: 1.5;
}

.teaching_courses a:hover {
  color: #f77062;
}

.talks {
  background-color: #141414;
}

.talks_content {
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  padding: 2rem 30px 3rem;
}

.talks_content h2 {
  color: #fff;
  font-size: 2.3rem;
  line-height: 1.3;
  padding-top: 10px;
}

.talks_content .talks_intro,
.talks_content .talks_cv_note {
  color: #ffffffc7;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
}

.talks_group h3 {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 1.5rem 0 1rem;
}

.talk_item {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid #ffffff1c;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.talk_item h4 {
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 0;
  text-decoration: underline;
  text-decoration-color: #f77062;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.talk_item h4 a,
.talks_cv_note a {
  color: inherit;
  text-decoration: none;
}

.talk_item .talk_abstract_link {
  display: inline-block;
  margin-left: 0.5em;
  color: #f77062;
  text-decoration: none;
}

.talk_item h4 a:hover,
.talk_item .talk_abstract_link:hover,
.talks_cv_note a:hover {
  color: #f77062;
}

.talk_item p {
  color: #ffffffa8;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .animation_content,
  .teaching_content {
    height: auto;
  }
  .animation h2,
  .teaching h2 {
    font-size: 1.8rem;
    text-align: justify;
  }
  .talks_content h2 {
    font-size: 1.8rem;
  }
  .talks_group h3 {
    font-size: 1.3rem;
  }

  .animation_content p {
    font-size: 1.2rem;
    margin-top: 5px;
    Line-height:1.5rem;
    text-align: justify;
  }

}

@media screen and (max-width: 480px) {
  .animation_content,
  .teaching_content {
    height: auto;
  }

  .animation h2,
  .teaching h2 {
    font-size: 1.5rem;
    text-align: justify;
  }

  .animation_content p {
    font-size: 1rem;
    margin-top: 0.8px;
    Line-height:1.5rem;
    text-align: justify;
  }

}

/* Youtube video section start*/
.youtube{
  background-color: #141414;
}

.youtube h1{
  color: #fff;
  font-size:2.5rem;
  Line-height:1.3em;
  padding-top:10px;
  text-align: center;
  font-weight: 700;
  box-sizing:border-box;
}

  /*to split the whole section into 2(left+right) grid.*/
.youtube_container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 50px;
  /*Gap between the two video*/
  align-items: center;
  justify-self: center;
  margin: 0 auto;
  background-color: #131313;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding-right: 30px;
  padding-left: 30px;
}

.youtube_links {
  min-width: 0;
  padding: 1rem;
  border: 3px solid #f77062;
  border-radius: 6px;
}

.youtube_links iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 55 / 43;
  border: 0;
}

.youtube_container h2 {
  color:#fff;
  font-size:1.2rem;
  Line-height:1.5em;
  font-weight: normal;
  width:100%;
  box-sizing:border-box;
  text-align: justify;
}

.youtube p {
  color:#ffffff84;
  font-size:1.2rem;
  Line-height:1.5em;
  font-weight: normal;
  width:100%;
  box-sizing:border-box;
  text-align: justify;
  margin: 0 auto;
  max-width: 1200px;
  padding-top: 30px;
  padding-right: 30px;
  padding-left: 30px;
}

.youtube h1 + .youtube_container,
.youtube h1 + .youtube_container2 {
  margin-top: 2rem;
}

.youtube p + .youtube_container,
.youtube p + .youtube_container2 {
  margin-top: 2rem;
}

.youtube_container2 {
  align-items: center;
  text-align: center;
  justify-self: center;
  margin: 0 auto;
  background-color: #131313;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding-right: 30px;
  padding-left: 30px;
}

.youtube_container2 h2 {
  color:#fff;
  font-size:1.2rem;
  Line-height:1.5em;
  font-weight: normal;
  width:100%;
  box-sizing:border-box;
  text-align: center;
}


/* Youtube video section end*/

@media screen and (max-width: 768px) {
  
  .youtube_container {
    display: grid;
    /*Grid items are placed in rows by default and span the full width of the grid container.*/
    grid-template-columns: 1fr;
    /*The fr unit helps create flexible grid tracks. It represents a fraction of the available space in the grid container*/
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    background-color: #131313;
    z-index: 1;
    width: 100%;
    max-width: 768px;
    padding-left:4rem;
  }
  .youtube h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .youtube h2 {
    font-size: 1.2rem;
    margin-top: 5px;
    text-align: justify;
  }

  .youtube p {
    font-size: 1.2rem;
    margin-top: 5px;
    text-align: justify;
  }

  .youtube_container2 {
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    background-color: #131313;
    z-index: 1;
    width: 100%;
    max-width: 768px;
    padding-left:4rem;
  }

  .youtube_container2 h2 {
    font-size: 1.2rem;
    margin-top: 5px;
    text-align: center;
  }

}

@media screen and (max-width: 480px) {
  .youtube_container {
    display: grid;
    /*Grid items are placed in rows by default and span the full width of the grid container.*/
    grid-template-columns: 1fr;
    /*The fr unit helps create flexible grid tracks. It represents a fraction of the available space in the grid container*/
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    background-color: #131313;
    z-index: 1;
    max-width: 480px;
    width:100%;
    padding-left:1rem;
  }


  .youtube h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  .youtube h2 {
    font-size: 1rem;
    margin-top: 0.8px;
    text-align: left;
  }

  .youtube p {
    font-size: 1rem;
    margin-top: 0.8px;
    text-align: justify;
  }

  .youtube_links iframe {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .youtube_container2 {
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    background-color: #131313;
    z-index: 1;
    max-width: 480px;
    width:100%;
    padding-left:1rem;
  }

  .youtube_container2 h2 {
    font-size: 1rem;
    margin-top: 0.8px;
    text-align: center;
  }

}

/* Footer CSS */

.footer__container {
  background-color: #141414;
  padding: 5rem 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
  
  .footer__links {
  background-color: #141414;
  width: 100%;
  max-width: 1200px;
  padding: 0 30px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}
   
  .footer__link--wrapper {
  background-color: #141414;
  display: flex;
  align-items: flex-start;
  width: 100%;
}
   
  .footer__link--items {
  background-color: #141414;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 3rem 0 0;
  text-align: left;
  width: auto;
  min-width: 200px;
  box-sizing: border-box;
}
  
  .footer__link--items h2 {
  margin-bottom: 16px;
  color: #fff;
}
  
  .footer__link--items a {
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.5rem;
}
  
  .footer__link--items a:hover {
  color:#4837ff;
  transition: 0.3s ease-out;
}

  /* Social Icons */
.social__icon--link {
  color: #fff;
  font-size: 3.5rem;
  margin-left:1.8rem;
}

  #linkedin {
  background-color: #fff;
  border-radius: 2rem;
  color:rgb(10, 102, 194);
}

  #youtube {
  background: linear-gradient(#fff, #fff) center / 40% 40% no-repeat;
  border-radius: 1rem;
  color:rgb(205, 32, 31);
}

  #github {
  background-color: #fff;
  border-radius: 1.8rem;
  color:rgb(36,41,46);
}

  #orcid {
  background: linear-gradient(#fff, #fff) center / 55% 55% no-repeat;
  border-radius: 1.8rem;
  color:#86af49;
}
  
  .social__media {
  max-width: none;
  width: auto;
  margin: 0 0 20px auto;
  align-items: column;
}
 
  .social__icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: auto;
}

  .social__icons .social__icon--link:first-child {
  margin-left: 0;
}
  
  
  #footer__logo {
  background-color: #141414;
  color: #fff;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.5rem;
  margin-left: 1.8rem;
}
  
  .social__media--wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  margin: 0;
}

  .social__media--wrap p{
  margin: 1.2rem 0 0;
}
 
  .website__rights {
  color: #fff;
}
  
  @media screen and (max-width: 768px) {

  .footer__links {
  padding-top: 2rem;
}
  
  #footer__logo {
  margin-bottom: 2rem;
}
  
  .website__rights {
  margin-bottom: 2rem;
}
  
  .footer__link--wrapper {
  flex-direction: column;
}

  .footer__link--items {
  margin: 0 0 1.5rem;
}

  .social__media {
  margin: 0;
}
  
  .social__media--wrap {
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 820px;
}
}
  
  @media screen and (max-width: 480px) {
  .footer__link--items {
  margin: 0;
  padding: 10px;
  width: 100%;
}
  .social__media--wrap {
  flex-direction: column;
  justify-content: space-between;
  align-items: bottom;
  width: 100%;
  max-width: 1000px;
}

}
/* Keep the footer at the bottom on short pages */
body:has(.footer__container) { min-height: 100vh; display: flex; flex-direction: column; background-color: #141414; }
body:has(.footer__container) > .footer__container { margin-top: auto; }

/* Let content pages grow with their content instead of overflowing into the footer */
.animation_content, .teaching_content { height: auto; min-height: 0; padding-bottom: 3rem; }

/* Align the right-most footer icon with the navbar Contact me button */
@media screen and (min-width: 961px) {
  .footer__container .social__media { margin-right: 32px; }
}

@media (max-width: 768px) {
  .main__content h2 { font-size: 1.6rem; }
  #about-heading { font-size: 24px; }
  .research__heading, #background-heading { font-size: 1.3rem; }
}

@media (max-width: 768px) {
  .publication__link { line-height: 1.45; }
}

@media (max-width: 768px) {
  .footer__container .social__media { margin: 0 auto 20px; width: 100%; }
  .footer__container .social__media--wrap { align-items: center; }
  .footer__container .social__icons { justify-content: center; width: 100%; margin-top: 1.5rem; }
  .footer__container .social__media--wrap p { text-align: center; }
}

@media (max-width: 768px) {
  .teaching_content .teaching_intro { font-size: 1rem; line-height: 1.5; }
}

@media (max-width: 768px) {
  .talks_content > h2 { font-size: 1.5rem; white-space: nowrap; }
}
@media (max-width: 360px) {
  .talks_content > h2 { font-size: 1.3rem; }
}

@media screen and (max-width: 960px) {
  .navbar__menu.active { height: auto; max-height: calc(100vh - 80px); overflow-y: auto; padding-bottom: 1rem; }
  .navbar__item .sub_menu { display: block; position: static; margin: 0; padding: 0 0 1rem; list-style: none; }
  .submenu__links { font-size: 1rem; padding: 0.5rem 1rem; color: #ffffffb8; }
  .navbar__links { padding: 1.2rem; }
}

@media screen and (max-width: 960px) {
  .navbar__menu.active { grid-auto-rows: auto; grid-template-rows: none; }
  .navbar__menu.active .navbar__item { height: auto; }
}

@media screen and (max-width: 960px) {
  .navbar__item:hover .sub_menu { position: static; margin: 0; }
}

@media screen and (max-width: 960px) {
  .navbar__item .sub_menu, .navbar__item:hover .sub_menu { display: none; }
}

.animation_item__link { text-decoration: underline; text-decoration-color: #f77062; text-underline-offset: 0.25em; text-decoration-thickness: 2px; }
.animation_item__link::after { content: " (click)"; color: #f77062; font-size: 0.7em; font-weight: 500; white-space: nowrap; }

.animation_content h2 { margin-bottom: 1rem; }

/* Mobile title size */
@media (max-width: 768px) {
  .research__card h3,
  .animation_item h3,
  .publication__link,
  .talk_item h4,
  .teaching_courses a { font-size: 1.2rem; }
}
