* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Face Declaration */
@font-face {
    font-family: 'AGBuch';
    src: url('fonts/AGBuch.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    margin-bottom: 20px;
}

.top-banner {
    background-color: #98bdff; /* Light blue background */
    background-image: url('top-banner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 5px;
}

.logo h1 {
    font-size: 3rem;
    color: #000;
    font-weight: bold;
    font-family: 'AGBuch', Arial, sans-serif;
}

.logo h1 a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo h1 a:hover {
    opacity: 0.8;
}

.blue {
    color: #1E90FF; /* Slightly darker blue for .blue text */
}

.social-icons {
    display: flex;
    gap: 15px;
}

.icon {
    width: 30px;
    height: 30px;
    display: inline-block;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.2s;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
}

.icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Main Content */
main {
    display: flex;
    flex-grow: 1;
    height: calc(100vh - 200px); /* Approximate height considering header and footer */
}

.left-content {
    width: 40%;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 2; /* Higher z-index to place it in front */
}

.character-illustration {
    width: 100%;
    height: auto; /* Natural height based on image aspect ratio */
    display: block;
    position: relative; /* Ensure z-index works */
}

.right-content {
    width: 60%;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align navigation to the right */
    position: relative; /* Ensure z-index works */
    z-index: 1; /* Lower z-index to place it behind */
}

/* Navigation - Updated to work with JavaScript height matching */
nav {
    height: auto; /* Will be set by JavaScript */
    width: 100%; /* Take full width of parent */
}

nav ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space items evenly */
    height: 100%; /* Take full height of parent (which is set by JS) */
    width: 100%; /* Full width */
}

nav ul li {
    /* Remove flex: 1 to prevent stretching */
    display: flex;
    align-items: stretch;
    width: 100%; /* Full width */
    height: 100%; /* Make link take full height */
}

nav ul li a {
    display: flex;
    align-items: flex-end; /* Align content to bottom */
    justify-content: flex-end; /* Align content to right */
    width: calc(100% + 20px); /* Match the width of the underline */
    margin-left: -20px; /* Offset to align with the underline's left position */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 2rem;
    position: relative;
    transition: transform 0.3s, background-color 0.3s, opacity 0.3s;
    font-family: 'AGBuch', Arial, sans-serif;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20px; /* Start from the left edge of the container */
    right: 0; /* Extend to the right edge */
    width: calc(100% + 20px); /* Ensure it extends past the padding */
    height: 5px;
    border-radius: 5px;
}

.about-link {
    color: #ffa02e; /* Changed back to orange text */
    background-color: transparent; /* Removed orange background from default state */
}

.about-link::after {
    background-color: #ffa02e; /* Orange */
}

/* Adding specific hover style for about link */
.about-link:hover {
    background-color: #ffa02e; /* Orange background on hover */
    color: #fff; /* White text on hover for better contrast */
}

.gallery-link {
    color: #98bdff; /* Light blue */
}

.gallery-link::after {
    background-color: #98bdff; /* Light blue */
}

/* Gallery link hover effect */
.gallery-link:hover {
    background-color: #98bdff; /* Light blue background on hover */
    color: #fff; /* White text on hover for better contrast */
}

.characters-link {
    color: #ff5150; /* Red/coral */
}

.characters-link::after {
    background-color: #ff5150; /* Red/coral */
}

/* Characters link hover effect */
.characters-link:hover {
    background-color: #ff5150; /* Red/coral background on hover */
    color: #fff; /* White text on hover for better contrast */
}

.blog-link {
    color: #a6ff24; /* Bright green */
}

.blog-link::after {
    background-color: #a6ff24; /* Bright green */
}

/* Blog link hover effect */
.blog-link:hover {
    background-color: #a6ff24; /* Bright green background on hover */
    color: #fff; /* White text on hover for better contrast */
}

.newsletter-link {
    color: #ff57da; /* Magenta */
}

.newsletter-link::after {
    background-color: #ff57da; /* Magenta */
}

/* Newsletter link hover effect */
.newsletter-link:hover {
    background-color: #ff57da; /* Magenta background on hover */
    color: #fff; /* White text on hover for better contrast */
}

/* Footer */
footer {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    color: #98bdff; /* Light blue text */
    font-size: 0.9rem;
}

.footer-links a {
    color: #98bdff;
    text-decoration: none;
    margin: 0 5px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    color: #98bdff;
}

/* Social Media Icons - Using background images or icons would be better in production */
.butterfly {
    background-image: url('images/social/Butterfly.png');
}

.mastodon {
    background-image: url('images/social/Mastodon.png');
}

.newgrounds {
    background-image: url('images/social/Newgrounds.png');
}

.patreon {
    background-image: url('images/social/Patreon.png');
}

.kofi {
    background-image: url('images/social/Kofi.png');
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    
    .left-content, .right-content {
        width: 100%;
    }
    
    .right-content {
        padding-left: 0;
        padding-top: 20px;
    }
    
    nav ul {
        height: auto;
    }
    
    nav ul li {
        flex: none;
        margin-bottom: 10px;
    }
    
    nav ul li a {
        text-align: center;
    }
    
    footer {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Add back the hover effect */
nav ul li a:hover {
    transform: translateX(-10px);
    opacity: 1;
} 