/* General Reset */
* {
  margin: 5px;
  padding: 5px;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
}
.install-button {
  display: none; /* Hidden by default */
  padding: 0.5rem 1rem;
  background-color: #74b9ff;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s;
  position: fixed;
  right: 0;
  bottom: 0;
}

.install-button img {
  max-width: 30px;
  margin: 0;
  padding: 0;
/*   width: 24px; */
/*   height: 24px; */
}

.install-button:hover {
  background-color: #0984e3;
}

/* Navbar */
/* Navbar styles */
.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: url('/images/header-background.webp') no-repeat center center;
  background-size: cover; /* Ensures the image covers the entire background */
  color: #ffffff;
  position: relative;
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Adds a dark overlay */
  z-index: 0;
}

.logo,
.nav-links,
.hamburger {
  z-index: 1; /* Ensures content appears above the background and overlay */
}
/* Logo */
.logo {
  margin-bottom: 1rem;
}

.logo-img {
  max-height: 50vh;
  max-width: 100%;
  object-fit: contain;
}

/* Navigation links */
.nav-links ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-links ul li a:hover {
  color: #74b9ff;
}

/* Hamburger menu button */
.hamburger {
  display: none; /* Hidden by default */
  background: none;
  border: none;
  font-size: 2rem;
  color: #ffffff;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh; /* Full screen height */
  background: url('/images/home-background.webp') no-repeat center center;
  background-size: cover; /* Ensure the banner image covers the full background */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for better text contrast */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 80%;
  margin-bottom: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.cta-button {
  padding: 0.75rem 1.5rem;
  background-color: #74b9ff;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #0984e3;
}

/* Slideshow */
.slideshow {
  position: relative;
/*   width: 100%; */
/*   max-width: 800px; */
  margin: 0 auto;
  z-index: 1;
  border-radius: 10px; /* Optional: Rounded corners for the container */
/*   aspect-ratio: 16 / 9; */
}

.slide {
  display: none;
  position: relative;
}

.slide img {
  max-height: 50vh;
/*   width: 100%; */
  border-radius: 10px;
  object-fit: cover; /* Ensures proper scaling of the image */
  border: solid;
  border-color: red;
}

/* Text overlay for each slide */
.text-overlay {
  font-family: ink free;
  position: absolute;
  bottom: 10%; /* Adjust position relative to the bottom */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  text-align: center;
}

.slide.show {
  display: block;
}

.text-overlay.visible {
  opacity: 1;
}

/* Navigation buttons */
.slideshow .prev,
.slideshow .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  z-index: 2;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.slideshow .prev:hover,
.slideshow .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.slideshow .prev {
  left: 10px;
}

.slideshow .next {
  right: 10px;
}

/* Offerings Section */
.offerings {
  padding: 2rem;
  text-align: center;
  background: url('/images/offerings-background.webp') no-repeat center center;
  background-size: cover; /* Ensures the image covers the entire background */
}

.offerings h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.offering-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  margin-bottom: 1rem;
}

.card .cta-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #74b9ff;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.card .cta-button:hover {
  background-color: #0984e3;
}

/* Signup Form */
.signup {
  padding: 2rem;
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 2rem;
  border-radius: 10px;
/*   background: url('/images/signup-background.webp') no-repeat center center; */
/*   background-size: cover; /* Ensures the image covers the entire background */ */
}

.signup h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.signup form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signup label {
  font-weight: bold;
}

.signup input,
.signup textarea,
.signup button {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.signup button {
  background-color: #74b9ff;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.signup button:hover {
  background-color: #0984e3;
}

.thumbnail-wrapper {
  position: relative;
  display: inline-block;
  margin: 10px;
}

.thumbnail-wrapper img {
  max-width: 100px;
  max-height: 100px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.remove-cross {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #fff;
  background: #ff5c5c;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.remove-cross:hover {
  background: #ff1c1c;
}

.zip-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Message Box Styling */
.message-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  z-index: 1000;
  text-align: center;
  font-family: Arial, sans-serif;
}

.message-box.info {
  border-left: 5px solid #007bff;
}

.message-box.success {
  border-left: 5px solid #28a745;
}

.message-box.error {
  border-left: 5px solid #dc3545;
}

.message-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.message-logo {
  width: 60px;
  height: auto;
  margin-bottom: 15px;
}

.message-ok-button {
  margin-top: 15px;
  padding: 8px 15px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.message-ok-button:hover {
  background-color: #0056b3;
}

.login {
  padding: 2rem;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  max-width: 600px;
  margin: 2rem auto;
/*   background: url('/images/signup-background.webp') no-repeat center center; */
/*   background-size: cover; /* Ensures the image covers the entire background */ */
}

.login form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.login button {
  padding: 0.75rem 1.5rem;
  background-color: #74b9ff;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.login button:hover {
  background-color: #0984e3;
}

/* Dashboard */
.profile {
  padding: 2rem;
}

.profile h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.info-section {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
  margin-bottom: 1rem;
}

.thumbnails .image-gallery {
/*   display: grid; */
/*   grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); */
/*   gap: 1rem; */
}

.image-gallery img {
  width: 100px;
  border-radius: 5px;
  cursor: pointer;
}
.generate-photos, .pet-grooming {
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Form Fields */
.generate-photos form, .pet-grooming form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

textarea, input[type="file"], select {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Containers for Images */
#reference-image-container, #grooming-photo-container {
  margin: 1rem 0;
  display: flex;
  justify-content: start;
  gap: 1rem;
  flex-wrap: wrap;
}

#reference-image-container img, #grooming-photo-container img {
  max-width: 100px;
  max-height: 100px;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.generate-photos button, .pet-grooming button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #74b9ff;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.generate-photos button:hover, .pet-grooming button:hover {
  background-color: #0984e3;
}

.generate-photos button:disabled, .pet-grooming button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
#generated-photo img{
  max-width: 100%; /* Fallback for browsers that don't support fill-available */
  max-width: -moz-available; /* Firefox */
  max-width: -webkit-fill-available; /* Chrome, Safari, and others */
  max-width: fill-available; /* Standard property */
}
/* Footer */
.footer {
  background-color: #2d3436;
  color: #ffffff;
  padding: 2rem;
  text-align: center;
}
.footer-contact {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.footer .social-media a {
  color: #74b9ff;
  margin: 0 0.5rem;
  text-decoration: none;
  font-size: 1.2rem;
}

.footer .social-media a:hover {
  color: #0984e3;
}

.footer-links a {
  color: #ffffff;
  margin: 0 0.5rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hidden by default */
    flex-direction: column; /* For small screens, stack items vertically */
    width: 100%;
  }
  .nav-links ul{
    position:fixed;
    top: 15vh;
    right: 10px;
  }

  .nav-list {
    flex-direction: column; /* Ensure vertical stacking for mobile menu */
    gap: 1rem;
    text-align: center;
    background-color: #2d3436;
    padding: 1rem 0;
  }

  .hamburger {
    display: block; /* Show hamburger button */
  }

  .nav-links.active {
    display: flex; /* Show nav links when active */
  }
  .navbar ul {
    flex-direction: column;
    gap: 0.5rem;
    background: black;
    border-radius: 10px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .cta-button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .slideshow {
    max-width: 100%; /* Use full width on smaller screens */
    overflow: unset;
  }
  .slide img {
    width: 100%;
  }

  .text-overlay {
    font-size: 1rem; /* Adjust font size for smaller screens */
    padding: 8px 16px;
  }

  .slideshow .prev,
  .slideshow .next {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem; /* Smaller button text */
  }

  .offerings h2,
  .signup h2,
  .profile h2 {
    font-size: 1.8rem;
  }

  .card h3 {
    font-size: 1.2rem;
  }
  .generate-photos, .pet-grooming {
    padding: 1rem;
  }

  textarea, input[type="file"], select {
    padding: 0.4rem;
  }

  #reference-image-container img, #grooming-photo-container img {
    max-width: 80px;
    max-height: 80px;
  }
  .generate-photos button, .pet-grooming button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}
