/* ===== RETRO 90s CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

* {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><text y="16" font-size="16">⭐</text></svg>'), auto;
}

body {
    background-color: #000080;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><rect width="20" height="20" fill="%23000066"/><rect x="20" y="20" width="20" height="20" fill="%23000066"/><rect x="20" width="20" height="20" fill="%23000080"/><rect y="20" width="20" height="20" fill="%23000080"/></svg>');
    color: #FFFF00;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Falling stars animation */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    font-size: 20px;
    animation: fall linear infinite;
    opacity: 0.7;
    will-change: transform, opacity;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Main container */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    background: #000033;
    border: 5px ridge #FFD700;
    box-shadow: 0 0 20px #FF00FF; /* Reduced shadow complexity */
}

/* TOP MARQUEE */
.top-marquee {
    background: linear-gradient(90deg, #FF0000, #FF7700, #FFFF00, #00FF00, #0000FF, #8B00FF, #FF0000);
    background-size: 400% 100%;
    animation: rainbow-bg 3s linear infinite;
    padding: 8px 0;
    font-size: 18px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 2px 2px #000000;
    border-bottom: 3px ridge #C0C0C0;
}

@keyframes rainbow-bg {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

/* HEADER */
.header {
    text-align: center;
    padding: 20px 10px;
    background: radial-gradient(circle, #1a0033, #000033);
    border-bottom: 5px ridge #FFD700;
}

.header img.banner {
    max-width: 100%;
    border: 3px outset #FF00FF;
    image-rendering: pixelated;
}

.header h1 {
    font-size: 42px;
    color: #FF00FF;
    text-shadow: 3px 3px #FFD700, -1px -1px #00FFFF, 0 0 20px #FF00FF;
    margin: 10px 0 0 0;
    animation: glow 1.5s ease-in-out infinite alternate;
    letter-spacing: 3px;
}

@keyframes glow {
    from {
        text-shadow: 2px 2px #FFD700, 0 0 10px #FF00FF;
    }

    to {
        text-shadow: 2px 2px #FFD700, 0 0 30px #FF00FF;
    }
}

.header .subtitle {
    font-size: 20px;
    color: #00FFFF;
    animation: blink-slow 1s steps(2) infinite;
}

@keyframes blink-slow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* RAINBOW DIVIDER */
.rainbow-divider {
    height: 8px;
    background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet, red);
    background-size: 200% 100%;
    animation: rainbow-scroll 2s linear infinite;
}

@keyframes rainbow-scroll {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* NAVIGATION */
.nav-bar {
    background: #333366;
    padding: 10px;
    text-align: center;
    border-bottom: 3px groove #9999CC;
}

.nav-bar a {
    color: #00FF00;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 12px;
    margin: 3px;
    display: inline-block;
    border: 2px outset #9999CC;
    background: linear-gradient(180deg, #666699, #333366);
    transition: none;
}

.nav-bar a:hover {
    color: #FFFF00;
    background: linear-gradient(180deg, #9999CC, #666699);
    border-style: inset;
}

/* CONTENT AREA */
.content {
    padding: 15px;
}

.section {
    background: #000066;
    border: 3px ridge #C0C0C0;
    margin: 15px 0;
    padding: 15px;
}

.section h2 {
    color: #FF6600;
    font-size: 28px;
    text-shadow: 2px 2px #000;
    border-bottom: 2px dashed #FF6600;
    padding-bottom: 5px;
    margin-top: 0;
}

.section h2::before,
.section h2::after {
    content: " ✨ ";
}

.section p,
.section li {
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.8;
}

.section a {
    color: #00FFFF;
    text-decoration: underline;
}

.section a:hover {
    color: #FF69B4;
    text-decoration: none;
}

/* PHOTO GALLERY */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px 0;
}

.gallery-item {
    border: 3px outset #FFD700;
    padding: 5px;
    background: #330066;
    text-align: center;
    width: 180px;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: rotate(3deg) scale(1.05);
}

.gallery-item:nth-child(even):hover {
    transform: rotate(-3deg) scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 2px inset #FF00FF;
    image-rendering: auto;
}

.gallery-item .caption {
    color: #FF69B4;
    font-size: 13px;
    margin-top: 5px;
    font-weight: bold;
}

/* DISCOGRAPHY TABLE */
.disco-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.disco-table th {
    background: linear-gradient(180deg, #9900CC, #660099);
    color: #FFD700;
    padding: 8px;
    border: 2px outset #CC66FF;
    text-transform: uppercase;
}

.disco-table td {
    background: #1a0033;
    color: #FFFFFF;
    padding: 8px;
    border: 1px solid #660099;
}

.disco-table tr:hover td {
    background: #330066;
    color: #00FF00;
}

/* MIDI PLAYER SECTION */
.midi-section {
    background: #1a0033 !important;
    text-align: center;
}

.midi-section h2 {
    color: #00FF00 !important;
    border-bottom-color: #00FF00 !important;
}

.midi-list {
    list-style: none;
    padding: 0;
}

.midi-list li {
    padding: 8px;
    margin: 5px 0;
    background: #000033;
    border: 2px ridge #00FF00;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.midi-list li .song-icon {
    font-size: 20px;
    animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-5px);
    }
}

.midi-list li .song-name {
    color: #00FFFF;
    font-weight: bold;
    flex: 1;
    min-width: 150px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.5);
    letter-spacing: 1px;
}

midi-player {
    display: block;
    width: 100%;
    max-width: 350px;
    --primary-color: #00FF00;
    --background-color: #0a0a0a;
    background: #0a0a0a;
    border: 2px solid #00FF00;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4), inset 0 0 15px rgba(0, 255, 0, 0.05);
    padding: 4px 8px;
    font-family: 'Courier New', 'VT323', monospace;
    font-size: 14px;
    color: #00FF00;
    position: relative;
    overflow: hidden;
}

/* Scanline overlay for CRT retro effect */
midi-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px);
    pointer-events: none;
    z-index: 1;
}

/* GUESTBOOK */
.guestbook-section {
    text-align: center;
    padding: 20px;
}

.guestbook-section img {
    border: 3px outset #FFD700;
    max-width: 300px;
}

.guestbook-section img:hover {
    filter: brightness(1.3) drop-shadow(0 0 10px #FFD700);
}

.guestbook-form {
    background: #1a0033;
    border: 3px ridge #FF69B4;
    padding: 15px;
    margin: 15px auto;
    max-width: 500px;
    text-align: left;
}

.guestbook-form label {
    color: #FF69B4;
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.guestbook-form input,
.guestbook-form textarea,
.guestbook-form select {
    width: 100%;
    padding: 5px;
    margin-top: 3px;
    background: #000033;
    color: #00FF00;
    border: 2px inset #666;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    box-sizing: border-box;
}

.guestbook-form textarea {
    height: 80px;
    resize: vertical;
}

.guestbook-form button {
    margin-top: 15px;
    padding: 8px 30px;
    background: linear-gradient(180deg, #FF69B4, #CC0066);
    color: #FFFFFF;
    border: 3px outset #FF69B4;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.guestbook-form button:hover {
    background: linear-gradient(180deg, #FF99CC, #FF69B4);
}

.guestbook-form button:active {
    border-style: inset;
}

/* GUESTBOOK ENTRIES */
.gb-entry {
    background: #0a0033;
    border: 2px groove #9966CC;
    padding: 10px;
    margin: 10px 0;
    text-align: left;
}

.gb-entry .gb-author {
    color: #FFD700;
    font-weight: bold;
    font-size: 15px;
}

.gb-entry .gb-date {
    color: #999;
    font-size: 12px;
}

.gb-entry .gb-message {
    color: #FFFFFF;
    margin-top: 5px;
}

/* WEBRINGS & LINKS */
.webring {
    text-align: center;
    padding: 15px;
    background: #1a1a4a;
    border: 3px double #FFD700;
    margin: 15px 0;
}

.webring h3 {
    color: #FFD700;
    font-size: 18px;
    margin-top: 0;
}

.webring a {
    color: #00FFFF;
    margin: 0 10px;
    font-weight: bold;
}

.webring a:hover {
    color: #FF00FF;
}

/* FOOTER */
.footer {
    background: #000033;
    padding: 15px;
    text-align: center;
    border-top: 5px ridge #FFD700;
}

.retro-counter {
    background: #000;
    border: 4px ridge #666;
    display: inline-block;
    padding: 0;
    margin: 10px auto;
    line-height: 0;
}

.retro-counter img {
    height: 75px;
    width: auto;
}

.footer .browser-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    align-items: center;
}

.footer .browser-logos img {
    height: 60px;
    image-rendering: auto;
    border: 2px outset #666;
}

.footer p {
    color: #999;
    font-size: 12px;
}

.footer .email-link {
    color: #00FFFF;
    font-size: 16px;
    font-weight: bold;
}

.footer .email-link:hover {
    color: #FF00FF;
}

/* AWARDS */
.awards {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.award-badge {
    background: linear-gradient(180deg, #FFD700, #CC9900);
    color: #000;
    font-weight: bold;
    font-size: 11px;
    padding: 8px 12px;
    border: 2px outset #FFD700;
    text-align: center;
    width: 100px;
}

/* SCROLLING TEXT TICKER */
.ticker {
    background: #000;
    border-top: 2px solid #FF0000;
    border-bottom: 2px solid #FF0000;
    padding: 5px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-text {
    display: inline-block;
    animation: ticker 40s linear infinite;
    color: #00FF00;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

@keyframes ticker {
    0% {
        transform: translateX(100vw);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* FUN EXTRAS */
.sparkle {
    display: inline-block;
    animation: sparkle-anim 0.5s ease-in-out infinite alternate;
}

@keyframes sparkle-anim {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.wobble {
    display: inline-block;
    animation: wobble 0.5s ease-in-out infinite alternate;
}

@keyframes wobble {
    0% {
        transform: rotate(-3deg);
    }

    100% {
        transform: rotate(3deg);
    }
}

/* CURSOR TRAIL */
.trail {
    position: fixed;
    pointer-events: none;
    font-size: 16px;
    z-index: 9999;
    animation: trail-fade 0.6s forwards;
    will-change: transform, opacity;
}

@keyframes trail-fade {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

/* FLAME TEXT EFFECT */
.flame-text {
    background: linear-gradient(180deg, #FFD700, #FF6600, #FF0000, #CC0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 18px;
    animation: flame-flicker 0.3s ease-in-out infinite alternate;
}

@keyframes flame-flicker {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.5);
    }
}

/* POPUP STYLE */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-window {
    background: #C0C0C0;
    border: 3px outset #FFFFFF;
    width: 400px;
    max-width: 90%;
    font-family: 'MS Sans Serif', 'Segoe UI', sans-serif;
}

.popup-titlebar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #FFFFFF;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-close {
    background: #C0C0C0;
    border: 2px outset #FFF;
    color: #000;
    font-weight: bold;
    padding: 0 5px;
    cursor: pointer;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

.popup-close:active {
    border-style: inset;
}

.popup-body {
    padding: 20px;
    text-align: center;
    color: #000;
    font-size: 14px;
}

.popup-body p {
    color: #000;
}

.popup-body .popup-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.popup-btn {
    background: #C0C0C0;
    border: 2px outset #FFF;
    padding: 4px 25px;
    cursor: pointer;
    font-family: 'MS Sans Serif', 'Segoe UI', sans-serif;
    font-size: 13px;
    margin-top: 10px;
}

.popup-btn:active {
    border-style: inset;
}

/* Responsive-ish (pas trop, c'est du 90s !) */
@media (max-width: 600px) {
    .header h1 {
        font-size: 28px;
    }

    .gallery-item {
        width: 140px;
    }
}

/* Visited link colors - very 90s */
a:visited {
    color: #CC66FF;
}