/* PIXEL PUMPERS - Early Web Aesthetic Theme */
/* Inspired by late 90s/early 2000s web design */

:root {
    /* Bright, saturated color palette */
    --neon-blue: #0099ff;
    --neon-pink: #ff00ff;
    --neon-yellow: #ffff00;
    --cyber-purple: #9933ff;
    --lime-green: #00ff00;
    --hot-orange: #ff6600;
    
    /* Background colors */
    --bg-main: #000080; /* Classic web blue */
    --bg-alt: #6600cc;
    --bg-panel: #ffffff;
    
    /* Text colors */
    --text-main: #ffffff;
    --text-dark: #000000;
    --text-shadow: #ff00ff;

    /* Colorful retro crosshair cursor (32x32, hotspot centered) */
    --cursor-retro-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' fill='rgba(0,0,0,0)'/%3E%3Crect x='14' y='2' width='4' height='28' fill='%2300ffff'/%3E%3Crect x='2' y='14' width='28' height='4' fill='%2300ffff'/%3E%3Crect x='15' y='4' width='2' height='24' fill='%23ff00ff'/%3E%3Crect x='4' y='15' width='24' height='2' fill='%23ff00ff'/%3E%3Crect x='12' y='12' width='8' height='8' fill='none' stroke='%23ffff00' stroke-width='2'/%3E%3Crect x='15' y='15' width='2' height='2' fill='%23ffffff'/%3E%3C/svg%3E") 16 16;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Comic Sans MS", "Comic Sans", cursive, sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, #000080 0%, #6600cc 50%, #000080 100%);
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    padding-bottom: 42px;
    overflow-x: hidden;
    line-height: 1.4;
    cursor: var(--cursor-retro-cross), crosshair;

    /* Firefox scrollbar colors */
    scrollbar-width: auto;
    scrollbar-color: #2a6bff #d7d7db;
}

a,
button,
input,
select,
textarea,
summary,
.character-option,
canvas {
    cursor: var(--cursor-retro-cross), crosshair;
}

/* Global retro scrollbar (Chrome/Edge/Safari) */
*::-webkit-scrollbar {
    width: 18px;
    height: 18px;
    background: #d7d7db;
}

*::-webkit-scrollbar-track {
    background:
        repeating-linear-gradient(
            45deg,
            #d7d7db 0,
            #d7d7db 4px,
            #c6c6cc 4px,
            #c6c6cc 8px
        );
    border: 2px inset #f6f6f8;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #59b2ff 0%, #2a6bff 100%);
    border: 2px outset #9fd6ff;
    box-shadow: inset 0 0 0 1px #0f3fb7;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #77c3ff 0%, #3777ff 100%);
}

*::-webkit-scrollbar-corner {
    background: #d7d7db;
    border: 2px inset #f6f6f8;
}

*::-webkit-scrollbar-button:single-button {
    background-color: #d7d7db;
    border: 2px outset #f6f6f8;
    background-position: center;
    background-repeat: no-repeat;
}

*::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-image: linear-gradient(135deg, transparent 50%, #1e35a6 50%), linear-gradient(225deg, transparent 50%, #1e35a6 50%);
    background-size: 7px 7px;
    background-position: calc(50% - 3px) 58%, calc(50% + 3px) 58%;
}

*::-webkit-scrollbar-button:single-button:vertical:increment {
    background-image: linear-gradient(315deg, transparent 50%, #1e35a6 50%), linear-gradient(45deg, transparent 50%, #1e35a6 50%);
    background-size: 7px 7px;
    background-position: calc(50% - 3px) 45%, calc(50% + 3px) 45%;
}

*::-webkit-scrollbar-button:single-button:horizontal:decrement {
    background-image: linear-gradient(225deg, transparent 50%, #1e35a6 50%), linear-gradient(315deg, transparent 50%, #1e35a6 50%);
    background-size: 7px 7px;
    background-position: 58% calc(50% - 3px), 58% calc(50% + 3px);
}

*::-webkit-scrollbar-button:single-button:horizontal:increment {
    background-image: linear-gradient(45deg, transparent 50%, #1e35a6 50%), linear-gradient(135deg, transparent 50%, #1e35a6 50%);
    background-size: 7px 7px;
    background-position: 45% calc(50% - 3px), 45% calc(50% + 3px);
}

/* Add animated starfield texture overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: starfield 60s linear infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

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

/* Header with early web pizzazz */
header {
    background: linear-gradient(180deg, #ff00ff 0%, #0099ff 100%);
    border-bottom: 5px solid var(--neon-yellow);
    padding: 8px 12px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
    border-top: 3px ridge #ffff00;
    border-left: 3px ridge #ffff00;
    border-right: 3px ridge #ffff00;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

header img {
    filter: drop-shadow(0 0 10px #ffff00) drop-shadow(0 0 20px #ff00ff);
}

.site-brand h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 36px;
    color: #ffff00;
    text-shadow: 
        1px 1px 0px #ff00ff,
        2px 2px 0px #0099ff,
        3px 3px 0px #00ff00,
        4px 4px 0px rgba(0, 0, 0, 0.35);
    margin: 6px 0 3px 0;
    letter-spacing: 1px;
    transform: none;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { 
        text-shadow: 
            3px 3px 0px #ff00ff,
            6px 6px 0px #0099ff,
            9px 9px 0px #00ff00,
            0 0 30px #ffff00;
    }
    50% { 
        text-shadow: 
            3px 3px 0px #ff00ff,
            6px 6px 0px #0099ff,
            9px 9px 0px #00ff00,
            0 0 60px #ffff00,
            0 0 80px #ff00ff;
    }
}

.site-brand p {
    font-size: 12px;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000000;
    font-weight: bold;
    margin-top: 5px;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    display: inline-block;
    border: 2px dotted #ffff00;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 1000px;
}

.nav-win95 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    font-family: "MS Sans Serif", Tahoma, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
    text-shadow: none;
}

.nav-win95:hover {
    filter: brightness(1.08);
}

.nav-win95:active {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: translate(1px, 1px);
}

.nav-follow {
    background: linear-gradient(180deg, #7ef3ff 0%, #2ac8ff 100%);
}

.nav-github {
    background: linear-gradient(180deg, #ffb174 0%, #ff6d4a 100%);
}

.nav-docs {
    background: linear-gradient(180deg, #fff68a 0%, #f7d94f 100%);
}

.nav-mobile {
    background: linear-gradient(180deg, #8fffa6 0%, #52da63 100%);
}

.nav-contact {
    background: linear-gradient(180deg, #e9a3ff 0%, #c56cff 100%);
}

main {
    position: relative;
    z-index: 1;
    padding: 10px 10px;
}

.content-container {
    width: 100%;
    max-width: none;
    padding: 0 6px;
    margin: 0 auto;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(640px, 2.6fr) minmax(250px, 1fr);
    align-items: start;
    gap: 8px;
    margin-bottom: 16px;
}

.side-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Retro beveled panels */
.game-container,
.info-container,
.mission-container,
.roadmap-container,
.about-container,
.contact-container,
.bugs-container {
    background: linear-gradient(135deg, #ffffff 0%, #e6e6ff 100%);
    border: 4px outset #cccccc;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 
        5px 5px 0px rgba(0, 0, 0, 0.5),
        10px 10px 0px rgba(255, 0, 255, 0.3);
    position: relative;
}

.hero-layout .game-container,
.hero-layout .info-container,
.hero-layout .mission-container {
    margin-bottom: 0;
}

.hero-layout .mission-container,
.hero-layout .info-container {
    max-height: calc(100vh - 150px);
    overflow: auto;
}

.hero-layout .about-container,
.hero-layout .contact-container {
    margin-bottom: 0;
    max-height: calc(100vh - 150px);
    overflow: auto;
}

.win95-window {
    width: 100%;
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.win95-titlebar {
    background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
    color: #ffffff;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #404040;
}

.win95-title {
    font-family: "MS Sans Serif", Tahoma, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.2px;
    text-transform: lowercase;
}

.win95-controls {
    display: flex;
    gap: 3px;
}

.win95-btn {
    width: 18px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "MS Sans Serif", Tahoma, sans-serif;
    font-size: 10px;
    color: #000;
    background: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    line-height: 1;
}

.win95-body {
    padding: 6px;
    background: #c0c0c0;
}

/* Corner decorations */
.game-container::before,
.info-container::before,
.mission-container::before {
    content: "★";
    position: absolute;
    top: -15px;
    left: -15px;
    font-size: 30px;
    color: #ffff00;
    text-shadow: 0 0 10px #ff00ff;
    animation: spin 3s linear infinite;
}

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

.game-container::after {
    content: "★";
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 30px;
    color: #00ff00;
    text-shadow: 0 0 10px #0099ff;
    animation: spin 3s linear infinite reverse;
}

h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    color: #ff00ff;
    font-size: 34px;
    text-shadow: 1px 1px 0px #0099ff, 2px 2px 0px #00ffcc, 3px 3px 0px rgba(0, 0, 0, 0.25);
    margin-bottom: 12px;
    text-align: center;
    background: linear-gradient(90deg, transparent 0%, #ffff00 50%, transparent 100%);
    padding: 8px;
    border: 3px double #ff00ff;
    letter-spacing: 2px;
}

p {
    color: #000000;
    font-size: 15px;
    margin: 10px 0;
    line-height: 1.6;
}

/* Canvas styling */
.canvas-container {
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    background: #808080;
    padding: 4px;
    box-shadow: none;
}

canvas {
    display: block;
    margin: 0 auto;
    border: 3px inset #cccccc;
    max-width: 100%;
    max-height: calc(100vh - 260px);
    height: auto;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
    /* Retro pixelated look - disable smoothing */
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* Additional retro styling */
    font-family: "Courier New", Courier, "Lucida Console", Monaco, monospace;
    font-weight: bold;
    text-rendering: geometricPrecision;
}

.instructions {
    margin-top: 15px;
    padding: 10px;
    background: #ffff00;
    color: #000000;
    border: 3px dashed #ff00ff;
    font-weight: bold;
    text-align: center;
    animation: blink-border 1s infinite;
}

@keyframes blink-border {
    0%, 100% { border-color: #ff00ff; }
    50% { border-color: #0099ff; }
}

/* Character selection retro style */
.character-select {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.character-option {
    width: 70px;
    height: 70px;
    border: 4px outset #cccccc;
    background: linear-gradient(135deg, #ffffff 0%, #ccffff 100%);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.4);
}

.character-option:hover {
    border-style: inset;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.4);
}

.character-option.selected {
    border: 4px solid #ff00ff;
    box-shadow: 0 0 20px #ff00ff, inset 0 0 20px rgba(255, 0, 255, 0.3);
    animation: selected-pulse 1s infinite;
}

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

/* Roadmap with retro table aesthetic */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.roadmap-item {
    background: linear-gradient(180deg, #ffccff 0%, #ccffff 100%);
    border: 4px groove #ff00ff;
    padding: 15px;
    position: relative;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.roadmap-item::before {
    content: "►";
    position: absolute;
    top: 5px;
    left: 5px;
    color: #ff00ff;
    font-size: 20px;
    animation: blink-slow 2s infinite;
}

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

.roadmap-content h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    color: #0099ff;
    font-size: 25px;
    margin-bottom: 8px;
    text-shadow: 1px 1px 0px #ff00ff, 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.roadmap-content p {
    font-size: 14px;
}

/* Links with classic underline */
a {
    color: #0000ff;
    text-decoration: underline;
    font-weight: bold;
}

a:visited {
    color: #800080;
}

a:hover {
    color: #ff00ff;
    background: #ffff00;
    text-decoration: none;
}

/* Footer with marquee vibe */
footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #ff00ff 0%, #0099ff 50%, #ff00ff 100%);
    color: #ffff00;
    text-align: center;
    padding: 6px 8px;
    font-weight: bold;
    font-size: 11px;
    border-top: 3px solid #ffff00;
    box-shadow: 0 -2px 10px rgba(255, 0, 255, 0.45);
    z-index: 100;
    text-shadow: 2px 2px 4px #000000;
    animation: rainbow-shift 5s linear infinite;
}

@keyframes rainbow-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Decorative horizontal rules */
hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #ff00ff 50%, transparent 100%);
    margin: 20px 0;
}

/* Special mission container styling */
.mission-container {
    background: linear-gradient(135deg, #ffffcc 0%, #ffccff 100%);
    border-color: #ff6600;
}

.about-container {
    background: linear-gradient(135deg, #ccffcc 0%, #ccffff 100%);
    border-color: #00ff00;
}

.contact-container,
.bugs-container {
    background: linear-gradient(135deg, #ffcccc 0%, #ffccff 100%);
    border-color: #0099ff;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .site-brand h1 {
        font-size: 32px;
    }

    .site-nav {
        gap: 4px;
    }

    .nav-win95 {
        min-height: 26px;
        font-size: 11px;
        padding: 3px 8px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    .content-container {
        padding: 0 5px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .side-column {
        gap: 10px;
    }

    .hero-layout .mission-container,
    .hero-layout .info-container,
    .hero-layout .about-container,
    .hero-layout .contact-container {
        max-height: none;
        overflow: visible;
    }
    
    .game-container,
    .info-container,
    .mission-container,
    .roadmap-container,
    .about-container,
    .contact-container,
    .bugs-container {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
}

/* Under construction badge (optional decorative element) */
.retro-badge {
    display: inline-block;
    background: #ffff00;
    color: #000000;
    padding: 5px 10px;
    border: 2px solid #ff00ff;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(-5deg);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

/* Visitor counter style (aesthetic only) */
.visitor-counter {
    background: #000000;
    color: #00ff00;
    font-family: "Courier New", monospace;
    padding: 5px 10px;
    border: 2px inset #666666;
    display: inline-block;
    font-size: 14px;
}

/* Animated "NEW" badge */
.new-badge {
    display: inline-block;
    background: #ff0000;
    color: #ffffff;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    animation: blink-fast 0.5s infinite;
}

@keyframes blink-fast {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
