/* Modern CSS - Sleek Dark Mode with Red Scroll Gradient */

@font-face {
    font-family: 'Punk Kid';
    src: url('/punk kid.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --color-background-start: #222222;
    --color-background-end: #444444;
    --color-background-scroll-end: #8B0000; /* Deep Red */
    --color-text-primary: #CCCCCC;
    --color-text-heading: #EEEEEE;
    --color-link: #FF6666;
    --color-link-hover: #FF9999;
    --color-link-visited: #CC0000;
    --color-border-dark: #666666;
    --color-border-light: #888888;
    --color-header-bg-start: #000000;
    --color-header-bg-end: #333333;
    --color-nav-bg-start: #444444;
    --color-nav-bg-end: #666666;
    --color-footer-bg-start: #222222;
    --color-footer-bg-end: #333333;
    --color-content-bg: #333333;
    --color-content-box-bg: #444444;
    --color-sidebar-bg: #3A3A3A;
}

body {
    font-family: 'Roboto', sans-serif; /* Modern font */
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--color-text-primary);
    background-color: var(--color-background-start); /* Initial background color */
    transition: background-color 0.3s ease; /* Smooth transition for body bg if needed, though gradient overlay is primary */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Fixed background element for the scroll gradient effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; /* Behind the content */
    background: linear-gradient(to bottom, var(--color-background-start), var(--color-background-end));
    background-attachment: fixed; /* Keep background fixed while scrolling */
    transition: background 0.5s ease; /* Smooth transition for the gradient */
}

#container {
    width: 95%;
    max-width: 1200px; /* Increased max-width for modern feel */
    margin: 20px auto; /* Increased margin */
    background-color: rgba(51, 51, 51, 0.8); /* Semi-transparent dark grey */
    border: 1px solid var(--color-border-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    overflow: hidden; /* Clearfix */
    position: relative; /* Needed for z-index */
    z-index: 1; /* Above the fixed background */
    backdrop-filter: blur(5px); /* Subtle blur effect behind the container */
    -webkit-backdrop-filter: blur(5px); /* For Safari */
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif; /* Another modern font */
    color: var(--color-text-heading);
    margin-top: 0;
}

h1 {
    font-size: 2em;
    margin: 0;
    padding: 0;
    color: #FFFFFF;
}

h2 {
    font-size: 1.5em;
    border-bottom: 2px solid var(--color-link); /* Red underline */
    padding-bottom: 5px;
    margin-top: 20px;
    margin-bottom: 15px;
    color: #FFFFFF;
}

h3 {
    font-size: 1.2em;
    color: var(--color-link);
    margin-top: 15px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 1em;
    color: var(--color-text-primary);
}

a {
    color: var(--color-link);
    text-decoration: none; /* Modern links often don't have underlines by default */
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline; /* Add underline on hover */
}

a:visited {
    color: var(--color-link-visited);
}

/* Header */
#header {
    background: linear-gradient(to right, var(--color-header-bg-start), var(--color-header-bg-end));
    color: #FFFFFF;
    padding: 10px 20px; /* Increased padding */
    border-bottom: 4px solid var(--color-link); /* Red accent border */
    display: flex; /* Use flexbox for alignment */
    align-items: center;
    gap: 15px; /* Space between logo and text */
}

#header .logo-area {
    display: flex;
    align-items: center;
}

#header #logo-img {
    display: block;
    max-height: 70px; /* Slightly larger logo allowed */
    width: auto;
    margin-right: 10px;
}

#header .site-title {
    flex-grow: 1; /* Allow title area to take space */
}

/* Apply Punk Kid font to the main title */
#header .site-title h1 {
    font-family: 'Punk Kid', cursive; /* Changed font */
    font-size: 2.5em; /* Make it a bit larger */
    line-height: 1.1;
    margin: 0;
    padding: 0;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Add a subtle text shadow */
}

/* Apply Punk Kid font to the tagline */
#header .site-title .tagline {
    font-family: 'Punk Kid', cursive; /* Changed font */
    font-size: 1.1em; /* Slightly larger tagline */
    color: #AAAAAA;
    margin: 5px 0 0 0;
    font-style: normal; /* Remove italic */
}


/* Navigation */
#navigation {
    background: linear-gradient(to right, var(--color-nav-bg-start), var(--color-nav-bg-end));
    padding: 10px 20px;
    border-bottom: 1px solid var(--color-border-dark);
}

#navigation ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex; /* Use flexbox for horizontal nav */
    gap: 15px; /* Space between nav items */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

#navigation ul li {
    margin: 0;
}

#navigation ul li a {
    font-weight: normal; /* Less bold */
    font-size: 1em;
    padding: 8px 12px; /* Increased padding */
    color: #FFFFFF;
    text-decoration: none;
    background-color: var(--color-nav-bg-start);
    border: none; /* Remove 2003 bevel borders */
    border-radius: 4px; /* Subtle rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease;
}

#navigation ul li a:hover {
    background-color: var(--color-link); /* Red button on hover */
    color: #FFFFFF;
    text-decoration: none;
}


/* Content Wrapper - use Flexbox */
#content-wrapper {
    display: flex; /* Use flexbox */
    flex-wrap: wrap; /* Allow sidebar to stack on small screens */
    padding: 20px; /* Add padding to the wrapper */
    gap: 20px; /* Space between main and sidebar */
    background-color: transparent; /* Let the semi-transparent container background show */
}

/* Main Content */
#main-content {
    flex: 3; /* Take 3 parts of available space */
    min-width: 300px; /* Minimum width before wrapping */
    background-color: rgba(51, 51, 51, 0.7); /* Semi-transparent */
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.content-box {
    border: 1px solid var(--color-border-dark);
    background-color: rgba(68, 68, 68, 0.7); /* Slightly lighter semi-transparent */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.content-box h3 {
    margin-top: 0;
    color: var(--color-link);
    border-bottom: 1px dotted var(--color-border-dark);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.content-box p {
    color: var(--color-text-primary);
}


/* Sidebar */
#sidebar {
    flex: 1; /* Take 1 part of available space */
    min-width: 200px; /* Minimum width before wrapping */
    background-color: rgba(58, 58, 58, 0.7); /* Darker semi-transparent */
    padding: 20px;
    font-size: 0.9em;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#sidebar h3 {
    font-size: 1.1em;
    margin-top: 0;
    border-bottom: 1px solid var(--color-border-dark);
    padding-bottom: 5px;
    margin-bottom: 10px;
    color: var(--color-text-heading);
}

#sidebar ul {
    list-style-type: disc; /* Standard disc bullets */
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

#sidebar ul li {
    margin-bottom: 8px;
}

#sidebar ul li a {
    text-decoration: none;
    color: var(--color-text-primary);
}
#sidebar ul li a:hover {
    text-decoration: underline;
    color: #FFFFFF;
}

#sidebar hr {
    border: 0;
    height: 1px;
    background-color: var(--color-border-dark);
    margin: 20px 0;
}

/* Footer */
#footer {
    text-align: center;
    padding: 20px;
    background-color: var(--color-footer-bg-start);
    color: #AAAAAA;
    font-size: 0.9em;
    border-top: 3px solid var(--color-link); /* Red accent top border */
}

#footer p {
    margin: 0;
    line-height: 1.5;
    color: #AAAAAA;
}
#footer a {
    color: #FFFFFF;
    text-decoration: underline;
}
#footer a:hover {
    color: var(--color-link);
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #container {
        width: 98%; /* Slightly wider on small screens */
        margin: 10px auto;
    }

    #header {
        flex-direction: column; /* Stack logo and title */
        text-align: center;
        padding: 10px;
        height: auto; /* Auto height */
    }

    #header .logo-area {
         margin-bottom: 10px;
    }

    #header #logo-img {
        max-height: 50px; /* Smaller logo on mobile */
        margin-right: 0;
    }

    #header .site-title {
        text-align: center;
    }

    #header .site-title h1 {
        font-size: 2em; /* Adjust font size for smaller screens */
    }

    #header .site-title .tagline {
        font-size: 1em; /* Adjust font size for smaller screens */
    }


    #navigation ul {
        flex-direction: column; /* Stack nav items */
        gap: 5px; /* Smaller gap */
        align-items: center; /* Center nav items */
    }

    #navigation ul li {
        width: 100%; /* Full width buttons */
        text-align: center;
    }
     #navigation ul li a {
        display: block; /* Make links fill the list item */
     }


    #content-wrapper {
        flex-direction: column; /* Stack main and sidebar */
        padding: 10px;
        gap: 10px;
    }

    #main-content, #sidebar {
        flex: none; /* Remove flex growth */
        width: auto; /* Auto width */
        min-width: auto;
        padding: 15px;
        background-color: rgba(51, 51, 51, 0.8); /* Ensure background is set */
    }

    #sidebar {
        margin-top: 10px;
    }
}

/* Optional: Add subtle hover/focus effects for buttons/links */
#navigation ul li a:active {
    transform: scale(0.98); /* Press effect */
}