body {
 font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh; /* ✅ make body fill full screen height */
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* keeps header on top and content centered */
  text-align: center;
  background-image: url('./dog.jpg'); /* ✅ fixed path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}


header {
  background: #333;
  color: white; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 0
}

/* 🧱 Container for the two boxes */
.products {
  display: flex;
  justify-content: center;      /* centers horizontally */
  align-items:center;  /* aligns the tops evenly */
  gap: 40px;                    /* space between boxes */
  flex-wrap: wrap;              /* makes it responsive on smaller screens */
  margin-top: 20px;
  padding-bottom: 50px;
}

/* 🎁 Each box style */
.product {
  background: rgba(255, 255, 255, 0.85);  /* translucent white */
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 10px;
  text-align:center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width:auto;
    display: flex;
  flex-direction: column;
  align-items: center;      /* ✅ centers horizontally */
  justify-content: center;  /* ✅ centers vertically */
  text-align: center;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 🧍‍♂️ For your small “Add Amount” box */
.checkout-box {
  
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 20px;
  width: auto;
  text-align: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.checkout-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Buttons */
button {
  background: #0070f3;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  justify-content:space-around;
}

button:hover {
  background: #005bb5;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}



.product img {
  width: 100%;
  max-width: 150px;
  width: auto;
  height: auto;
}

.price {
  font-weight: bold;
  margin: 10px 0;
  width:150px;
  height:auto;
  text-align: center;
}

#png {
  width:100px;
  height:90px;
}

button {
  background: #0070f3;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
}



.message {
  text-align: center;
  margin-top: 100px;
}

.message h1 {
  color: #0070f3;
}

.message a {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #0070f3;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}

.message a:hover {
  background: #005bb5;
}

#custom-amount {
  width: 100%;
  padding: 5px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  text-align:end;
}

#customer-list {
  display: flex;
  flex-direction: column;
  align-items: center;     /* centers the <li> horizontally */
  justify-content: center; /* optional: vertical centering if height is set */
  list-style: none;        /* removes bullet points */
  padding: 0;
  margin: 0 auto;          /* centers the whole list block */
}

#customer-list li {
  padding: 8px;
  background: #c20606;
  border-bottom: 1px solid #eee;
  text-align: center;
  color: white;
  width: fit-content;
  margin-top: 20px;
}

#customer-list li:hover {
  background: #e0e0e0;
}

#customer-list-wrapper {
  display: flex;
  justify-content: center;
}

#customer-search {
  width: 100%;
}

#list-name {
  display: flex;
  flex-direction: column;
  align-items: center;     /* centers the <li> horizontally */
  justify-content: center; /* optional: vertical centering if height is set */
  list-style: none;        /* removes bullet points */
  padding: 20px auto;
  margin: 0 auto;
  width: auto;
}

/* Default styles for desktop */
.container {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

/* Mobile styles */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 10px;
  }

  #customer-list li {
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .product {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .add-to-cart {
    width: 100%;
  }

  #custom-amount,
  #add-custom {
    width: 100%;
    margin-top: 8px;
  }

  #cart-button {
    width: 100%;
    margin-top: 12px;
    align-items: center;
  }
}

p {
  display: inline-block;          /* ✅ make width fit only the text */
  background-color: red;          /* or your color */
  color: white;
  padding: 5px 10px;              /* some space inside */
  border-radius: 8px;             /* optional */
  font-weight: bold;
  margin: 10px auto;              /* centers horizontally */
}

p.centered {
  display: flex;
  justify-content: center;
}


.list-box {
  border: 7px solid red;
  border-radius: 8px;
  padding: 8px 12px;
  width: auto; /* control width manually */
  outline: none;
  background-color: #333; 
  max-width: 400px;
  
}

/* Normal layout stays the same */

/* Only scale the inner content on mobile */
@media (max-width: 768px) {
  .content-wrapper {
    transform: scale(0.9);
    transform-origin: top center;
  }
}

@media (max-width: 480px) {
  .content-wrapper {
    transform: scale(0.8);
    transform-origin: top center;
  }
}

/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  align-items: center;
}



/* Container for the buttons */
.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
  margin: 40px auto; /* ✅ smaller, centered margin */
  width: 100%;
  height: 100%;
  max-width: 600px; /* ✅ keeps layout narrow on phones */
}

/* Button styling */
.image-button {
  background: white;
  border: 2px solid #ddd;
  border-radius: 16px;
  padding: 30px 30px 30px 30px;
  width: 220px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* Button hover effect */
.image-button:hover {
  border-color: #0078ff;
  box-shadow: 0 6px 16px rgba(0, 120, 255, 0.25);
  transform: translateY(-4px);
}

/* Image inside button */
.image-button img {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

/* Text inside button */
.image-button span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

/* Responsive */
@media (max-width: 600px) {
  .image-button {
    width: 80%;
    height: 150px;
  }
}

.home-link {
  text-decoration: none;
  color: inherit; /* keeps the same color as the h1 */
}

.home-link:hover {
  text-decoration: underline; /* optional: small effect when hovering */
  color: #ff0000; /* optional: you can change hover color if you like */
}

/* 📱 Fix centering on mobile */
@media (max-width: 768px) {
  .products,
  .button-container {
    flex-direction: column;     /* stack vertically */
    align-items: center;        /* center horizontally */
    justify-content: center;    /* center vertically */
    gap: 20px;                  /* add space between boxes */
    width: 100%;
  }

  .product,
  .image-button {
    margin: 0 auto;             /* ensure each box is centered */
  }
}

#payment-info {
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.85);
  padding: 15px 25px;
  border-radius: 10px;
  display: inline-block;
  font-size: 1.1rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.highlight {
  color: #0070f3;
  font-weight: 600;
}
#payer-name {
  display: block;
  width: 80%;
  max-width: 400px;
  margin: 10px auto;
  padding: 10px;
  font-size: 18px;
  border: 2px solid #0070f3;
  border-radius: 8px;
  outline: none;
  background-color: #f9f9f9;
  text-align: center;
  transition: all 0.3s ease;
}

#payer-name:focus {
  border-color: #005bb5;
  box-shadow: 0 0 10px rgba(0, 112, 243, 0.3);
  background-color: #fff;
}
label[for="payer-name"] {
  background-color: #000;
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(255,255,255,0.2); /* subtle glow */
}

/* Fix app product alignment */


.product .price {
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
}

.product img {
  display: block;
  margin: 0 auto 10px auto; /* ✅ centers image and adds space below */
}
/* ----- LOGIN PAGE STYLES ----- */

.login-main {
  min-height: calc(100vh - 80px); /* header height-ish */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  max-width: 380px;
  width: 100%;
  padding: 24px 22px 28px;
  text-align: center;
}

.login-card h2 {
  margin-bottom: 10px;
}

.login-info {
  font-size: 0.95rem;
  margin-bottom: 18px;
  color: #333;
  background: transparent;  /* override your red <p> style */
  padding: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.login-label {
  font-weight: bold;
  font-size: 0.95rem;
  color: #222;
}

.login-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.login-input:focus {
  outline: none;
  border-color: #0070f3;
  box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.15);
}

.login-button {
  margin-top: 8px;
  width: 100%;
  padding: 10px 0;
  font-size: 1rem;
}

.login-error {
  margin-top: 12px;
  color: #ff4444;
  display: none;
  background: transparent;  /* override red box */
  padding: 0;
}

/* ===== NAVBAR (index, etc.) ===== */

.site-header {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.nav-button {
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

/* link-style button */
.nav-link {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* solid logout button */
.nav-button {
  background: #0070f3;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.nav-button:hover {
  background: #005bb5;
  transform: translateY(-1px);
}

/* stack nav items nicely on smaller screens */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .nav-right {
    justify-content: flex-start;
  }
}

/* ===== HOME CARDS – smaller on mobile ===== */

/* override the earlier .image-button media rules on very small screens */
@media (max-width: 600px) {
  .button-container {
    gap: 16px;
    margin: 24px auto;
    max-width: 480px;
  }

  .image-button {
    width: 85%;          /* narrower */
    height: auto;        /* let height shrink */
    padding: 16px 16px;  /* less padding */
  }

  .image-button img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
  }

  .image-button span {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .image-button {
    width: 90%;
    padding: 12px 12px;
  }

  .image-button span {
    font-size: 0.95rem;
  }

  .button-container {
    gap: 12px;
    margin-top: 20px;
  }
}

/* Make the "no account? / forgot password?" area more visible */
.login-links {
  margin-top: 16px;
  padding: 10px 14px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9); /* subtle white block */
  border-radius: 10px;
}

.login-links a {
  color: #0056d6;          /* stronger blue links */
  font-weight: 700;        /* bold */
  text-decoration: underline;
}

.login-links a:hover {
  text-decoration: none;
}

/* --- Christmas trees around login card (CSS only) --- */

/* Make sure body can hold absolutely positioned decorations */
body {
  position: relative;
  overflow-x: hidden;
}

/* Login card stays on top of trees */
.login-container {
  position: relative;
  z-index: 2;
}

/* Base tree styling */
.xmas-tree {
  position: fixed;
  top: 50%;
  width: 140px;
  height: 260px;
  transform-style: preserve-3d;
  perspective: 800px;
  pointer-events: none;        /* cannot click it */
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
  z-index: 1;                  /* under the login card, above background */
  --base-rotate-y: 0deg;
  animation: treeFloat 5s ease-in-out infinite alternate;
}

/* Left & right placement */
.xmas-tree-left {
  left: min(3vw, 32px);
}

.xmas-tree-right {
  right: min(3vw, 32px);
  --base-rotate-y: 180deg;     /* mirror the tree for the right side */
}

/* The star “tree” itself */
.xmas-tree::before {
  content: "        ★\A      ★   ★\A    ★   ★   ★\A   ★   ★   ★   ★\A ★   ★   ★   ★   ★";
  position: absolute;
  inset: 0;
  display: block;
  white-space: pre;
  font-size: 26px;
  line-height: 1.3;
  text-align: center;
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.95),
    0 0 14px rgba(0, 200, 255, 0.7),
    0 0 28px rgba(0, 120, 255, 0.6);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.9), transparent 60%);
  transform: translateZ(20px) rotateX(18deg) rotateY(var(--base-rotate-y));
  transform-origin: center bottom;
  opacity: 0;
  /* Start as a point at the bottom, grow into a full triangle */
  clip-path: polygon(50% 100%, 50% 100%, 50% 100%, 50% 100%);
  animation:
    treeReveal 2.7s ease-out forwards 0.3s,
    twinkle 3.5s ease-in-out infinite alternate 3s;
}

#bcolp {
  background-color: black
}

/* Tree trunk for a bit of 3D feel 
.xmas-tree::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 26px;
  height: 40px;
  transform: translateX(-50%) translateZ(5px);
  background: linear-gradient(to bottom, #bbbbbb, #6f6f6f);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Tree growing up animation 
@keyframes treeReveal {
  0% {
    opacity: 0;
    clip-path: polygon(50% 100%, 50% 100%, 50% 100%, 50% 100%);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%, 50% 0%);
  }
}

/* Gentle 3D float / tilt 
@keyframes treeFloat {
  0% {
    transform: translateY(-50%) translateZ(0) rotateX(18deg) rotateY(var(--base-rotate-y));
  }
  100% {
    transform: translateY(-52%) translateZ(25px) rotateX(12deg) rotateY(var(--base-rotate-y));
  }
}

/* Stars twinkling a bit 
@keyframes twinkle {
  0% {
    text-shadow:
      0 0 4px rgba(255, 255, 255, 0.8),
      0 0 10px rgba(0, 200, 255, 0.4),
      0 0 20px rgba(0, 120, 255, 0.4);
  }
  100% {
    text-shadow:
      0 0 10px rgba(255, 255, 255, 1),
      0 0 18px rgba(0, 220, 255, 0.8),
      0 0 32px rgba(0, 150, 255, 0.8);
  }
}

/* /* On very small screens, shrink the trees a bit 
@media (max-width: 500px) {
  .xmas-tree {
    width: 100px;
    height: 200px;
  }
  .xmas-tree-left {
    left: 4px;
  }
  .xmas-tree-right {
    right: 4px;
  }
}
*/