/* Top-right header buttons */
.nav-btn {
    text-decoration: none;    /* Remove underline */
    color: #ffffff;           /* Make text white */
    background-color: #333;   /* Button background */
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    margin-left: 10px;
    transition: background 0.2s;
}

.nav-btn:hover {
    background-color: #555;   /* Slightly lighter on hover */
}

/* Base body */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;  /* Dark background */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #eeeeee;            /* Light text */
}

/* Header */
header {
    background-color: #1f1f1f; /* Dark header */
    color: #ffffff;
    padding: 25px 0;
    text-align: center;         /* Center header text */
}

/* Container: use flexbox for card layout */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

/* Remove underline for links in series cards */
.series-card a {
    text-decoration: none;  /* No underline */
    color: inherit;         /* Keep text color same as card */
}

/* Series cards */
.series-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 250px;         /* Uniform card width */
    text-align: center;    /* Center all text inside card */
}

.series-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.7);
}

/* Series card image */
.series-card img {
    width: 100%;
    height: 350px;      /* Fixed height for uniform look */
    object-fit: cover;  /* Crop if necessary */
    display: block;
}

/* Titles */
.series-card h2 {
    font-size: 1.1em;
    margin: 10px 0 5px;
}

.series-card .japanese-title {
    font-size: 0.9em;
    color: #bbbbbb;
    margin: 0 0 8px;
}

/* Author and latest chapter */
.series-card .author,
.series-card .latest-chapter {
    font-size: 0.85em;
    color: #dddddd;
    margin: 2px 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background-color: #1f1f1f;
    color: #cccccc;
    font-size: 0.9em;
}

/* Make footer links white and without underline */
footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: #bbbbbb;
}

/* Single series page container */
.single-series-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 90%;
    max-width: 900px;
    margin: auto;
    padding: 20px 0;
}

/* Single series cover image */
.single-series-container .series-cover {
    width: 100%;
    max-width: 400px; /* Adjust this to make image smaller */
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

/* Chapter list styling */
.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

.chapter-list a {
    display: block;
    padding: 10px 15px;
    background-color: #1e1e1e;
    color: #eeeeee;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s, transform 0.2s;
}

.chapter-list a:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

/* Japanese title styling for series page */
.single-series-container h3.japanese-title {
    font-size: 1em;
    color: #bbbbbb;
    margin: 5px 0 15px;
    text-align: center;
}

/* Optional: adjust h2 for synopsis and chapters */
.single-series-container h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
    align-self: flex-start;
}
