
/* endangeredAnimals.css */
h1 {
    background-image: url('leaf_background.jpg'); 
    background-size: cover; /*  background-size property as needed */
    background-position: top; /*  background-position property as needed */
    height: 90px; /* height of the header as needed */
    color: rgb(34, 80, 12); /* color for the header */
    text-align: center; /* Center align the text in the header */
    padding-top: 45px; /* padding to vertically center the text in the header */
    margin-top: auto;
    opacity: 1;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #4a8605;

}


h2 {
    padding-top: 10px;
    text-align: center;
    background-size: cover;
    text-align: center;
    margin-bottom: 25px;
    color: #e6f0ec;
}

h3 {
    padding-top: 10px;
    text-align: center;
    background-size: cover;
    text-align: center;
    margin-bottom: 25px;
    color: #e6f0ec;
}

p {
    padding-top: 5px;
    text-align: center;
    background-size: cover;
    text-align: center;
    margin-bottom: 25px;
    color: #e6f0ec;
}

#map-container {
    flex: 3; /* map container to take up 3/4 of the available space */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px; /* spacing between the map container and the other containers */
    position: relative;
    
}

#map {
    width: 85%;
    height: 700px;
    border: 8px solid #7c7e17;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    align-content: center;
    border-radius: 25px;
    padding: 20px;
    width: 1000px;
    height: 550px;
  }
    


/* Custom marker icon styles */
.animal-icon {
    background-color: #ff6161;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    text-align: center;
    line-height: 70px; /* Vertically center the content */
    font-weight: bold;
    color: #ffffff;
    cursor: pointer; /* Add a cursor pointer on hover */
    /* Add a transition for smooth animation */
    transition: transform 0.3s ease;
    z-index: 2;
}


/* Add any additional CSS styles here */

/* Add styling for the search container */
#search-container {
    text-align: center;
    margin: 20px auto;
}

#search-input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 5px;
}

#search-button {
    padding: 5px 10px;
    background-color: #0cec17;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}



/* Styling for the tooltip */
.leaflet-tooltip {
    background-color: #3b6921;
    border: 3px solid #83e216;
    padding: 5px;
    font-weight: bold;
    white-space: nowrap;
    color: #fff; /* Set text color to white */
    font-size: 20px; /* Adjust the font size as needed */
}


/* Hide the modal by default */
#animal-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0); /* Semi-transparent background overlay */
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(21, 41, 19);
    padding: 20px;
    border-radius: 5px;
    z-index: 1000; /* Ensure modal appears above the map */
}

/* Style the close button */
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #f0f0f0;
}

.modal-content img {
    max-width: 70%; /* Adjust this value to control the maximum width of the image */
    height: auto; /* Maintain the aspect ratio */
}

#animal-description-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #646964;
}

/* Define the blinking animation */
@keyframes blink {
    0% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
  /* Apply the blinking animation to elements with the 'blink-animation' class */
  .blink-animation {
    animation: blink 2s infinite; /* Adjust the duration as needed */
  }
  
  #game-invitation {
    background-color: #f7f7f7; /* Background color */
    padding: 50px; /* Add some padding for spacing */
    border-radius: 10px; /* Rounded corners */
    text-align: center; /* Center-align text */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    max-width: 600px; /* Limit the width of the content */
    margin: 100px auto 0; /* Center the container horizontally */
    background-image: url('forest_background.jpg'); /* Replace 'leaf_background.jpg' with the actual filename of your image */
    background-size: cover; /* Adjust the background-size property as needed */
    background-position: top; /* Adjust the background-position property as needed */
    text-align: center; /* Center align the text in the header */
    padding-top: 45px; /* Adjust the padding to vertically center the text in the header */
    opacity: 1;
}

#game-invitation h2 {
    color: #ffffff; /* Text color for headings */
    font-size: 24px; /* Font size for headings */
}

#game-invitation p {
    color: #ffffff; /* Text color for paragraphs */
    font-size: 16px; /* Font size for paragraphs */
}

#game-invitation ul {
    text-align: left; /* Align the list items to the left */
    margin-left: 20px; /* Add some margin to the left of the list */
}

#game-invitation li {
    color: #ffffff; /* Text color for list items */
    font-size: 14px; /* Font size for list items */
    margin-bottom: 10px; /* Spacing between list items */
}


.btn-primary {
    background-color: #f0ec2f; /* Primary button color */
    color: #0d2157; /* Text color for buttons */
    padding: 10px 20px; /* Padding for buttons */
    text-decoration: none; /* Remove underlines from links */
    border-radius: 5px; /* Rounded corners for buttons */
    display: inline-block; /* Make the button inline */
    margin-top: 50px;
    animation: zoomAnimation 1s infinite alternate;
}

.btn-primary:hover {
    background-color: #b5d32f; /* Hover color for buttons */
}

@keyframes zoomAnimation {
    0% {
        transform: scale(1); /* Initial size */
    }
    100% {
        transform: scale(1.1); /* Zoom in by 10% */
    }
}


/* Other styles remain the same */
