* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
  --blue: #003da5;
}

/* Overriding the defaults in fontawesome.
   Default font-size is 16px, color
*/
.fa, .fas, .fa-solid, .fa-brands {
  font-size: 2rem;
  color: rgb(128, 225, 225);
}

.fa-4xl {
  font-size: 4em; /* Adjust size as needed */
}

.i-magnifying-glass {
  color: var(--blue);
  font-size: 1.6rem;
}

.ci {
  height: 3em;
}

.topsticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 9999;
}

a .white, 
a:visited .white,
.white {
  color: white;
  text-decoration: none;
}

.text a, .text a:visited {
    color: rgb(128, 225, 225);
}

/* TODO: do this a less hackish way for vertically centering? */
.shift-down {
  position: relative;
  top: 0.05em;
}

.fa-times {
  color: #333;
}

/* Global Tags */

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2em;
}

main {
  background: rgb(230, 240, 230);
  padding-bottom: 2em;
  max-width: 1200px;
  ;
}

.container {
  width: 100%;
  padding: 0;
  margin: 0;
  background: rgb(230, 240, 230);
}
.container h1 {
  margin-top: 2rem;
}

.flex-container {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
}

.flex-container-space {
  display: flex;
  justify-content: space-between; 
  align-items: top; 
}

.flex-gap-small {
  column-gap: 1%;
}

.padding-line {
  padding: 1em;
}

/* Fix extra space bug between main/footer - seems to be due to margin collapse.
   Solution provided by AI.
 */
 .container, .main, nav {
  margin-bottom: 0;
  padding-bottom: 1px; /* Prevent margin collapse */
}
.footer, .container {
  margin-top: 0;
  padding-top: 1px; /* Prevent margin collapse */
}
/* End of margin collapse fix */

ul {
  list-style-type: none;
}

h1 {
  color: #33a;
  font-size: 2.6em;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
}

h2 {
  color: #93119f;
  font-size: 2.2em;
  font-weight: 800;
  text-align: center;
}

h3 {
  color: #33a;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0;
}

h4 {
  color: #333;
  font-size: 1.4em;
  text-align: center;
  margin-bottom: 1em;
}

h6 {
  font-size: 1.1rem;
  color: rgb(24, 24, 49);
}

p {
  margin: 0.5em 1em 1em 1em;
}

.center {
  margin: 0 auto;
}

.center-text {
  text-align: center;
}

.margin-top-md {
  margin-top: 0.4em !important;
}

.margin-bottom-md {
  margin-bottom: 0.4em !important;
}

.black {
  color: black !important;
}

.blue {
  color: rgb(21, 21, 100);
}

.blue-bg {
  background: rgba(21, 21, 100, 0.85);
}

.blue-bg-opaque {
  background: rgba(21, 21, 100) !important;
}

.yellow-bg {
  background: rgba(179, 153, 84, 0.85); /* #b39954; */
}

.license {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
  line-height: 1.8;
  padding: 0;
}

.license-txt {
  color: #003DA5;
  font-weight: 700;
}

.license-img {
  height: 2.4em;
}

.license p {
  margin-right: 0.5rem;
}

/* Modal "popup" */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8); /* Black background with transparency */
  justify-content: center;
  align-items: center;

}

.modal-content {
  display: inline-block;
  max-width: 80%;
  max-height: 80%;
}

.modal-image {
  min-width: 60vw;
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

.modal-caption-container {
  box-sizing: border-box;
  width: 0px;
  min-width: 100%;
  margin: 0;
  color: white;
  background: rgba(0, 61, 165, 0.8);
  padding: 10px 15px;
  font-size: 1.2rem;
}

.modal-close a:any-link {
  color: rgb(128, 225, 225);
}
.modal-close {
  color: rgb(128, 225, 225);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

/* Map */

.map {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: flex-start;
}

.map-markers {
  display: flex;
  flex-direction: column;
  padding-right: 5em;
  margin-left: 900px;
}

.map-markers a:any-link {
  white-space: nowrap;
}

.map-markers .artifact {
  margin-bottom: 20px;
}

.map-markers .artifact img {
  width: 30vw;
  height: auto; 
  min-width: 320px;
  min-height: auto;
}

.map-markers .artifact .text-overlay {
  font-size: 0.9em;
}

.imageMap-container {
  position: fixed;
  left: 4em;
  display: inline-block;
}

#highlight {
  position: absolute;
  background: rgba(0, 128, 255, 0.5) !important; /* Highlight */
  border: 2px solid rgba(0, 0, 255, 0.8); /* Optional border */
  pointer-events: none; /* Prevent interference with clicks */
  display: none;
}


@media (max-width: 775px) {
  .map {
    flex-direction: column;
  }

  .imageMap-container {
    position: sticky;
    top: 1.4em;
    left: 0;
    z-index: 999;
  }

  .imageMap-container img {
    max-width: 97vw;
    margin: 0;
    padding: 0;
  }

  .map-markers .artifact img {
    width: 90vw;
  }

  .map-markers {
    margin-left: 20px;
    /* overflow-y: scroll; 
    height: 70vh; */
  }
}


/* Youtube embedding */

.video-container {
  position: relative;
  width: 90vw;
  height: calc(90vw * 9.0 / 16.0);
  margin: 0 auto;
  padding: 0;
  object-fit: contain;
}

.video-thumbnail {
  width: 320px;
  height: calc(320px * 9.0 / 16.0);
}

.video-container.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999; /* Ensure it overlays all other content */
  background: black; /* Optional: Add a background color */
}

#player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#replay-btn {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* transform: translate(-50%, -50%); */
  padding: 10px 20px;
  background-image: url('assets/img/welcome-thumb.jpg');
  background-size: cover; /* Ensures the image covers the entire element */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents the image from repeating */

  background-color: rgba(0, 0, 0, 0.25); /* Add a semi-transparent black overlay */
  background-blend-mode: darken; /* Blend the overlay with the image */
  
 
  color: white;
  cursor: pointer;
  z-index: 10;
}

/* Pages */
.credits {
  padding-left: 2em;
  padding-right: 2em;
}

/* Fairview Collections / Artifacts */

.breadcrumbs {
  position: sticky;
  display: flex;
  top: 0;
  gap: 5px;
  align-items: center;
  font-size: 1.2em;
  background: white;
  padding: 0 2.5em;
  padding-bottom: 0.2em;
  z-index: 999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Added drop shadow */

}

.breadcrumbs img {
  width: 50px;
  display: none;
}

.collection {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 0.3rem;
}

.artifact {
  position: relative;
  display: inline-block; 
}

.artifact img {
  display: block;
  object-fit: cover;
  min-width: 640px;
  min-height: 480px;
}

.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  padding-left: 2em;
  padding-right: 2em;
}

.article p {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.preview img {
  width: 640px;
  height: 480px; 
}

.preview {
  cursor: pointer;
}

.large {
  height: 70vh;
}

.artifact .text-overlay, .text-ovelay {
  position: absolute;
  width: 100%;
  bottom: 0;
  right: 0;
  color: white;
  background: rgba(0, 61, 165, 0.5);
  padding: 10px 15px;
  font-size: 1.2em;
}

.artifact .text, .text {
  width: 0;
  min-width: 100%;
  bottom: 0;
  right: 0;
  color: white;
  background: rgba(0, 61, 165, 0.8);
  padding: 10px 15px;
  font-size: 1.2rem;
  box-sizing: border-box; 
}


/* Magazine Article Layout */
.magazine {
  max-width: 1200px;
  margin: 1em auto;
}

.magazine-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 1em;
  padding-left: 3.5em;
}

.magazine-pair:not(:first-of-type) {
  margin-top: 0.2em;
}

.magazine-pair:nth-child(even) {
  flex-direction: row-reverse;
}

.magazine-txt {
  flex-grow: 1;
  flex-basis: 15rem;
}

.magazine-fig {
  box-sizing: border-box;
  min-width: 15rem;
  flex-grow: 2;
  max-width: max-content;
  margin-right: auto;
  text-align: center;
}

.magazine img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  vertical-align: middle;
}

/* Navigation */
nav {
  width: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items:center;
  font-size: 1.2em;
  padding: 1vw 8vw;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

nav img {
  height: 3em;
  cursor: pointer;
}

.navigation {
  display: flex;
}

.navigation ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: 0.4em;
}

.navigation ul li {
  list-style: none;
  margin-left: 0.02em;
  display: flex;
  align-items: center;

}

.navigation ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 10px 15px;
  margin: 0;
  transition: 0.3s ease;
}

.navigation ul li a:hover,
.navigation ul li a:active {
  background-color: #93119f;
  color: #fff;
  padding: 10px 15px;
  margin: 0;
}

#dropdown {
  color: #333;
  font-weight: 600;
  position: relative;
  margin: 0 15px;
}

#dropdown.visible #submenu {
  display: block; /* Show submenu on hover or press */
}

#dropdown i {
  color: rgb(63, 113, 186);
  padding-left: 5px;
}

#submenu {
  display: none; /* Hide submenu by default */
  position: absolute; /* Position submenu */
  top: 100%; /* Align submenu below parent */
  list-style-type: none; /* Remove bullet points */
  padding: 0;
  margin: 0;
  color: #fff;
  background: rgba(17, 20, 104, 0.45);
  backdrop-filter: blur(3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* Optional: Add shadow for submenu */
}

#submenu li a {
  color: #fff;
  text-wrap: nowrap;
  padding: 5px 10px;
}

#submenu li {
  padding: 10px; /* Adjust padding as needed */
}

#menu-btn {
  width: auto;
  display: none;
}

#menu-close {
  width: 30px;
  display: none;
}

/* Home */
#home {
  background-image: linear-gradient(rgba(200,200,200,0.25),rgba(70,70,70,0.0)),url('assets/img/hero.jpg');
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  /* display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center; */
  margin: 0;
  padding: 0;
}

#home .text-overlay {
  display: grid;
  grid-template-columns: 3fr 1fr;
  font-size: 1.2em;
  color: white;
  background: rgba(0, 61, 165, 0.8);
  padding: 1em;
  gap: 1em;
  align-items: center;
}

#home .text-overlay a:any-link {
  color: rgb(114, 250, 250);
}

#home .text-overlay a:hover {
  color: #f478ff;
}

#home h1 {
  color: #fff;
  font-family: p;
}

#home p {
  color: #fff;
  width: 40%;
}

#home .btn {
  margin-top: 30px;
}

#hero img {
  width: 100%; /* Makes the image scale with the browser width */
  max-width: 900px; /* Sets a max width so it doesn’t grow indefinitely */
  height: auto; /* Maintains aspect ratio */
  object-fit: cover; /* Makes sure the image fills the available space while cropping as needed */
  display: block; /* Removes any inline spacing issues */
  margin: auto; /* Centers horizontally */
}

a.btn {
  text-decoration: none;
  padding: 13px 35px;
  margin: 5px;
  font-weight: 600;
  border-radius: 5px;
  transition: 0.3s ease;
}

a.btn {
  display: inline-block;
  text-wrap: nowrap;
  text-decoration: none;
  color: #fff;
  backdrop-filter: blur(3px);
}

a.btn:hover {
  background: rgba(147, 17, 159, 0.85); /* #93119f; */
}

.logo img {
  height: 40px;
}

.logo span {
  font-weight: bold;
  font-size: 2rem;
}

#media {
  text-align: center;
  padding: 1vw 4vw 4vw 4vw;
}

#media h1 {
  color: #333;
}

#media p {
  margin-top: 0;
  padding-top: 1vh;
  padding-bottom: 2vh;
}

#media .media-logos {
  display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#media .media-logos img {
  width: 120px;
  height: auto;
  margin: 0 0.5em;
  }

#media-photos .photo-box {
  margin-left: 1em;
}

#media-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1em;
  justify-content: center;
  align-items: center;
  padding: 0 2em;
}

#media-photos img {
  width: 100%;
  height: auto;
  background-size: cover;
  background-position: center;
}

#media-photos p {
  text-align: center;
  margin-top: 0.5em;
}

/****************************************/
/* UNCA Library Header */
#unca-header img {
  width: 100%;
  height: auto;
  background-size: cover;
  background-position: center;
}

/****************************************/
/* Courses */

.flex-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1em;
  align-items: center;
  justify-content: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.grid {
  display: grid;
  column-gap: 2.4em;
  row-gap: 9.6em;
  justify-content: center;
}

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.grid-center-v {
  align-items: center;
}

.intro-links {
  display: flex;
  gap: 5rem;
  justify-content: center;
}

.description-box {
  display: flex;
  justify-content: center;
  align-items: center ;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.text-box h2 {
  margin-bottom: -2rem;
}

.photo-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.credit-box {
  line-height: 1.8;
  line-height: 1.2;
  text-align: center;
  margin-top: 0.6rem;
}

/****************************************/
/* Demos */

.playlist-group h3 {
  margin-bottom: 0;
}

.playlist {
  margin-bottom: 1rem;
}

/****************************************/
/* About */
#about {
  margin-bottom: 2em;
}

#about h4 {
  margin-top: -1em;
}

#professorships {
  margin-bottom: 2.4em;
}

.professorship-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 2em;
  margin-bottom: 4em;
}

.professorship-logos img {
  width: 320px;
  height: auto;
  margin: 0em 1em;
  }

/****************************************/
/* Terms */
#terms {
  margin-bottom: 2.6em;
}

/* Credits */

#credits {
  width: 100%;
  display: flex;
  justify-content: center;
}

#credits .flex-container {
  margin: 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

#credits ul{
  list-style-type: disc;
  padding: 2em;
  flex: 1 1 max-content; /* Allow items to grow equally and match the largest width */
}

#credits .icons {
  display: flex;
  justify-content: center; 
  align-items: center; 
  gap: 1em;
}

#credits .primary-contributors {
  margin-bottom: 1rem;
  padding-bottom: 0;
}

#credits .primary-contributors-list {
  margin-top: 0;
  padding-top: 0;
}

/****************************************/
/* Privacy */

.link:link,
.link:visited {
  display: inline-block;
  color: rgb(21, 21, 100);
  /* #003DA5; */
  /*font-size: 1.1em;*/
  font-weight: 600;
  text-decoration: underline;
  padding: 3px;
  transition: all 0.3s;
}

.link:hover,
.link:active {
  color: #93119f;
  text-decoration: underline;

  /*color: #fff;*/
  /*background-color: #93119f;*/
  /*padding: 4px;*/
}

#privacy {
  margin-top: 0.5em;
  margin-bottom: 2.6rem;
}

.section-contact {
  text-align: center;

}

.contact {
  padding: 1.0em 0 1.0em 0;
  text-align: center;
}

.contact-img {
  display: block;
  padding-top: 2em;
  margin-left: auto;
  margin-right: auto;
}

.contact-img img {
  max-width: 70vw;
}


.unca-blue {
  color: #003DA5;
}

kbd {
  border: 2px solid black;
  box-shadow: 2px 2px black;
  font-size: .85em;
  line-height: .85em;
  display: inline-block;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 3px 5px;
  white-space: nowrap;
}

footer {
  padding: 2vw;
  background-color: #101c32;
  display: flex;
  justify-content: left;
  align-items: top;
  flex-wrap: wrap;
  column-gap: 5em;
}

footer .footer-col {
  padding: 0;
}

footer h3 {
  color: #fff;
  font-weight: 600;
  padding-bottom: 20px;
}

footer p {
  color: #bbb;
  padding: 0;
  margin: 0;
  padding-left: 48px;
}

footer li {
  list-style: none;
  color: #bbb;
  padding: 1em 0;
  cursor: pointer;
  transition: 0.3s ease;
}

footer li.two-row {
  padding: 0.7em 0 !important;
}

footer li:hover {
  color: rgb(128, 255, 128);
}

footer a {
  text-decoration: none;
  color: #bbb;
}

footer a:hover {
  color: #fff;
}

.youtube-text span {
  color: #88ffff;
  padding-left: 23px;
}

.youtube-viewers {
  display: flex;
  margin-bottom: 1rem;
}

.youtube-viewers img {
  height: 4.0rem;
  width: 4.0rem;
  border-radius: 50%;
  margin-right: -1rem;
  border: 3px solid #e6ecf6;
}

.footnote-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.footnote-link p {
  color: #888;
}

.copyright {
  color: #bbb;
  font-size: 0.9rem;
}

@media (max-width: 1080px) {

  
#home .text-overlay {
  font-size: 1em;
  align-items: center;
}

  nav {
    padding: 15px 20px;
  }
/****************************************/
/* UNCA Library Header */
#unca-header img {
  height: 160px;
  margin-top: 60px;
}

  #menu-btn {
    display: initial;
  }

  #nav.active #menu-btn {
    display: none;
  }

  #menu-close {
    display: block;
    margin-left: auto;
    color: #fff;
    /*padding: 18px 0px 20px 40px;*/
  }

  #nav.active #menu {
    right: 0;
    display: flex;
  }

  .navigation .mobile-close-overlay {
     width: 100%;
     backdrop-filter: grayscale(50%);
  }

  .navigation .mobile-popup {
    display: flex;
    flex-direction: column;
    justify-content: right;
    background: rgba(17, 20, 104, 0.45);
    backdrop-filter: blur(3px);
    border: 1px solid rgba( 255, 255, 255, 0.18);
    padding: 15px 10px 0 10px;
    z-index: 9999;
  }

  .navigation {
    display: none;
    flex-direction: row;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh;
  }

  .navigation ul {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .navigation ul li {
    padding: 20px 30px 20px 30px;
    margin-left: 0;
    color: #fff;
  }

  .navigation ul li a {
    color: #fff;
    left: 0;
  }

  #submenu {
    background: rgba(17, 20, 104, 0.85);
    right: 0;
    padding: 0 0 0 20px;
    height: auto;
  }

  #dropdown,
  #dropdown i {
    color: #fff;
  }

  #home p {
    width: 60%;
  }

  #media p {
    padding-bottom: 2vh;
  }

  .magazine-txt p {
    margin: 0;
    padding: 0;
  }

  .magazine-txt,
  .magazine-fig {
    flex: 100%;
  }

}

@media (max-width: 775px) {

  /* Disable horizontal scroll for mobile portrait */
  html, body { overflow-x: clip; }
  body {position: relative;}

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 2em;
  }

  #home .text-overlay {
    grid-template-columns: 1fr;
  }
  
  #media-photos {
    grid-template-columns: repeat(1, 1fr);
  }
  .photo-box p {
    font-size: 1.0em;
  }

  nav img {
    height: 1.8em;
  }
  
.artifact img {
  display: block;
  object-fit: cover;
  min-width: 375px;
  min-height: 250px;
}

.preview img {
  width: 375px;
  height: 250px; 
}

.breadcrumbs {
  position: -webkit-sticky; /* For Safari on iOS */
  position: sticky;
  display: flex;
  width: 100%;
  height: auto;
  top: 0;
  gap: 5px;
  align-items: center;
  background: white;
  font-size: 1em;
  z-index: 999;
  margin: 0;
  padding: 0;
  padding-left: 10px;
}

.breadcrumbs img {
  width: 30px;
}

.breadcrumb {
  white-space: nowrap;
}

.artifact {
  width: 100%;
}

.artifact img {
  width: 100%;
  height: auto;
}

.article img {
  width: 100%;
  height: auto;
}

.container {
  margin: 0;
  padding-left: 0px;
  padding-right: 0px;
}

}

@media (max-width: 475px) {
  h1, h2 {
    font-size: 1.5em;
  }

  .magazine h1 {
    font-size: 2em;
  }

  p {
    font-size: 1.2rem;
  }

  .magazine {
    margin-left: 0em;
    margin-right: 2em;
  }

  .magazine-fig {
    margin-right: 1em;
  }

  .media-logos img {
    padding-bottom: 1em;
  }

  .grid--2-cols {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

}

/* Landscape mode message */
.landscape-message {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
  color: white;
  font-size: 1.5em;
  text-align: center;
  padding: 2em;
  z-index: 9999; /* Ensure it overlays all content */
  justify-content: center;
  align-items: center;
}

/* Show the message in landscape mode on small screens */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .landscape-message {
    display: flex; /* Show the message */
  }
}