/* ---- General ---- */
body {
  font-family: Arial, sans-serif;
  background-color: #f6fff7;
  color: #333;
  margin: 0;
  padding: 0;
}

header, footer {
  background-color: #a5d6a7;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

nav a {
  margin: 0 0.5rem;
  color: #fff;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

main {
  padding: 1rem;
}

/* ---- Cards ---- */
.card {
  background-color: #ffffff;
  padding: 1.5rem;
  margin: 1rem auto;
  border-radius: 12px;
  max-width: 900px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
logo {
  width: 180px;           /* smaller, fits nicely in header area */
  max-width: 35%;         /* responsive size control */
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}}

/* ---- Buttons ---- */
button {
  background-color: #66bb6a;
  border: none;
  padding: 0.8rem 1rem;
  color: white;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
}

button:disabled {
  background-color: #c8e6c9;
  cursor: not-allowed;
}

button:hover:enabled {
  background-color: #4caf50;
}

/* ---- Inputs ---- */
input, select, textarea {
  width: 100%;
  padding: 0.6rem;
  margin: 0.5rem 0 1rem 0;
  border: 1px solid #a5d6a7;
  border-radius: 5px;
  font-size: 1rem;
}

/* ---- Items Grid ---- */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.item-card {
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
}

.item-card img {
  max-width: 100%;
  border-radius: 10px;
}

/* ---- Overlay Login/Register ---- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay-content {
  background-color: #f6fff7;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ---- Login/Register Overlay ---- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay-content {
  background-color: #f6fff7;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.overlay-content input,
.overlay-content textarea {
  width: 100%;
  padding: 0.6rem;
  margin: 0.5rem 0 1rem 0;
  border: 1px solid #a5d6a7;
  border-radius: 5px;
  font-size: 1rem;
}

.overlay-content button {
  width: 100%;
}
/* Homepage Quick Start + Items Grid Styles */
.homepage-quick-items {
  background-color: #e8f5e9;
  padding: 25px 15px;
  margin: 20px 0;
  border-radius: 12px;
}

.homepage-quick-items h2 {
  color: #2e7d32;
  text-align: center;
  margin-bottom: 15px;
}

.homepage-quick-items p {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.05em;
}

.quick-start-buttons {
  text-align: center;
  margin-bottom: 20px;
}

.quick-start-buttons a {
  margin: 5px;
  text-decoration: none;
}

.quick-start-buttons button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.quick-start-buttons button:hover {
  background-color: #388e3c;
}

.homepage-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.homepage-filters input,
.homepage-filters select,
.homepage-filters button {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}
.item-card {
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}
.item-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.item-card h3 {
  color: #2e7d32;
  margin: 10px 0 5px 0;
}
.item-card button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
}
.item-card button:hover {
  background-color: #388e3c;
}
/* Success Popup Animation */
.success-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #4caf50;
  color: white;
  padding: 14px 22px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 1000;
}
.success-popup.visible {
  opacity: 1;
  transform: translateY(0);
}




@media (max-width: 768px) {
  .logo {
    width: 140px;         /* resize for tablets */
    max-width: 45%;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 110px;         /* shrink gently for mobile screens */
    max-width: 55%;
  }
}

 

  /* Makes buttons easy to tap on mobile */
  @media (max-width: 600px) {
    a {
      font-size: 1.1rem;
      padding: 14px;
    }
  }
