/* Base Styles for Hearth & Stone - Specials Page */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Playfair Display', serif;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Necessary for overlay positioning */

}

/* Background Image with Overlay */
body::before {
  content: "";
  position: fixed; /* Keeps the background fixed while scrolling */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/images/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  opacity: 0.4; /* Adjust opacity (0 = fully transparent, 1 = fully visible) */
  z-index: -1; /* Places the background behind all content */
}

/* Mobile Frame */
#mobile-frame {
  width: 375px;
  height: 667px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  background: url('../assets/images/bgbistro.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Evenly space header, content, and footer */
  overflow-y: auto;
  margin: 20px auto;
  position: relative;
}

/* Overlay to Dim the Mobile Frame Background */
#mobile-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
  z-index: 0;
}

/* Ensure content appears above the overlay */
#mobile-frame > * {
  position: relative;
  z-index: 1;
}

/* Hamburger Menu */
#navbar {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1000;
  animation: slideInDown 0.5s ease-out; /* Subtle slide-down effect */
}

.hamburger {
  font-size: 30px;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease-in-out, transform 0.3s ease-in-out;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1); /* A subtle scale-up on hover */
}

/* Go to Home Button Styling */
#home-button {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 10px;  /* Reduced padding */
  border-radius: 5px;
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;  /* Reduced font size */
  font-weight: bold;
  z-index: 1000;
  transition: background 0.2s ease, transform 0.3s ease;
}

#home-button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);  /* Slightly reduced scale effect on hover */
}


/* Dropdown Menu */
#menu {
  display: none;
  list-style: none;
  background-color: #8B3E38;
  border-radius: 5px;
  position: absolute;
  top: 50px;
  left: 0;
  width: 160px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  padding: 0;
  z-index: 999;
  animation: dropdownFadeIn 0.5s ease-out;
}

#menu li {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

#menu li:last-child {
  border-bottom: none;
}

#menu li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-family: 'Cormorant Garamond', serif;
  display: block;
  transition: background 0.3s ease-in-out;
}

#menu li:hover {
  background-color: #A54D47;
}

/* Logo Styling */
#logo-container img {
  width: 150px;
  height: auto;
  margin: 20px auto;
  display: block;
  transition: transform 0.3s ease-in-out;
}

#logo-container img:hover {
  transform: scale(1.1);
}

/* Main Content */
#content {
  text-align: center;
  padding: 20px;
  animation: fadeInUp 0.8s ease-out;
  color: #ffffff;
}

/* Main Image */
#main-image {
  width: 90%;
  max-width: 300px;
  border-radius: 10px;
  margin: 15px auto;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Info Section */
#info {
  background: rgba(0, 0, 0, 0.5); /* Dark background improves contrast */
  padding: 15px;
  border-radius: 10px;
  margin: 15px auto;
  color: #F5E6E8;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Enhance text legibility */
}
/* Footer Section */
footer {
  background: linear-gradient(90deg, #600000, #8B0000);
  color: #ffffff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px 0;
  position: sticky;
  bottom: 0;
  font-family: 'Lora', serif;
  font-weight: 700;
  transition: background 0.5s ease-in-out;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
}

#footer-nav {
  background: linear-gradient(90deg, #600000, #8B0000);
  color: #ffffff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px 0;
  font-family: 'Lora', serif;
  font-weight: 700;
  transition: background 0.5s ease-in-out;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
}

/* Footer Buttons */
.footer-button {
  text-decoration: none;
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

/* Footer Icons */
.footer-button img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

/* Hover Effect */
.footer-button:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

footer:hover {
  background: linear-gradient(90deg, #8B0000, #600000);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
