/* 1970s Retro Website Style */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Righteous&family=Press+Start+2P&display=swap');

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

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #f0f0f0;
    line-height: 1.6;
    min-height: 100vh;
}

/* Retro Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 165, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 165, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridPulse 4s ease-in-out infinite alternate;
}

@keyframes gridPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.1; }
}

/* Container */
#page {
    background: none;
    position: relative;
    z-index: 1;
}

/* Header Styles */
#header {
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5);
    border-bottom: 3px solid #ffd700;
    position: relative;
}

#header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    animation: scanline 2s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#header div {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

/* Logo */
#header div a.logo {
    display: flex;
    align-items: center;
    height: auto;
    margin: 0;
    text-decoration: none;
}

#header div a.logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

/* Navigation */
#header div ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    border: 2px solid #ffd700;
}

#header div ul li {
    margin: 0;
    padding: 0;
}

#header div ul li a {
    color: #ffffff;
    display: block;
    font-family: 'Righteous', cursive;
    font-size: 16px;
    font-weight: bold;
    padding: 15px 25px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 25px;
}

#header div ul li a:hover {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

#header div ul li.selected a {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    text-shadow: none;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Main Content */
#body {
    padding: 60px 0;
    position: relative;
}

#body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* Page Headers */
.header {
    text-align: center;
    margin-bottom: 50px;
}

.header div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    color: #ffd700;
    text-shadow:
        0 0 5px #ffd700,
        0 0 10px #ffd700,
        0 0 20px #ffd700,
        0 0 40px #ff6b35;
    margin-bottom: 20px;
    animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    0% {
        text-shadow:
            0 0 5px #ffd700,
            0 0 10px #ffd700,
            0 0 20px #ffd700,
            0 0 40px #ff6b35;
    }
    100% {
        text-shadow:
            0 0 2px #ffd700,
            0 0 5px #ffd700,
            0 0 10px #ffd700,
            0 0 20px #ff6b35;
    }
}

/* Content Sections */
.body {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.body div {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.body div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: shine 3s infinite;
}

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

.body h2 {
    font-family: 'Righteous', cursive;
    font-size: 1.8rem;
    color: #ff6b35;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
    display: inline-block;
}

.body p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: justify;
    color: #e0e0e0;
}

.body a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.body a:hover {
    color: #ff6b35;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.8);
}

/* Command sections for guide page */
.body div h2:first-child {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Footer */
#footer {
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    border-top: 3px solid #ffd700;
    margin-top: 60px;
    position: relative;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    animation: scanline 2s linear infinite reverse;
}

.footnote {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.footnote p {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #header div {
        flex-direction: column;
        padding: 20px;
        min-height: auto;
    }

    #header div ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    #header div ul li a {
        padding: 12px 20px;
        font-size: 14px;
    }

    .header h2 {
        font-size: 1.8rem;
    }

    .body div {
        padding: 20px;
    }

    .body h2 {
        font-size: 1.4rem;
    }

    .body p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    #header div ul li a {
        padding: 10px 15px;
        font-size: 12px;
    }

    .header h2 {
        font-size: 1.5rem;
    }

    .body div {
        padding: 15px;
        margin-bottom: 20px;
    }

    .body h2 {
        font-size: 1.2rem;
    }

    .body p {
        font-size: 0.9rem;
    }
}

/* Button Styles for Play Links */
a[href*="play"], a[href*="mudportal"], a[href*="8080"] {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b35, #ffd700);
    color: #000 !important;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-family: 'Righteous', cursive;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow:
        0 5px 15px rgba(255, 107, 53, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

a[href*="play"]:hover, a[href*="mudportal"]:hover, a[href*="8080"]:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(255, 107, 53, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

a[href*="play"]::before, a[href*="mudportal"]::before, a[href*="8080"]::before {
    content: '▶ ';
    margin-right: 5px;
}

/* Accessibility Improvements */
:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body::before,
    #header::after,
    #footer::before,
    .body div::before {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    #header, #footer {
        background: #ccc;
        color: black;
    }
}
