/* Add a background color or image to the body */
body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

nav {
  background-color: #fff; /* Change to white */
  color: #333;
  padding: 10px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

.nav-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-header {
  display: flex;
  align-items: center;
}

.nav-header img {
  height: 50px;
  margin-right: 20px;
}

.nav-text {
  display: flex;
  flex-direction: column;
}

.nav-text h1 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
}

.nav-text h2 {
  font-size: 1em;
  font-weight: normal;
  margin: 0;
  color: #653819; /* Lighter gray color for contrast */
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px; /* Add space between the menu items */
  margin-top: 10px; /* Add some space between the text and the menu */
  padding-left: 0; /* Align to the left */
}

.menu li {
  display: inline; /* Display menu items in a row */
}

.menu a {
  color: #333; /* Change to dark color */
  text-decoration: none;
  padding: 10px 20px;
  transition: background-color 0.3s;
  text-align: left; /* Left align the text */
}

.menu a:hover {
  background-color: #f4f4f4;
  border-radius: 5px;
}

.menu > li:hover .dropdown-menu {
  display: block;
}


/* Style for dropdown menu */
.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.menu > li {
  position: relative;
  margin: 0; /* Remove any extra margin */
  padding: 0; /* Remove any extra padding */
}

.menu > li > a {
  text-decoration: none;
  padding: 10px 20px; /* Adjust padding for consistent spacing */
  display: block;
  color: #000;
  text-align: center; /* Center-align text */
}

.menu > li:hover .dropdown-menu {
  display: block;
  opacity: 1; /* Make it fully visible */
  transform: translateY(0); /* Reset the position */
}

.dropdown-menu {
  display: block; /* Keep it block for animation purposes */
  opacity: 0; /* Start as invisible */
  transform: translateY(-10px); /* Start slightly above */
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  background: linear-gradient(135deg, #f9f9f9, #e6e6e6); /* Gradient background */
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  z-index: 1000;
  transition: opacity .8s ease, transform 0.5s ease; /* Smooth transition */
  pointer-events: none; /* Prevent interaction when hidden */
}

.menu > li:hover .dropdown-menu {
  pointer-events: auto; /* Enable interaction when visible */
}

.dropdown-menu li {
  width: 200px;
  border-bottom: 1px solid #ddd; /* Add dividers between items */
}

.dropdown-menu li a {
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  color: #333;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #ccc;
}


/* Style the welcome message */
.welcome-msg {
  text-align: left; /* Keep the text aligned to the left */
  margin: 0px 0; /* Add vertical spacing */
  padding-left: 100000px; /* Move the message slightly to the right */
  color: #333; /* Optional: Adjust text color */
  padding: 100px 0;
  background: url('images/elmorro.jpg') no-repeat  center;
  background-size: cover;
  color: #fff;
}

.welcome-msg h1 {
  font-size: 6em;
  padding-top: 30px;
  padding-left: 130px;
  color: #fff;
}

/* Style the banner */
.banner-div {
  text-align: center;
  margin: 200px 0;
}

.banner-div img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 500px; /* Increase the height of the image */
  object-fit: cover; /* Ensure the image scales proportionally */
}

.image-credit {
  display: block;
  margin-top: 10px;
  font-size: 0.9em;
  color: #666;
}

.image-credit a {
  color: #007BFF;
  text-decoration: none;
}

.image-credit a:hover {
  text-decoration: underline;
}

/* Style the welcome message */
.welcome-message {
  text-align: center;
  margin: 80px auto; /* Increase the vertical margin */
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 10000px; /* Set a fixed width */
}

.welcome-message p {
  font-size: 1.7em;
  color: #333;
  margin: 100px 100px;
}

.welcome-message p:first-of-type {
  font-size: 2em; /* Make the text larger */
  font-weight: bold; /* Make the text bold */
}

.box p:first-of-type {
  font-weight: bold; /* Make the first paragraph bold */
}

/* Enhance the footer */
footer {
  background-color: #653819; /* Change to white */
  color: #fff;
  text-align: center;
  padding: 20px 0;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
  margin-top: auto;
  width: 100%;
}

/* Responsive Design  */
/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Devices (max-width: 768px) */
@media screen and (max-width: 768px) {
  .nav-main {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }

  .nav-header {
    flex-direction: row;
    text-align: left;
    margin-bottom: 0;
  }

  .nav-header img {
    height: 40px;
    margin-right: 15px;
    margin-bottom: 0;
  }

  .nav-text h1 {
    font-size: 1.1em;
  }

  .nav-text h2 {
    font-size: 0.8em;
  }

  .hamburger {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding: 80px 0 20px 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .menu.active {
    right: 0;
  }

  .menu > li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .menu > li > a {
    padding: 15px 20px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    display: block;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f9f9f9;
    display: none;
    pointer-events: auto;
  }

  .menu > li:hover .dropdown-menu,
  .menu > li.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li {
    width: 100%;
    border-bottom: 1px solid #ddd;
  }

  .dropdown-menu li a {
    padding: 12px 30px;
    font-size: 0.9em;
  }

  /* Overlay for mobile menu */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .menu-overlay.active {
    display: block;
  }

  .welcome-msg {
    padding: 50px 0;
    background-position: center;
    text-align: center;
    padding-left: 0;
  }

  .welcome-msg h1 {
    font-size: 2.5em;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
  }

  .banner-div {
    margin: 50px 0;
    padding: 0 10px;
  }

  .banner-div img {
    height: auto;
    max-height: 300px;
  }

  .welcome-message {
    margin: 40px 10px;
    padding: 15px;
    max-width: none;
  }

  .welcome-message p {
    font-size: 1.2em;
    margin: 20px 10px;
  }

  .welcome-message p:first-of-type {
    font-size: 1.4em;
  }
}

/* Tablet Devices (max-width: 1024px) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .nav-main {
    padding: 0 15px;
  }

  .nav-header img {
    height: 45px;
  }

  .menu {
    gap: 15px;
  }

  .menu > li > a {
    padding: 8px 15px;
    font-size: 0.95em;
  }

  .dropdown-menu li {
    width: 180px;
  }

  .welcome-msg h1 {
    font-size: 4em;
    padding-left: 80px;
  }

  .banner-div {
    margin: 100px 20px;
  }

  .welcome-message {
    margin: 60px 20px;
    max-width: none;
  }

  .welcome-message p {
    margin: 60px 50px;
    font-size: 1.5em;
  }
}

/* Large Desktop Devices (min-width: 1200px) */
@media screen and (min-width: 1200px) {
  .nav-main {
    max-width: 1400px;
  }

  .welcome-message {
    max-width: 1200px;
  }
}

