/* Shark Nourishment Popup */
.shark-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: rgba(255,255,255,0.85);
  padding: 32px 36px 28px 36px;
  border-radius: 22px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.18);
  font-size: 1.25em;
  font-weight: 600;
  z-index: 999;
  color: #663333;
  text-align: center;
  max-width: 420px;
  min-width: 260px;
  width: 90vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s cubic-bezier(.22,1.5,.36,1), transform 0.38s cubic-bezier(.22,1.5,.36,1);
}

@media (max-width: 600px) {
  .shark-popup {
    max-width: 96vw;
    min-width: 0;
    width: 96vw;
    padding-left: 10vw;
    padding-right: 10vw;
  }
}
.shark-popup.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.shark-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.shark-popup-btn {
  margin-top: 18px;
  padding: 10px 28px;
  font-size: 1em;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #4EC8D8 0%, #FF69B4 100%);
  border: none;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.shark-popup-btn:hover {
  background: linear-gradient(90deg, #FF69B4 0%, #4EC8D8 100%);
  transform: scale(1.06);
}
@import url("https://fonts.googleapis.com/css?family=Lato:300italic&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  background: #ee9ca7;
  text-align: center;
  font-family: 'Lato', sans-serif;
  padding-top: 20px;
}
/* Scene wrapper */
.scene {
  position: relative;
  width: 200px;
  overflow: visible;
  margin: 0 auto;
  padding-top: 0;
  height: 520px;
}
/* Cake */
#cake {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 1;
}
/* Cake layer animations */
#layer-1 {
  transform: translateY(-500px);
  animation: dropLayer 1.1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s forwards;
}
#frosting-1 {
  transform: translateY(-500px);
  animation: dropLayer 1.1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.5s forwards;
}
#layer-2 {
  transform: translateY(-500px);
  animation: dropLayer 1.1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.5s forwards;
}
#frosting-2 {
  transform: translateY(-500px);
  animation: dropLayer 1.1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 2.5s forwards;
}
#layer-3 {
  transform: translateY(-500px);
  animation: dropLayer 1.1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 2.5s forwards;
}
#frosting-top {
  transform: translateY(-500px);
  animation: dropLayer 1.1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 2.9s forwards;
}
#candle {
  transform: translateY(-500px);
  animation: dropLayer 1.1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 3.2s forwards;
  filter: drop-shadow(0 0 20px rgba(255, 200, 0, 0.8)) drop-shadow(0 0 35px rgba(255, 150, 0, 0.5));
}
#flame {
  animation: fadeIn 0.3s ease-in 4.1s forwards,
             flicker 1.2s infinite 4.1s;
  filter: drop-shadow(0 0 15px rgba(255, 150, 0, 0.9)) drop-shadow(0 0 30px rgba(255, 200, 100, 0.6));
}
@keyframes dropLayer {
  0% {
    transform: translateY(-500px);
    opacity: 1;
  }
  75% {
    transform: translateY(4px);
    opacity: 1;
  }
  85% {
    transform: translateY(-2px);
    opacity: 1;
  }
  92% {
    transform: translateY(1px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes flicker {
  0% { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
  15% { opacity: 0.95; transform: translateY(-1px) translateX(0.5px) scale(1.02); }
  30% { opacity: 0.92; transform: translateY(-0.5px) translateX(-0.5px) scale(0.99); }
  45% { opacity: 0.96; transform: translateY(-1.5px) translateX(0.3px) scale(1.01); }
  60% { opacity: 0.93; transform: translateY(-0.3px) translateX(-0.8px) scale(1); }
  75% { opacity: 0.95; transform: translateY(-1px) translateX(0.6px) scale(1.01); }
  90% { opacity: 0.94; transform: translateY(-0.5px) translateX(-0.3px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
}
/* Animated Soup SVG */
.soup-svg {
  position: fixed;
  top: 40px;
  left: 40px;
  width: 120px;
  height: 120px;
  z-index: 20;
  pointer-events: none;
  transition: transform 1.5s cubic-bezier(0.7,0.2,0.2,1);
}
.corner-svg {
  position: sticky;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  z-index: 10;
  pointer-events: none;
}
/* Corner SVG styling */
.corner-svg {
  position: fixed;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  z-index: 10;
  pointer-events: none;
}
/* Shark */
.shark {
  position: fixed;
  width: 160px;
  max-width: 22vw;
  display: block;
  transform-origin: center;
  z-index: 2;
  left: 50%;
  top: 20px;
  transition: transform 0.1s ease-out;
}
@keyframes swim {
  0% { top: 20px; left: 10%; transform: scaleX(-1); }
  50% { top: 20px; left: 80%; transform: scaleX(1); }
  100% { top: 20px; left: 10%; transform: scaleX(-1); }
}
/* Text */
.text {
  color: #8b6a60;
  font-weight: 400;
  font-style: italic;
  margin-top: 20px;
  margin-bottom: 20px;
}
/* Balloons */
.balloon {
  display: inline-block;
  position: relative;
  width: 120px;
  height: 145px;
  background: hsl(215,50%,65%);
  border-radius: 80%;
  margin: 20px;
  animation: balloons 4s ease-in-out infinite;
  box-shadow: -8px 8px 15px rgba(0,0,0,0.25), inset -5px -5px 10px rgba(0,0,0,0.1);
}
.balloon::before {
  /* small knot where the string attaches */
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 8px;
  height: 6px;
  background: #8b6a60;
  border-radius: 2px;
  transform: translate(-50%,-50%);
  z-index: 0;
}
.balloon::after {
  /* string */
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 120px;
  background: #8b6a60;
  transform: translateX(-50%);
  transform-origin: top center;
  border-radius: 1px;
  z-index: 0;
  animation: string-sway 4s ease-in-out infinite;
}
@keyframes string-sway {
  0%,100% { transform: translateX(-50%) rotate(-6deg); }
  50%    { transform: translateX(-50%) rotate(6deg); }
}
@keyframes balloons {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-25px); }
}