body {
    /* The quintessential 2000s font */
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif;
    margin: 0;
    /* Windows Plus! style background */
    background-color: #000033; /* Fallback color */
    /* Add a dark overlay to the background image for better text visibility */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('SUMO PICS/Windows Plus Wallpaper_result.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keeps the background stationary on scroll */
    color: #ffffff;
    /* A custom star cursor for peak Y2K style! */
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffff00' stroke='%23ff00ff' stroke-width='1' d='M12 0l3.09 8.91L24 12l-8.91 3.09L12 24l-3.09-8.91L0 12l8.91-3.09L12 0z'/%3E%3C/svg%3E") 12 12, auto;
}

.main-content-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

/* Ensure main content blocks sit on top of the nostalgia GIFs */
header, .bio-section, .gallery, footer {
    position: relative;
    z-index: 2;
}

header {
    padding: 1.5rem;
    text-align: left; /* Shift text to the left for an asymmetrical feel */
    margin-top: 1rem;
    /* overflow: hidden;  We remove this so sparkles can pop out */
}

.profile-pic {
    width: 150px;
    height: 150px;
    /* No more soft-radius, sharp corners! */
    float: left; /* Float the image to the left */
    margin-right: 1.5rem; /* Add space between image and text */
    border: 4px double #ffff00;
    border-radius: 50%; /* This makes the frame round */
    shape-outside: circle(50%); /* Helps text wrap nicely in supporting browsers */
}

header h1 {
    /* Use the new futuristic font, keeping Impact as a fallback */
    font-family: 'Orbitron', 'Impact', 'Arial Black', sans-serif;
    margin: 0;
    font-size: 4.5rem;
    color: #00ff00;
    /* Hard drop-shadow effect */
    /* Animate the text shadow for a rainbow effect! */
    animation: rainbowGlow 4s linear infinite;
}

header p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    color: #ffff00;
}

.sparkle-container, .sparkle-container > span {
    position: relative;
    display: inline-block;
}

.sparkle-container::before,
.sparkle-container::after,
.sparkle-container > span::before,
.sparkle-container > span::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='50,0 61,39 100,50 61,61 50,100 39,61 0,50 39,39' fill='%23ffff00'/%3E%3C/svg%3E");
    background-size: contain;
    animation: sparkle 2s linear infinite;
}

.sparkle-container::before { top: -15px; left: 10%; animation-delay: 0s; }
.sparkle-container::after { top: 80%; left: 0; animation-delay: -0.5s; }
.sparkle-container > span::before { top: 0; right: 0; animation-delay: -1s; }
.sparkle-container > span::after { top: 50%; right: -15px; animation-delay: -1.5s; }

.instagram-link {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.instagram-link a {
    color: #00ff00; /* Neon green to match the heading */
    text-decoration: underline;
    /* Make the link blink and change colors! */
    animation: linkBlink 2s linear infinite;
}

.donate-shortcut {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.donate-shortcut a {
    color: #ffff00; /* Bright yellow to stand out */
    text-decoration: underline;
    display: inline-block; /* Needed for transform to work */
    text-shadow: 2px 2px #ff00ff;
    animation: commandPulse 1.5s ease-in-out infinite;
}

.bio-section {
    position: relative; /* Needed to position the image inside */
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #8a2be2, #4169e1); /* A new gradient */
    border: 5px outset #c0c0c0;
    text-align: left;
    /* Add random, asymmetrical rounded corners for a messy look */
    border-radius: 25px 60px 30px 50px;
}

.bio-section h2 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 2.5rem;
    color: #ffff00;
    text-shadow: 2px 2px #ff00ff;
    margin: 0 0 1rem 0;
}

.bio-section p {
    color: #ffffff;
    line-height: 1.6;
    font-size: 1.1rem;
}

.bio-image {
    position: absolute;
    top: -30px;
    right: 20px;
    width: 180px;
    transform: rotate(10deg);
    /* A drop-shadow looks better on transparent images than a border */
    filter: drop-shadow(3px 3px 0 #00ff00) drop-shadow(-3px -3px 0 #ff00ff);
}

.gallery {
    /* Ditching the modern grid for a simpler centered layout */
    text-align: center;
    padding: 0 1rem; /* Use padding to prevent content from touching edges */
    margin-top: 1rem;
}

.gallery-item {
    /* Add a classic repeating pattern for more texture */
    background-image: repeating-linear-gradient(45deg, #c0c0c0, #c0c0c0 10px, #e0e0e0 10px, #e0e0e0 20px);
    border: 4px inset #eee;
    display: inline-block;
    margin: 1.5rem;
    padding: 0.5rem;
    vertical-align: top;
    width: 350px;
    position: relative; /* Needed for z-index on hover */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Add messy, overlapping rotations to gallery items */
.gallery-item:nth-child(odd) { transform: rotate(-3deg); }
.gallery-item:nth-child(even) { transform: rotate(2deg); }
.gallery-item:nth-child(3n) { transform: rotate(4deg); }
.gallery-item:nth-child(4n) { transform: rotate(-1deg); }

.gallery-item:hover {
    /* Add a yellow glow on hover */
    box-shadow: 0 0 15px #ffff00;
    border-color: #ffff00;
    /* Straighten out and bring to the front on hover */
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; /* Ensures all image containers are uniform */
    object-fit: cover;   /* Prevents images from being stretched or squished */
    display: block;
    border: 1px solid #333;
}

.caption {
    /* Captions are always visible now */
    /* Give the caption a cool gradient */
    background: linear-gradient(to right, #0000ff, #8a2be2);
    color: #ffffff;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(45deg, #0000ff, #ff00ff);
    border: 5px outset #c0c0c0;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.donate-section {
    position: relative; /* Needed for positioning the SOS icon */
    background-color: #ffff00;
    color: #000000;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 3px dashed #ff00ff;
    animation: borderBlink 1s step-end infinite;
}

.donate-section h3 {
    color: #ff00ff; /* Magenta to match the header shadow */
    font-family: 'Impact', 'Arial Black', sans-serif;
    margin: 0 0 1rem 0;
    font-size: 2.5rem; /* Make the donation title bigger */
}

.sos-icon {
    position: absolute;
    width: 70px;
    z-index: 10; /* Ensure they are on top */
}

.sos-icon.top-right {
    top: -25px;
    right: -20px;
    transform: rotate(15deg);
}

.sos-icon.top-left {
    top: -20px;
    left: -25px;
    transform: rotate(-20deg);
}

.sos-icon.bottom-right {
    bottom: -20px;
    right: -15px;
    transform: rotate(-10deg);
}

.sos-icon.bottom-left {
    bottom: -25px;
    left: -20px;
    transform: rotate(25deg);
}

.crypto-donate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap; /* Allows items to stack on small screens */
}

.qr-code {
    width: 150px;
    height: 150px;
    border: 2px solid #333;
    background-color: #fff;
}

.wallet-address p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.wallet-address code {
    background-color: #e0e0e0;
    /* A more period-appropriate border for better visual weight */
    border: 2px inset #999;
    padding: 0.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem; /* Slightly larger for readability */
    color: #000;
    display: block;
    word-wrap: break-word; /* Ensures long address doesn't overflow */
    cursor: pointer;
    transition: background-color 0.2s;
}

.wallet-address code:hover {
    background-color: #f0f0f0; /* A slightly different shade on hover */
}
.donation-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
}

.copy-popup {
    position: absolute;
    bottom: 100%; /* Position it directly above the wallet address */
    left: 0;
    right: 0;
    background-color: #00ff00;
    color: #000;
    padding: 8px 16px;
    border-radius: 5px;
    border: 2px solid #000;
    font-weight: bold;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
    margin-bottom: 5px; /* Add a little space between the popup and the address */
}

.copy-popup.show {
    opacity: 1;
    visibility: visible;
}

.donation-proof {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 1.5rem;
    color: #ffff00;
    text-shadow: 2px 2px #ff00ff;
    margin: 1.5rem 0;
}

.donation-proof a {
    color: #00ff00; /* Neon green for high contrast */
    text-decoration: underline;
    animation: linkBlink 2s linear infinite; /* Reuse the blinking animation */
}

.family-gallery {
    margin-top: 2.5rem;
    text-align: center;
    border-top: 3px dashed #ff00ff;
    padding-top: 1.5rem;
}

.family-gallery h4 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    color: #00ff00;
    font-size: 1.8rem;
    text-shadow: 2px 2px #ff00ff;
    margin: 0 0 1rem 0;
}

.family-members-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.family-member {
    width: 100px;
}

.family-member img {
    width: 80px;
    height: auto;
}

.family-member .name {
    margin-top: 0.25rem;
    font-weight: bold;
}

.family-member .rip {
    opacity: 0.7;
    text-decoration: line-through;
}

.visitor-counter {
    margin-top: 1rem;
    border: 2px inset #c0c0c0;
}

.big-sumo-pic {
    display: block;
    margin: 2.5rem auto 1rem;
    width: 300px;
    border: 10px groove #ff00ff; /* A classic, chunky Y2K border */
    padding: 10px;
    background-color: #00ffff; /* A cyan background for the padding area */
    transform: rotate(-5deg);
}

/* --- Nostalgia GIFs --- */

.nostalgia-gif {
    position: absolute;
    z-index: 1; /* Sit behind main content */
    border: 3px outset #c0c0c0;
}

#pikachu-gif {
    top: 150px;
    left: -50px;
    width: 100px;
    transform: rotate(-15deg);
}

#intel-gif {
    top: 800px;
    right: -60px;
    width: 120px;
}

#yahoo-gif {
    top: 1200px;
    left: 20px;
    width: 150px;
    transform: rotate(5deg);
    border: 5px groove #ff00ff;
    padding: 5px;
    background-color: #fff;
}

/* --- Animations --- */

@keyframes rainbowGlow {
    0%   { text-shadow: 4px 4px #ff00ff; } /* Magenta */
    25%  { text-shadow: 4px 4px #00ffff; } /* Cyan */
    50%  { text-shadow: 4px 4px #ffff00; } /* Yellow */
    75%  { text-shadow: 4px 4px #00ff00; } /* Green */
    100% { text-shadow: 4px 4px #ff00ff; } /* Back to Magenta */
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(0.7) rotate(180deg); opacity: 0.5; }
}

@keyframes borderBlink {
    50% {
        /* Blink between magenta and cyan */
        border-color: #00ffff;
    }
}

@keyframes linkBlink {
    50% {
        color: #ffff00;
        text-shadow: 1px 1px #00ffff;
    }
}

@keyframes commandPulse {
    0% {
        transform: scale(1);
        text-shadow: 2px 2px #ff00ff;
    }
    50% {
        transform: scale(1.05);
        text-shadow: 2px 2px #00ffff, 0 0 20px #ffff00; /* Add a glow */
    }
    100% {
        transform: scale(1);
        text-shadow: 2px 2px #ff00ff;
    }
}

/* --- Responsive Styles --- */

/* For Tablets and smaller devices */
@media (max-width: 768px) {
    .main-content-wrapper {
        max-width: none;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    header h1 {
        font-size: 3.5rem; /* Make heading smaller */
        animation: none; /* Disable animation for smaller screens */
        text-shadow: 3px 3px #ff00ff;
    }

    .profile-pic {
        float: none; /* Un-float the profile picture on smaller screens */
        display: block;
        margin: 0 auto 1rem;
    }

    .gallery-item {
        width: 80%; /* Allow items to take more width */
        margin-left: auto;
        margin-right: auto;
        display: block; /* Stack them vertically */
    }

    .bio-image {
        /* On smaller screens, make the image static and centered */
        position: static;
        display: block;
        margin: 0 auto 1.5rem;
        transform: rotate(0deg);
    }

    .bio-section {
        text-align: center;
    }

    /* Hide the random GIFs on smaller screens to avoid clutter */
    .nostalgia-gif {
        display: none;
    }

}

/* For Mobile phones */
@media (max-width: 480px) {
    body {
        /* The background image can be distracting on small screens, let's remove it */
    }

    header, footer {
        margin: 0.5rem; /* Reduce outer margins */
        border-width: 3px;
    }

    .profile-pic {
        width: 100px; /* Smaller profile pic */
        height: 100px;
    }

    header h1 {
        font-size: 2.5rem; /* Even smaller heading */
        animation: none; /* Disable animation for mobile */
        text-shadow: 2px 2px #ff00ff;
    }

    .instagram-link a,
    .donate-shortcut a {
        animation: none; /* Disable blinking on mobile for readability */
        text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000; /* Add a dark outline */
    }

    .donate-shortcut {
        font-size: 1.2rem;
    }

    .gallery-item {
        width: 95%; /* Almost full width */
        margin: 1rem auto; /* Increase vertical spacing between stacked items */
        padding: 0.25rem;
    }

    .donate-section {
        padding: 0.5rem;
    }

    .donate-section p {
        font-size: 0.9rem;
    }

    .bio-section h2,
    .donate-section h3 {
        font-size: 2rem; /* Reduce heading sizes for mobile */
    }

    .donation-proof {
        font-size: 1.2rem; /* Make donation proof text smaller on mobile */
        margin: 1rem 0;
    }

    .sos-icon {
        width: 50px;
    }
    .sos-icon.top-right { top: -20px; right: -15px; }
    .sos-icon.top-left { top: -15px; left: -20px; }
    .sos-icon.bottom-right { bottom: -15px; right: -10px; }
    .sos-icon.bottom-left { bottom: -20px; left: -15px; }

    .big-sumo-pic {
        width: 200px; /* Make it smaller on mobile */
    }
}