@charset "utf-8";
/* CSS Document */

body,html {
      box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background-image: url(background3.jpg);
    background-size: cover; /* Stretches the image to cover the entire page */
    background-position: center center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    color: #fff;
    }

nav {
      background-color: #333;
      color: white;
      padding: 0.5rem 1rem;
      position: relative;
    }

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

h1{
	text-align: center;
	font-family: "Abel", sans-serif;
    font-weight: 600;
    font-style: normal;
	font-size: 50px;
	background-color: #324E68;
	border-radius: 25px;
	margin: 30px;
	padding: 10px;
}

.announcement {
      background-color: #3B5260;
      color: white;
      text-align: center;
      padding: 0.2rem 1rem;
      font-size: 0.95rem;
	  font-family: "Barlow", sans-serif;
  	  font-weight: 600;
  	  font-style: italic;
    }
	  
    .nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .nav-logo {
      font-size: 2rem;
  	  font-family: "Caveat", cursive;
  	  font-optical-sizing: auto;
  	  font-weight: 500;
  	  font-style: normal;
		}

    .nav-links {
      display: flex;
      gap: 2rem;
    }

    .nav-links a {
      color: white;
      text-decoration: none;
      padding: 0.5rem;
	  position: relative;
      transition: background 0.3s;
	  font-family: "Dosis", sans-serif;
  	  font-optical-sizing: auto;
  	  font-weight: 500;
  	  font-style: normal;
	  font-size: 1.2rem;
    }

    .nav-links a::after {
  	  content: '';
  	  position: absolute;
  	  left: 0;
  	  bottom: 0.2rem;
  	  width: 0;
  	  height: 2px;
  	  background-color: white;
  	  transition: width 0.3s ease;
}

	.nav-links a:hover::after {
  	  width: 100%;
}
	  
    .hamburger {
      display: none;
      font-size: 1.5rem;
      cursor: pointer;
    }

    #menu-toggle {
      display: none;
    }

/* Dropdown container */
.dropdown {
  position: relative;
}

/* Dropdown menu hidden by default */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background-color: #333;
  min-width: 150px;
  z-index: 1000;
  border-radius: 6px;
  overflow: hidden;
  
}

/* Restore bullets for dropdown items */
.dropdown-menu {
  list-style: disc;
  padding-left: 1.5rem; /* optional for indentation */
}

/* Dropdown links */
.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: white;
  text-decoration: none;
  background-color: #272727;
  transition: background-color 0.2s ease;
}

.dropdown-menu li a:hover {
  background-color: #444;
}

/* Show menu on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

.navbar-logo {
    position: absolute;
    left: 150px; /* This will place the logo on the far right of the navbar */
    top: 50%; /* This centers the logo vertically */
    transform: translateY(-50%); /* Ensures perfect centering */
    width: 50px; /* Adjust logo size */
    height: auto;
}

.grid {
      display: grid;
	  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
	  padding: 40px;
    }

    .card {
      background: #FAF9F3;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .card h2 {
      margin: 0 0 10px;
      font-size: 1.35rem;
      color: #333;
	  font-family: "Dosis", sans-serif;
  	  font-optical-sizing: auto;
  	  font-weight: 600;
  	  font-style: normal;
    }

    .card p {
      font-size: 0.95rem;
      color: #666;
      margin-bottom: 15px;
	  font-family: "Barlow", sans-serif;
  	  font-weight: 500;
    }

    .price {
      font-size: 1.1rem;
      color: #1a73e8;
      margin-top: auto;
	  font-family: "Barlow", sans-serif;
  	  font-weight: 500 bold;
    }

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  height: auto;
  object-fit: contain;
}

.cart-button {
  margin-top: 10px;
  padding: 10px 16px;
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.cart-button:hover {
  background-color: #1558b0;
}

@media (max-width: 800px) {
   .nav-links {
    position: absolute;
    top: 110%;
    left: 10px;
    right: 10px;
    background-color: #333;
    flex-direction: column;
    display: none;
	height: 270px;
	z-index: 11;
	padding: 10px;
  }
  .nav-links a {
    padding: 1rem;
    border-top: 1px solid #444;
  }
  .hamburger {
    display: block;
	font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1.5rem;
  }
  #menu-toggle:checked + .nav-links {
    display: flex;
  }
  .navbar-logo {
    position: absolute;
    left: 150px; /* This will place the logo on the far right of the navbar */
    top: 50%; /* This centers the logo vertically */
    transform: translateY(-50%); /* Ensures perfect centering */
    width: 50px; /* Adjust logo size */
    height: auto;
  }
	.dropdown-menu{
		margin-left: 40px;
	}
	
	.grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 15px;  /* Smaller gap between cards */
  }

  .card {
    padding: 12px;
    max-width: 280px; /* Lessen width */
    height: 400px; /* Extend height */
    margin: auto; /* Center the cards */
  }

  .card h2 {
    font-size: 1.1rem;
  }

  .card p {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .price {
    font-size: 0.95rem;
  }

  .card img {
    height: 150px; /* Increase height of the image */
    margin-bottom: 12px;
  }

  .cart-button {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
}