.aboutPage{
    font-size: 20px;
}

body {
    font-family: 'Outfit', sans-serif; /* Applying the Google Font */
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

body.loading {
    cursor: wait;
  }

.bibtexButton{
    font-family: 'Outfit', sans-serif;
    width : 10%;
    height: 50px;
    background-color: #868686;
    font-weight: bold;
    color: white;
    cursor: pointer;
    padding: 10px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 20px;
    margin-top: 10px;
    border-radius: 4px;
    position: relative;
  }

.bibtexCopy {

    display: flex;
  
}

.bibtexCitation{
    width : 80%;
}

.bibtexitem , .bibtexnumber {
    height : 30px;
    vertical-align: middle;
}
.bibtexitem {
    font-size : 20px ;
}

.bibtexitem , .bibtexnumber {
    height : 30px;
    vertical-align: middle;
}

.bibtexitem:hover {
    background-color :khaki ;
}

#bibtexitems {
    display : none;
}

.bibtexnumber {
    font-size : 12px ;
}
  
#bibtex-popup {
    display: none;
    position: fixed;
    font-size: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 40%;
    max-height: 80%;
    overflow-y:scroll;
    border-radius: 15px; /* Rounds the corners with a radius of 15px */
    border: 2px solid #000; /* Adds a 2px solid black border */
}

button.close-btn svg {
  vertical-align: middle;
}

.center-div {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1280px; /* Same width as .navbar */
    width: 80%;
    text-align: center;
    margin: 10px auto 0 auto; /* Center horizontally and add space below menubar */
}

.center-div img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.close-btn , .copy-popup-btn {
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    width : 15%;
    height: 50px;
    background-color: #868686;
    font-weight: bold;
    color: white;
    cursor: pointer;
    padding: 10px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 20px;
    margin: 20px;
  }

.collapsible {
    background-color: #868686;
    font-family: 'Outfit', sans-serif;
    font-weight: bold;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 20px;
    margin-top: 10px;
    border-radius: 4px;
    position: relative;
}

.collapsible:before {
    content: ''; /* Remove Unicode */
    display: inline-block;
    width: 20px; /* Adjust size as needed */
    height: 20px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    transition: transform 0.2s;
}

/* Rotate the SVG when active */
.collapsible.active:before {
    transform: rotate(90deg);
}

.content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    text-align: left;
    font-size: 18px;
    transition: max-height 0.2s ease-out;
    background-color: #f9f9f9;
    margin-top: 5px;
    border-radius: 4px;
}

.contentAbout{
    display: flex;
    align-items: flex-start;
    vertical-align: top;
}

.contentPicture{
    width: 30%;
    margin-top: 10px;
}
.contentBio{
    width : 70%;
    font-size: 18px;
    margin-left:40px
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(134, 134, 134, 0.8);
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 15px;
    display: none; /* Initially hidden */
}

.cookie-banner button {
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #868686;
    color: white;
    border: 2px solid #414141;
    border-radius: 7px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.cookie-banner button:hover {
    background-color: #414141;
}

#directURL{
    display: flex;
    justify-content: center; /* Horizontally center */
    align-items: center;     /* Vertically center */
    gap: 10px;               /* Optional: Adds space between elements */
    flex-wrap: nowrap;       /* Ensures items stay on one line */
}

.disclaimers {
    text-align: left;
    font-size: 15px;
}

.external::after {
  content: '';
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.15em;
  vertical-align: text-top;
  background-color: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42L17.59 5H14V3z"/></svg>') no-repeat center;
  mask-size: contain;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42L17.59 5H14V3z"/></svg>') no-repeat center;
  -webkit-mask-size: contain;
  vertical-align: middle;
}

#fullscreen-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

#fullscreen-close-button:hover {
    background: rgba(0, 0, 0, 0.9);
}

#fullscreen-close-button::after {
    content: "Zoom out"; /* Tooltip text */
    position: absolute;
    top: -35px; /* Position above the button */
    right: 50%;
    transform: translateX(50%);
    background-color: black;
    color: white;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    pointer-events: none;
    z-index: 10001; /* Ensure it's above overlay */
}

#fullscreen-close-button:hover::after {
    opacity: 1;
    visibility: visible;
}

#fullscreen-close-button svg {
    display: block;
    width: 24px;
    height: 24px;
}

#goto-wrapper {
    margin-bottom: 30px;
}

html {
  scroll-behavior: smooth;
}

#indexDropdown {
    font-family: 'Outfit', sans-serif;
    font-weight: bold;
    font-size: 20px ;
    width : 100%;
    color : black;
}

.itemcounter {
    font-size: 18px;
    height : 100%;
    width :88%;
}

.itemnavigation {
    width: 100%;
    background-color: #f9f9f9;
    height : 50px;
    vertical-align: middle;
    text-align: center;
    display: flex;
}

.lastupdated {
    text-align: center;
}


/* Menubar styling */
.navbar {
    max-width: 1280px; /* Same width as .center-div */
    width : 80%;
    margin: 0 auto; /* Center the navbar horizontally */
    padding: 10px 20px;
    background-color: #868686;
    color: white;
    border-radius: 8px;
}

.navbar .title {
    font-size: 60px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}

.navbar ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center; /* Center the menu items */
    gap: 20px;
}

.navbar ul li {
    display: inline;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
}

/* Menu items: hover and active state */
.navbar ul li a:hover {
    background-color: #696969;
    border-radius: 5px;
}

.navbar ul li a.active {
    background-color: #414141;
    border-radius: 5px;
}

.popup-buttons {
    width: 100%;
    display: flex;
    justify-content: center; /* Center the buttons horizontally */
    align-items: center; /* Align the buttons vertically (if needed) */
    gap: 10px; /* Optional: add some space between the buttons */
}

pre {
    white-space: pre-wrap;
  }

.prev, .next {
    background-color: #868686;
    font-family: 'Outfit', sans-serif;
    font-weight: bold;
    color: white;
    cursor: pointer;
    padding: 0px;
    width: 6%;
    text-align: center;
    border: none;
    outline: none;
    font-size: 20px;
    margin-top: 0px;
    border-radius: 4px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover , .collapsible:hover {
    background-color: #414141;
}

.rss-icon {
    position: absolute;
    bottom: 5px;
    right: 10px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.rss-icon:hover {
    opacity: 1;
}

.rsslink {
    text-align: center;
    margin-top: 0.5em;
}

.rsslink a {
    font-size: 0.95em;
    color: #555;
    text-decoration: none;
}

.rsslink a:hover {
    color: #000;
    text-decoration: underline;
}

.search-container {
    display: flex;
    justify-content: flex-end;  /* Align everything to the right */
    align-items: center;
    gap: 10px;                  /* Space between label and input */
    margin-top: 10px;
    font-family: 'Outfit', sans-serif;
}

.search-container label {
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

#searchBox {
    width: 300px;               /* Wider search box */
    padding: 3px;
    font-size: 14px;
    border: 2px solid #868686;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
}

#search-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    padding: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

#search-toggle.active {
    background-color: rgba(255, 255, 255, 0.7); /* Brighter when active */
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);      /* Optional glow */
}

#search-toggle:hover {
    background-color: rgba(255, 255, 255, 0.45);
}

.navbar {
    position: relative; /* needed to position #search-toggle inside */
}

.thankYous{
    font-size: 18px;
}

#youtube-player {
    width: 100%; /* Make iframe width responsive */
    max-width: 960px;
    height: 75%;
    max-height: 480px;
}

#URLcopybutton svg {
    vertical-align: middle;
}

#URLcopybutton{
    font-family: 'Outfit', sans-serif;
    background-color: #868686;
    font-weight: bold;
    color: white;
    cursor: pointer;
    text-align: center;
    border: none;
    outline: none;
    border-radius: 4px
}
    
.videoButton {
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    min-width : 25%;
    max-width : 40%;
    height : 50px;
    background-color: #868686;
    font-weight: bold;
    color: white;
    cursor: pointer;
    padding: 10px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 20px;
    margin: 20px;
    white-space: nowrap; /* Prevents text from wrapping */
    overflow: hidden; /* Hides overflow if text exceeds button size */
    text-overflow: ellipsis; /* Adds "..." if text overflows */
  }

#video-info {
    font-style: italic;
    font-size: 14px;
    height : 10%;
}

#videoscontent{
    display: flex;
    margin-top: 2px;
    margin-bottom: 2px;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
}

#videoscollapsible{
    display : none;
}

#video-popup {
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 80vw;
    max-width: 960px;
    height: 80vh;
    max-height: 600px;
    border-radius: 15px; /* Rounds the corners with a radius of 15px */
    border: 2px solid #000; /* Adds a 2px solid black border */
}

.image-container {
    position: relative; /* This makes sure child elements are positioned relative to this */
    display: inline-block;
}

/* Semi-transparent zoom button */
.zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.6); /* Semi-transparent white */
    border: 2px solid black; /* Solid black edge */
    border-radius: 50%; /* Circular button */
    display: flex;
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center */
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease-in-out;
}

/* Add a magnifying glass icon */
.zoom-icon::before {
    content: "";
    display: block;
    width: 25px; /* Fixed width for precise centering */
    height: 25px; /* Fixed height for precise centering */
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"><circle cx="11" cy="11" r="7"/><line x1="11" y1="8" x2="11" y2="14"/><line x1="8" y1="11" x2="14" y2="11"/><line x1="16" y1="16" x2="22" y2="22"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Ensures precise centering */
}

/* Hover effect to make the button darker */
.zoom-icon:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1); /* Slight zoom effect */
}

.zoom-icon::after {
    content: "Zoom In"; /* Tooltip text */
    position: absolute;
    bottom: 110%; /* Position above the icon */
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

/* Show tooltip on hover */
.zoom-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Fullscreen overlay */
#fullscreen-overlay {
    display: none;
    position: fixed;
    top: 5%;
    left: 5%;
    width: 90vw; /* Full width */
    height: 90vh; /* Full height */
    background: rgb(255,255,255,1);
    border: 2px solid black;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Ensure it's above everything */
}

/* Ensure the full-screen image scales properly */
#fullscreen-image {
    max-width: 90vw;
    max-height: 90vh;
}

@media screen and (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }

  .navbar .title {
    font-size: 40px; /* Was 60px */
  }

  .collapsible,
  .content,
  .contentBio,
  .bibtexitem,
  .bibtexButton,
  .close-btn,
  .videoButton,
  #bibtex-popup,
  #indexDropdown,
  .itemcounter {
    font-size: 16px;
  }

  .bibtexnumber {
    font-size: 10px;
  }
}

/* Phone and smaller */
/* Handle landscape orientation on small screens */
@media screen and (max-height: 480px) and (orientation: landscape) {
  body {
    font-size: 0.85rem;
  }

  .navbar .title {
    font-size: 28px;
  }

  .collapsible,
  .content,
  .contentBio,
  .bibtexitem,
  .bibtexButton,
  .close-btn,
  .videoButton,
  #bibtex-popup,
  #indexDropdown,
  .itemcounter {
    font-size: 13px;
  }

  .bibtexnumber {
    font-size: 9px;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 0.9rem;
  }

  .navbar .title {
    font-size: 32px;
  }

  .collapsible,
  .content,
  .contentBio,
  .bibtexitem,
  .bibtexButton,
  .close-btn,
  .videoButton,
  #bibtex-popup,
  #indexDropdown,
  .itemcounter {
    font-size: 14px;
  }

  .bibtexnumber {
    font-size: 9px;
  }
}

@media screen and (max-width: 768px) {
  .collapsible {
    font-size: 16px;
    padding: 6px 10px; /* reduce vertical space */
    margin-top: 6px;
  }
  .collapsible:before {
    width: 16px;
    height: 16px;
    vertical-align: middle;
  }
}

/* Phones (portrait) */
@media screen and (max-width: 480px) {
  .collapsible {
    font-size: 14px;
    padding: 4px 8px;
    margin-top: 4px;
  }
  .collapsible:before {
    width: 14px;
    height: 14px;
    vertical-align: middle;
  }
}

/* Landscape on small devices */
@media screen and (max-height: 480px) and (orientation: landscape) {
  .collapsible {
    font-size: 13px;
    padding: 3px 6px;
    margin-top: 3px;
  }
  .collapsible:before {
    width: 16px;
    height: 16px;
    vertical-align: middle;
  }
}

/* Mobile Nav Layout */
.mobile-nav {
  display: None;
  flex-direction: column;
  align-items: center;
  background-color: #868686;
  padding: 10px 12px;
  position: relative;
  border-radius: 8px;
}

/* Centered title */
.mobile-title {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
}

/* Hamburger in top-right corner */
.hamburger {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 26px;
  cursor: pointer;
}

/* Hidden by default */
/* Mobile menu layout for center and right icons */
.mobile-menu {
  position: relative;
  display: none;
  justify-content: flex-end; /* Only push icons right */
  align-items: center;
  padding: 6px 10px;
  background-color: #868686;
  border-top: 1px solid #aaa;
  width: 100%;
  height: 24px;            /* Set a fixed height */
}

.mobile-menu-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
}

.mobile-menu-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-right: 8px;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    padding: 4px;
}

.mobile-icon {
    width: 18px;
    height: 18px;
    stroke: white;
}

.icon-link:hover .mobile-icon {
  opacity: 0.8;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  background-color: #696969;
}

/* Media query: only show mobile nav below 768px */
@media screen and (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    background-color: #868686;
    padding: 10px;
    position: relative;
    border-radius: 8px;
  }
}

@media screen and (max-width: 768px), screen and (max-height: 500px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }
}

@media screen and (max-height: 480px) and (orientation: landscape) {
  .image-container img {
    max-height: 65vh; /* Keep image within 60% of the viewport height */
    width: auto;
    height: auto;
  }

  .image-container {
    max-height: 65vh;
    overflow: hidden;
  }
}

@media screen and (max-width: 768px), screen and (max-height: 480px) and (orientation: landscape) {
  .itemnavigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 26px;
    padding: 0 4px;
    overflow: hidden;
  }

  .itemcounter {
    font-size: 13px;
    line-height: 1;               /* prevent line overflow */
    height: 100%;
    width:50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    white-space: nowrap;         /* prevent wrapping */
  }

  .prev, .next {
    font-size: 16px;
    width:10%;
    height: 26px;
    line-height: 1;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media screen and (max-width: 768px), screen and (max-height: 480px) and (orientation: landscape) {
  .image-container,
  .image-container img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .itemnavigation {
    width: auto;              /* Let it size based on parent */
    max-width: 100%;          /* Prevent overflow */
    box-sizing: border-box;   /* Account for padding */
    margin: 0 auto;           /* Center it */
    padding: 0 8px;           /* Optional: match image padding if needed */
  }

  .itemcounter {
    font-size: 12px;
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }

  .prev, .next {
    font-size: 14px;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


@media screen and (max-width: 768px) {
  .navbar .title, .mobile-title {
    font-size: 28px;
  }
  h1 {
    font-size: 17px;
  }
}

@media screen and (max-width: 480px) {
  h1, .navbar .title, .mobile-title {
    font-size: 24px;
  }
  h2 {
    font-size: 14px;
  }
}

@media screen and (max-height: 480px) and (orientation: landscape) {
  h1, .navbar .title, .mobile-title {
    font-size: 22px;
  }
  h2 {
    font-size: 13px;
  }
}

@media screen and (max-width: 768px) {
  .zoom-icon {
    width: 22px;
    height: 22px;
  }

  .zoom-icon::before {
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
  }
}

@media screen and (max-width: 480px) {
  .zoom-icon {
    width: 20px;
    height: 20px;
  }

  .zoom-icon::before {
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
  }
}

@media screen and (max-height: 480px) and (orientation: landscape) {
  .zoom-icon {
    width: 18px;
    height: 18px;
  }

  .zoom-icon::before {
    width: 14px;
    height: 14px;
    background-size: 14px 14px;
  }
}

@media screen and (max-width: 768px), screen and (max-height: 480px) {
  .close-btn {
    font-size: 14px;
    height: 36px;
    width: 36px;
    padding: 4px;
    margin: 10px;
  }

  .popup-buttons {
    justify-content: flex-end;
    padding: 0 10px;
  }

  .close-btn svg {
    width: 20px;
    height: 20px;
  }
}