/* ========== 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)); }
}


