:root {
  --nav-highlight-color: #1f0045;
}

/* About page styles */
.about {
  background-color: #204258;
  color: #b29278;
  font-family: Arial, Helvetica, sans-serif;
}

.aboutimg {
  max-width: 50%;
  height: auto;
  margin-left: 0px;
}

.hp-link {
  color: #bebdaa;
  text-decoration: underline;
}

.position {
  color: #bebdaa;
}

@font-face {
  font-family: 'Roselia';
  src: url('../../../fonts/Roselia-Regular.eot');
  src: url('../../../fonts/Roselia-Regular.eot?#iefix') format('embedded-opentype'),
       url('../../../fonts/Roselia-Regular.woff2') format('woff2'),
       url('../../../fonts/Roselia-Regular.woff') format('woff'),
       url('../../../fonts/Roselia-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.firstparagraph {
  padding-top: 60px;
}

.topTitle {
  padding-top: 60px;
  padding-left: 10px;
}

.grid-container01top {
  padding-top: 70px;
}

p {
  padding-right: 10px;
  padding-left: 10px;
}

h2 {
  padding-left: 10px;
}

/* Grid item images */
.grid-item img {
  width: 100%;
  height: auto;
  margin-top: 0px;
  padding-top: 0px;
  max-width: 800px;
  object-fit: cover;
}

@media screen and (min-width: 768px) {
  .grid-item {
    display: flex;
    justify-content: center;
  }

  .grid-item img {
    width: 60%;
    max-width: 700px;
    object-fit: cover;
    margin: auto;
  }
}

body {
  background-color: #16051f;
  margin: 0;
}

.starsection {
  background-image: url('../../images/dev/page-004/stars.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.backgroundImage {
  background-image: url("../images/page-015/15-bkd.jpg");
  background-size: cover;
  margin: 0;
}

/* Overlay container for GIF */
.img-overlay-container {
  position: relative;
  display: inline-block;
}

/* Ensure that both images scale and remain centered together */
.img-overlay-container .under-img {
  display: block;
  width: 100%;
  height: auto;
}

.img-overlay-container .gif-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: auto;
  z-index: 10;
  pointer-events: none;
}

/* Navigation Menu */
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #100018;
  top: 0;
  width: 100%;
  position: fixed;
  text-decoration: none;
  z-index: 9999; /* Keep nav bar above everything */
}

li {
  float: left;
  position: relative;
  left: 1%;
  font-family: aw-conqueror-didot, serif;
  font-weight: 700;
  font-style: normal;
  font-size: 50px;
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 10px;
  text-decoration: none;
}

li a:hover {
  background-color: #1e032c;
}

/* Title */
.title {
  position: relative;
  top: 5px;  
  left: 52px;
  padding-right: 140px;
  font-family: 'Roselia', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 50px;
  color: white;
  list-style-type: none;
}

/* Lines between images */
.grid-item {
  background-color: rgba(0, 0, 0, 0);
  border: 0 solid rgba(0, 0, 0, 0);
  padding: 1px 2px 1px 2px;
  font-size: 1px;
}

/* Navigation at the Bottom */
.navigation {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative; 
  box-sizing: border-box;
  padding: 0 10px;
}

.navigation a.navBack {
  font-size: 100px;
  font-family: mr-eaves-xl-modern, sans-serif;
  font-weight: 900;
  color: white;
  text-decoration: none;
  margin-right: auto; 
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navigation a.navForward {
  font-size: 100px;
  font-family: mr-eaves-xl-modern, sans-serif;
  font-weight: 900;
  color: white;
  text-decoration: none;
  margin-left: auto; 
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navigation a.navBack:hover,
.navigation a.navForward:hover,
.navigation a.navBack:active,
.navigation a.navForward:active {
  background-color: var(--nav-highlight-color);
  color: white; 
  border-radius: 5px;
}

.firstPageNumber,
.lastPageNumber,
.pageNumberBottom {
  position: absolute; 
  left: 50%;          
  transform: translateX(-50%); 
  font-family: mr-eaves-xl-modern, sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: white;
}

.navContinued {
  font-size: 23px;
  font-family: anisette-petite, sans-serif;
  font-weight: normal;
  font-style: normal;
  color: white;
  margin-left: auto; 
  text-align: right;
  list-style: none; 
  padding-right: 20px; 
  max-width: calc(100% - 40px); 
  box-sizing: border-box; 
  white-space: nowrap; 
}

@media (max-width: 600px) {
  .navigation a.navBack,
  .navigation a.navForward {
    font-size: 80px;
  }

  .firstPageNumber,
  .lastPageNumber,
  .pageNumberBottom {
    font-size: 18px;
  }

  .navContinued {
    font-size: 20px;
    padding-right: 10px;
  }
}

/* MENU */
.menu {
  display: inline-block;
  position: relative;
  right: 195px;
  bottom: 0px;
  cursor: pointer;
  padding: 0px;
  background-color: #100018;
}

.bar1, .bar2, .bar3 { 
  width: 30px;
  height: 5px;
  background-color: white;
  margin: 6px 0;
  transition: 0.4s;
  position: relative; 
  top: 50%;
  transform: translateY(-50%);
}

.menuText {
  position: relative;
  padding-right: 20px;
  font-family: mr-eaves-xl-modern, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 23px;
  color: white;
}

.change .bar1 {
  transform: rotate(-45deg) translate(-9px, 6px);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: rotate(45deg) translate(-8px, -8px);
}

/* Menu dropdown */
.dropbtn {
  background-color: black;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.dropbtn:hover, .dropbtn:focus {
  background-color: black;
}

.dropdown-content a {
  color: white;
  padding: 12px 10px;
  text-decoration: none;
  display: block;
}

#select {
  color: #4b4b4b;
  padding: 12px 10px;
  text-decoration: none;
  display: block;
}

.pageNumberText a:hover {
  background-color: #272727;
}

.show {
  display: block;
}

.dropdown-content {
  display: none;
  position: fixed;
  top: 58px;
  left: 0px;
  background-color: #100018;
  min-width: 160px;
  overflow: auto;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.dropdown-content.show {
  display: block;
  opacity: 1;
}

.menuButton {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.menuButton.change {
  opacity: 0.3;
}

/* Footer Styles */
.footer {
  position: fixed;
  bottom: 10px;
  right: 15px;
  font-family: anisette-petite, sans-serif;
  font-size: 14px;
  color: #ffffff;
  opacity: 0.7;
  z-index: 1000; 
}

@media (max-width: 600px) {
  .footer {
    font-size: 12px;
    right: 10px;
    bottom: 5px;
  }
}

/* Language Toggle Button */
.language-toggle {
  position: fixed;
  top: 7px;
  right: 20px;
  z-index: 10000; /* Increased to ensure it's visible above nav */
}

.language-toggle img {
  width: 250px;
  height: auto;
  cursor: pointer;
  opacity: 1;
  filter: saturate(1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.language-toggle img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .language-toggle img {
    width: 200px;
  }
  .language-toggle {
    top: 13px;
    right: 0px;
  }
}

@media (max-width: 480px) {
  .language-toggle img {
    width: 200px;
  }
  .language-toggle {
    top: 13px;
    right: 0px;
  }
}