body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}
header {
    background: #222;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header h1 {
    margin: 0;
    font-size: 28px;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header h1 a:visited {
    color: white;
}

header h1 a:hover {
    color: white;
}

h2 {
    margin-top:40px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    margin-left: 20px;
}
nav a:hover {
    text-decoration: underline;
}
.content {
    padding: 40px;
    max-width: 900px;
    margin: auto;
    background: white;
}
footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    font-size: 14px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px;
}

.card {
    display: block;
    background: white;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    color: black;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.card img {
    max-width: 100%;
    height: auto;
}

.issue-number {
    font-weight: bold;
    margin-top: 5px;
}

.issue {
    font-size: 14px;
    color: #333;
}

.grade {
    font-size: 13px;
    color: #666;
}

.pagination {
    text-align: center;
    margin: 20px;
}

.pagination a {
    margin: 0 5px;
    text-decoration: none;
    color: #0078d7;
}

.pagination strong {
    margin: 0 5px;
}

/* CSS for Comic.php */

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* Image row */
.cover-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 30px;
}

.cover-img {
    max-width: 400px;
    width: 100%;
    height: 500px;
    object-fit: contain;
    display: block;
}

/* Description section */
.details {
    max-width: 900px;
}

.details p {
    line-height: 1.5;
    margin-bottom: 12px;
}

.backcover {
    max-width: 350px;
    display: block;
    margin-top: 15px;
}

.details {
    flex: 1;
}

.section {
    margin-top: 30px;
}

/* Galleries */
.gallery
 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery img {
    border: 1px solid #ccc;
}

.spine {
    width: 90%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.staples {
    display: flex;
    gap: 16px;
}

.staples img {
    width: 44%;
}

/* Interior images */
.interior img {
    width: 30%;
    max-width: 300px;
    height: auto;
}

/* Button */
.button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    background: #0078d7;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.button:hover {
    background: #005fa3;
}

