body {
  padding: 0;
  margin: 0;
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
  color: #fff;
  background-color: #2323ac;
}

header {
    background-color: #000099;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-responsive {
    height: 130px;
    padding: 0 24px;
}

header > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1024px;
    width: 100%;
}

header .logo img {
    height: 110px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    font-family: "captain-comic", sans-serif;
    font-size: 1.85em;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    color: #fff;
}

nav ul li a:hover {
    color: yellow;
}

.header-icon-responsive {
    height: 40px;
    padding-right: 50px;
}

.content {
    color: #000;
    margin: 50px 0;
    max-width: 1024px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.content h1 {
    font-size: 48px;
    text-align: center;
}

img.coming-soon {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

#prev-comic-btn, #next-comic-btn {
    --btn-w: 40px; /* adjust button width if needed */
    transform: translateY(-50%);
    width: var(--btn-w);
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
    display: inline;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.disabled-btn {
    opacity: 0.5;
    pointer-events: none;
}

/* wrapper that centers the comics and provides positioning context for buttons */
.comics-controls {
    align-self: flex-start;
    margin-left: 40px;
}

.comics-wrapper {
    display: flex;
    flex-direction: column;  /* Stacks children vertically */
    align-items: center;     /* Centers them horizontally */
    justify-content: center; /* Centers the stack vertically */
    width: 100%;
    min-height: 100vh;      /* Optional: makes container full screen height */
    text-align: center;
}

#comic-date {
    font-size: 1.5em;
    margin: 40px;
    margin-top: 0;
    text-align: left;
}

.comics-container {
    margin-top: 40px;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    padding: 40px 40px 0 0;
    z-index: 1;
    /* position: relative;
    left: 50%;
    transform: translateX(-50%); */

    max-width: 100%;        /* Prevents horizontal overflow/cutoff */
    height: auto;
    margin-bottom: 20px;    /* Adds space between comic and text below */
}

.comics-container-responsive {
    width: 900px;
    min-height: 959px;
}

.comic {
    border: solid 4px #000;
    margin-left: 40px;
    margin-bottom: 40px;
}

.comic-responsive {
    width: 400px
}

footer {
    text-align: center;
    font-size: 0.90em;
    width: 100%;
    margin-bottom: 50px;
}

/* Responsive styles */
@media (max-width: 930px) {
    .header-responsive {
        height: auto;
        padding: 12px 0;
    }

    .header-icon-responsive {
        height: 30px;
        padding-right: 0;
    }

    header > div {
        display: flex;
        flex-direction: column;  /* Stacks children vertically */
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        width: 100%;
    }

    nav ul li {
        width: 80px;
        text-align: center;
    }

    .comics-container-responsive {
        width: 90%;
    }

    .comics-controls-responsive {
        align-self: center;
        margin-left: 0;
    }

    .comic-responsive {
        width: 90%
    }
}