/* Base styles */
body {
    background-color: #000033;
    background-image: url('data:image/gif;base64,R0lGODlhBAAEAIAAAP///wAAACH5BAEAAAAALAAAAAAEAAQAAAIESAYJCgA7');
    color: #00ccff;
    font-family: "MS Sans Serif", "Courier New", monospace;
    margin: 0;
    padding: 0;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

#container {
    width: 600px;
    margin: 0 auto;
    background: #000066;
    border: 4px ridge #0099ff;
    box-shadow: 0 0 0 2px #003366;
}

/* Header styles */
#header {
    text-align: center;
    padding: 10px;
    background: linear-gradient(#000099 0%, #000066 50%, #000099 100%);
    border-bottom: 3px groove #0099ff;
}

h1 {
    font-size: 32px;
    color: #00ffff;
    text-shadow: 2px 2px 0px #0066cc;
    margin: 0;
    font-family: "Arial Black", Impact;
    letter-spacing: -2px;
    transform: scaleX(1.2);
}

.ascii-art {
    font-family: "Courier New", monospace;
    font-size: 10px;
    line-height: 10px;
    color: #0099ff;
    white-space: pre;
    margin: 10px 0;
}

.tagline {
    font-size: 11px;
    color: #66ccff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

marquee {
    color: #00ffff;
    font-weight: bold;
}

/* Navigation */
#nav {
    background: #003366;
    padding: 0;
    text-align: center;
    border-bottom: 3px ridge #0099ff;
    font-size: 0;
}

#nav a {
    display: inline-block;
    color: #00ccff;
    text-decoration: none;
    padding: 8px 15px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    border-right: 1px solid #0099ff;
    background: #004488;
    transition: none;
}

#nav a:hover {
    background: #0066cc;
    color: #ffffff;
}

#nav a:last-child {
    border-right: none;
}

/* Music player */
#music-player {
    background: #003366;
    border-bottom: 3px ridge #0099ff;
    padding: 10px;
    font-size: 11px;
    text-align: center;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.music-controls {
    margin-top: 5px;
}

.music-controls button {
    background: #0066cc;
    color: #fff;
    border: 1px outset #0099ff;
    padding: 3px 10px;
    margin: 0 2px;
    cursor: pointer;
    font-size: 10px;
}

.music-controls button:active {
    border: 1px inset #0099ff;
}

.track-info {
    color: #66ccff;
    font-size: 10px;
    margin-top: 5px;
}

#track-name,
#track-time {
    color: #66ccff;
}

/* Content area */
#content {
    padding: 15px;
    min-height: 400px;
    background-image: url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
}

.section {
    display: none;
}

.section.active {
    display: block;
}

h2 {
    color: #00ccff;
    background: #003366;
    padding: 5px 10px;
    border: 2px inset #0099ff;
    font-size: 16px;
    text-transform: uppercase;
    margin: 0 0 15px 0;
}

h3 {
    color: #66ccff;
    margin: 0 0 5px 0;
    font-size: 14px;
}

.blog-post {
    background: #000044;
    border: 2px inset #0066cc;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 12px;
}

.blog-post h3 {
    color: #66ccff;
    margin: 0 0 5px 0;
    font-size: 14px;
    text-decoration: underline;
}

.blog-post .date {
    color: #3399ff;
    font-size: 10px;
    font-weight: bold;
}

.blog-post p {
    color: #99ddff;
    line-height: 1.4;
    margin: 10px 0;
}

/* Data sections for dynamic content */
[data-section] {
    color: #99ddff;
}

/* Star effects and animations */
.sparkles {
    position: fixed;
    pointer-events: none;
    animation: fall 4s linear infinite;
    font-size: 16px;
    z-index: 1;
}

@keyframes fall {
    0% { 
        transform: translateY(-20px) rotate(0deg); 
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        transform: translateY(100vh) rotate(360deg); 
        opacity: 0;
    }
}

.shooting-star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: #ffffff;
    box-shadow: 0 0 10px #00ffff;
    animation: shoot-right 3s linear infinite;
    z-index: -1;
}

.shooting-star::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(to left, #00ccff, transparent);
    right: 2px;
    top: 0;
}

@keyframes shoot-right {
    from {
        transform: translateX(-100px) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(calc(100vw + 100px)) translateY(0);
        opacity: 0;
    }
}

.shooting-star-left {
    animation: shoot-left 3s linear infinite;
}

.shooting-star-left::after {
    background: linear-gradient(to right, #00ccff, transparent);
    left: 2px;
    right: auto;
}

@keyframes shoot-left {
    from {
        transform: translateX(100px) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(calc(-100vw - 100px)) translateY(0);
        opacity: 0;
    }
}

/* Star decorations */
.star-bg {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, #00ccff, transparent),
        radial-gradient(1px 1px at 50px 50px, #66ccff, transparent),
        radial-gradient(1px 1px at 80px 10px, #ffffff, transparent),
        radial-gradient(2px 2px at 130px 80px, #00ffff, transparent);
    background-size: 200px 100px;
    background-repeat: repeat;
}

.star-spin {
    display: inline-block;
    animation: spin 4s linear infinite;
    color: #00ffff;
    text-shadow: 0 0 5px #0099ff;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.starburst {
    position: relative;
    display: inline-block;
}

.starburst::before,
.starburst::after {
    content: '✦';
    position: absolute;
    color: #66ccff;
    animation: pulse 2s ease-in-out infinite;
}

.starburst::before {
    left: -15px;
}

.starburst::after {
    right: -15px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
}

.star-separator {
    text-align: center;
    margin: 15px 0;
    color: #3399ff;
    letter-spacing: 10px;
    text-shadow: 0 0 3px #0066cc;
}

.constellation-border {
    position: relative;
    padding: 15px;
    margin: 10px 0;
}

.constellation-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px dotted #0099ff;
    background: 
        radial-gradient(circle at 10% 10%, #66ccff 2px, transparent 2px),
        radial-gradient(circle at 90% 10%, #66ccff 2px, transparent 2px),
        radial-gradient(circle at 90% 90%, #66ccff 2px, transparent 2px),
        radial-gradient(circle at 10% 90%, #66ccff 2px, transparent 2px);
}

.twinkle {
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.star-rating {
    color: #ffcc00;
    text-shadow: 0 0 2px #ff9900;
    letter-spacing: 2px;
}

.star-trail {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    animation: trail 1s ease-out forwards;
    color: #00ccff;
    text-shadow: 0 0 3px #0099ff;
    font-size: 12px;
}

@keyframes trail {
    0% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg);
    }
    100% { 
        opacity: 0; 
        transform: scale(0.3) rotate(180deg) translateY(-20px);
    }
}

/* Other elements */
.blink {
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.archive-item {
    background: #000044;
    border: 1px dotted #0099ff;
    padding: 8px;
    margin-bottom: 8px;
    color: #66ccff;
    font-size: 11px;
}

.archive-item a {
    color: #00ccff;
    text-decoration: underline;
}

.archive-item a:hover {
    color: #ffffff;
    background: #0066cc;
}

#archive-list {
    color: #66ccff;
}

.myspace-top8 {
    background: #003366;
    border: 2px inset #0099ff;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
}

.friend-box {
    display: inline-block;
    width: 60px;
    height: 80px;
    background: #000044;
    border: 1px solid #0099ff;
    margin: 2px;
    padding: 3px;
    text-align: center;
    font-size: 9px;
    color: #66ccff;
}

.mood {
    font-size: 11px;
    color: #ff6600;
    font-weight: bold;
}

/* Footer */
#footer {
    text-align: center;
    padding: 10px;
    border-top: 3px groove #0099ff;
    background: #003366;
    color: #3399ff;
    font-size: 10px;
}

.visitor-counter {
    background: #000000;
    color: #00ff00;
    font-family: "Courier New", monospace;
    padding: 2px 5px;
    display: inline-block;
    border: 1px solid #00ff00;
}

/* Recent posts styling */
#recent-posts {
    font-size: 11px;
    line-height: 1.6;
}

#recent-posts b {
    color: #66ccff;
}