/* Global styles */
:root {
    --background-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #8c52ff;
    --card-bg-color: #1e1e1e;
    --hover-color: #2e2e2e;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

/* Comic list styles */
.comic-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.comic-list li {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.comic-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--hover-color);
}

.comic-list a {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Comic page styles */
.comic-container {
    position: relative;
    max-width: 100%;
    min-height: 100vh;
    padding: 1rem;
}

.back-button {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    z-index: 100;
    transition: background-color 0.2s;
}

.back-button:hover {
    background-color: var(--accent-color);
}

.comic-pages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
}

.comic-image {
    max-width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    min-height: 100px;
}

.comic-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .comic-list {
        grid-template-columns: 1fr;
    }
    
    .comic-container {
        padding: 0.5rem;
    }
}