/* Загальні скидання */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url('Stanford_White_33.jpg');
  position: relative;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  z-index: 0;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('image.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(50%);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

header {
  width: 100%;
  background-color: #ffffff;
  color: #333;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 20px;
  z-index: 10;
}

header h1 {
  font-family: 'Lobster', cursive;
  font-size: 64px;
  color: #b30000;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin-top: 20px;
}

nav ul li a {
  text-decoration: none;
  font-size: 18px;
  color: #6a040f;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #b30000;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1300px;
  width: 100%;
  z-index: 5;
}

.pizza-card {
  position: relative;
  background-color: #ffffff;
  color: #333;
  width: 280px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: center;
  padding: 20px 20px 40px 20px;
  cursor: default;
  user-select: none;
}

.pizza-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.pizza-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
  filter: grayscale(100%) opacity(0.8);
  transition: filter 0.4s ease;
}

.pizza-card:hover img {
  filter: grayscale(0%) opacity(1);
}

.pizza-card h2 {
  font-family: 'Lobster', cursive;
  font-size: 24px;
  color: #b30000;
  margin-bottom: 5px;
}

.toggle-btn {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  width: 30px;
  height: 30px;
  background-color: #b30000;
  border-radius: 50%;
  border: 2px solid white;
  color: white;
  font-size: 18px;
  line-height: 28px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 10;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.pizza-description {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  font-size: 16px;
  color: #333;
  margin-top: 10px;
  padding: 0 10px;
}

.pizza-description.open {
  max-height: 400px;
  padding: 10px;
}

footer {
  width: 100%;
  background-color: #6a040f;
  color: white;
  padding: 20px 0;
  text-align: center;
  font-size: 16px;
  margin-top: auto;
  user-select: none;
}

/* Модальне вікно */
.modal {
  display: flex;
  opacity: 0;
  visibility: hidden;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  color: #333;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  text-align: left;
  animation: fadeInUp 0.4s ease;
  max-height: 80vh;
  overflow-y: auto;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #b30000;
  cursor: pointer;
  user-select: none;
  border: none;
}
.toggle-btn {
  transform: rotate(-90deg);
}
.toggle-btn {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
}
