/* ========== BODY ========== */
body {
    background: rgb(255, 175, 250);
    color: pink;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ========== HEADER ========== */
header {
    background-color: pink;
    background-image: url("JellyFruit.png");
    background-repeat: repeat;
    height: 350px;
    padding: 0px;
}

header .logo a {
    background-image: url("images/Jazzy's Jellos.png");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 300px;
    height: 150px;
    text-indent: -9999px;
    margin-left: 15px;
    position: relative;
    top: 0;
}

/* ========== NAVIGATION ========== */
nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: center;
}

nav li {
    display: inline-block;
    margin-right: 20px;
}

.nav-button {
    background: rgb(255, 211, 243);
    padding: 8px 15px;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    text-decoration: none;
    color: blueviolet;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: rgb(255, 182, 220);
    color: rgb(255, 255, 255);
    transform: scale(1.05);
}

/* ========== LINKS ========== */
a:link, a:visited {
    color: blueviolet;
    text-decoration: none;
}

a:hover, a:active {
    color: yellow;
    text-decoration: underline;
}

/* ========== FEATURED SECTION ========== */
.features {
    background: rgb(255, 211, 243);
    color: black;
    padding: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.features figure {
    margin: 15px;
    text-align: center;
    text-transform: uppercase;
    width: 200px;
}

.features figure img {
    border: 1px solid rgb(221, 21, 21);
    border-radius: 10%;
    box-shadow: 0 0 10px rgba(189, 25, 189, 0.7);
    width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features figure img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.8);
    animation: jello 0.9s ease-in-out;
}

/* ========== JELLO HOVER ANIMATION ========== */
@keyframes jello {
    0% { transform: scale3d(1, 1, 1); }
    15% { transform: scale3d(1.25, 0.75, 1); }
    30% { transform: scale3d(0.75, 1.25, 1); }
    45% { transform: scale3d(1.15, 0.85, 1); }
    60% { transform: scale3d(0.95, 1.05, 1); }
    75% { transform: scale3d(1.05, 0.95, 1); }
    100% { transform: scale3d(1, 1, 1); }
}

/* ========== HEADINGS ========== */
h1 {
    color: black;
    text-align: center;
    background: rgb(255, 175, 250);
    padding: 10px;
    margin: 0;
    line-height: 1.2;
}

#TUF {
    display: block;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: darkorchid;
    font-size: 0.9em;
}

/* ========== FOOTER ========== */
footer {
    background: rgb(255, 108, 180);
    color: black;
    font-size: 12px;
    padding: 10px 20px;
    text-align: center;
}

/* ========== MEDIA QUERIES ========== */
@media screen and (max-width: 800px){
    .features{
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 400px){
    .features{
        flex-direction: column;
        align-items: center;
    }
}

/* footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main, .features, #TUF {
    flex: 1; /* Pushes footer to bottom if content is small */
}

footer {
    background: rgb(255, 162, 255);
    color: black;
    font-size: 12px;
    padding: 10px 20px;
    text-align: center;
}

.social-icons img {
    width: 30px;
    margin: 0 5px;
    transition: transform 0.2s ease;
}

.social-icons img:hover {
    transform: scale(1.5);
}

/* Add glow and shimmer to falling jellos */
.falling-jello {
    position: absolute;
    top: -50px;
    width: 50px;
    pointer-events: none;
    opacity: 0.9;
    animation-name: fall, shimmer;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    filter: drop-shadow(0 0 8px rgba(255, 105, 180, 0.8));
}

/* Shimmer/glow animation */
@keyframes shimmer {
    0% { filter: drop-shadow(0 0 5px rgba(255, 105, 180, 0.6)); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 182, 220, 1)); }
    100% { filter: drop-shadow(0 0 5px rgba(255, 105, 180, 0.6)); }
}


header {
    position: relative; /* falling jellos are positioned relative to header */
    background-color: rgb(14, 13, 14);
    background-image: url("JellyFruit.png");
    background-repeat: repeat;
    height: 300px;
    overflow: hidden;
}

/* ====== FALLING JELLOS ====== */
#jello-rain img,
.falling-jello {
    position: absolute;
    top: -50px;
    width: 50px;
    pointer-events: none;
    opacity: 0.9;
    animation-name: fall, shimmer;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    filter: drop-shadow(0 0 8px rgba(255, 105, 180, 0.8));
}

/* FALLING ANIMATION */
@keyframes fall {
    0% { transform: translateY(-50px) rotate(0deg); }
    100% { transform: translateY(350px) rotate(360deg); } /* header height */
}

/* SHIMMER / GLOW EFFECT */
@keyframes shimmer {
    0% { filter: drop-shadow(0 0 5px rgb(60, 0, 255)); }
    25% { filter: drop-shadow(0 0 5px rgb(0, 170, 255)); }
    50% { filter: drop-shadow(0 0 15px rgb(255, 133, 242)); }
    75% { filter: drop-shadow(0 0 15px rgb(255, 133, 247)); }
    100% { filter: drop-shadow(0 0 5px rgb(255, 0, 238)); }
}


/* ===== Flavor Popup Modal ===== */
#flavor-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 182, 220, 0.6);
  backdrop-filter: blur(4px);
  transition: opacity 0.4s ease;
  opacity: 0;
}

/* When modal is active (shown) */
#flavor-modal.show {
  display: block;
  opacity: 1;
}

#flavor-modal img {
  margin: auto;
  display: block;
  width: 60%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(255, 105, 180, 0.8);
  animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}

#caption {
  text-align: center;
  color: blueviolet;
  font-weight: bold;
  margin-top: 10px;
}

.close {
  position: absolute;
  top: 30px;
  right: 45px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: rgb(255, 105, 180);
  text-decoration: none;
  cursor: pointer;
}

/* ===== Sparkle Effect ===== */
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, white 40%, rgba(255, 192, 203, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkleMove 1s ease-out forwards;
  z-index: 1100;
}

@keyframes sparkleMove {
  0% {
    opacity: 1;
    transform: scale(0.6) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: scale(1.5) translate(var(--x), var(--y));
  }
}


/* ====== GENERAL PRICING SECTION ====== */
.pricing {
  background: rgb(255, 230, 245);
  text-align: center;
  padding: 40px 20px;
  border-radius: 20px;
  margin: 50px auto;
  max-width: 800px;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
}

.pricing h2 {
  font-size: 2em;
  color: rgb(180, 50, 130);
  margin-bottom: 25px;
}

.price-table {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  width: 80%;
  max-width: 400px;
  background: rgb(255, 210, 240);
  padding: 12px 20px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
  font-size: 1.1em;
  font-weight: bold;
}

.price-row .size {
  color: rgb(150, 0, 120);
}

.price-row .price {
  color: rgb(80, 0, 80);
}

.price .per-item,
.price-row .per-item {
  display: block;
  font-size: 0.8em;
  color: rgb(150, 80, 150);
  font-weight: normal;
  margin-top: 3px;
  opacity: 0.8;
}

/* Responsive */
@media screen and (max-width: 500px) {
  .price-row {
    width: 95%;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
}

/* ====== PRICING CONTAINER (SIDE BY SIDE) ====== */
.pricing-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* allows stacking on small screens */
  margin: 40px auto;
  max-width: 1200px;
}

/* Make each pricing box share space nicely */
.pricing {
  flex: 1 1 400px; /* responsive box size */
  background: rgb(255, 230, 245);
  text-align: center;
  padding: 40px 20px;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
}

.jello-disclaimer {
  background-color: rgba(255, 182, 193, 0.2); /* soft pink tint */
  border-left: 4px solid rgb(255, 182, 193);
  padding: 12px 16px;
  margin-top: 20px;
  border-radius: 8px;
  font-size: 0.95em;
  color: rgb(90, 50, 70);
  max-width: 600px;
  line-height: 1.5;
}

.jello-disclaimer strong {
  color: rgb(220, 80, 120);
}


/* Footer social icons */
.social-icons img {
  width: 40px; /* default size for desktop */
  height: auto;
  margin: 0 8px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(255, 182, 220, 0.7));
}

.social-icons img:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 0 10px rgba(255, 105, 180, 1));
}

/* Make them bigger on mobile screens */
@media (max-width: 600px) {
  .social-icons img {
    width: 60px; /* bigger for mobile visibility */
    margin: 0 10px;
  }
}

