/* fonts */
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Trade+Winds&display=swap');



body {
    background-color: #241a1a; /* Darker background, more desaturated */
    font-family: "Exo";
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    color: #e0c48d;

    background-image: url('https://karazim-comic.com/uploads/1742445120-pexels-kasperphotography-978503.jpg'); /* Adjust path as needed */
    background-blend-mode: multiply;
    background-size: cover;
    background-attachment: fixed;
}




img {
    max-width: 100%;
}

a {
    color: #ffcc66; /* Warmer golden tone for readability */
    text-decoration: none;
}

/* Wrapper for the main content, separate from the header */
#wrapper {
    position: relative;
    z-index: 1; /* Lower than side buttons */
    margin: 0 auto; /* Centering */
    max-width: 1100px;
    border-radius: 15px;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
    padding-top: 20px; /* Add padding to ensure content isn't too close */
    background: #3b2922;
}


/* Content inside the wrapper */
#content {
    padding: 30px;
}

/* Header is now separate */
#header {
    position: relative; /* Ensures it stays in the normal document flow */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Keeps it above other content */
    height: auto; /* Allow natural height */
    padding: 20px; /* Adjust padding for better spacing */
    text-align: center;
    color: #fff;
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 20px;
    background: none; /* Ensure no background affects layout */
    min-height: 60px;
}

#header img {
    width: 100%; /* Make it scale within its container */
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    min-width: 150px;
    filter: drop-shadow(0px 0px 5px rgba(255, 140, 0, 0.3)); /* Softer glow */
}

#header-text {
    text-align: center;
    font-size: 0.5em;
    color: #e0c48d;
    margin-top: -50px;
}


.site-title {
    text-align: left;
    font-weight: bold;
    display: block;
    font-size: 3em;
}

a.site-title {
    text-decoration: none;
    color: #e0c48d;
}

/* Navigation menu */
#menu {
    position: relative; /* Optional: Fix the menu below the header */
    top: 0; /* Adjust based on header height */
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays above other content */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: left;
    gap: 15px;
}

#menu a {
    padding: 10px 15px;
    display: inline-block;
    color: #ffcc66;
    font-size: 0.7em;
    font-family: 'Trade Winds';
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    box-shadow: none;
    transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
}

#menu a:hover {
    color: #ffb347;
    text-shadow: 0 0 8px rgba(255, 180, 70, 0.6), 0 0 14px rgba(255, 140, 0, 0.5);
}

/* Comic display area */
#comic-area {
    margin-bottom: 30px;
    text-align: center;
}

.comic-container {
    max-width: 800px;
    margin: 20px auto;
    background: #37251e; /* Darker brown, closer to background */
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5); /* Added shadow to the box */
    border-radius: 10px;
    text-align: center;
}

.comic-page {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

/* Comic navigation */
.cc-nav {
    max-width: 700px; /* bigger container */
    margin: 30px auto 40px;
    padding: 20px 10px;
    display: flex;
    justify-content: center; /* center buttons */
    gap: 40px;
}
.cc-nav a,
.cc-nav div {
    display: block;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
    font-family: 'Trade Winds', cursive; /* Or any other font you prefer */
    font-size: 1.1em; /* Optional: tweak for sizing */
    color: #ffcc66; /* Optional: add text color if needed */
    text-align: center;
    line-height: 1.2em;
    flex: 0 0 80px;  /* fixed width */
    width: 80px;
}

.cc-nav a {
    opacity: 0.7;
}

.cc-nav a:hover {
    opacity: 1;
}

.cc-nav a:before,
.cc-nav div:before {
    content: '';
    display: block;
    padding-bottom: 60%; /* height = 60% of width */
}

.cc-nav div {
    opacity: 0.4;
    cursor: default;
}

/* Background images */
.cc-first, .cc-first-dis {
    background-image: url('images/first.png');
}

.cc-prev, .cc-prev-dis {
    background-image: url('images/prev.png');
}

.cc-next, .cc-next-dis {
    background-image: url('images/next.png');
}

.cc-last, .cc-last-dis {
    background-image: url('images/last.png');
}

.cc-navaux {
    background-image: url('images/rss.png');
}


/* Footer */
#cc-footer {
    text-align: center;
    padding: 20px;
    font-size: .8em;
    background: none;
    color: #e0c48d;
}

#menu-toggle {
    display: none;
    border: none;
    background: none;
    padding: 30px 30px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 10px;
}

@media (max-width: 768px) {
    #header {
        display: flex;
        flex-direction: column; /* Stack items */
        align-items: center;
        padding: 10px;
    }

    /* Menu Button Styling */
    #menu-toggle {
        display: block;
        color: #ffcc66;
        font-family: 'Trade Winds';
        border: none;
        font-size: 0.7em;
        cursor: pointer;
        border-radius: 5px;
        margin-top: -60px;
        margin-bottom: 10px; /* Adds space between button & body */
        z-index: 1001;
    }

    /* Menu Styling */
    #menu {
        display: none; /* Hide by default */
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
        position: relative; /* Ensures menu stays in flow */
    }

    #menu.active {
        display: flex;
    }

    #menu-toggle:hover {
        color: #ffcc66; /* Slightly lighter on hover */
        text-shadow: 0 0 8px rgba(255, 180, 70, 0.6);
    }

    #menu a {
        padding: 10px;
        display: block;
        text-align: left;
    }


    #wrapper {
        width: 90%;
    }

    #header img {
        max-width: 100%;
        height: auto;
        margin-bottom: 5px;
    }

    .site-title {
        font-size: 2em;
        text-align: center;
    }


    #content {
        padding: 20px;
    }

    #header-text {
        margin-top: -60px;
        margin-bottom: 50px;
        font-size: 0.5em;
    }

    .cc-nav {
        gap: 30px;
    }

    .cc-nav a,
    .cc-nav div {
        flex: 0 0 60px;  /* smaller width */
        width: 60px;
        font-size: 0.9em; 
    }



}