/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: "Chewy", cursive;
  background-color: #000000;
  z-index: -5;
  color: #ffffff;
  position: relative;
  /* Removed overflow: hidden; to allow scrolling */
}

/* Particle Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -4;
}
/* Highlighted Text Styling */
.highlight {
  color: #e74c3c; /* Red color matching "The Pizza Animal" */
}
.userthought {
  font-family: "Bangers", cursive;
  font-size: 0.7rem; /* Adjust font size as needed */
  color: #ffffff;
}
/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(44, 62, 80, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Logo Styling */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px; /* Adjust as needed */
  width: auto;
}

.logo-text {
  font-family: "Bangers", cursive;
  font-size: 1.8rem; /* Adjust font size as needed */
  color: #e74c3c;
  margin-left: 10px; /* Space between image and text */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  text-decoration: none;
  color: #ecf0f1;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #e74c3c;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #ecf0f1;
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  /* Added Background Image */
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 1),
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 0) 80%,
      rgba(0, 0, 0, 1)
    ),
    url("images/hero-background.png"); /* Added gradient overlay */
  background-size: 70% auto; /* Reduced size */
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0; /* Start fully transparent */
  animation: fadeInHero 4s ease forwards; /* Apply fade-in animation */
  background-color: rgba(
    0,
    0,
    0,
    0.75
  ); /* Optional overlay for better text visibility */
  background-blend-mode: overlay;
  position: relative;
  z-index: 0;
}
/* 404 Error Page Hero Background */
.pizza-page .hero {
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 1),
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 0) 80%,
      rgba(0, 0, 0, 1)
    ),
    url("images/slice1.png"); /* New background image for 404 page */
  /* Retain other existing background properties or modify as needed */
}
/* 404 Error Page Hero Background */
.error-page .hero {
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 1),
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 0) 80%,
      rgba(0, 0, 0, 1)
    ),
    url("images/404-sad-animal.png"); /* New background image for 404 page */
  /* Retain other existing background properties or modify as needed */
}
.hero-title {
  font-family: "Bangers", cursive;
  font-size: 2.5rem;
  letter-spacing: 2px; /* Added spacing between characters */
  margin-bottom: 20px;
  animation: fadeInDown 2s ease forwards;
}

.hero-subtitle {
  font-size: 1.2rem;
  animation: fadeInUp 3s ease forwards;
  opacity: 0;
}
/* Hero Container */
.hero-container {
  position: relative; /* Establishes a positioning context for the overlay */
}
/* Hero Arrow Styling */
.hero-arrow {
  width: 40px; /* Adjust size as needed */
  height: 40px;
  margin-top: 20px;
  cursor: pointer;
  animation: bounce 2s infinite;
  opacity: 0.8;
}

#background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1); /* Semi-transparent black */
  z-index: -1; /* Sit behind hero content */
  pointer-events: none; /* Allow interactions with hero content */
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Content Section */
.content {
  position: relative;
  padding: 200px 50px 0 50px; /* Removed bottom padding */
  background: none; /* Remove the solid background */
  overflow: hidden; /* Hide overflow if any */
  margin-bottom: 0; /* Remove any bottom margin */
}
.content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px; /* Adjust the height as needed */
  background: linear-gradient(
    to bottom,
    rgba(44, 62, 80, 0.9) 0%,
    rgba(44, 62, 80, 0) 100%
  );
  z-index: -1; /* Place it behind the content */
}
.content-title {
  text-align: center;
  font-family: "Bangers", cursive;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #e74c3c;
  animation: bounceIn 1s ease forwards;
}
.content-subtitle {
  text-align: center;
  font-family: "Bangers", cursive;
  font-size: 2.5rem;
  letter-spacing: 2px; /* Added spacing between characters */
  margin-bottom: 40px;
  color: #e74c3c;
  /* animation: bounceIn 1s ease forwards; */
}
.content-text {
  font-size: 1.2rem;
  /* animation: fadeInUp 3s ease forwards; */
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 1.5px; /* Added spacing between characters */
  /* opacity: 0; */
}

/* Animation Classes */
.animate-bounceIn {
  animation: bounceIn 1s ease forwards;
}

.animate-fadeInUp {
  animation: fadeInUp 3s ease forwards;
}
.pizza-wobble {
  animation: pizzaWobble 10s infinite ease-in-out;
}
.img-click-animation {
  animation: clickFeedback 0.3s ease;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes slideInTop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInHero {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes pizzaWobble {
  0% {
    transform: rotate(0deg);
  }
  86% {
    transform: rotate(0deg);
  }
  88% {
    transform: rotate(1deg);
  }
  90% {
    transform: rotate(-1deg);
  }
  92% {
    transform: rotate(0.6deg);
  }
  94% {
    transform: rotate(-0.6deg);
  }
  96% {
    transform: rotate(0.3deg);
  }
  98% {
    transform: rotate(-0.3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes wobble {
  0% {
    transform: rotate(0deg);
  }
  5% {
    transform: rotate(1.5deg);
  }
  10% {
    transform: rotate(-1.5deg);
  }
  20% {
    transform: rotate(1deg);
  }
  30% {
    transform: rotate(-1deg);
  }
  40% {
    transform: rotate(0.5deg);
  }
  50% {
    transform: rotate(-0.5deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes clickFeedback {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
/* Staggered Animation Delays for Each Button */
.button-container .review-button:nth-child(1) {
  animation-delay: 0s;
}
.button-container .review-button:nth-child(2) {
  animation-delay: 0.5s;
}
.button-container .review-button:nth-child(3) {
  animation-delay: 1s;
}

/* Content Section */
.cards-container {
  display: flex;
  flex-direction: row; /* Arrange cards horizontally on desktop */
  gap: 30px;
  justify-content: flex-start;
  flex-wrap: nowrap; /* Prevent wrapping to keep cards in a single row */
  overflow-x: auto; /* Enable horizontal scrolling */
  padding: 20px;
  scroll-snap-type: x mandatory; /* Enable scroll snapping */
  scroll-behavior: smooth;
  height: 80%; /*This adjusts the height of the cards*/
}

.card {
  background: rgba(236, 240, 241, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
}

.card img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px 10px;
}

.card h4 {
  font-family: "Bangers", cursive;
  font-size: 1.5rem;
  letter-spacing: 2.5px;
  margin-top: 0px;
  margin-bottom: 0px;
  color: #f1c40f;
}

.card p {
  font-size: 1rem;
  color: #ecf0f1;
}

/* Footer */
.footer {
  position: absolute;
  width: 100%;
  padding: 0px 0px;
  padding-bottom: 10px;
  background: rgba(44, 62, 80, 0.8);
  text-align: center;
  font-size: 1rem;
  color: #ecf0f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}
.footer::before {
  content: "";
  position: absolute;
  top: -50px; /* Position above the footer */
  left: 0;
  width: 100%;
  height: 50px; /* Height of the fade */
  background: linear-gradient(to top, rgba(44, 62, 80, 0.8), transparent);
  z-index: -1; /* Ensure it sits behind the footer content */
}
.footer-icons {
  margin: 10px 0;
  display: flex;
  gap: 5px;
}

.footer-icons a {
  color: #ecf0f1;
  font-size: 1.5rem; /* Adjust size as needed */
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-icons a:hover {
  color: #e74c3c;
  transform: scale(1.2);
}

.footer-icons a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.footer-icons a img:hover {
  transform: scale(1.2);
}

/* Footer Navigation Links */
.footer-nav {
  list-style: none;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 5px 0;
}

/* Additional Links Styling */
.footer-nav.additional-links {
  margin-top: 5px;
}

/* Ensure additional links are below main links */
.footer-nav.additional-links li a {
  font-size: 0.9rem;
  color: #bdc3c7;
}
.footer-nav.additional-links li a:hover {
  color: #e74c3c;
}

/* Main Navigation Links */
.footer-nav li a {
  text-decoration: none;
  color: #ecf0f1;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-nav li a:hover {
  color: #e74c3c;
}
/* Footer Logo Styling */
.footer-logo {
  color: #e74c3c;
}
/* Button Container */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; /* Space between buttons */
  margin: 15px 0 20px 0; /* Vertical spacing */
}

/* Review Buttons */
.review-button {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  width: 250px; /* Match the width of review cards */
  padding: 8px 20px;
  font-size: 1.2rem;
  font-family: "Bangers", cursive;
  letter-spacing: 2px; /* Added spacing between characters */
  background-color: #e74c3c;
  color: #f1c40f;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  animation: pulse 2s infinite ease-in-out;
}

.review-button:hover {
  background-color: #c0392b;
}

.filter-container {
  background: transparent;
  padding: 20px;
  border-radius: 10px;
  width: 90%; /* Increased width */
  margin: 40px auto 0px auto;
  backdrop-filter: none;
  box-shadow: none;
}

/* Label Styling */
.filter-container label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
  letter-spacing: 2px; /* Added spacing between characters */
  font-weight: bold;
  color: #f1c40f;
}

/* Range Input Styling */
.filter-container input[type="range"] {
  width: 100%;
  margin-bottom: 15px;
  -webkit-appearance: none;
  background: transparent;
}
.filter-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #e74c3c;
  cursor: pointer;
  margin-top: -8px;
}
.filter-container input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: #ecf0f1;
  border-radius: 2px;
}
.filter-container input[type="range"]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #e74c3c;
  cursor: pointer;
}
.filter-container input[type="range"]::-moz-range-track {
  height: 4px;
  background: #ecf0f1;
  border-radius: 2px;
}

/* Select Box Styling */
.filter-container select {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  margin-top: 0px;
  border: none;
  border-radius: 5px;
  background: #ecf0f1;
  color: #2c3e50;
  font-family: inherit;
  text-align: center;
  text-align-last: center;
}
.filter-container select:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    background-size: 100% auto; /* Slightly larger on medium screens */
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(44, 62, 80, 0.95);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
    border-radius: 10px;
  }
  .review-button {
    width: 100%; /* Full width on smaller screens */
    max-width: 250px;
  }
  .review-button.description-button {
    background-color: #f1c40f;
    color: #e74c3c;
    animation: wobble 3s infinite ease-in-out;
  }
  .review-button.description-button.active-description {
    background-color: #e74c3c;
    color: #f1c40f;
  }
  .nav-links.active {
    display: flex;
  }
  /* Show hamburger menu on mobile */
  .menu-toggle {
    display: flex;
  }
  .cards-container {
    flex-direction: column; /* Stack cards vertically on mobile */
    align-items: center;
  }
  .footer-nav {
    align-items: center;
    gap: 8px;
    margin: 8px 0;
  }
  .hero {
    background-size: 100% auto; /* Larger on small screens */
  }
  .footer-nav.main-links {
    gap: 10px;
  }
  .footer-nav.additional-links {
    gap: 8px;
    margin-top: 5px;
  }
  .footer-icons {
    gap: 10px;
    margin: 8px 0;
  }
}
/* Ensure hamburger menu is hidden on desktop */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    background: none;
    position: static;
    padding: 0;
    border-radius: 0;
  }
}
@media (max-width: 480px) {
  .hero {
    background-size: 100% auto; /* Largest on extra-small screens */
  }
  .hero-title {
    animation: slideInTop 2s ease forwards; /* Slide in from top */
    position: relative;
    top: 180px; /* Adjust position above the hero picture */
    margin-top: 200px;
  }
  .pizza-page .hero-title {
    position: relative;
    top: 60px; /* Adjust position above the hero picture */
  }
  .error-page .hero-title {
    animation: slideInTop 2s ease forwards; /* Slide in from top */
    position: relative;
    top: 120px; /* Adjust position above the hero picture */
  }
  .hero-subtitle {
    animation: slideInBottom 3s ease forwards; /* Slide in from bottom */
    position: relative;
    top: 180px; /* Adjust position below the hero picture */
  }
  .pizza-page .hero-subtitle {
    animation: slideInBottom 3s ease forwards; /* Slide in from bottom */
    position: relative;
    top: 50px; /* Adjust position below the hero picture */
  }
  .error-page .hero-subtitle {
    animation: slideInBottom 3s ease forwards; /* Slide in from bottom */
    position: relative;
    top: 120px; /* Adjust position below the hero picture */
  }
  .hero-arrow {
    position: relative;
    /* bottom: 125px; Adjust position below the hero picture */
    width: 40px; /* Adjust size as needed */
    height: 40px;
    margin-top: 200px;
    cursor: pointer;
    animation: bounce 2s infinite;
    opacity: 0.8;
  }
  .pizza-page .hero-arrow {
    position: relative;
    /* bottom: 125px; Adjust position below the hero picture */
    width: 40px; /* Adjust size as needed */
    height: 40px;
    margin-top: 0px;
    margin-bottom: 250px;
    cursor: pointer;
    animation: bounce 2s infinite;
    opacity: 0.8;
  }
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }

  /* Ensure only the hero section takes full viewport height and snaps correctly */
  .hero {
    height: 100vh;
    scroll-snap-align: start;
    /* overflow: hidden; */
    /* overflow-y: scroll; */
  }
  /* Allow the content section to have natural height for free scrolling */
  .content {
    height: auto; /* Remove fixed height */
    scroll-snap-align: start; /*Optional: retains snap alignment*/
    /* overflow: visible; */
  }

  .footer {
    height: auto; /* Remove fixed height */
    scroll-snap-align: start;
    /* overflow: visible; */
  }
  /* Optional: Hide scrollbar for a cleaner look */
  body::-webkit-scrollbar {
    display: none;
  }
  /* Make the cards container a horizontal scroll area */
  .pizza-page .cards-container {
    display: flex;
    flex-direction: row; /* Arrange cards horizontally */
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: nowrap; /* Prevent wrapping to keep cards in a single row */
    overflow-x: auto; /* Enable horizontal scrolling */
    padding: 20px;
    /* Enable scroll snapping */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    height: 80%; /*This adjusts the height of the cards*/
    min-width: 390px;
  }
  .pizza-page .cards-container::-webkit-scrollbar {
    display: none;
  }
  .pizza-page .card:only-child {
    flex: 0 0 30px; /* Use the same fixed width as multi-card view */
    margin: 0 auto; /* Center the single card */
  }
  /* Style each card to take full viewport width and snap into place */
  .pizza-page .card {
    flex: 0 0 90%; /* Ensure each card occupies full viewport width */
    scroll-snap-align: center; /* Snap the card to the center */
    margin: 0 auto; /* Center the card within the container */
    box-sizing: border-box;
    flex-shrink: 0; /* Prevent cards from shrinking */
    transform: none;
    height: 100%;
  }

  .pizza-page .content {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px; /*This adjusts the space within the content area that the card can occupy*/
  }
}

/* Mobile Device Blocker Styles */
#mobile-blocker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: none; /* Hidden by default on mobile */
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10000;
  pointer-events: all; /* Block interactions with underlying content */
}

#mobile-blocker .mobile-message {
  font-family: "Bangers", cursive;
  font-size: 4rem;
  padding: 20px;
  margin-top: 190px; /* Moves the text down by 50px */
}

/* Show blocker on devices wider than 480px */
@media (min-width: 481px) {
  #mobile-blocker {
    display: flex;
  }
  html,
  body {
    overflow: hidden;
  }
}
