body {
    /* Replace with the path to your custom cursor image */
    cursor: url('https://sweezy-cursors.com/wp-content/uploads/2023/07/chiikawa-and-pink-pompom-anime-cursor.png'), auto;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    /* Using your provided Chiikawa pattern */
    background-image: url('../stuff/chiibackground.jpg');
    background-repeat: repeat; /* Ensures the image tiles correctly */
    background-attachment: fixed; /* Keeps the background in place on scroll */
    background-size: auto; /* Uses the image's natural size for the pattern */
    background-color: #F0F8FF; /* Fallback color */
    color: #333;
    text-align: center;
}

header {
    position: relative; /* Needed for positioning the sparkles */
    overflow: hidden; /* Keeps sparkles contained */
    color: #fff;
    padding: 2rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    /* Animated Gradient Background */
    background: linear-gradient(45deg, #B0E0E6, #ffc0cb, #e6e6fa, #c1f0f0);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    /* Creates a unique, curved bottom shape */
    border-bottom-left-radius: 50% 20px;
    border-bottom-right-radius: 50% 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem; /* Add space below the new curve */
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#header-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicking through the sparkles */
}

.sparkle {
    position: absolute;
    bottom: -20px; /* Start below the header */
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float-up 5s linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-150px);
        opacity: 0;
    }
}

header h1 {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 3rem); /* Responsive font size */
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease-in-out, transform 0.2s ease-out; /* Added transform transition */
}

header h1:hover {
    transform: scale(1.03);
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ffc0cb;
    cursor: pointer;
}

header p {
    margin: 1rem 0 0;
    font-size: 1.2rem;
    transition: transform 0.2s ease-out; /* Add transition for parallax */
}

.header-deco {
    vertical-align: middle;
    margin: 0 15px;
    width: 10vw; /* Adjusts with window width */
    max-width: 2500px; /* Prevents it from getting too large */
    min-width: 80px; /* Ensures it's visible on small screens */
    height: auto; /* Maintains aspect ratio */
    animation: float-animation 4s ease-in-out infinite; /* New floating animation */
    transition: filter 0.3s ease, transform 0.2s ease-out; /* Add transform transition */
}

.header-deco:hover {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.7)) brightness(1.1);
    cursor: pointer;
}

@keyframes float-animation {
    0% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
    100% { transform: translateY(0) rotate(-10deg); }
}

/* A more dynamic animation for sections appearing on scroll */
@keyframes swoopIn {
    from {
        opacity: 0;
        transform: translateX(-40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

main {
    padding: 1rem;
}

section {
    /* Making the background slightly transparent to see the pattern */
    background: rgba(255, 255, 255, 0.95);
    margin: 1rem auto;
    padding: 2rem;
    border-radius: 15px;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    /* Prepare for animation */
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Trigger the animation when the 'animate' class is added by the script */
section.animate {
    opacity: 1;
    animation: swoopIn 0.7s ease-out forwards;
}

/* New class for a two-column, asymmetrical layout */
.section-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 2rem;
    max-width: 950px; /* Allow more width for this layout */
}

/* Style headings for more personality */
section h2 {
    font-size: 2.5rem;
    color: #ff69b4; /* HotPink */
    padding-bottom: 10px;
    border-bottom: 3px solid #ffc0cb; /* LightPink */
    display: inline-block;
    margin-bottom: 1rem;
}

#countdown {
    font-size: 2rem;
    font-weight: bold;
    color: #ff9800;
}

.gallery-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.gallery-container img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    border: 5px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.gallery-container img:nth-child(1) { border-color: #B0E0E6; }
.gallery-container img:nth-child(2) { border-color: #ffc0cb; }
.gallery-container img:nth-child(3) { border-color: #e6e6fa; }
.gallery-container img:nth-child(4) { border-color: #ff69b4; }
.gallery-container img:nth-child(5) { border-color: #c1f0f0; }
.gallery-container img:nth-child(6) { border-color: #B0E0E6; }

.gallery-container img:hover {
    transform: scale(1.05) rotate(3deg);
    cursor: url('https://sweezy-cursors.com/wp-content/uploads/2023/07/chiikawa-and-pink-pompom-anime-pointer.png'), pointer;
}

.image-description {
    margin-top: 10px;
    font-size: 1rem;
    color: #555;
}

/* Lightbox Styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.5s;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 15px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: url('https://sweezy-cursors.com/wp-content/uploads/2023/07/chiikawa-and-pink-pompom-anime-pointer.png'), pointer;
}

.lightbox-close:hover {
    color: #bbb;
}


#love-note {
    background-color: #ffe4e1; /* MistyRose */
}

#love-button {
    background: #ff69b4; /* HotPink */
    border-bottom-color: #c71585; /* MediumVioletRed */
}

#love-button:hover {
    background: #ff1493; /* DeepPink */
}

#meow-section {
    background-color: #e6e6fa; /* Lavender */
}

#meow-button {
    background: #9370db; /* MediumPurple */
    border-bottom-color: #8a2be2; /* BlueViolet */
}

#meow-button:hover {
    background: #8a2be2; /* BlueViolet */
}

#heartfelt-message {
    background-color: #fff0f5; /* LavenderBlush */
}

.message-box {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.message-box p {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background: #FFB6C1; /* LightPink */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
    font-weight: bold;
    border-bottom: 3px solid #f7a0ac;
    cursor: url('https://sweezy-cursors.com/wp-content/uploads/2023/07/chiikawa-and-pink-pompom-anime-pointer.png'), pointer;
}

#story {
    background-color: #fff0f5; /* LavenderBlush */
}

#story img {
    max-width: 90%;
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 5px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#story p {
    font-size: 1.1rem;
    color: #665;
    line-height: 1.8;
    padding: 0 20px;
}

#guestbook {
    background-color: #f5f5f5;
}

#guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: 20px auto;
}

#guestbook-form input,
#guestbook-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1rem;
}

#guestbook-entries {
    margin-top: 30px;
    text-align: left;
}

.guestbook-entry {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 5px solid #ffc0cb;
}

.guestbook-entry p {
    margin: 0;
}

.guestbook-entry .name {
    font-weight: bold;
    color: #ff69b4;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff69b4;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
    display: none; /* Hidden by default */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-button:hover {
    background: #f7a0ac;
}

#birthday-message {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff0f5; /* LavenderBlush */
    border-radius: 10px;
    border: 2px dashed #FFB6C1; /* LightPink */
    font-size: 1.2rem;
    color: #555;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#scroll-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #ffc0cb;
    color: white;
    cursor: url('https://sweezy-cursors.com/wp-content/uploads/2023/07/chiikawa-and-pink-pompom-anime-pointer.png'), pointer;
    font-size: 24px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s, opacity 0.4s, transform 0.4s;
}

#scroll-to-top:hover {
    background-color: #ff69b4;
    transform: scale(1.1);
}

footer {
    background: linear-gradient(45deg, #B0E0E6, #ffc0cb); /* Matches header palette */
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    /* Creates a unique, curved top shape */
    border-top-left-radius: 50% 20px;
    border-top-right-radius: 50% 20px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
}

footer p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.footer-credit {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1.5rem;
}

/* Use a different cursor for interactive elements */
a, button, .gallery-container img, .lightbox-close {
    /* Replace with the path to your custom pointer image */
    cursor: url('https://sweezy-cursors.com/wp-content/uploads/2023/07/chiikawa-and-pink-pompom-anime-pointer.png'), auto;
}

#danger-video {
    display: block;
    margin: 0 auto;
}