/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
  color: #333;
  display: flex;
  flex-direction: column;
}

/* Fade helpers for the main content area */
#main-content {
  opacity: 1;
}

.fade-transition {
  transition: opacity 150ms ease;
}

.fade-out {
  opacity: 0;
}

/* Spinner overlay can fade too */
#spinner-overlay {
  /* already positioned in your HTML */
  display: none;       /* we’ll flip this to flex in JS */
  opacity: 0;          /* fade target */
  transition: opacity 150ms ease;
  background: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
  .fade-transition,
  #spinner-overlay {
    transition: none !important;
  }
}

.container {
  position: relative;
  z-index: 1;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 15px;
  border: 2px solid #ccc;
  border-radius: 15px;
  max-width: 900px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.container h1 {
  font-family: 'Bangers', cursive, sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
  margin-top: 32px;
}

.hours {
  font-family: 'Bangers', cursive, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.logo img {
  max-width: 50%;
  height: auto;
}

/* Top Navigation Bar */
.top-nav {
  background-color: #222831;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* Menu Item */
.menu-item {
  position: relative;
  text-align: center;
}

/* Menu Icon Button */
.menu-icon {
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
}

.menu-icon:hover {
  background-color: #393e46;
}

/* 1) Keep the bell from covering "Menu" text */
.menu-button-wrap {
  position: relative;
  padding-right: 28px; /* creates space on the right for the bell */
}

/* Reposition and slightly shrink the bell so it sits outside the label */
.menu-bell {
  position: absolute;
  top: -4px;       /* tweak as you like: -6 to 0 */
  right: 2px;      /* tweak as you like */
  font-size: 13px; /* a bit smaller looks cleaner */
  background: #ffd966;
  border: 1px solid #b58b03;
  color: #333;
  border-radius: 999px;
  padding: 2px 6px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  display: none;   /* your JS toggles this */
  z-index: 1;      /* ensures it sits above background, not text */
}

/* 2) Make the "+points" badge look like a superscript and prevent wrapping */
#logged-menu a[href="#loyalty"] {
  position: relative;
  white-space: nowrap; /* keeps text + badge on one line */
}

.menu-badge {
  display: none;           /* your JS toggles this */
  background: #902929;
  color: #fff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: super;   /* superscript effect */
  margin-left: 6px;
  display: inline-block;   /* needed for vertical-align to apply nicely */
}

/* Dropdown Menu */
.dropdown {
  position: absolute;
  top: calc(100% + 5px);
  background: rgba(34, 40, 49, 0.75);
  color: white;
  border-radius: 8px;
  padding: 10px;
  width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none;
  text-align: center;
  z-index: 1001;
}

.dropdown a {
  display: block;
  padding: 8px;
  color: white;
  text-decoration: none;
}

.dropdown a:hover {
  background-color: #00adb5;
}

/* Show Dropdown */
.dropdown.active {
  display: block;
}

/* Main Content */
.content {
  display: flex;
  flex-direction: column; /* change to column */
  justify-content: flex-start; /* align items to the top */
  align-items: center;
  text-align: center;
  background: url('/img/uvafle_bg_wide.png') no-repeat center center fixed;
  background-size: cover;
  overflow-y: auto; /* Add scrollbars only when needed */
  height: 100%; /* Make content take full viewport height */
}

@media (orientation: portrait), (max-aspect-ratio: 10/9) {
  .content {
    background-image: url('/img/uvafle_bg_tall.png');
  }
}

/* Overlay Styling */
.overlay {
  background-color: rgba(255, 255, 255, 0.65);
  border-radius: 15px;
  padding: 20px;
  max-width: 900px;
  min-width: calc(min(100vw, 900px));
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.container h1 {
  font-family: 'Bangers', cursive, sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
}

.hours, .opening-date {
  font-family: 'Bangers', cursive, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.logo img {
  max-width: 50%;
  height: auto;
}

.info {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 20px;
}

.info img {
  max-width: 6%;
  height: auto;
}

.notify {
  width: auto;
  margin: 20px;
  border: 1px solid #ffa726;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px;
  background: rgba(240, 240, 240, 0.95);
  line-height: 180%;
}

/* + Button Styling */
.action-button {
  font-size: 24px;
  font-weight: bold;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
}

/* Align + Button to the Right */
.align-right {
  margin-left: auto; /* Push the button to the far right */
  margin-right: 5px;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/** Error toast **/
/* Error Popup */
.toast-popup {
  position: fixed;
  top: -100px; /* Start hidden above the viewport */
  left: 50%;
  transform: translateX(-50%);
  background-color: #f44336; /* Red background */
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  max-width: 90%;
  transition: top 0.5s ease; /* Smooth sliding animation */
}

/* Hidden state */
.toast-popup.hidden {
  top: -100px; /* Hide above the viewport */
}

/* Button to dismiss */
.toast-popup button {
  margin-left: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
}

.toast-popup button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.toast-popup.info {
  background-color: #76c976;
}

