/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");


body {
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
    /* text-size-adjust: 100%; */
}
  
p {
    color: rgb(85, 85, 85);
}

li {
    color: rgb(85, 85, 85);
}


/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
}

a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}
  
a:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181, 181, 181);
}

.logo {
    font-size: 2rem;
}
  
.logo:hover {
    cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}
  
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3 ease-in-out;
}
  
.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links li {
    list-style: none;
}
  
.menu-links.open {
    max-height: 300px;
}
  
.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}
  
.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}
  
.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}
  
.hamburger-icon span:first-child {
    transform: none;
}
  
.hamburger-icon span:first-child {
    opacity: 1;
}

.hamburger-icon span:first-child {
    transform: none;
}


.main-container {
    padding-top: 4vh;
    margin: 0 5rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.contents-panel {
    /* width: 250px; */
    position: fixed;  
    margin-top: 100px;  
}

.content-title {
    font-weight: bold;
    margin-bottom: -5px;
    color:black;
    border-bottom: 1px solid rgb(181, 181, 181);
    padding-bottom: 5px;
}

.contents-list {
    list-style-type: none;
    padding: 0;
}

.contents-list li {
    margin: 5px 0;
}

.contents-list li a {
    text-decoration: none;
    color: #0645ad;
    font-size: 15px;
}

.contents-list li a:hover {
    color: grey;
    text-decoration: underline;
    text-decoration-color: rgb(181, 181, 181);
    text-underline-offset: 0.3rem;
}


.contents-list li a.active {
    font-weight: bold;

    color: #000; 
    /* padding: 2px 5px; */
    /* border-radius: 3px; */
    /* text-decoration: none; */
}

.content-text-container p {
    font-size: 18px;
    text-align: justify;
}

.content-text-container {
    /* display: flex; */
    flex: 1;
    padding: 10px;
    margin-left: 190px; 
    /* justify-content: center;
    flex-direction: column; */
}

/* Custom list styling for Roman numerals without indent */
.paragraph-indent {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

/* Reset counter at the section level */
#section3 {
    counter-reset: roman-counter;
}

.paragraph-indent li {
    font-size: 18px;
    text-align: justify;
    counter-increment: roman-counter;
    position: relative;
    padding-left: 1.3em;
    text-indent: 0px;
    margin-left: 0;
}

.paragraph-indent li::before {
    content: counter(roman-counter, upper-roman) ". ";
    position: absolute;
    left: 0;
    /* font-weight: bold; */
}

h1, h2, h3, h4, h5, h6 {
    border-bottom: 1px solid rgb(181, 181, 181);
    padding-bottom: 5px; /* Adds space between text and line */
    /* margin-bottom: -5px; Spacing after the heading */
}

#publications {
    margin-top: 3rem;
}

/* publication styling */
.publication {
    list-style-type: disc; /* Adds bullet points */
    padding-left: 20px; /* Indents bullets properly */
}

.publication li {
    margin-bottom: 10px; /* Spacing between entries */
    font-size: 18px;
    line-height: 1.5;
    color: rgb(85, 85, 85);
}

.publication i {
    font-style: italic; /* Italicize book titles */
}

.publication a {
    text-decoration: none;
    color: #0645ad; /* Wikipedia-style blue links */
}

.publication li a:hover {
    color: grey;
    text-decoration: underline;
    text-decoration-color: rgb(181, 181, 181);
    text-underline-offset: 0.3rem;
}

/* figure styling */
.science-figure {
    text-align: center;
    /* border: 1.5px solid rgb(85, 85, 85); */
    border: 1px solid #c8ccd1; 
    background-color:#f8f9fa;
}

.responsive-image {
    max-width: 98%;
    height: auto;
    margin-top: 0.3rem;
    /* border: 1.5px solid rgb(85, 85, 85); */
    border: 1px solid #c8ccd1
}
  
.figure-caption {
    font-style: italic;
    font-size: 16px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-left: 1rem;
    margin-right: 1rem;
    color: rgb(85, 85, 85);
    text-align: justify;
}

.text-link {
    color: rgb(85, 85, 85);
    text-decoration: underline !important;
    text-underline-offset: 0.35rem;
}

.text-link:hover {
    text-underline-offset: 0.3rem;
}

footer {
    height: 8vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
}

/* #desktop-nav {
    background-color: wheat;
} */

/* VIDEO CENTERING */
.video-container {
    display: flex;
    justify-content: center;
}