* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Overriding the defaults in fontawesome.
   Default font-size is 16px, color
*/
.fa, .fas, .fa-solid, .fa-brands {
  font-size: 1.6rem;
  color: rgb(128, 225, 225);
}

.fa-times {
  color: #333;
}

/* Global Tags */

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
}

.main {
  background: rgb(230, 240, 230);
  /* background: rgba(0, 61, 165, 0.3); */
}

/* Fix extra space bug between main/footer - seems to be due to margin collapse.
   Solution provided by AI.
 */
.main {
  padding-bottom: 1px; /* Prevent margin collapse */
}
.footer {
  padding-top: 1px; /* Prevent margin collapse */
}
/* End of margin collapse fix */

.container {
  /* About 1200px and 1140px are standards. */
  max-width: 1200px;
  padding: 0 3.2rem;
  margin: 0.5em auto;
}

.container h1 {
  margin-top: 2rem;
}

.video-container {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
}

ul {
  list-style-type: none;
}


span {
  color: #757373;
}

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;
  padding: 0em;
  margin-bottom: 0;
}

h4 {
  color: #333;
  font-size: 1.4em;
  text-align: center;
  padding: 0.4em;
  margin-bottom: 1em;
}

h6 {
  font-size: 1.1rem;
  color: rgb(24, 24, 49);
}

p {
  margin: 0.5em 2.8em 1em 2.8em;
}

.center {
  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);
}

.yellow-bg {
  background: rgba(179, 153, 84, 0.85); /* #b39954; */
}

.red-bg {
  background: rgba(100, 21, 21, 0.85);
}

.green-bg {
    background: rgba(21, 100, 45, 0.85);
}

.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;
}

/* Magazine Article Layout */
.magazine {
  max-width: 1200px;
  width: 100%;
  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;
  max-width: 50%;
}

.magazine-fig {
  /*box-sizing: border-box;*/
  /*min-width: 15rem;*/
  flex-grow: 2;
  /*max-width: max-content;*/
  max-width: 50%;
  /*max-height: 10em;*/
  /*max-height: 200px;*/
  margin-top: 1em;
  margin-right: auto;
  text-align: center;
}

.magazine img {
  max-height: 20em;
}

/* Navigation */
nav {
  position: fixed;
  width: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items:center;
  padding: 1vw 8vw;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

nav img {
  width: 150px;
  cursor: pointer;
}

.navigation {
  display: flex;
}

.navigation ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navigation ul li {
  list-style: none;
  margin-left: 1rem;
  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 !important; /* Show submenu on hover or press */
  z-index: 9999 !important;
}

.dropdown i {
  color: rgb(63, 113, 186);
  padding-left: 5px;
}

.submenu {
  display: none !important; /* 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 !important;
  text-wrap: nowrap !important;
  padding: 5px 10px !important;
}

.submenu li {
  padding: 10px; /* Adjust padding as needed */
}

.nav-img {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#menu-btn {
  width: auto;
  display: none;
}

#menu-close {
  width: 30px;
  display: none;
}

/* Home */
#home {
  background-image: linear-gradient(to right, rgb(0, 0, 0, 0.8),rgba(1, 1, 1,0.0)),url('../img/doc1-topaz.webp');
  background-repeat: no-repeat;
  width: 100%;
  height: 600px;
  background-size: cover;
  background-position: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 0;
}

#home h1 {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Adds a subtle shadow */
}

#home p {
  color: #fff;
  width: 40%;
  font-size: 1.1em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9); /* Adds a subtle shadow */
}

#home .btn {
  margin-top: 30px;
}

.minpad {
  padding: 4px 5px !important;
}

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: 1rem;
}

#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: 1rem;
  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;
}

.charlotte-publication {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* Apps */

/* Flex container for each app row */
.app-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2em;
  margin-bottom: 2em;
  flex-wrap: wrap;
}

.app-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 340px;
}

.app-col img {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin-bottom: 0.5em;
}

.app-col button {
  margin-top: 0.5em;
}

/****************************************/
/* 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;
  }

ul.publications {
  list-style-type: disc; /* Restores bullet points */
}

ul.publications ul {
  list-style-type: circle; /* Restores bullet points */
   margin-left: 20px; 
}

ul.publications li {
  padding-bottom: 8px;
}

/****************************************/
/* Terms */
#terms {
  margin-bottom: 2.6em;
}

/****************************************/
/* 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;
}

.contact {
  padding: 1.0em 0 1.0em 0;
  text-align: center;
}

.contact-img {
  padding-top: 1em;
}

.fax {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fax img {
  width: 20%;
  height: 20%;
}

footer {
  padding: 2vw;
  background-color: #101c32;
  display: flex;
  justify-content: left;
  align-items: center;
  flex-wrap: wrap;
}

footer .footer-col {
  padding: 1em 1em;
}

footer h3 {
  color: #fff;
  font-weight: 600;
  padding-bottom: 20px;
}

footer p {
  color: #666;
}

footer li {
  list-style: none;
  color: #bbb;
  padding: 1rem 0;
  cursor: pointer;
  transition: 0.3s ease;
}

footer li:hover {
  color: rgb(128, 255, 128);
}

footer a {
  text-decoration: none;
  color: #bbb;
}

footer a:hover {
  color: #fff;
}

.youtube-text {
  color: #bbb;
  margin-bottom: 0.9rem;
}

.youtube-text span {
  color: #88ffff;
}

.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: 925px) {
  nav {
    padding: 15px 20px;
  }
  nav img {
    width: 130px;
  }
/****************************************/
/* 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;
  }

  .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,
  .magazine-fig {
    flex: 100%;
    max-width: 100%;
  }

}

@media (max-width: 625px) {
  #media-photos {
    grid-template-columns: repeat(1, 1fr);
  }
  .photo-box p {
    font-size: 1.0em;
  }
  
}

@media (max-width: 475px) {
  .magazine h1 {
    font-size: 2em;
  }

  p {
    font-size: 1.2em;
  }

  .contact-img {
    width: 260px;
  }

  .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));
  }

}