@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Comic+Neue:wght@700&display=swap');

body {
    background-color: #0d001a;
    /* Repeating star/dust pattern tinted purple */
    background-image: 
        radial-gradient(rgba(255,200,255,0.8), rgba(200,100,255,.2) 2px, transparent 40px),
        radial-gradient(rgba(200,150,255,0.6), rgba(150,50,255,.15) 1px, transparent 30px),
        radial-gradient(rgba(255,255,255,0.5), rgba(100,0,255,.1) 2px, transparent 40px),
        radial-gradient(rgba(255,100,255,.4), rgba(255,0,255,.1) 2px, transparent 30px);
    background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
    color: #e6b3ff; /* Default text color light purple */
    font-family: 'Comic Neue', "Comic Sans MS", cursive, sans-serif;
    margin: 0;
    padding: 0;
    cursor: crosshair;
}

h1, h2, h3 {
    font-family: 'Press Start 2P', monospace;
    color: #ff66ff;
    text-shadow: 2px 2px #b000ff;
    line-height: 1.4;
}

a {
    color: #ff99ff;
    text-decoration: underline;
    font-weight: bold;
}

a:hover {
    color: #fff;
    background: #b300b3;
    cursor: help;
}

/* Specific styling for Top Marquee */
#top-marquee {
    background-color: rgba(60, 0, 100, 0.6);
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    padding: 10px;
    border-bottom: 3px solid #ff00ff;
    border-top: 3px solid #ff00ff;
}

#wrapper {
    display: flex;
    max-width: 900px;
    margin: 20px auto;
    border: 4px ridge #ff00ff;
    background: rgba(30, 0, 50, 0.6); /* More transparent purple window */
}

/* Sidebar */
#sidebar {
    width: 200px;
    background-color: rgba(40, 0, 80, 0.4);
    padding: 15px;
    border-right: 4px ridge #ff00ff;
    box-shadow: inset 0 0 15px #ff00ff;
}

#sidebar ul {
    list-style-type: square;
    padding-left: 20px;
}

#sidebar li {
    margin-bottom: 15px;
    font-size: 18px;
}

/* Fake visitor counter */
#visitor-counter {
    margin-top: 40px;
    text-align: center;
    border: 2px solid #ff00ff;
    padding: 5px;
    background: rgba(0, 0, 20, 0.5);
}

.counter-box {
    font-family: monospace;
    font-size: 20px;
    letter-spacing: 5px;
    color: #ff33ff;
    background: rgba(0, 0, 0, 0.7);
    display: inline-block;
    padding: 5px;
    border: inset 2px #b000ff;
}

.sidebar-badges {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.badge {
    background: #4b0082;
    color: #ff99ff;
    font-family: sans-serif;
    font-size: 10px;
    font-weight: bold;
    border: 2px outset #ff00ff;
    padding: 2px 5px;
    text-align: center;
    width: 90px;
}

#music-toggle {
    background: rgba(255, 0, 255, 0.5);
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    border: 3px outset #ff00ff;
    padding: 8px;
    margin-top: 10px;
    cursor: pointer;
}
#music-toggle:active {
    border-style: inset;
}

/* Main Content Area */
#content {
    flex: 1;
    padding: 30px;
    min-height: 600px;
}

.page {
    animation: fadeIn 0.5s;
}

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

hr {
    border: 0;
    height: 3px;
    background-image: linear-gradient(to right, #6600cc, #9900ff, #cc00ff, #ff00ff, #cc00ff, #9900ff, #6600cc);
}

/* Grid Layout for items */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.card {
    border: 3px outset #a64dff;
    padding: 10px;
    width: 220px;
    background: rgba(60, 0, 100, 0.4);
    text-align: center;
}

.card-img {
    height: 120px;
    border: 2px solid #ff99ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0 #000;
}

.card h3 {
    font-size: 14px;
    color: #ff99ff;
    margin: 5px 0;
}

.card p {
    font-size: 14px;
    color: #e6ccff;
}

/* Blinking text */
blink {
    animation: blinker 1s linear infinite;
    color: #ff33ff;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.last-updated {
    font-size: 12px;
    text-align: right;
    color: #b366ff;
    margin-top: 50px;
    font-family: monospace;
}

.retro-btn {
    background: rgba(150, 0, 200, 0.5);
    color: #fff;
    border: 3px outset #ff66ff;
    font-weight: bold;
    padding: 5px 15px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
}

.retro-btn:active {
    border-style: inset;
}

.fake-gif {
    display: inline-block;
    padding: 20px;
    background: rgba(255, 0, 255, 0.5);
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    border: 5px dotted #ff00ff;
    margin: 20px 0;
}

.rotating {
    animation: rotate 5s linear infinite;
}

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

input, textarea {
    background: rgba(30, 0, 60, 0.5);
    color: #ff99ff;
    border: 2px inset #9933ff;
    font-family: inherit;
    font-size: 16px;
    padding: 5px;
    width: 90%;
}
