/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: transparent;
    color: #000;
    padding: 5px 0;
}



.logo {
    
    padding: 5px;
 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
   
    height: 50%;
  
    display: flex;
    align-items: center;
}

.logo .elephant {
    width: 55px;
    height: auto;
    margin-left: 5px;
}
.small-text {
    font-size: 20px; /* Change the size as needed */
    padding: 5px;
  }
nav {
    margin-left: auto;
}

nav ul.desktop-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul.desktop-menu li {
    margin-left: 55px;
}

nav ul.desktop-menu li a {
    color: #000;
    text-decoration: none;
    padding: 5px 10px;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Staatliches', Arial, sans-serif; /* Apply the Staatliches font */
}

.container, .containerPoaching{
    width: 80%;
    margin: auto;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Staatliches', Arial, sans-serif; /* Apply the Staatliches font */
}

.container0{
    width: 80%;
    height: 80px;
    margin: auto;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Staatliches', Arial, sans-serif; /* Apply the Staatliches font */
}



.mobile-menu-toggle {
    display: flex; /* Display flex to arrange bars horizontally */
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px; /* Adjust padding as needed */
    position: absolute;
    right: -20px; /* Adjust the right position */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for vertical centering */
}

.mobile-menu-toggle .bar {
    display: none; /* Inline-block to keep elements in a line */
    width: 25px; /* Width of each bar */
    height: 3px; /* Height of each bar */
    background-color: #000; /* Color of each bar */
    margin-right: 5px; /* Spacing between bars */
}

.mobile-menu-toggle .bar:last-child {
    margin-right: 0; /* Remove margin from the last bar */
}




.mobile-menu {
    display: none; /* Hide the mobile menu initially */
    list-style: none;
    margin: 0;
    padding: 10px 0;
    background-color: #f4f4f4;
    position: absolute;
    top: 60px; /* Adjust as needed */
    right: 0;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 10; /* Ensure the menu appears above other content */
}

.mobile-menu li {
    text-align: center;
    margin-bottom: 10px;
}

.mobile-menu li a {
    color: #000;
    text-decoration: none;
    padding: 5px 10px;
    display: block;
}

/* Media query for mobile */
@media screen and (max-width: 480px) {
    .desktop-menu {
        display: block; /* Hide the desktop menu on small screens */
        opacity: 0;
    }
    
    .container0 {
        display: flex; /* Use flexbox for better alignment control */
        justify-content: flex-start; /* Adjust alignment for smaller screens */
        width: 100%; /* Ensure container uses full width of the screen */
        padding: 0 10px; /* Add some padding to prevent overflow */
    }
    
    .mobile-menu-toggle {
        display: flex; /* Show the mobile menu toggle button on small screens */
        justify-content: center;
        align-items: center;
        background: #ccc;
        height: 35px; /* Maintain button size for better usability */
        width: 35px; /* Ensure toggle size is fixed */
        cursor: pointer;
        position: relative;
        z-index: 100; /* Ensure the toggle button is above other content */
    }
    
    .mobile-menu-toggle .bar {
        display: inline-block; /* Inline-block to keep elements in a line */
        width: 25px; /* Width of each bar */
        height: 15px; /* Height of each bar */
        background-color: #000; /* Color of each bar */
        margin-right: 5px; /* Spacing between bars */
    }
    
    .mobile-menu {
        display: none; /* Hide the mobile menu on small screens initially */
        position: absolute;
        top: 60px; /* Adjust as needed */
        right: 10px; /* Make sure it's within the viewport */
        width: 100%; /* Set width to 100% to avoid overflow */
        max-width: 200px; /* Limit max width */
        background-color: #f4f4f4;
        z-index: 10; /* Ensure the menu appears above other content */
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Smooth transition for visibility */
        opacity: 0;
        transform: translateY(-10px); /* Start slightly above to slide down */
    }
    
    .mobile-menu.active {
        display: block; /* Show the mobile menu when active */
        opacity: 1;
        transform: translateY(0); /* Slide down to its position */
    }
    
    .mobile-menu li {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .mobile-menu li a {
        display: block;
        padding: 10px;
        color: #000;
        text-decoration: none;
    }
}


.poaching {
    margin-left: 300px;
    position: absolute;
}

/* Additional CSS */
header h1 {
    margin: 0;
    display: flex;
    align-items: center;
    background-color: #6b8e23; /* Swamp green background */
    padding: 10px; /* Add some padding for spacing */
    border-radius: 5px; /* Optional: Add rounded corners */
    font-family: 'Staatliches', Arial, sans-serif; /* Apply the Staatliches font */
}

header h1 .elephant {
    width: 30px;
    height: auto;
    margin: 0 10px;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    padding: 5px 10px;
    position: relative;
}

nav ul li a:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ccc; /* Gray background color */
    z-index: -1; /* Ensure the background appears behind the text */
}

.hero {
    background: #f4f4f4;
    padding: 20px 0;
    text-align: center;
}

.hero h2 {
    margin: 0;
    font-family: 'Staatliches', Arial, sans-serif; /* Apply the Staatliches font */
}

.carousel {
    position: relative;
    margin: 20px auto;
    max-width: 800px;
}

.carousel-inner {
    display: flex;
    overflow: hidden;
    position: relative;
}

.carousel-item {
    min-width: 100%;
    transition: opacity 0.5s ease;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-item.active {
    opacity: 1;
    position: relative;
}

.carousel-item img {
    width: 100%;
    border: 2px solid #333;
}

.carousel-control-prev, .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.content {
    padding: 20px 0;
}

.content h2 {
    text-align: center;
    font-family: 'Staatliches', Arial, sans-serif; /* Apply the Staatliches font */
}

.link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    color: #6b8e23;
    font-family: 'Staatliches', Arial, sans-serif; /* Apply the Staatliches font */
    font-size: 15px;
}

.link:hover {
    text-decoration: underline; /* Add underline on hover if desired */ 
}

footer {
    background-color: #6b8e23;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form label, form input, form button {
    margin: 5px 0;
}

.photo-deck .carousel-item {
    /* Styles specific to the carousel items within the photo-deck section */
    min-width: 100%;
    transition: opacity 0.5s ease;
    opacity: 1; /* Set opacity to 1 initially to ensure images are visible */
    position: relative; /* Use relative positioning */
    top: auto; /* Reset top property */
    left: auto; /* Reset left property */
}

.photo-deck .carousel-item.active {
    opacity: 1; /* Ensure active images are visible */
}

.photo-deck .carousel-item img {
    width: 100%;
    border: 2px solid #333;
}

.photo-deck {
    position: relative; /* Ensure proper positioning of the carousel and the gray box */
}

.gallery-heading-container {
    word-spacing: 20px;
    font-family: 'Staatliches', Arial, sans-serif; /* Apply the Staatliches font */
    width: 100%; /* Extend the width to match the carousel */
    text-align: center; /* Center the text horizontally */
    background-color: #f4f4f4; /* Gray background color */
    padding: 10px; /* Add padding for spacing inside the gray box */
    border-radius: 5px; /* Optional: Add rounded corners */
    position: flex; /* Position relative to the photo-deck container */
    bottom: 0; /* Position the gray box at the bottom */
    left: 0; /* Align the gray box to the left */
    margin-bottom: 10px;
}

/* Additional Content Section */
#additional-content {
    padding: 40px 0;
    background-color: #e9e9e9;
}

/* Desktop styles for map and surrounding boxes */
.map {
    display: block;
    margin: 20px auto;
    max-width: 2000px;
    height: 2000px;
    border: 2px solid #333;
}

.map-key-info-container {
    position: relative;
}

.MonthYear-box {
    width: 100px;
    height: 30px;
    font-size: 25px;
    border-radius: 5px;
    font-family: 'Staatliches', Arial, sans-serif;
    position: absolute;
    left: 70px;
    top: -70px;
}

.key-box {
    width: 200px;
    height: 200px;
    padding: 10px;
    font-family: 'Staatliches', Arial, sans-serif;
    font-size: 30px;
    position: absolute;
    left: 150px;
    top: 150px;
}

.key-box img {
    width: 100%; /* Adjust width of the image */
    height: auto; /* Maintain aspect ratio */
}

.info-boxes-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 30px;
    right: 150px;
}

.info-box {
    width: 200px;
    height: auto;
    font-family: 'Staatliches', Arial, sans-serif;
    font-size: 25px;
    background-color: white;
    border: 1px solid black;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.smaller-text, .smaller-text2 {
    font-size: 25px;
    position: relative;
}

/* Mobile styles for map and surrounding boxes */
@media (max-width: 1284px) {
    .map {
        width: 100%;
        height: auto;
    }
    
    .MonthYear-box, .key-box, .info-boxes-container {
        position: static;
        margin: 10px auto;
        width: 100%;
        text-align: center;
    }
    
    .key-box {
        width: 90%;
        height: auto;
        margin: 10px 0;
    }
    
    .info-boxes-container {
        flex-direction: column;
        align-items: center;
    }
    
    .info-box {
        width: 90%;
        height: auto;
        margin: 10px 0;
    }
}

/* Adjustments for take action links section */
#take-action-links .container1 {
    text-align: center;
    margin-top: 20px; /* Adjust the top margin as needed */
}

#take-action-links .image-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

#take-action-links .image-links a {
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px; /* Adjust width if necessary */
}

#take-action-links .image-links img {
    width: 100%;
    height: auto;
    border: 2px solid #333;
}

#take-action-links .image-links p {
    margin-top: 10px;
    font-family: Arial, sans-serif;
    text-align: center;
}

/* Mobile styles for take action links section */
@media (max-width: 1284px) {
    #take-action-links .image-links {
        flex-direction: column;
        align-items: center;
    }

    #take-action-links .image-links a {
        width: 90%; /* Adjust width for mobile view */
        margin: 10px 0; /* Adjust margin for mobile view */
    }
}

/* Mobile styles for take action links section */
@media (max-width: 1284px) {
    #Poaching .containerPoaching {
        flex-direction: column;
        align-items: center;
    }

    #Poaching .containerPoaching a {
        width: 90%; /* Adjust width for mobile view */
        margin: 10px 0; /* Adjust margin for mobile view */
    }

    .poaching {
        display: none;
    }

    .containerPoaching {
        position: relative;
       
        background-size: cover; /* Ensure the background image covers the full section */
        background-position: center; /* Center the background image */
        display: flex;
        justify-content: center; /* Center the text horizontally */
        align-items: center; /* Center the text vertically */
        text-align: center; /* Center the text inside the container */
        padding: 30px 10px; /* Optional: Adds padding around the content */
    }

    /* Specific background images for each container */
    #elephants {
        background-image: url('ForestElephant.jpg'); /* Replace with your image */
        background-size: 100%; /* Ensures the image covers the entire background */
        margin-bottom: 20px ;
    }

    #national-parks {
        background-image: url('Benoue.jpeg'); /* Replace with your image */
        margin-bottom: 20px ;
    }

    #anglophone {
        background-image: url('CamMil.jpeg'); /* Replace with your image */
        margin-bottom: 20px ;
    }

    #trafficking {
        background-image: url('TrafficMap.png'); /* Replace with your image */
        margin-bottom: 20px ;
    }

    #projects {
        background-image: url('MonkSad.jpeg'); /* Replace with your image */
         margin-bottom: 20px ;
    }

    #resources {
        background-image: url('resources.jpg'); /* Replace with your image */
    }

      #front {
        background-image: url('MtCamProject.jpg'); /* Replace with your image */
         margin-top: 20px ;
          margin-bottom: 20px ;
           width: 90%; /* Adjust width for mobile view */
        margin: 100px 100; /* Adjust margin for mobile view */
    }



    #elephants h2 {
        color: #ffffff; /* Blue for Anglophone */
        font-size: 35px;
        background: rgb(0, 0, 0);
           display: inline-block; /* shrink box to fit words */
       padding: 0.2em 0.4em;  /* tight padding around text */
    }

    #projects h2 {
        color: #ffffff; /* Blue for Anglophone */
        font-size: 35px;
        background: rgb(0, 0, 0);
           display: inline-block; /* shrink box to fit words */
      padding: 0.2em 0.4em;  /* tight padding around text */
    }

    #trafficking h2 {
        color: #ffffff; /* Blue for Anglophone */
        font-size: 35px;
        background: rgb(0, 0, 0);
           display: inline-block; /* shrink box to fit words */
      padding: 0.2em 0.4em;  /* tight padding around text */
    }

    #anglophone h2 {
        color: #ffffff; /* Blue for Anglophone */
        font-size: 35px;
        background: rgb(0, 0, 0);
           display: inline-block; /* shrink box to fit words */
       padding: 0.2em 0.4em;  /* tight padding around text */
    }

    #resources h2 {
        color: #ffffff; /* Blue for Anglophone */
        font-size: 35px;
        background: rgb(0, 0, 0);
         display: inline-block; /* shrink box to fit words */
       padding: 0.2em 0.4em;  /* tight padding around text */
        
    }

    #national-parks h2 {
        color: #ffffff; /* Blue for Anglophone */
        font-size: 35px;
    }

    

    
}

.hero h2 {
    font-size: 24px;
}

.link {
    font-size: 14px;
}

a {
    text-decoration: none; /* Removes underline */
    color: inherit; /* Inherits the color from the surrounding text */
}

a:hover {
    color: inherit; /* Keeps the color consistent on hover */
}

.image-container.side-by-side {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.image-with-caption {
  position: relative;
  flex: 1;
  max-width: 48%;
}

.image-with-caption img {
  width: 100%;
  height: auto;
  display: block;
  
  object-fit: cover;
}

/* Centered overlay caption */
.caption {
    font-size: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;

  /* Ensure it appears above the image */
  z-index: 1;

  /* Optional: prevent line wrapping */
  white-space: nowrap;
}

@media (max-width: 768px) {
  .caption {
    font-size: 8px;
    padding: 8px 14px;
  }
}






