:root {
  --bg: #fff8dc;
  --text: #3e2723;
}

body {
  font-family: 'Pacifico', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  transition: background 0.5s, color 0.5s;
}

body.dark {
  --bg: #2e2e2e;
  --text: #fce4ec;
}

header {
  background-color: #fdd835;
  padding: 1rem;
  text-align: center;
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #5d4037;
  font-weight: bold;
}

main {
  padding: 2rem;
  text-align: center;
}

img {
  max-width: 300px;
  margin-top: 1rem;
  border-radius: 20px;
  box-shadow: 0 0 10px #ffcc80;
}

footer {
  background-color: #ffe0b2;
  text-align: center;
  padding: 1rem;
  position: relative;
  bottom: 0;
  width: 100%;
  font-size: 0.9rem;
}

.waffle-toppings ul {
  list-style-type: none;
  padding: 0;
}

.waffle-toppings li {
  margin: 10px 0;
}

.p1 {
  color: #ff7043;
  font-size: 1.2em;
}

.p2 {
  color: #388e3c;
  font-size: 1.2em;
}

.p3 {
  color: #1976d2;
  font-size: 1.2em;
}

.back-to-top {
  display: inline-block;
  margin-top: 1rem;
  color: #fdd835;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
}

.back-to-top:hover {
  color: #ff9800;
  text-decoration: underline;
}

#toggle-dark {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.5rem;
  cursor: pointer;
  border: none;
  background: #d7ccc8;
  border-radius: 8px;
}

.center {
  text-align: center;
  padding: 4rem;
}

.region img {
  width: 200px;
  height: auto;
  margin: 10px 0;
}

.region:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #5d4037;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
  background-color: #ffe082;
  color: #3e2723;
  transform: scale(1.1);
}

.syrup-drip {
  background: linear-gradient(to bottom, #d2691e 0%, #8b4513 100%);
  height: 60px;
  position: relative;
  overflow: hidden;
}

.syrup-drip::after {
  content: '';
  display: block;
  height: 40px;
  background: radial-gradient(circle at 20px 15px, #8b4513 20px, transparent 21px),
              radial-gradient(circle at 60px 25px, #8b4513 25px, transparent 26px),
              radial-gradient(circle at 100px 10px, #8b4513 15px, transparent 16px);
  background-repeat: repeat-x;
  background-size: 120px 30px;
  animation: drip-wiggle 4s infinite ease-in-out;
  position: relative;
}

@keyframes drip-wiggle {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(50px);
  }
}

.waffle-drip {
  position: relative;
  height: 80px;
  background: transparent;
  overflow: hidden;
  z-index: 2;
}

.waffle-drip::before {
  content: "🧇 🧇 🧇 🧇 🧇 🧇 🧇 🧇 🧇 🧇";
  display: block;
  font-size: 2.2rem;
  text-align: center;
  animation: waffleDrop 3s ease-in-out infinite;
  position: relative;
}

@keyframes waffleDrop {
  0% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
  100% { transform: translateY(0px); }
}

.regions-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.region-card {
  position: relative;
  background: #fff3e0;
  padding: 1rem;
  border-radius: 12px;
  width: 200px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.region-card:hover {
  transform: scale(1.05);
  background-color: #ffe082;
}

.region-img {
  width: 100px;
  height: 100px;
}

.region-info {
  margin-top: 0.5rem;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  font-size: 0.9rem;
  color: #5d4037;
}

.region-card:hover .region-info {
  opacity: 1;
  height: auto;
}
