/* Marvin Martian Survival Theme - Red (#DC143C), Green (#32CD32), White (#FFFFFF) - Responsive, Retro-Futuristic */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.marvin-theme {
    font-family: 'Courier New', monospace; /* Retro sci-fi font */
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #DC143C 0%, #32CD32 50%, #FFFFFF 100%), 
                url('../images/marvin-the-martian-survival.jpg') center/cover fixed;
    background-blend-mode: multiply;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

body.marvin-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Marvin Navigation Bar - Fixed, Red/Green */
.marvin-nav {
    position: fixed;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #DC143C, #32CD32);
    border: 3px solid #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(220, 20, 60, 0.5);
    backdrop-filter: blur(10px);
    max-width: 90vw;
}

.marvin-nav P {
    margin: 8px 0;
    text-align: right;
    font-size: 0;
}

.marvin-nav A {
    display: inline-block;
    margin: 4px;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.marvin-nav A:hover {
    transform: rotate(5deg) scale(1.1);
    filter: brightness(1.2) drop-shadow(0 0 10px #FFFFFF);
}

.marvin-nav IMG {
    border: 2px solid #FFFFFF;
    border-radius: 12px;
    max-width: 70px;
    height: auto;
    object-fit: cover;
}

/* Headings - Marvin Glow */
h1, h2, h3 {
    text-align: center;
    color: #FFFFFF;
    text-shadow: 0 0 10px #DC143C, 2px 2px 4px #000;
    margin-bottom: 30px;
    font-weight: bold;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }

/* Tables - Survival Manual TOC Styled */
/* Offline Content Section - Centered with Proper Spacing */

    margin: 40px auto;
    text-align: center;
    padding: 40px;
}

.offline-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 40px;
}

.offline-pdfs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.offline-pdfs a {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, #DC143C, #32CD32);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
    transition: all 0.3s ease;
}

.offline-pdfs a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(50, 205, 50, 0.6);
}

.logo-section {
    margin: 40px 0;
}

.logo-section img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

table {
    width: 95%;
    margin: 40px auto;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(50, 205, 50, 0.4);
    border-collapse: collapse;
}

td {
    padding: 12px;
    vertical-align: top;
    border-bottom: 1px solid rgba(220, 20, 60, 0.2);
}

a {
    color: #DC143C;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

a:hover {
    color: #32CD32;
    text-shadow: 0 0 5px #FFFFFF;
}

/* Forms - Green Glow */
form {
    max-width: 800px;
    margin: 20px auto;
    background: rgba(255,255,255,0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

input[type="text"], input[type="submit"] {
    padding: 12px;
    border: 2px solid #32CD32;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.1rem;
}

input[type="submit"] {
    background: linear-gradient(#DC143C, #32CD32);
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s;
}

input[type="submit"]:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(50, 205, 50, 0.5);
}

/* Lists - Custom Bullets */
ul {
    list-style-image: url('../images/_arrow.png');
    margin-left: 20px;
}

li {
    margin: 8px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .marvin-nav {
        position: static;
        width: 100%;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .marvin-nav P {
        text-align: center;
    }
    
    table {
        font-size: 0.9rem;
    }
}

/* Marvin Animations */
@keyframes marvin-glow {
    0%, 100% { box-shadow: 0 0 20px #DC143C; }
    50% { box-shadow: 0 0 40px #32CD32; }
}

.marvin-nav:hover {
    animation: marvin-glow 2s infinite;
}

/* HR Lines - Themed */
hr {
    border: none;
    height: 3px;
    background: linear-gradient(to right, #DC143C, #32CD32, #FFFFFF);
    margin: 20px auto;
    width: 80%;
    border-radius: 2px;
}
