/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Root Font Size */
html {
  font-size: 16px;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-btn {
    font-size: 0.9rem;
    padding: 12px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }
}

/* Global Styles */
body {
  font-family: 'Open Sans', sans-serif;
  background-color: #5A5A2D;
  color: white;
}

/* Full Page Grid Layout */
.page-grid {
  display: grid;
  grid-template-areas:
    "topbar"
    "header"
    "main"
    "footer";
  grid-template-rows: auto auto 1fr auto;
  height: 100vh;
}

/* Top Bar */
.top-bar {
  grid-area: topbar;
  display: flex;
  justify-content: flex-end;
  background-color: #444;
}

.contrast-toggle {
  height: 48px;
  padding: 0 16px;
  font-size: 1rem;
  line-height: 48px;
  border: none;
  border-radius: 0;
  background-color: #ccc;
  color: #000;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contrast-toggle:hover {
  background-color: #bbb;
}

/* Header */
.header {
  grid-area: header;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background-color: #5A5A2D;
}

.logo {
  width: 100px;
  height: auto;
  margin-bottom: 8px;
}

.brand-name {
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 12px;
}

/* Main Content */
.main-content {
  grid-area: main;
  overflow-y: auto;
}

.content-wrapper {
  padding: 16px;
  padding-bottom: 80px; /* Space for sticky nav */
}

/* Footer Navigation */
.footer-nav {
  grid-area: footer;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background-color: #8B4C39;
  width: 100%;
  position: sticky;
  bottom: 0;
  left: 0;
  z-index: 1000;
}

.nav-btn {
  background-color: #A35C3A;
  color: white;
  border: 1px solid #333;
  padding: 14px 0;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.nav-btn:hover {
  background-color: #C86F43;
}

.nav-btn.active {
  background-color: #ED7014;
  color: white;
  font-weight: bold;
  border-radius: 5px;
}

/* High Contrast Mode */
.high-contrast {
  background-color: #000000;
  color: #ffffff;
}

.high-contrast .header,
.high-contrast .footer-nav,
.high-contrast .top-bar {
  background-color: #222;
}

.high-contrast .nav-btn {
  background-color: #A35C3A;
  color: #ff0;
  border: 1px solid #888;
}

.high-contrast .nav-btn.active {
  background-color: #ED7014;
  color: #000;
}

.high-contrast .contrast-toggle {
  background-color: #444;
  color: #fff;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.menu-item {
  background-color: #8B4C39;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.menu-item h3 {
  margin-bottom: 8px;
}

.menu-item p {
  margin-bottom: 4px;
}
/* Rewards Grid */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.reward-item {
  background-color: #8B4C39;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #333;
}

.reward-item h3 {
  margin-bottom: 8px;
  color: #ffffff;
}

.reward-item p {
  color: #fff;
}
.menu-img {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
}
