body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* background-color: #5e2f0c; */
}

html, body {
  height: 100%;
}

.content {
  flex: 1;
  z-index: 1;
  position: relative;
}

.pattern-text {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 150px 150px  ;
  background-repeat: repeat;
  background-color: #5e2f0c;
  background-position: 0 0; 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Ctext x='0' y='220' font-size='40' font-family='Arial' transform='rotate(-45)' fill='rgba(255,165,0,0.2)'%3Ewakabros%3C/text%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.title-image {
  display: block;
  margin: 40px auto 20px;
  width: 30%;
  max-width: 500px;
  height: auto;
  position: relative;
  z-index: 10;
}

/* Store Cards Grid */
.store-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
  z-index: 2;
  position: relative;
}

.store-block {
  background: #fdf5e6;
  border-radius: 1%;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  width: 260px;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  visibility: visible; /* ensure it's visible on load */
  opacity: 1;
}

.store-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.store-block img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.store-info {
  padding: 16px;
  text-align: center;
}

.store-info h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #222;
}

.store-info p {
  margin: 5px 0 0;
  font-size: 0.95rem;
  color: #777;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  background-color: #000;
  color: #ffffff;
  opacity: 0.6;
  z-index: 3;
  position: relative;
}

.slogan {
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  color: #f9c74f; /* Light yellow to pop on brown */
  /* color: #000; */
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  z-index: 1;
  position: relative;
}

/* .logo {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 60px; 
}
 */


/* --- mini animation (top-right) --- */
.mini-waka {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 28vw;            /* responsive */
  max-width: 500px;       /* cap size */
  aspect-ratio: 26 / 6;  /* locks height so it can't jump */
  z-index: 3;
  pointer-events: none;
}

/* size children by width, not vh */
.mini-house {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 33%;
  height: auto;
}

.mini-store {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24%;
  height: auto;
}

.mini-driver {
  position: absolute;
  bottom: 7%;
  width: 19%;
  height: auto;
  animation: miniDrive 2s linear infinite;
}

/* driver moves horizontally; values kept as before */
@keyframes miniDrive {
  0%   { left: 65%; }   /* near store */
  100% { left: 25%; }  /* near house */
}

@media (max-width: 600px) {
  /* .logo{
    position: static;
    display: block;
    margin: 12px auto 0;
    width: 48px;
    height: auto;
  } */

  .title-image{
    width: 70%;
    max-width: 420px;
    margin: 18px auto 6px;
  }

  .slogan{
    font-size: 16px;
    margin: 0 auto 8px;
    text-align: center;
  }

  .mini-waka{
    position: relative;   /* was static; needed so z-index works */
    z-index: 3;           /* cards are z-index:2 */
    top: auto;
    right: auto;
    width: 80vw;
    max-width: 350px;
    aspect-ratio: 26 / 8;
    margin: 6px auto 12px;/* sit above grid with spacing */
    transform: none;
  }
}

/* Header container */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* logo left, others right */
  padding: 0.5rem 1rem;
  gap: 1.4rem;
  flex-wrap: nowrap; /* force one line */
  overflow: hidden;
}

/* Logo (left) */
.logo {
  height: 44px;
  flex-shrink: 0;
}

/* Right side (button, name, avatar) */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 1;   /* allow shrinking */
  min-width: 0;
}

/* Button */
.login-btn {
  background: #f1c40f;
  color: #4e2a00;
  border: none;
  padding: 0.35em 0.9em;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap; /* don’t wrap text */
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
}
.login-btn:hover {
  background: #d4ac0d;
}

/* Button */
.logout-btn {
  background: #f1c40f;
  color: #4e2a00;
  border: none;
  padding: 0.35em 0.9em;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap; /* don’t wrap text */
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
}
.logout-btn:hover {
  background: #d4ac0d;
}

/* Username */
#navbar-username {
  color: #f7d46b;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  flex: 0 0 8ch;
  max-width: 8ch;          /* prevent long names overflowing */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Avatar */
.navbar-profile-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f1c40f;
  flex-shrink: 0;
  min-width: 0;
}

/* Extra small screen tweak */
@media (max-width: 450px) {
  .logo {
    height: 38px;
  }
  .login-btn {
    padding: 0.3em 0.7em;
    font-size: 0.85rem;
  }
  .logout-btn {
    padding: 0.3em 0.7em;
    font-size: 0.85rem;
  }
  #navbar-username {
    font-size: 0.85rem;
    flex: 0 0 8ch;
    max-width: 8ch;
  }
  .navbar-profile-img {
    width: 30px;
    height: 30px;
  }
}


/* Modals */
.modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:1000; }
.modal.open { display:block; }
.modal .modal-content{
  width: min(520px, 92vw);
  margin: 6rem auto;
  background: #431c02;             /* dark brown-ish like your theme */
  color: #fff;
  border-radius: 14px;
  padding: 24px 24px 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.modal .close{
  float:right; border:none; background:transparent; color:#fff;
  font-size:28px; line-height:1; cursor:pointer;
}
.modal h2{ text-align:center; margin: 0 0 18px; }

.modal form{ display:flex; flex-direction:column; gap:10px; }
.modal input[type="email"],
.modal input[type="password"]{
  width:100%; padding:12px 14px; border-radius:8px; border:1px solid #2e1506;
  background:#2b1205; color:#fff; outline:none;
}
.modal input::placeholder{ color:#b0b0b0; }

/* Buttons (inherits your vibe) */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px;
      border-radius:10px; padding:12px 16px; font-weight:600; cursor:pointer; border:0; }
.btn.full{ width:100%; }
.btn-primary{ background:#c77708; color:#1b0c02; }
.btn-primary:hover{ filter:brightness(1.05); }
.btn-dark{ background:#141414; color:#fff; }
.btn-ghost{ background:transparent; color:#ffd49a; border:1px solid #5a2b0a; }

.gmark{ width:20px; height:20px; }

.auth-links{ margin-top:8px; text-align:center; font-size:.95rem; }
.auth-links a{ color:#ffd49a; text-decoration:none; }
.auth-links a:hover{ text-decoration:underline; }

.divider{ position:relative; text-align:center; margin:14px 0; }
.divider:before{ content:""; height:1px; background:#5a2b0a; position:absolute; left:0; right:0; top:50%; }
.divider span{ background:#431c02; padding:0 8px; position:relative; z-index:1; color:#ffd49a; font-size:.9rem; }
/* Forgot-password modal reuses your .modal styles */
.success-note{
  margin-top:12px;
  padding:10px 12px;
  border:1px solid #2e5a2e;
  background:#163116;
  color:#c9f1c9;
  border-radius:8px;
  display:none;
}
.modal .subtle{
  color:#ffd49a; font-size:.95rem; text-align:center; margin-top:6px;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  flex: 1;
  padding-right: 60px; /* space for button */
}

.toggle-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #c78b2a; /* adjust to match your theme */
  font-weight: bold;
  cursor: pointer;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.password-wrapper input {
  flex: 1;
  padding-right: 60px; /* room for the button */
}

.toggle-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #c78b2a; /* match your site accent */
  font-weight: bold;
  cursor: pointer;
}



