/* Classic 90s Styling */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,400&display=swap');

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    background: #000000;
    color: #014b01;
    overflow-x: hidden;
    cursor: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAdgAAAHYBTnsmCAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAFYSURBVCiRpZM9SwNBEIafgxASCxsLwcJCG1sLG0uxsLBQsLGwsLWwsLGwsLWwsLGwsLBQsLGwsLWwsLGwsLBQsLGwsLWwsLGwsLBQsLGwsLCwsLWwsLGwsLBQsLGwsLBQsLCwsLWwsLGwsLBQsLBQsLCwsLCwsLBQsLCwsLBQsLBQsLCwsLBQsLCwsLBQsLBQsLCwsLBQsLBQsLCwsLBQsLBQsLCwsLBQsLBQsLCwsLBQsLBQsLCwsLBQsLBQsLCwsLBQsLBQsLCwsLBQsLBQsLCwsLBQsLBQsLCwsLBQsLBQsLCwsLBQsLBQsLBQsLBQsLBQsLCwsLBQsLCwsLBQsLBQsLCwsLBQsLBQsLCwsLBQsLBQsLBQsLCwsLBQsLBQsLCwsLBQsLBQsLCwsLBQsLBQsLCwsLBQsLBQ'), auto;
}

/* Fullscreen Container */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
}

/* Dial-up Connection Screen */
#dialup-screen {
    background: linear-gradient(45deg, #000080, #008080, #000080);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.dialup-container {
    text-align: center;
    max-width: 600px;
    padding: 20px;
}

.retro-title {
    font-size: 2.5em;
    color: #FFFF00;
    text-shadow: 3px 3px 0px #FF00FF, 6px 6px 0px #00FFFF;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Terminal Window */
.terminal-window {
    background: #C0C0C0;
    border: 2px outset #C0C0C0;
    border-radius: 0;
    margin: 20px 0;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.5);
}

.terminal-header {
    background: linear-gradient(90deg, #000080, #0000FF);
    color: white;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.terminal-content {
    background: #000000;
    color: #00ff0070;
    padding: 15px;
    font-family: 'Courier New', monospace;
    min-height: 150px;
}

#connection-log {
    margin-bottom: 20px;
}

.log-line {
    margin: 5px 0;
    opacity: 0;
    animation: typewriter 0.5s ease-out forwards;
}

@keyframes typewriter {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Progress Bar */
.progress-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #404040;
    border: 1px inset #C0C0C0;
    position: relative;
}

#progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00FF00, #FFFF00, #00FF00);
    background-size: 200% 100%;
    animation: progressGlow 1s linear infinite;
    width: 0%;
    transition: width 0.3s ease;
}

@keyframes progressGlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

#progress-text {
    color: #FFFF00;
    margin-top: 10px;
    font-weight: bold;
}

/* Modem Display */
.modem-display {
    background: #404040;
    border: 2px inset #C0C0C0;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modem-lights {
    display: flex;
    gap: 10px;
}

.light {
    display: inline-block;
    padding: 5px 8px;
    background: #800000;
    color: #FF0000;
    border: 1px solid #400000;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    animation: blink 1s infinite;
}

.light.active {
    background: #008000;
    color: #00FF00;
    border-color: #004000;
    box-shadow: 0 0 10px #00FF00;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.speed-display {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #00FFFF;
}

/* Retro Button */
.retro-button {
    background: linear-gradient(45deg, #FF00FF, #FFFF00, #00FFFF);
    background-size: 300% 300%;
    animation: rainbowShift 3s ease-in-out infinite;
    border: 3px outset #C0C0C0;
    color: #000000;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 30px;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 20px;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.5);
}

@keyframes rainbowShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.retro-button:hover {
    animation-duration: 0.5s;
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px rgba(0,0,0,0.7);
}

.retro-button:active {
    border: 3px inset #C0C0C0;
    transform: translateY(0px);
}

/* Blinking Text Effect */
.blink {
    animation: blink-text 1s infinite;
}

@keyframes blink-text {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Marquee Alternative */
.marquee {
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .retro-title {
        font-size: 2em;
    }
    
    .dialup-container {
        padding: 10px;
        max-width: 90%;
    }
    
    .modem-display {
        flex-direction: column;
        gap: 10px;
    }
}

/* 90s Website Styles */
#main-content {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    background: #FFFFFF;
}

/* Table-based layout styling */
table {
    border-collapse: separate;
    border-spacing: 0;
}

td {
    vertical-align: top;
}

/* Links styling */
a {
    color: #0000FF;
    text-decoration: underline;
}

a:visited {
    color: #800080;
}

a:hover {
    color: #FF0000;
    background-color: #FFFF00;
}

/* Music button */
.music-btn {
    background: linear-gradient(45deg, #FF00FF, #FFFF00);
    border: 2px outset #C0C0C0;
    padding: 5px 10px;
    font-size: 10px;
    cursor: pointer;
    margin: 5px 0;
}

/* Virtual Pet Styles */
.pet-container {
    border: 2px inset #C0C0C0;
    background: #E0E0E0;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
}

#mini-pet {
    font-size: 24px;
    animation: petBounce 2s ease-in-out infinite;
}

@keyframes petBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.pet-status {
    font-size: 8px;
    color: #008000;
    margin: 5px 0;
}

.pet-btn {
    background: #FFB6C1;
    border: 1px outset #FFB6C1;
    padding: 3px 6px;
    font-size: 8px;
    cursor: pointer;
}

/* Time Machine Slider */
.time-slider-container {
    background: #C0C0C0;
    border: 2px inset #C0C0C0;
    padding: 15px;
    margin: 20px;
    text-align: center;
}

.time-slider {
    width: 200px;
    margin: 10px 0;
    appearance: none;
    height: 20px;
    background: linear-gradient(90deg, #FF0000, #FFFF00, #00FF00);
    outline: none;
    border: 2px inset #C0C0C0;
}

.time-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #0000FF;
    border: 2px outset #C0C0C0;
    cursor: pointer;
}

.time-labels {
    display: flex;
    justify-content: space-between;
    width: 200px;
    margin: 0 auto;
    font-size: 12px;
    font-weight: bold;
}

#current-year {
    margin-top: 10px;
    color: #FF00FF;
    font-weight: bold;
}

/* Y2K Countdown */
.countdown-display {
    background: #000000;
    color: #00ff0059;
    border: 3px inset #C0C0C0;
    padding: 15px;
    margin: 10px;
    font-family: 'Courier New', monospace;
}

#countdown-timer {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    animation: countdownGlow 1s ease-in-out infinite alternate;
}

@keyframes countdownGlow {
    from { text-shadow: 0 0 5px #00FF00; }
    to { text-shadow: 0 0 20px #00FF00, 0 0 30px #00FF00; }
}

.countdown-warning {
    font-size: 12px;
    color: #FFFF00;
    animation: blink 1s infinite;
}

/* Retro GIF placeholders */
img[alt="dancing baby"], img[alt="under construction"] {
    background: repeating-linear-gradient(
        45deg,
        #FF00FF,
        #FF00FF 10px,
        #FFFF00 10px,
        #FFFF00 20px
    );
    border: 2px dashed #000000;
    display: inline-block;
    text-align: center;
    line-height: 80px;
    color: #000000;
    font-weight: bold;
}

/* Sparkle animation for random effects */
@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0);
    }
}

/* Screen glitch effect */
@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.glitch {
    animation: glitch 0.3s ease-in-out;
}

/* Banner styles */
.banner {
    background: linear-gradient(90deg, #FF0000, #FFFF00, #00FF00, #00FFFF, #0000FF, #FF00FF, #FF0000);
    background-size: 200% 100%;
    animation: rainbowBanner 3s linear infinite;
    color: #000000;
    font-weight: bold;
    text-align: center;
    padding: 5px;
}

@keyframes rainbowBanner {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Retro form elements */
input, textarea, select {
    border: 2px inset #C0C0C0;
    background: #FFFFFF;
    font-family: 'Times New Roman', serif;
    padding: 2px;
}

button {
    border: 2px outset #C0C0C0;
    background: #C0C0C0;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    padding: 5px 10px;
    cursor: pointer;
}

button:active {
    border: 2px inset #C0C0C0;
}

/* Navigation Effects */
.nav-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Photo Gallery Styles */
.photo-container {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.photo-container:hover {
    transform: scale(1.05);
}

.fake-photo {
    border: 3px inset #C0C0C0;
    background: linear-gradient(45deg, #E0E0E0, #F0F0F0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    margin: 5px auto;
    position: relative;
    overflow: hidden;
}

.fake-photo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: photoShine 3s ease-in-out infinite;
}

@keyframes photoShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Download Progress Styles */
.download-progress {
    border: 1px inset #C0C0C0;
    height: 20px;
    margin: 10px 0;
    background: white;
}

.download-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00FF00, #008000);
    width: 0%;
    transition: width 0.5s;
}

/* Link button effects */
a:active {
    background-color: #C0C0C0 !important;
    color: #000000 !important;
}

/* Digital Counter Styling */
#hit-counter-display {
    text-shadow: 0 0 10px #FF0000, 0 0 20px #FF0000;
    letter-spacing: 3px;
    transform-origin: center;
    transition: transform 0.3s ease, color 0.2s ease;
}

#hit-counter-display:hover {
    transform: scale(1.1);
    text-shadow: 0 0 15px #FFFF00, 0 0 30px #FFFF00;
}

/* Visitor Counter Table */
.visitor-counter-table {
    border: 3px outset #C0C0C0;
    background: #000000;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.7);
}

.visitor-counter-table td {
    border: 1px inset #C0C0C0;
}

/* Retro notification animation */
.visitor-notification {
    animation: slideInNotification 0.5s ease-out;
}

@keyframes slideInNotification {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 0.8;
    }
}

/* Additional counter glow effect */
.counter-glow {
    animation: counterGlow 2s ease-in-out infinite alternate;
}

/* Browser Badge Styles */
.browser-badge {
    display: inline-block;
    width: 88px;
    height: 31px;
    border: 2px outset #C0C0C0;
    margin: 2px;
    text-align: center;
    line-height: 31px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
    cursor: pointer;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.browser-badge:hover {
    border: 2px inset #C0C0C0;
    transform: translate(1px, 1px);
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.3);
}

/* Badge hover effects for images */
img[alt*="Netscape"], img[alt*="Internet Explorer"], img[alt*="Made with"], 
img[alt*="Flash"], img[alt*="QuickTime"], img[alt*="RealPlayer"] {
    transition: all 0.2s ease;
    cursor: pointer;
}

img[alt*="Netscape"]:hover, img[alt*="Internet Explorer"]:hover, img[alt*="Made with"]:hover,
img[alt*="Flash"]:hover, img[alt*="QuickTime"]:hover, img[alt*="RealPlayer"]:hover {
    border: 2px inset #C0C0C0;
    transform: translate(1px, 1px);
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.3);
}

/* Animated warning text */
.warning-blink {
    animation: warningBlink 1.5s ease-in-out infinite;
}

@keyframes warningBlink {
    0%, 50% { color: #FF0000; }
    51%, 100% { color: #FFFF00; }
}

/* Footer sections with retro styling */
.footer-section {
    border-bottom: 2px ridge #C0C0C0;
}

.footer-section:last-child {
    border-bottom: none;
}

/* Site requirements box */
.site-requirements {
    background: #F0F0F0;
    border: 1px inset #C0C0C0;
    padding: 8px;
    margin: 5px;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.1);
}

/* WinAmp Style Volume Bars */
.vol-bar {
    width: 8px;
    height: 12px;
    background: #404040;
    border: 1px inset #C0C0C0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.vol-bar.active {
    background: linear-gradient(180deg, #00FF00, #008000);
    border: 1px outset #C0C0C0;
    box-shadow: 0 0 3px #00FF00, inset 0 0 5px rgba(255,255,255,0.5);
    animation: volumePulse 1s ease-in-out infinite alternate;
}

.vol-bar:hover {
    background: linear-gradient(180deg, #FFFF00, #FF8000);
    box-shadow: 0 0 5px #FFFF00;
    transform: scale(1.1);
}

@keyframes volumePulse {
    0% { box-shadow: 0 0 3px #00FF00, inset 0 0 5px rgba(255,255,255,0.3); }
    100% { box-shadow: 0 0 6px #00FF00, inset 0 0 8px rgba(255,255,255,0.7); }
}

/* WinAmp Player Animations */
#winamp-player {
    animation: playerGlow 3s ease-in-out infinite alternate;
}

@keyframes playerGlow {
    0% { box-shadow: 3px 3px 8px rgba(0,0,0,0.5); }
    100% { box-shadow: 3px 3px 12px rgba(0,0,0,0.7), 0 0 5px rgba(255,0,255,0.3); }
}

/* Track display effects */
#track-display {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #000000, #001100, #000000);
    border: 2px inset #C0C0C0;
}

#track-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,0,0.4), transparent);
    animation: scanLine 3s linear infinite;
}

#track-display::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        rgba(0,255,0,0.1) 1px,
        transparent 2px
    );
    animation: matrixLines 0.5s linear infinite;
}

@keyframes matrixLines {
    0% { transform: translateX(0); }
    100% { transform: translateX(2px); }
}

#track-marquee {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 3px #00FF00;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Force-hide all popup ads (safety net) */
.popup-ad { display: none !important; }

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Music button enhancements */
#play-pause-btn {
    animation: playButtonPulse 2s ease-in-out infinite;
}

@keyframes playButtonPulse {
    0%, 100% { background: linear-gradient(45deg, #FF00FF, #FFFF00); }
    50% { background: linear-gradient(45deg, #FFFF00, #FF00FF); }
}

@keyframes counterGlow {
    0% {
        box-shadow: inset 0 0 10px #FF0000;
    }
    100% {
        box-shadow: inset 0 0 20px #FFFF00, inset 0 0 30px #FF0000;
    }
}

/* ===== SPARKLE CURSOR TRAIL ===== */
.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    pointer-events: none;
    background: #FFFFFF;
    box-shadow: 
        0 0 6px 2px #00FFFF,
        0 0 12px 4px #FF00FF,
        0 0 18px 6px #FFFF00;
    border-radius: 50%;
    opacity: 0.9;
    z-index: 9999;
    animation: sparkleTrail 0.8s ease-out forwards;
}

@keyframes sparkleTrail {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.9;
    }
    100% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
}

/* ===== RAINBOW STRIPE DIVIDERS ===== */
.rainbow-stripe {
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        #FF0000 0px, #FF0000 20px,
        #FF8800 20px, #FF8800 40px,
        #FFFF00 40px, #FFFF00 60px,
        #88FF00 60px, #88FF00 80px,
        #00FF00 80px, #00FF00 100px,
        #00FF88 100px, #00FF88 120px,
        #00FFFF 120px, #00FFFF 140px,
        #0088FF 140px, #0088FF 160px,
        #0000FF 160px, #0000FF 180px,
        #8800FF 180px, #8800FF 200px,
        #FF00FF 200px, #FF00FF 220px,
        #FF0088 220px, #FF0088 240px
    );
    border: 4px ridge #FFFF00;
    margin: 15px 0;
    animation: rainbowScroll 3s linear infinite;
}

@keyframes rainbowScroll {
    0% { background-position-x: 0px; }
    100% { background-position-x: 240px; }
}

.rainbow-stripe.thin {
    height: 8px;
    margin: 8px 0;
    border-width: 2px;
}

/* ===== ANIMATED LOADING BARS ===== */
.retro-loader {
    height: 16px;
    border: 4px inset #C0C0C0;
    margin: 10px 0;
    background: #222222;
    position: relative;
    overflow: hidden;
}

.retro-loader::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        #00FF00 0px, #00FF00 10px,
        #008800 10px, #008800 20px
    );
    animation: retroLoad 2.5s linear infinite;
}

@keyframes retroLoad {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* ===== UNDER CONSTRUCTION STYLING ===== */
.under-construction {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(45deg, #FFFF00, #FF8800);
    color: #000000;
    border: 4px outset #FFFF00;
    transform: skew(-12deg);
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.6);
    animation: constructionBlink 1.2s ease-in-out infinite alternate;
}

@keyframes constructionBlink {
    0% {
        background: linear-gradient(45deg, #FFFF00, #FF8800);
        transform: skew(-12deg) scale(1);
    }
    100% {
        background: linear-gradient(45deg, #FF0000, #FFFF00);
        transform: skew(-10deg) scale(1.05);
    }
}

/* ===== RIGHT CLICK PROTECTION MESSAGE ===== */
.no-steal-message {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #FF0000;
    color: #FFFFFF;
    padding: 10px 15px;
    border: 4px ridge #FFFFFF;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    font-weight: bold;
    z-index: 10000;
    animation: stealAlert 0.3s ease-out;
}

@keyframes stealAlert {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}