/* Basic Resets */
body, h1, h2, h3, p, ul, li, figure, figcaption, button, select, textarea {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4; /* Light gray background */
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Color Palette */
:root {
    --primary-blue: #007bff; /* Standard blue */
    --hover-blue: #0056b3;   /* Darker blue on hover */
    --light-blue: #e0f2ff;   /* Very light blue */
    --text-color: #333;      /* Standard text color */
    --border-color: #ddd;    /* Standard border color */
    --bg-dark: #222;         /* Dark background for header/footer */
    --bg-light: #fff;        /* Light background for comic container */
}

/* Header Styling */
.main-header {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 15px 0;
    border-bottom: 5px solid var(--primary-blue); /* Blue line under header */
    text-align: center;
}

.dyvotron-logo {
    max-width: 250px; /* Adjust size of your logo image */
    height: auto;
    margin-bottom: 15px;
}

.social-text {
    font-size: 0.9em;
    margin-bottom: 10px;
    color: #aaa; /* Lighter color for this text */
}

/* Social Icons Styling */
.social-icons {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.8em; /* Adjust icon size */
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-blue); /* Blue on hover */
}

/* Top Navigation Bar */
.top-nav {
    display: flex;
    justify-content: center; /* This centers the items and spaces them evenly */
    align-items: center;
    gap: 20px; /* Space between navigation items */
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    margin-top: 20px; /* Space between social icons and nav */
}

.nav-button {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: var(--hover-blue);
}

.nav-button.disabled { /* Style for inactive navigation buttons */
    background-color: #cccccc;
    cursor: not-allowed;
}

.chapter-select-wrapper select {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-color);
    font-size: 1em;
    cursor: pointer;
    appearance: none; /* Removes default arrow */
    /* Custom arrow for dropdown */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007bff%22%20d%3D%22M287%2C197.6c-3.2%2C3.2-8.3%2C3.2-11.5%2C0L146.2%2C68.9L16.9%2C197.6c-3.2%2C3.2-8.3%2C3.2-11.5%2C0L1.7%2C192.4c-3.2%2C-3.2-3.2%2C-8.3%2C0%2C-11.5L140.4%2C2.7c3.2%2C-3.2%2C8.3%2C-3.2%2C11.5%2C0l138.3%2C178.2c3.2%2C3.2%2C3.2%2C8.3%2C0%2C11.5L287%2C197.6z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px; /* Space for arrow */
}

/* Main Comic Content Area */
.comic-container {
    background-color: var(--bg-light);
    padding: 30px 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.comic-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-blue); /* Chapter heading in blue */
    font-size: 2em;
}

.comic-page-wrapper {
    display: flex;
    flex-direction: column; /* Stack images vertically */
    align-items: center;
    gap: 15px; /* Space between pages */
}

.comic-page-wrapper img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Bottom Navigation Area */
.bottom-nav-area {
    margin-top: 30px;
    text-align: center;
    display: flex; /* Make buttons align horizontally */
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Footer Styling */
.main-footer {
    background-color: var(--bg-dark);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2em;
    }

    .top-nav {
        flex-direction: column;
        gap: 10px;
    }

    .comic-container h2 {
        font-size: 1.5em;
    }
}
