/* === General === */
* {
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
}


body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding-top: 70px;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  color: #fff;
  background: #19373f;
}

/* Scrollbar Track */
::-webkit-scrollbar {
  width: 8px;
  /* Width for vertical scrollbar */
  height: 8px;
  /* Height for horizontal scrollbar */
}

/* Scrollbar Handle */
::-webkit-scrollbar-thumb {
  background: #14527b;
  /* Default thumb color */
  border-radius: 10px;
  /* Rounded edges */
  transition: background 0.3s;
}

/* Scrollbar Handle on Hover */
::-webkit-scrollbar-thumb:hover,
.scrollable-container-horizontal::-webkit-scrollbar-thumb:hover {
  background: #415e4a;
  /* Darker on hover */
}

/* Scrollbar Track */
::-webkit-scrollbar-track {
  background: #19373f;
  /* Light grey track */
  border-radius: 10px;
}

/* Optional: Scrollbar Corner (for both axes) */
::-webkit-scrollbar-corner {
  background: transparent;
}

/* === Typography === */

.py-5 {
  min-height: 100%;
  /* Ensure content takes full height */
  display: flex;
  flex-direction: column;
  flex: 1;
  /* Pushes the footer to the bottom */
}

@media (max-width: 992px) {
  .py-5 {
    margin-left: 0;
  }
}

.hidden {
  display: none;
}

a {
  color: #64c85d;
  text-decoration: none;
}

a:hover {
  color: #f07d20;
}

.span-primary {
  color: #b0ff97;
}

.span-primary:hover {
  color: #fff;
}

.span-description {
  color: #9cfff0;
}

.span-description:hover {
  color: #fff;
}

/* === Navbar === */

/* Custom Header Styling */
header {
  background: #415e4a;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Scrolled Header Effect */
header.scrolled {
  background-color: #213126;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.navbar-brand img {
  height: 40px;
  width: auto;
  /* Ensures the logo is responsive */
}

/* Navbar Links Styling */
.navbar-nav .nav-link {
  font-weight: 500;
  color: #fff;
  transition: color 0.3s ease, transform 0.2s ease;
  padding: 10px 15px;
}

.navbar-nav .nav-link:hover {
  color: #f8a62f;
  transform: scale(1.05);
}

.navbar-nav .nav-link.active {
  color: #f8a62f;
  transform: scale(1.05);
}

/* Active Link Styling */
.navbar-nav .nav-link[aria-current="page"] {
  position: relative;
}

/* Search Input Styling */
.form-control {
  border-color: #ddd;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #516958;
  box-shadow: none;
}

/* Make Select2 look like Bootstrap's form-select */
.select2-container .select2-selection--single {
  height: calc(3.5rem + 2px);
  /* Same as .form-select height */
  padding: 0.75rem 1rem;
  /* Padding similar to .form-select */
  font-size: 1rem;
  /* Font size similar to Bootstrap */
  line-height: 1.5;
  border-radius: 0.375rem;
  /* Bootstrap rounded corners */
  border: 1px solid #ced4da;
  background-color: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-top: 10px;
  padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 0.75rem;
  /* Position arrow correctly */
}

.select2-container--default .select2-selection--single:hover,
.select2-container--default .select2-selection--single:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  /* Similar to .form-select focus */
}

.select2-results {
  color: #212529;
}

.border {
  margin: 5px;
  padding: 10px;
}

/* Buttons Styling */
.btn-primary {
  background-color: #516958;
  border-color: #516958;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #6a8a73;
  border-color: #6a8a73;
}

.btn-info {
  background-color: #092537;
  border-color: #092537;
  color: #fff;
  transition: background-color 0.3s ease;
}

.btn-info:hover {
  background-color: #09395a;
  border-color: #09395a;
  color: #fff;
}

.btn-success {
  background-color: #516958;
  border-color: #516958;
  transition: background-color 0.3s ease;
}

.btn-success:hover {
  background-color: #6a8a73;
  border-color: #6a8a73;
}

.btn-warning {
  background-color: #9f0000;
  border-color: #9f0000;
  transition: background-color 0.3s ease;
  color: #fff;
}

.btn-warning:hover {
  background-color: #450000;
  border-color: #450000;
  color: #fff;
}

.btn-outline-dark {
  border-color: #333;
  color: #333;
}

.btn-outline-dark:hover {
  background-color: #333;
  color: #fff;
}

.share-buttons {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.share-btn i {
  margin-right: 5px;
  font-size: 1.2rem;
}

.btn-whatsapp {
  background-color: #25D366;
  border-color: #25D366;
  color: #fff;
}

.btn-facebook {
  background-color: #3b5998;
  border-color: #3b5998;
  color: #fff;
}

.btn-x {
  background-color: #000;
  border-color: #000;
  color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .navbar-collapse {
    padding: 15px;
    border-radius: 0 0 8px 8px;
  }

  .navbar-nav .nav-link {
    padding: 10px 0;
  }

  .d-none.d-lg-flex {
    display: flex !important;
    margin-top: 10px;
  }
}

#liveSearchResults a.list-group-item {
  transition: background 0.2s, box-shadow 0.2s;
}

.sidebar {
  width: 150px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 60px;
  box-shadow: 5px 0 5px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.sidebar a {
  padding: 10px 10px;
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
  border-bottom: 1px solid #19373f;
}

.sidebar a i {
  margin-right: 10px;
  font-size: 16px;
}

.sidebar a:hover {
  background: #343a40;
  border-left: 5px solid #018975;
  padding-left: 16px;
}

.sidebar .sidebar-header {
  font-size: 16px;
  color: #fff;
  text-align: left;
  padding: 10px;
  font-weight: bold;
  border-bottom: 2px solid #fff;
  background-color: rgba(0, 0, 0, 0.2);
}

/* Responsive Sidebar */
.sidebarCollapse {
  display: none;
}

@media (max-width: 992px) {
  .sidebar {
    left: -260px;
  }

  .sidebar.active {
    left: 0;
  }

  .sidebarCollapse {
    display: block;
  }
}

.offcanvas {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.offcanvas-header {
  background-color: #415e4a;
  color: #fff;
  border-bottom: 1px solid #ddd;
}

.offcanvas a {
  color: #fff;
  text-decoration: none;
  padding: 10px;
  display: block;
  transition: background-color 0.3s ease;
}

.offcanvas a:hover {
  background: #343a40;
  border-left: 5px solid #018975;
  padding-left: 16px;
}

/* === Buttons === */

.btn {
  text-align: center;
}

.btn-primary {
  background-color: #415e4a;
  border: none;
  transition: background-color 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: #182e2e;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

#hideAdsBtn {
  color: #fff;
}

#hideAdsBtn:hover {
  color: #ff0000;
  border: 1px solid #ff0000;
}

.mb-1 a {
  color: #f07d20;
}

.border-container {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #fff;
}

#content {
  margin-left: 250px;
  margin-top: 150px;
  ;
  transition: margin-left 0.3s;
}

.collapsed+#content {
  margin-left: 0;
}

.username {
  padding: 0 20px 0;
  margin: 0;
  color: #fff;
}

.user_review_border {
  border: 5px solid #14527b !important;
}

/* === Forms === */

/* Background Styling */
.register-container,
reset-container {
  display: flex;
  justify-content: center;
}

/* Form Box */
.register-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  color: white;
}

/* Input Fields */
.modern-input {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  border: none !important;
  transition: all 0.3s ease-in-out;
}

/* Input Focus Effect */
.modern-input:focus {
  background: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Labels */
.form-floating label {
  color: #212529;
}

#newBreederModal .form-floating label {
  color: #415e4a;
}

#newBreederModal textarea {
  height: 80px;
}

.breeder-reviews {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  border: 5px solid #6a8a73;
}

.cta-register {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.cta-register h3 {
  text-align: center;
}

.cta-register p {
  text-align: center;
}

.cta-register a {
  text-align: center;
}

/* === Carousel === */

.carousel-inner {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.carousel-img {
  height: 100%;
  max-height: none;
  width: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.carousel-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 0);
  right: auto;
  max-width: 900px;
  width: 90%;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  padding: 16px 18px;
  border-radius: 12px;
  animation: captionFadeIn 0.8s ease-out;
  z-index: 10;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.carousel-item {
  position: relative;
  pointer-events: none;
  aspect-ratio: 16 / 9;
  max-height: 600px;
}

.carousel-item.active {
  pointer-events: auto;
  z-index: 20;
}

.carousel-item h3 {
  font-size: clamp(1.5rem, 2.5vw + 1rem, 2.5rem);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.carousel-item p {
  font-size: clamp(0.9rem, 1.2vw + 0.5rem, 1.125rem);
  font-weight: 300;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.carousel-control-prev,
.carousel-control-next {
  width: 7%;
  z-index: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out;
}

.carousel-video {
  height: 100%;
  max-height: none;
  width: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.carousel-global-timer {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  z-index: 1000;
}

.ratio {
  max-height: 600px;
}



@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes captionFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Smooth Fade Transition */
.carousel-fade .carousel-item {
  transition: opacity 1.5s ease-in-out;
  opacity: 0;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* Carousel overlay and media fill */
#homepageCarousel .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.45));
  z-index: 5;
  pointer-events: none;
}

#homepageCarousel .carousel-item>.carousel-img,
#homepageCarousel .carousel-item>.carousel-video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: auto;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
}

/* Carousel controls enhancements */
.carousel-control-prev {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}

.carousel-control-next {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible {
  opacity: 1;
}

.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible {
  outline: 2px solid #64c85d;
  outline-offset: 2px;
}

/* Indicators */
#homepageCarousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin: 0 6px;
}

#homepageCarousel .carousel-indicators .active {
  background-color: #64c85d;
}

#homepageCarousel .carousel-indicators [data-bs-target]:hover {
  background-color: #f07d20;
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .carousel-fade .carousel-item {
    transition: none;
  }

  .carousel-caption {
    animation: none;
  }

  .carousel-control-prev,
  .carousel-control-next {
    transition: none;
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .carousel-item {
    aspect-ratio: 4 / 3;
  }

  .carousel-caption {
    bottom: 10px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 10%;
  }
}

@media (max-width: 576px) {
  .carousel-item {
    aspect-ratio: 1 / 1;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 12%;
  }

  /* Keep caption fully within the slide and readable on small screens */
  .carousel-caption {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 8px;
    width: calc(100% - 24px);
    /* edge padding */
    max-width: none;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    max-height: 55%;
    /* prevent overflow beyond the slide */
    overflow: hidden;
    /* avoid caption spilling outside */
    box-sizing: border-box;
  }

  .carousel-item h3 {
    font-size: clamp(1.1rem, 4.5vw + 0.2rem, 1.35rem);
    margin-bottom: 6px;
  }

  .carousel-item p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* cap to avoid clipping under controls */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #homepageCarousel .btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .carousel-global-timer {
    font-size: 0.7rem;
    top: 0.5rem;
    right: 0.5rem;
  }
}



/* === Cards === */
.scrollable-container-horizontal .card {
  min-width: 18rem;
  max-width: 18rem;
}

.card {
  border: 5px solid #6a8a73;
  overflow: hidden;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures the image fills the space without stretching */
  display: block;
}

.card-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  pointer-events: none;
  /* Disable click on the image link during drag */
  border-bottom: 5px solid #6a8a73;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  padding: 7px 0;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background-color: #14527b;
}

.card-text {
  color: #fff;
  font-size: 1rem;
}

.card h2,
.card label {
  color: #fff;
}

.card-footer {
  background: #6a8a73;
}

.card-footer:last-child {}


/* === Tables === */
.table {}

.table th,
.table td {}

.table thead th {}

.table a {
  color: #9cfff0;
}

.table a:hover {
  color: #fff;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
  --bs-table-bg-type: #00212b;
}

.table>:not(caption)>*>* {
  --bs-table-bg-type: #132a31;
  color: #fff;
}

/* === Alerts === */
.alert {
  text-align: center;
  width: fit-content;
  margin: auto;
}

.alert-error {
  background: #c50000;
}

/* === Modals === */

.modal-lg {
  --bs-modal-width: 840px;
}

.modal-content {
  backdrop-filter: blur(12px);
  background: rgba(12, 27, 31, 0.7);
  overflow: hidden;
}

.modal-header {
  background: #14527b;
}

.modal-dialog {
  overflow: hidden;
}

.modal-backdrop {
  z-index: 1020;
}

/* Ensure modal does not exceed viewport */
.modal-dialog {
  max-width: 90vw;
  /* Prevents excessive width */
  max-height: 90vh;
  /* Prevents excessive height */
  width: 600px;
  /* Fixed size */
}

.modal-content {
  display: flex;
  flex-direction: column;
}

.text-body-secondary {
  color: #fff !important;
}

/* === Pagination === */

.page-item .page-link {
  border: 1px solid #415e4a;
  border-radius: 50px;
  padding: 0.1rem 1rem;
  font-size: 1rem;
  color: #415e4a;
  transition: all 0.3s ease;
  background: #415e4a3b;
}

.page-item .page-link:hover {
  background-color: #f1f1f1;
  color: #415e4a;
}

.page-item.active .page-link {
  background-color: #415e4a;
  color: white;
  border-color: #415e4a;
}

.page-item.disabled .page-link {
  color: #6c757d;
  cursor: not-allowed;
}

.page-item .page-link:focus {
  outline: none;
  box-shadow: none;
}

/* === Footer === */
footer {
  background-color: #516958;
  /* Matches header */
  color: #fff;
  transition: background-color 0.3s ease;
}

footer a.text-light:hover {
  color: #6a8a73;
  /* Matches header scrolled state */
  text-decoration: underline;
}

footer .border-top {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

footer .bi {
  transition: transform 0.2s ease;
}

footer .bi:hover {
  transform: scale(1.2);
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

/* === Advertiser Section === */
#advertiserSidebar {
  position: fixed;
  /* Use fixed positioning to keep it in place */
  top: 60px;
  /* Align to the top of the screen */
  right: 0;
  /* Ensure it starts on the right */
  width: 300px;
  height: 100vh;
  /* Always match the screen height */
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: -5px 0 5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease-in-out;
  cursor: grab;
  /* Indicate draggable area */
  z-index: 1000;
  /* Ensure it stays above other content */
}

.advertiser-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #ddd;
  cursor: grab;
  /* Indicate draggable area */
}

.advertiser-header:active {
  cursor: grabbing;
  /* Change cursor when dragging */
}

.advertiser-title {
  font-size: 16px;
  padding: 10px;
  margin: auto;
}

.advertiser-container {
  max-height: 100vh;
  flex: 1;
  /* Takes remaining space */
  overflow-y: auto;
  /* Enables scrolling */
  padding: 15px;
  cursor: grab;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.advertiser-container.active {
  cursor: grabbing;
}

.advertiser-container::-webkit-scrollbar {
  display: none;
}

.advertiser-card {
  margin: 15px 0;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.advertiser-card:hover {
  transform: translateY(-5px);
}

.advertiser-card a {
  width: 100%;
  margin: auto;
  padding: 5px;
  display: block;
  text-decoration: none;
  background: #19373f;
  color: #fff;
}

.advertiser-card a:hover {
  background: #2b5f6d;
}

.advertiser-content {
  padding: 10px;
}

.advertiser-content h5 {
  color: #212529;
  font-size: 1rem;
  margin-bottom: 5px;
}

.advertiser-content p {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 10px;
}

.advertiser-content .btn {
  width: 100%;
  margin-top: 10px;
}

/* Smooth scrolling */
.advertiser-container::-webkit-scrollbar {
  width: 8px;
}

.advertiser-container::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 10px;
}

/* Hide when toggled */
#advertiserSidebar.hidden {
  display: none;
  /* Completely hide the sidebar */
}

/* Responsive for small screens */
@media (max-width: 992px) {
  #advertiserSidebar {
    position: relative;
    width: 100%;
    height: auto;
    right: 0;
    transform: none;
    margin-top: 20px;
  }
}

/* === Custom Elements === */

.main_header img {
  max-width: 100%;
  /* Ensures images are responsive */
  height: auto;
  /* Maintains aspect ratio */
}

.scrollable-container-horizontal {
  display: flex;
  overflow-x: auto;
  scrollbar-width: auto;
  gap: 1rem;
}

.scrollable-container-horizontal::-webkit-scrollbar {
  height: 8px;
  /* Horizontal scrollbar height */
}

.scrollable-container-horizontal::-webkit-scrollbar-thumb {
  background-color: #14527b;
  /* Scrollbar thumb color */
  border-radius: 10px;
  /* Rounded edges */
  transition: background 0.3s;
}

.scrollable-container-horizontal::-webkit-scrollbar-track {
  background-color: transparent;
  /* Scrollbar track color */
}

section {
  padding: 20px 0;
}

section h2 {
  padding: 10px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: #14527b;
}

.dragging {
  cursor: grabbing !important;
}

.scrollable-container-horizontal {
  cursor: grab;
  user-select: none;
}

.img-thumbnail {
  height: auto;
  width: auto;
  max-height: 150px;
  min-height: 150px;
  ;
}

#logoResult,
#coverResult,
#galleryResult,
#imageResult {
  text-align: center;
}

#logoResult img,
#coverResult img,
#galleryResult img,
#imageResult img {
  border: 1px solid #fff;
  margin-top: 10px;
}

.logoImage,
.coverImage,
.galleryImage,
.animalImage {
  max-height: 150px;
}

/* Profile Page Custom Styles */

/* Banner Image */
.profile-banner img {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  height: 350px;
  object-fit: cover;
}

/* Profile Picture Container */
.profile-picture-container {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.profile-picture-container img {
  height: 200px;
  margin-top: -100px;
  margin-left: 50px;
  width: auto;
  object-fit: cover;
}

.profile-picture-container .edit-icon {
  display: none;
}

.profile-picture-container:hover .edit-icon {
  display: block;
}

.profile-info h5 {
  text-align: center;
}

/* Friends List */
ul.list-unstyled {
  padding-left: 0;
}

ul.list-unstyled li {
  display: flex;
  align-items: center;
}

ul.list-unstyled li img {
  margin-right: 10px;
}

.animal-header {
  background-color: #14527b;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.tooltip-inner {
  max-width: 300px;
  text-align: left;
}

.animal-single-container h4 {
  text-align: center;
  text-transform: uppercase;
  padding: 10px;
  background: #14527b;
}

.single_image img {
  max-height: 350px;
  width: 100%;
  margin-bottom: .5rem;
  border: 2px solid #415e4a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.gallery-item {
  overflow: hidden;
  /* Prevents overflow issues */
  position: relative;
}

.gallery-item img {
  height: 350px;
  width: 100%;
  object-fit: cover;
  /* Default: cropped */
  transition: transform 0.3s ease, object-fit 0.3s ease;
}

.gallery-item:hover img {
  object-fit: contain;
  /* Show full image */
  transform: scale(1.1);
}

.add-breeder h5 {
  text-align: center;
  padding: 10px;
  color: #fff;
  background: #14527b;
}

.animal-history {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  border: 2px solid #6a8a73;
}

/* Ensure wide images are not cropped on phones */
@media (max-width: 576px) {
  #homepageCarousel .carousel-item {
    background-color: #000;
  }

  #homepageCarousel .carousel-item>.carousel-img {
    object-fit: contain !important;
    object-position: center center;
    background-color: transparent;
  }
}