/* ————————————————————————————————
   BASE STYLES
——————————————————————————————— */

body {
    background: #fdf8f4;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
}

.page {
    width: 80%;
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fffdf8;
    border: 2px solid #e8dcd0;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    background-image: linear-gradient(to bottom, transparent 95%, rgba(0,0,0,0.03) 96%);
    background-size: 100% 40px;
}

/* ————————————————————————————————
   HEADERS & TEXT
——————————————————————————————— */
header h1,
header .tagline {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

header {
    text-align: center;
}

header h1 {
    font-family: 'Kalam', cursive;
    font-size: 3rem;
    margin-bottom: 0;
}

.tagline {
    margin-top: 5px;
    font-size: 1.2rem;
    color: #a88;
}

nav {
    margin: 20px 0;
    display: flex;
    gap: 20px;
    justify-content: center;   /* centers the links */
}

nav a {
    text-decoration: none;
    color: #b77;
    font-weight: bold;
    font-family: 'Kalam', cursive;
    font-size: 1.2rem;
}

.section {
    margin-top: 40px;
}

.section h2 {
    font-family: 'Kalam', cursive;
    font-size: 2rem;
    color: #b77;
}

/* ————————————————————————————————
   GALLERY & CARDS
——————————————————————————————— */

.gallery {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    width: 200px;
    background: #fff;
    padding: 10px;
    border: 2px dashed #e3cfc2;
    border-radius: 10px;
    box-shadow: 3px 3px 0 #e3cfc2;
    transition: transform 0.2s ease;
     cursor: pointer;
}

.card:hover {
    transform: rotate(-2deg) scale(1.03);
}

.card img {
    width: 100%;
    border-radius: 6px;
}

.card p {
    text-align: center;
    margin-top: 10px;
    font-family: 'Kalam', cursive;
}

/* ————————————————————————————————
   SECTION FADE-IN ANIMATION
——————————————————————————————— */

.section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ————————————————————————————————
   SPARKLES & WIGGLE EFFECT
——————————————————————————————— */

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffb7d5;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleFade 0.6s ease forwards;
}

@keyframes sparkleFade {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(2); }
}

.wiggle {
    animation: wiggle 0.3s ease;
}

@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    50% { transform: rotate(-2deg); }
    75% { transform: rotate(1deg); }
    100% { transform: rotate(0deg); }
}

/* ————————————————————————————————
   LINKS
——————————————————————————————— */

.email-link {
    color: #b77;
    font-family: 'Kalam', cursive;
    text-decoration: underline wavy #e3cfc2;
}

.email-link:hover {
    color: #d88;
}

/* ————————————————————————————————
   MUSIC PLAYER
——————————————————————————————— */

.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fffdf8;
    border: 2px dashed #e3cfc2;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 3px 3px 0 #e3cfc2;
    font-family: 'Kalam', cursive;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
}

.music-player button {
    background: #f7e9df;
    border: 2px solid #e3cfc2;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-family: 'Kalam', cursive;
    font-size: 1rem;
}

.music-player button:hover {
    background: #f3dcd0;
}

#songName {
    font-size: 0.9rem;
    color: #b77;
}

/* ————————————————————————————————
   IFRAME
——————————————————————————————— */

iframe {
    width: 100%;
    min-height: 100vh;
    border: none;
}

/* ————————————————————————————————
   CD SPIN
——————————————————————————————— */

.cd {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: spin 4s linear infinite;
    animation-play-state: paused;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ————————————————————————————————
   TYPING ANIMATION (if you keep it)
——————————————————————————————— */

h1 {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #d8b6a4;
    font-family: 'Kalam', cursive;
    animation: typing 2.5s steps(20), blink 0.6s step-end infinite alternate;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

/* ————————————————————————————————
   RESPONSIVE DESIGN
——————————————————————————————— */

/* Tablets */
@media (max-width: 900px) {
    .page {
        width: 90%;
        padding: 20px;
        margin: 20px auto;
    }
}

/* Mobile */
@media (max-width: 600px) {

    .page {
        width: 95%;
        padding: 15px;
        margin: 10px auto;
    }

    nav {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    nav a {
        font-size: 1rem;
    }

    .card {
        width: 100%;
    }

    .music-player {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        gap: 6px;
    }

    .music-player button {
        font-size: 0.8rem;
        padding: 3px 6px;
    }

    #songName {
        font-size: 0.7rem;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cd {
        width: 40px;
        height: 40px;
    }

    iframe {
        height: calc(100vh - 80px);
    }
}

/* Add space at the top so the title isn't hidden behind the music player */
@media (max-width: 900px) {
    header {
        margin-top: 80px; /* pushes the title down */
    }
}

@media (max-width: 600px) {
    header {
        margin-top: 110px; /* more space for tiny screens */
    }
}

.fish-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;      /* bigger box */
    height: 50px;
    margin-right: 10px;
    vertical-align: middle;
    background-size: contain;   /* keeps proportions */
    background-position: center;
    background-repeat: no-repeat;
    animation: fishSwim 0.6s steps(2) infinite, floaty 2s ease-in-out infinite;
}


@keyframes floaty {
    0% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
    100% { transform: translateY(0); }
}

.fish-pink {
    animation: fishPink 0.6s steps(2) infinite, floaty 2s ease-in-out infinite;
}

@keyframes fishPink {
    0% { background-image: url('assets/fishPink1.png'); }
    50% { background-image: url('assets/fishPink2.png'); }
    100% { background-image: url('assets/fishPink1.png'); }
}

.fish-orange {
    animation: fishOrange 0.6s steps(2) infinite, floaty 2s ease-in-out infinite;
}

@keyframes fishOrange {
    0% { background-image: url('assets/fishOrange1.png'); }
    50% { background-image: url('assets/fishOrange2.png'); }
    100% { background-image: url('assets/fishOrange1.png'); }
}

.fish-yellow {
    animation: fishYellow 0.6s steps(2) infinite, floaty 2s ease-in-out infinite;
}

@keyframes fishYellow {
    0% { background-image: url('assets/fishYellow1.png'); }
    50% { background-image: url('assets/fishYellow2.png'); }
    100% { background-image: url('assets/fishYellow1.png'); }
}

.fish-green {
    animation: fishGreen 0.6s steps(2) infinite, floaty 2s ease-in-out infinite;
}

@keyframes fishGreen {
    0% { background-image: url('assets/fishGreen1.png'); }
    50% { background-image: url('assets/fishGreen2.png'); }
    100% { background-image: url('assets/fishGreen1.png'); }
}

.sparkle-divider {
    width: 100%;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="40">\
<g fill="%23ffb7d5" opacity="0.8">\
<circle cx="20" cy="20" r="3"/>\
<circle cx="80" cy="20" r="2"/>\
<circle cx="140" cy="20" r="4"/>\
<circle cx="200" cy="20" r="2"/>\
<circle cx="260" cy="20" r="3"/>\
<circle cx="320" cy="20" r="2"/>\
<circle cx="380" cy="20" r="4"/>\
</g>\
</svg>');
    background-repeat: repeat-x;
    animation: sparkleMove 4s linear infinite;
    margin: 30px 0;
}

@keyframes sparkleMove {
    from { background-position: 0 0; }
    to { background-position: 400px 0; }
}

/* Fade animation for iframe content */
.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-image {
    max-width: 80%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 30px;
    left: 40px;   /* moved from right → left */
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}

.nav-btn {
    position: absolute;
    top: 50%;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    padding: 10px;
}

.nav-btn.left { left: 40px; }
.nav-btn.right { right: 40px; }

.gallery-btn {
    background: #ffb6d9;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'Kalam', cursive;
    font-size: 20px;
    cursor: pointer;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.gallery-btn:hover {
    transform: scale(1.05);
}

iframe {
  width: 100%;
  height: 100vh; /* or a specific height like 900px */
  border: none;
  background: #fdf7f2; /* same as your site background */
}

.social-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 999;
}

.social-btn {
    background: #ffeef7;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
    box-shadow: 0 3px 6px rgba(255, 182, 217, 0.3);
}

.social-btn:hover {
    background: #ffb6d9;
    transform: scale(1.1);
}

.icon {
    width: 24px;
    height: 24px;
    fill: #333;
}

.social-btn:hover .icon {
    fill: white;
}

/* Extra cute rounded style */
.cute-icon {
    stroke: #333;
    stroke-width: 1.5;
    fill: none;
}


.bottom-padding {
    height: 80px; /* enough space so buttons don’t overlap */
}

.header-image {
    width: 200px; /* adjust size */
    margin: 10px auto 25px;
    display: block;
    border-radius: 12px; /* optional cute rounded corners */
}

.index-card::before,
.index-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 28px;
    background: #ffe6f2;
    border-radius: 6px;
    opacity: 0.85;
    transform: rotate(-6deg);
}

.index-card::before {
    top: -14px;
    left: 20px;
}

.index-card::after {
    bottom: -14px;
    right: 20px;
    transform: rotate(6deg);
}

.sparkle-float {
    position: relative;
    display: inline-block;
}

.sparkle-float::before,
.sparkle-float::after {
    content: "✧";
    position: absolute;
    font-size: 1.2rem;
    color: #ffb6d9;
    opacity: 0.8;
    animation: floatSparkle 2s infinite ease-in-out;
}

.sparkle-wrapper {
    position: relative;
    display: inline-block;
}

.sparkle-wrapper::before,
.sparkle-wrapper::after {
    content: "✧";
    position: absolute;
    font-size: 1.4rem;
    color: #ffb6d9;
    opacity: 0.8;
    animation: sparkleFloat 2s infinite ease-in-out;
}

.sparkle-wrapper::before {
    left: -25px;
    top: -10px;
    animation-delay: 0.2s;
}

.sparkle-wrapper::after {
    right: -25px;
    bottom: -10px;
    animation-delay: 0.8s;
}

@keyframes sparkleFloat {
    0% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-6px) scale(1.2); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 0.6; }
}

.social-btn {
    position: relative;
    z-index: 2;
}

.social-btn svg {
    width: 24px;
    height: 24px;
    z-index: 1;
}
