











.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #E3B7A0, #C6866F); /* Sedona Dust tones */
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

/* Hover effect with darker gradient */
.back-to-top:hover {
    background: linear-gradient(135deg, #B76E58, #8C4F3E); /* Darker Sedona Dust */
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
}

@media (prefers-color-scheme: dark) {
    .back-to-top {
        background-color: #444;
        color: #fff;
    }
    .back-to-top:hover {
        background-color: #666;
    }
}


.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  
  color: white;
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 2.5rem; /* Space between logo and text */
}



.hero-title {
  font-size: clamp(1rem, 1.5vw, 1.8rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.3;

}



/* Welcome message styling */
.hero h1 {
  font-size: 2rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Welcome message styling */
.hero h2 {
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Logo left, text right */
  padding: 10px 20px;
  position: relative;
}


.logo-img {
  height: 80px; /* Increased from 60px to 80px */
  width: auto;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}



.header-title {
  font-size: 2.0rem;
  margin: 0;
  color: #fff;
  font-weight: 700;
  position: absolute;
  left: 40%;
  transform: translateX(-45%); /* Shift slightly left */
  text-align: left;
}


/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    justify-content: center;
  }
  .header-title {
    position: static;       /* Remove absolute positioning */
    transform: none;
    margin-top: 10px;
  }
}


.responsive-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


.table-header {
  background: linear-gradient(to right, #000000, #ffffff);
  color: white;
  font-weight: bold;
  padding: 1rem;
  text-align: center;
  width: 100%;
}

.table-cell.scientific-name {
  width: 100%;
  font-size: 1.2rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

/*

.table-details {
  display: none;
  padding: 1rem;
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #ccc;
}

.table-row.expanded .table-details {
  display: block;
}
  */

  
.table-details {
  display: block; /* Always visible */
  padding: 1rem;
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #ccc;
}



.acsi-note-wrapper {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}


/* Container for each row */
.browse-row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* Genus + Species column */
.browse-info {
  flex: 1 1 100%;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0077ff;
  text-align: center;
}

/* Thumbnails column */
.browse-thumbnails {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
}


/* Individual thumbnail */
.browse-thumbnail {
  width: 160px; /* doubled from 80px */
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* slightly stronger shadow */
  transition: transform 0.3s ease;
}

.browse-thumbnail:hover {
  transform: scale(1.15); /* larger zoom effect */
}


/* Responsive adjustments */
@media (min-width: 600px) {
  .browse-info {
    flex: 1 1 30%;
    text-align: left;
  }

  .browse-thumbnails {
    flex: 1 1 70%;
    justify-content: flex-start;
  }
}



.pagination-info {
    text-align: center;
    font-weight: bold;
    background: linear-gradient(90deg, #f9f9f9, #eaeaea);
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    width:100%;
    font-size: 1rem;
    color: #333;
}




.pagination-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pagination-wrapper span {
  font-size: 1.1rem;
  font-weight: 500;
}

.pagination-wrapper input[type="number"] {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 120px;
}


.modal-banner-header {
  background: linear-gradient(90deg, #000000, #cccccc);
  color: white;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-banner-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.responsive-image-wrapper {
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

/*
.responsive-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  object-fit: contain;
}
*/


.responsive-image {
  max-width: 1000px; /* or any size you prefer */
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  object-fit: contain;
}


.acsi-note-label {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  color: #0077ff;
  margin-bottom: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.acsi-description {
  background-color: #ffffff;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1000px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.acsi-text {
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.acsi-text p {
  margin-bottom: 1.5rem;
}

.ansp_get_to_know :hover
{
  cursor:pointer;
}

/* === Banner Image === */

.modal-banner-image {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer; /* This makes the cursor a pointer on hover */
}



/* === Info Grid === */
.modal-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.modal-labels,
.modal-values {
  flex: 1;
  min-width: 150px;
}

.modal-labels p,
.modal-values p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.modal-labels p strong {
  color: #333;
}

/* === Modal === */
.results-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.results-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  overflow-y: auto;
  max-height: 90vh;
}

/* === Close Button === */
.close-modal-btn {
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background: linear-gradient(90deg, #ff3c3c, #ff0000); /* Red gradient */
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.close-modal-btn:hover {
  background: linear-gradient(90deg, #ff0000, #ff3c3c);
  transform: scale(1.05);
}



@keyframes slideDown {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.results-modal-content {
  animation: slideDown 0.4s ease-out;
}
.slideDown {
  animation: slideDown 0.4s ease-out;
}



/* === Search Results Container === */
#ansp_search_results {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

/* === Flip Card Styles with Prefix === */
/* === Flip Card Container === */
.results_card_container {
  display: flex;
  justify-content: center;
  gap: 20px; /* Space between cards */
  flex-wrap: wrap; /* Responsive stacking */
  margin: 2rem auto;
}

/* === Individual Flip Card === */
.results_card {
  perspective: 1000px;
  width: 100%;
  max-width: 500px; /* Increased width */
}
.results_card {
  perspective: 1000px;
  
}

.results_card:hover {
  cursor: pointer;
}

.results_card_inner {
  position: relative;
  width: 100%;
  height: 250px;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.results_card_front,
.results_card_back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}



.results_card_front {
 background: linear-gradient(135deg, #E3B7A0, #C6866F); /* Sedona Dust tones */
  color: white; /* Keeps text readable */
}

.results_card_back {
  background: linear-gradient(135deg, #B76E58, #8C4F3E); /* Darker Sedona Dust */
  transform: rotateY(180deg);
}



.results_card.flipped .results_card_inner {
  transform: rotateY(180deg);
}

.results_card_back_content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.results_card_image_wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.results_card_image {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.results_card_footer {
  padding: 1rem;
  
  text-align: center;
}


.results_card_footer .results_show_more_btn {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: linear-gradient(to right, #b0b0b0, #d9d9d9); /* Overcast grey gradient */
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.results_card_footer .results_show_more_btn:hover {
  background: linear-gradient(to right, #8c8c8c, #b0b0b0); /* Darker grey on hover */
  transform: scale(1.05);
}


.results_card_image_wrapper p {
  color: white;
  font-size: 0.9rem;
  text-align: center;
  word-break: break-word;
}




.results_card_thumbnail {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


/* === Modern Spinner === */
.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 6px solid #e0e0e0;
  border-top: 6px solid #0077ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 10px rgba(0, 119, 255, 0.3);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

html, body {
  height: 100%; /* Allow body to grow */
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Fill viewport even if content is short */
}

main {
  flex: 1; /* Push footer down */
}

#footer {
background: linear-gradient(135deg, #36454F, #A9A9A9); /* Charcoal gradient */
  color: white;
  text-align: center;
  padding: 1rem;
}

.page-title-container {
  width: 100%;              /* Full width */
  display: flex;            /* Flexbox for centering */
  justify-content: center;  /* Horizontal center */
  align-items: center;      /* Vertical center (if you set a height) */
  padding: 1rem;            /* Spacing around */
  background-color: #f5f5f5; /* Optional background */
  text-align: center;       /* Center text inside */
}

.page-title-container h1 {
  font-size: clamp(1.5rem, 4vw, 3rem); /* Responsive font size */
  margin: 0;
}
.flip-card-container {
  display: flex;
  justify-content: center;
  gap: 20px; /* Space between cards */
  flex-wrap: wrap; /* Responsive stacking */
  margin: 2rem auto;
}

.flip-card {
  perspective: 1000px;
  width: 100%;
  max-width: 500px; /* Increased width */
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 250px; /* Slightly taller for proportion */
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem; /* Bigger text for bigger card */
  color: white;
  border-radius: 12px;
}


.flip-card-front {
 background: linear-gradient(135deg, #E3B7A0, #C6866F); /* Sedona Dust tones */
}

.flip-card-back {
 background: linear-gradient(135deg, #B76E58, #8C4F3E); /* Darker Sedona Dust */
  transform: rotateY(180deg);
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* Responsive container */
.cta-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background-color: #f5f5f5;
}


.cta-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}


/* Modern button styling */
.modern-button {
  background: linear-gradient(135deg, #E3B7A0, #C6866F); /* Sedona Dust tones */
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hover effect */
.modern-button:hover {
  background: linear-gradient(135deg, #B76E58, #8C4F3E); /* Darker Sedona Dust */
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}



/* === Global Styles === */
/* Global */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f4f6f8; /* Light gray background */
  color: #333;
}

/* Header */

#header {
  background: linear-gradient(135deg, #36454F, #A9A9A9); /* Charcoal gradient */
  color: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}



/* Dropdown & Select */
.ansp_select {
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 1rem;
}

/* Hamburger Menu */
.hamburger-menu {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Mobile Nav */
#mobile-nav {
  position: absolute;
  top: 70px;
  right: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 0.5rem;
}
#mobile-nav a {
  display: block;
  padding: 0.75rem;
  color: #333;
  text-decoration: none;
}
#mobile-nav a:hover {
  background-color: #f0f0f0;
}
/* Container for centering content */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem;
}

/* === Welcome Page === */

/* Hero section with background image of catfish */


/* Search button styling */
.search-btn {
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background-color: #0077ff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background-color: #005fcc;
}

/* === Search Page === */

/* Fancy search bar container */
.search-bar-container {
  margin: 3rem auto;
  position: relative;
  width: 100%;
  max-width: 600px;
}

/* Search input field */
.search-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Autocomplete dropdown */
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  z-index: 10;
  max-height: 300px;
  overflow-y: auto;
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.autocomplete-item:hover {
  background-color: #f0f0f0;
}

/* === Search Results === */

/* Results container */
.results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Individual result item */
.result-item {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  transition: transform 0.2s ease;
}

.result-item:hover {
  transform: scale(1.02);
}

/* Thumbnail image */
.result-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 1rem;
}

/* Text content */
.result-text {
  flex: 1;
  font-size: 1rem;
}

/* === Modal Window === */

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

/* Modal content box */
.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: relative;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Modal details */
.modal-details {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Google Maps link */
.map-link {
  display: inline-block;
  margin-top: 1rem;
  color: #0077ff;
  text-decoration: underline;
}


/* You can add more media queries for different screen sizes */
