*, html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* overflow-x: hidden; */
}

body { 
    font-family: 'Roboto', sans-serif; 
    /* background: #4d0026; */
    background-color: #202740;
    background-color: #1a1f33;
    background-color: #111522;
    color: #e5ebfa;
    width: 100vw;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #e5ebfa;
}

/* header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  z-index: -1;
  background-image: url("../images/stars8.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.4;
} */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  z-index: -1;
  background: url("../images/stars8.webp") center/cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  mask-repeat: no-repeat;
  mask-size: cover;
}

header .overlay {
  background: rgba(0, 0, 0, 0.5); /* adjust darkness */
}

header > img {
    opacity: 0.9;
  position: fixed;   /* or absolute, depending on your layout */
  position: relative;
  top: 0;
  left: 0;
  
  pointer-events: none; /* 👈 this makes it “transparent” to clicks/hover */
}


nav {
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navbar {
    padding: 3px;
    margin: 0;
    font-size: 0.8em;
    font-family: 'Jost';
    text-transform: uppercase;
}

#logo {
    height:60px;
    width: auto;
    padding-top: 0;
    margin-top: 0;
}

.navbar-toggler {
    padding: 0 5px;
}

.navbar-toggler-icon {
    width: 0.8em;
}

.dropdown-item {
    font-family: 'Jost';
    font-size: 0.8em;
}

.form-control {
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    /* width: 80px; */
}

#navbar-search-btn {
    font-size: 0.9em;
    font-family: 'Jost';
    text-transform: uppercase;;
    padding: 0 0.8em;
}

main {
  width: 100vw;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  padding-top: 70px; /* adjust to navbar height */
}

#intro {
    display: flex;
    flex-direction: column;
    width: 90%;
}

#content {
    display: flex;
    flex-direction: column;
    width: 90%;    
}

#sources {
    display: flex;
    flex-direction: column;
    width: 90%;    
}

#sources > ul {
    list-style-type: none;
}

.no-bullets {
  list-style-type: none;    
}

a {
    font-family: 'Roboto', sans-serif; 
    color: #a9a9a9;
    color: lavender;
    font-weight: 500;
    text-decoration: none;
}

a:visited {
    text-decoration: none;
    
}

a:hover {
    font-weight: 500;
    background-color: #D8D8D8;
    background-color: #e5ebfa;
    color: #8A8A8A;
    color:#0B1E3D;
}

a:active {
    text-decoration: none;
}

footer {
    background-color: #0B1E3D;
    color: ghostwhite;
}

footer > p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
}

.copyright {
    width: 80%;
}

.disclaimer {
    width: 80%;
}

#footer-logo {
    width: 60px;
    height: auto;
}


/*-----------------------------------------------------------------*/

#btn-back-to-top {
  position: fixed !important;
  /* bottom: 20px !important; */
  bottom: calc(20px + env(safe-area-inset-bottom)) !important;
  right: 20px;
  display: none; /* Hidden by default */
  width: 40px;
  height: 40px;
  font-size: 1rem;
  font-weight: 900;
  z-index: 1099;
  background-image: url('/images/book-ad-bg.jpg') no-repeat center center / cover;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 25%;
  transition: all 0.2s ease-in-out;
}

#btn-back-to-top:hover {
  transform: scale(1.1) translateY(-5px);
  color: #d8d8d8;
}
/*-----------------------------------------------------------------*/

@media (min-width: 480px) {
    header {
        height: 310px;
    }
    footer > p {
        font-size: 1em;   
    }

    #footer-logo {
        width: 60px;
    }
}

@media (min-width: 576px) {
    header {
        height: 320px;
    }
    #intro, #content, #sources {
        width: 85%;
    }
    .copyright, .disclaimer {
        width: 80%;
    }
    footer > p {
        font-size: 1em;   
    }

    #footer-logo {
        width: 60px;
    }
}

@media (min-width: 768px) {
    header {
        height: 330px;
    }
    #intro, #content, #sources {
        width: 80%;
    }
    .copyright, .disclaimer {
        width: 70%;
    }
    footer > p {
        font-size: 0.7em;   
    }

    #footer-logo {
        width: 60px;
    }
}

@media (min-width: 1024px) {
    header {
        height: 330px;
    }
    #intro, #content, #sources {
        width: 70%;
    }
    .copyright, .disclaimer {
        width: 60%;
    }
    footer > P {
        font-size: 0.7em; 
    }

    #footer-logo {
        width: 60px;
    }
}