/* Base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: white;
  border: 2px solid black;
  box-sizing: border-box;
}

/* Center Header Styles */
.center-header {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 15px;
  background: url('https://png.pngtree.com/background/20210714/original/pngtree-beautiful-blue-sky-background-with-tiny-clouds-picture-image_1235044.jpg') center/cover no-repeat;
  background-size: 300%;
  color: white;
  position: relative;
  text-align: center;
}

header,
nav {
  margin: 0;
  padding: 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.header-divider {
  border: none;
  height: 1px;
  background-color: black;
  width: 100%;
  margin: 0;
}

.logo {
  position: absolute;
  top: 5px;
  left: 100px;
  height: 200px;
  width: auto;
}


/* Navbar Styles */
nav {
  background: url('https://png.pngtree.com/thumb_back/fh260/background/20231230/pngtree-peachy-abstract-watercolor-stain-texture-a-delicate-blend-of-colors-image_13895540.png') center/cover no-repeat;
  background-position: center;
  background-size: 400%;
}

.navbar {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap; /* Allow the navbar items to wrap on smaller screens */
}

.navbar > li {
  position: relative;
}

.navbar a {
  display: block;
  padding: 15px 20px;
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.navbar a:hover {
  background-color: #fff59d;
} 


/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  background-color: #fffde7;
  min-width: 160px;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
  z-index: 1;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a {
  color: #333;
}

.dropdown-menu a:hover {
  background-color: #ffecb3;
}

.sub-dropdown-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown.open .sub-dropdown-menu {
  display: block;
}



/* Products */
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  background: white;
  gap: 10px 20px;
}

.product-card {
  background: white;
  border: 2px solid #ccc;
  width: 250px;
  margin: 0px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: scale(1.05);
  border-color: #007acc;
}

.product-card img {
  width: 100%;
  height: auto;
  max-height: 400px; 
  object-fit: contain;
}

img {
  image-rendering: auto;
}


/* About & Contact */
.about, .contact {
  padding: 30px;
  background: #fff;
}

/* Footer */
footer {
  background: url('https://png.pngtree.com/background/20210714/original/pngtree-beautiful-blue-sky-background-with-tiny-clouds-picture-image_1235044.jpg') center/cover no-repeat;
  background-size: 300%;
  color: white;
  text-align: center;
  padding: 10px;
}

html {
  scroll-behavior: smooth;
}

/* Media Queries for Responsiveness */

/* For smaller screens (mobile devices) */
@media (max-width: 768px) {

  /* Optional: Adjust spacing or font for mobile without changing direction */
  .navbar a {
    padding: 10px;
    font-size: 14px;
  }

  .product-card {
    width: 90%;
    padding: 15px;
  }

  .products {
    padding: 15px;
  }

  .center-header {
    padding: 20px 10px;
  }

  .logo {
    height: 80px;
    margin: 0 auto 10px;
    display: block;
    position: static;
  }

  .header-text h1 {
    font-size: 1.6em;
  }

  .header-text p {
    font-size: 1em;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* For very small screens (portrait mode on mobile) */
@media (max-width: 480px) {
  .navbar a {
    padding: 10px 15px;
    font-size: 14px;
  }

  .hero {
    font-size: 1.2em;
    padding: 60px 15px;
  }

  .products {
    padding: 20px;
  }

  .product-card {
    width: 90%;
  }

  footer {
    padding: 15px 10px;
  }
}

/* Navbar ul, dropdown-menu, sub-dropdown-menu styling */
.navbar ul,
.dropdown-menu,
.sub-dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Style for the search bar */
.search-bar {
  display: inline-flex;
  align-items: center;
}

#search-input {
  padding: 5px;
  margin-right: 5px;
  width: 200px;
}

#search-button {
  padding: 6px 10px;
  cursor: pointer;
}
@media (max-width: 768px) {
  /* Shrink logo */
  .logo {
    height: 80px;
    margin: 0 auto 10px;
    display: block;
    position: static;
  }

  /* Shrink header text */
  .header-text h1 {
    font-size: 1.6em;
  }

  .header-text p {
    font-size: 1em;
  }

  /* Shrink other images */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Optional: shrink product cards or other blocks */
  .product-card {
    width: 90%;
    padding: 15px;
  }

  .products {
    padding: 15px;
  }

  .center-header {
    padding: 20px 10px;
  }
}
