/* Root variables */
:root {
  --nav-highlight-color: #1f0045; /* Replace with your desired highlight color */
}

/* 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;
}

.firstparagraph {
  padding-top: 60px;
}

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

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

h2 {
  padding-left: 10px;
}

/* End of about page styles */

/* 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; /* Adjust this value to suit your needs */
    object-fit: cover; /* This will help maintain the aspect ratio */
    margin: auto; /* This centers the image horizontally. */
  }
}

/* Body styles */

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

/* Background images */

.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;
}

/* Navigation bar (black bar) */

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #100018;
  top: 0;
  width: 100%;
  position: fixed;
  text-decoration: none;
}

/* List items in navigation */

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 styling */

.title {
  position: relative;
  top: 10px;
  left: 55px;
  padding-right: 150px;
  font-family: anisette-petite, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 25px;
  color: white;
  list-style-type: none;
}

/* Narration text */

.text-01 {
  color: white;
  font-size: 40px;
  position: relative;
  top: 700px;
}

/* Grid containers */

.grid-container01 {
  display: grid;
  grid-template-columns: auto;
  background-color: #16051f;
}

.grid-container03 {
  display: grid;
  background-color: #16051f;
}

.grid-container-single {
  display: grid;
  grid-template-columns: auto auto;
}

.grid-container01-temp {
  display: grid;
  grid-template-columns: auto;
}

.grid-container01top {
  display: grid;
  grid-template-columns: auto;
  padding-top: 71px;
  background-color: #16051f;
}

.grid-container01top-transparent {
  display: grid;
  grid-template-columns: auto auto;
  padding-top: 71px;
}

.grid-container01-transparent {
  display: grid;
  grid-template-columns: auto auto;
}

.grid-container02 {
  display: grid;
  grid-template-columns: auto auto;
  background-color: #16051f;
}

.grid-container02top {
  display: grid;
  grid-template-columns: auto auto;
  padding-top: 71px;
  background-color: #16051f;
}

.grid-container-bkg {
  position: relative;
}

/* Lines between images */

.grid-item {
  background-color: rgba(0, 0, 0, 0);
  border: 0px 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;
  justify-content: space-between; /* Adjust spacing between items */
  padding: 10px 20px;
  box-sizing: border-box;
  margin-top: 20px;
}

.navigation a.navBack,
.navigation a.navForward {
  font-size: 100px;
  font-family: mr-eaves-xl-modern, sans-serif;
  font-weight: 900;
  color: white;
  text-decoration: none;
  background-color: transparent;
  padding: 10px;
  border-radius: 5px;
  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; /* Ensure the text color remains readable */
}

.navigation .pageNumberBottom {
  flex-grow: 1;
  text-align: center;
  font-family: mr-eaves-xl-modern, sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: white;
}

/* Optional: Add focus styles for accessibility */

.navigation a.navBack:focus,
.navigation a.navForward:focus {
  outline: 2px solid var(--nav-highlight-color);
  outline-offset: 4px;
}

/* End navigation at the Bottom */

/* Menu styles */

.menu {
  display: inline-block;
  position: relative;
  right: 200px;
  bottom: 7px;
  cursor: pointer;
  padding: 5px;
  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;
}

/* Menu Animation */

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

.change .bar2 {
  opacity: 0;
}

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

/* End menu Animation */

/* Menu Dropdown */

.pageNumberText {
  position: relative;
}

.dropdown-content {
  display: none;
  position: fixed;
  top: 71px; /* Adjusted to match navbar height */
  left: 0;
  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;
}

.dropdown-content a {
  color: white;
  text-decoration: none;
}

.menuText {
  padding: 12px 16px;
  font-family: mr-eaves-xl-modern, sans-serif;
  font-weight: 400;
  font-size: 23px;
}

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

/* End menu Dropdown */

/* Additional Responsive Adjustments */

@media (min-width: 768px) {
  .container {
    max-width: 700px; /* Adjust this width as needed */
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 48px;
  }

  .hero p {
    font-size: 20px;
  }

  .cta-button {
    font-size: 20px;
  }
}

/* End additional Responsive Adjustments */

/* Language Toggle Button */
/* Added from amate.casa CSS */

.language-toggle {
  position: fixed;
  top: 15px; /* Adjust to align with your layout */
  right: 20px; /* Keep it in the top-right corner */
  z-index: 1000; /* Ensure it appears above other elements */
}

.language-toggle img {
  width: 180px; /* Default size for larger screens */
  height: auto; /* Maintain aspect ratio */
  cursor: pointer; /* Indicate interactivity */
  opacity: 1; /* Full opacity */
  filter: saturate(1); /* Full saturation */
  transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth hover effects */
}

.language-toggle img:hover {
  transform: scale(1.1); /* Slight enlargement on hover */
  opacity: 0.8; /* Slight transparency on hover */
}

/* Adjust for smaller screens */

@media (max-width: 768px) {
  .language-toggle img {
    width: 150px; /* Smaller size for tablets and small screens */
  }
  .language-toggle {
    top: 15px; /* Adjust position to align better on small devices */
    right: 15px; /* Slightly closer to the right edge */
  }
}

@media (max-width: 480px) {
  .language-toggle img {
    width: 150px; /* Even smaller size for very small screens */
  }
  .language-toggle {
    top: 15px; /* Adjust position to align better on small devices */
    right: 15px; /* Slightly closer to the right edge */
  }
}

/* End Language Toggle Button */

/* Additional styles (if any) */

/* Responsive Adjustments for Navigation (optional) */

@media (max-width: 600px) {
  .navigation a.navBack,
  .navigation a.navForward {
    font-size: 60px;
    padding: 8px;
  }
  .navigation .pageNumberBottom {
    font-size: 18px;
  }
}

/* Ensure images in the language toggle are not affected by global image styles */

.language-toggle img {
  width: 180px !important;
  height: auto !important;
}