/* ===========================
   General Styles
   =========================== */
html, body {
  height: 100%;
  font-size: 100%;
}

body {
  font-family: "Nunito Sans",  sans-serif;
  font-size: 17px; 
  line-height: 25px;
  color: #333; 
  margin: 20px;
  padding: 20px; 
  justify-content: center;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  font-variant-numeric: proportional-nums;
  box-sizing: border-box; 
}

:root {
--measure: 65ch;
}

nav#navbar.custom-navbar li a{
  color: white !important;
}

div[class^="lg-backdrop"]{
background-color:#bab9b3; 
}

a :link{
color:white;}
#hover-text{
font-size:17px;
line-height:25px;
font-family: "Nunito Sans",  sans-serif;
}

h1 {
  box-sizing: border-box;
  color: #FFFFFF;
  font-family: "Nunito Sans", sans-serif;
  font-size: 40px;
  font-weight: normal;
  line-height: 42px;
  text-align: center;
  text-transform: uppercase;
  background-color: #003361; 
  letter-spacing: 1.5px;
  padding: 20px;
}

h2 {
  box-sizing: border-box;
  color: #000000;
  font-family: "Nunito Sans", sans-serif;
  font-size: 50px;
  font-weight: 500;
  line-height: 65px;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

p {
  box-sizing: border-box;
  color: #333;
  font-family: "Nunito Sans", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 27.2px;
  text-align: left;
  letter-spacing: normal;
  margin-bottom: 30px;
  word-wrap: break-word;
  overflow-wrap: normal;
  text-wrap: pretty;
  hyphens: manual;
}

.text-wrapper{
bottom:65px;
}

.text-wrapper-text{
font-size: 20px;
line-height:25px;
}

/* ===========================
   Quote Styles
   =========================== */
.quote {
  box-sizing: border-box;
  color: #252839;
  font-family: "Libre Bodoni", serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  line-height: 30px;
  text-align: left;
  margin: 15px 0;
}
.title-credits{
font-size:15px;
color:#6D7C99;
font-weight: 500;
line-height: 22.5px;
}

/* ===========================
   Flexbox Layouts
   =========================== */
.flex-box {
  display: flex;
  justify-content: space-between; 
  align-items: flex-start;
  gap: 10px;
}

.flex-box-div {
  flex: 1; 
  padding: 5px;
  box-sizing: border-box; 
  word-wrap: break-word; 
  overflow-wrap: break-word; 
}

.flex-box-div.left {
  text-align: left;
}

.flex-box-div.right {
  text-align: right; 
}

.flex-box-div label img {
max-width: 100%;
height: auto;
display: block;
}

/* ===========================
   Image Styles
   =========================== */
img {
  max-width: 100%; /* Ensure the image scales properly */
  height: auto; /* Maintain aspect ratio */
}

.image-container {
  display: flex;
  flex-direction: column; /* Stack the image and credits vertically */
  align-items: center; /* Center the image and credits horizontally */
  text-align: center;
}

.image-container img {
  max-width: 100%;
  height: auto;
  width: 400px;
  margin: 10px 0;
}
/*
.image-credits {
  box-sizing: border-box;
  position: static;
  color: black;
  font-family: "Nunito Sans", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 27.2px;
  text-align: left; 
  background-color: #FFFFFF; 
  margin: 0 10px 30px;


  max-width: 100px;
  min-width: 300px;
}*/

.image-wrapper.has-circle img {
  border-radius: 50%;
  width: 350px;
  height: 350px;
  object-fit: cover;
}

.custom-breadcrumbs {
font-size: 20px;
line-height:25px;
display: flex;
color: white !important;
}

.custom-navbar {
font-size: 20px;
line-height:25px;
color: white !important;
}

/* ===========================
   Highlight Box
   =========================== */
.highlight-box {
  display: flex; 
  flex-direction: column; /* Stacks the image and text vertically */
  align-items: center; /* Centers the image and text horizontally */
  justify-content: center; /* Centers the image and text vertically */
  text-align: center; 
  width: 500px; 
  height: 500px; 
  border-radius: 2px; /* Optional: Adds rounded corners to the box */
  background-color: #003361; 
  padding: 10px; /* Optional: Adds some padding inside the box */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow */
}

.highlight-box a {
  display: block;
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  color: #003361;
}

.highlight-box a:hover {
  text-decoration: underline;
}

/* ===========================
   Chapter Styles
   =========================== */
.contents-title {
  box-sizing: border-box;
  color: #C7C68F;
  font-family: "Nunito Sans", sans-serif;
  font-size: 3.2rem; 
  font-weight: regular; 
  line-height: 10.5px; 
  letter-spacing: -0.5px;
  text-align: center;
  text-transform: uppercase;
  padding: 20px;
  margin: auto;
}

.row-title {
  background-color: #003361;
  box-sizing: border-box;
  color: #FFFFFF;
  font-family: "Nunito Sans", sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 31.2px;
  margin-bottom: 37px;
  text-align: center;
}

.chapter-link {
  box-sizing: border-box;
  color: #333333;
  font-family: "Nunito Sans", sans-serif;
  font-size: 19px;
  font-weight: 300;
  line-height: 28.5px;
  text-align: center;
  text-decoration: none;
  display: block;
  margin-top: 20px;
}

.chapter-link:hover {
  color: #003361; /* Dark blue on hover */
  text-decoration: underline;
}

.chapter-wrapper .row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background-color: #003361; 
  padding: 15px; 
  border-radius: 10px; 
  color: #FFFFFF; 
}

.chapter-item {
  text-align: justify;
}

.chapter-item .row-title a {
  color: #FFFFFF;
  font-size: 26px; 
  text-decoration: none;
}

.chapter-item .row-title a:hover {
  text-decoration: underline;
}

.chapter-number {
  font-size: 26px; 
  margin-right: 10px;
}

/* ===========================
   Banner Styles
   =========================== */
.banner-background {
 position: relative;
  background: linear-gradient(18.17deg, rgba(0, 51, 97, 0.37) 27.11%, rgba(0, 51, 97, 0) 70.2%), 
              url("https://upload.wikimedia.org/wikipedia/commons/5/5b/Heinrich_Scherer%2C_Typus_Totius_Orbis_Terraquei_Geographice_Delineatus%2C_Et_Ad_Usum_Globo_Materiali_Superinducendus.jpg") center;
  background-size: cover;
  position: relative;
  text-align: center;
  padding: 20px;
}

.banner-headline-container {
  display: block; 
  margin-bottom: 15px;
  font-size: 3.5rem;
  font-weight: regular;
}

.banner-headline {
  font-size: 3.5rem;
  font-weight: regular;
  margin: 0;
  font-family: 'Nunito Sans', sans-serif;
  text-align: center;
}

.banner-subline {
  font-size: 3.2rem; 
  font-weight: normal;
  margin-top: 15px;
  font-family: 'Nunito Sans', sans-serif;
  vertical-align: text-bottom;
}

/* ===========================
   Responsive Styles
   =========================== */
@media screen and (min-width: 800px) {
  #mobile-banner-text-container {
    display: none;
  }
}

@media screen and (max-width: 800px) {
  #mobile-banner-text-container {
    display: block;
    text-align: center;
    padding: 5vh 0;
  }
}

@media screen {
  .item-showcase .resource.item {
    vertical-align: top;
    margin-bottom: -1px;
    width: 100%;
    clear: none;
    padding: 35px .5rem !important;
    border-bottom: .5px solid #003361;
  }
  .item-showcase .resource.item h3 {
    clear: left;
    font-size: 1rem;
    line-height: 1.5rem;
    margin: .5rem 0 0;
  }
  .item-showcase .resource.item img {
    max-height: 7rem;
    width: auto;
    float: none;
    margin-right: 0;
    vertical-align: top;
    background: rgba(0, 51, 97, 0.6);
  }
}

/* ===========================
   Utility Classes
   =========================== */
.margin-top-bottom {
  margin: 100px 0px;
}

.image-text-container {
  display: flex;
  align-items: center; /* Vertically center the image and text */
  gap: 10px; /* Add some space between the image and text */
}

.image-left {
  max-width: 100%; 
  height: auto; 
  width: 55%;
}

.text-right {
  color: #003361; 
  font-size: 1.9em; 
  text-align: center; 
}

/* ===========================
   Button Styles
   =========================== */
button.image-credits {
 max-width:auto;
  width: 1.5em;
  height:1.5em;
  color: white;
  border: none;
  padding: 5.5px;
  font-size: 12px; 
  font-weight: 900; 
  line-height: 15px;
  cursor:  pointer;
  margin: 0; 
  position: absolute; 
  right: 0px;
  bottom: 0px;
  border-radius: 0;
  text-rendering: auto;
  vertical-align: top;
  display: flex;
  align-items: center;
  justify-content: center;
}

button.image-credits:hover {
  background-color: #002244; 
}
