/* Fonts */

@font-face {
    font-family: 'ComicSans';
    src: url('fonts/ldfcomicsans-font/Ldfcomicsans-jj7l.ttf');
    font-weight: normal;
}

@font-face {
    font-family: 'ComicSans';
    src: url('fonts/ldfcomicsans-font/Ldfcomicsansbold-zgma.ttf');
    font-weight: bold;
}

@font-face {
    font-family: 'ComicSans';
    src: url('fonts/ldfcomicsans-font/Ldfcomicsanslight-6dZo.ttf');
    font-weight: 300;
}

@font-face {
    font-family: 'ComicSans';
    src: url('fonts/ldfcomicsans-font/Ldfcomicsanshairline-5PmL.ttf');
    font-weight: 100;
}

/* Rest */
body {
    margin: 0;
    padding: 0;
    background-color: #0A0A0A;
    color: #f0f0f0;
    /* Nice White #f0f0f0*/
    font-family: 'ComicSans', sans-serif;

}

main {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 0 0 60px 0;
    background-color: #660033;
}

main h2 {
    font-family: 'ComicSans', sans-serif;
    font-size: 30px;
    /* font-weight: 800; */
}

.book-card {
    border: solid 2px #0A0A0A;
    background-color: #CC1F4A;
    margin: auto;
    width: 300px;
    height: 150px;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}

.book-card:hover {
    transform: scale(1.03);
    border-color: #f0f0f0;
}

.book-card img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

.book-info {
    flex: 1;
    text-align: center;
}

#hero-img {
    width: 100%;
    height: 80vh; 
    object-fit: cover;
    object-position:center center;
    display: block;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #0A0A0A;
    /*Jet Black #0A0A0A */
    /* Ink Black £001724 */
    /* border-bottom: solid 6px #34091e; */
    /* Najavo White #FFDB9E */
}

#footer {
    background-color: #0A0A0A;
    text-align: center;
    padding: 40px 20px 20px;
    border-top: 1px solid #CC1F4A;
}
#footer .hero-banner h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

#footer nav ul {
    justify-content: center;
    margin: 10px auto;
}

.footer-copy {
    color: #666;
    font-size: 0.8rem;
    margin-top: 20px;
}

.hero-banner {
    margin: 0 20px;
    font-family: 'ComicSans', sans-serif;
    padding: 0 10px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0 20px;
    padding: 0 10px;
    font-family: 'ComicSans', sans-serif;
    text-align: center;
}

nav ul a {
    color: #f0f0f0;
    text-decoration: none;
}

a {
    color: #f0f0f0;
    text-decoration: none;
}

/* Story Page */

.story-page {
    max-width: 680px;
    margin: 60px auto;
    padding: 20px;
    font-family: 'ComicSans', sans-serif;
    font-weight: 300;
    line-height: 1.9;
    font-size: 1.1rem;
    color: #f0f0f0;
    text-align: left;
    background-color: #430c27;
    border: 1px solid #CC1F4A;
}

.story-page h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.story-page .story-meta {
    text-align: center;
    text-indent: 0;
    color: #CC1F4A;
    font-size: 0.9rem;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.story-page p {
    margin-bottom: 1.5em;
    text-indent: 2em;
}


.chapter-heading {
    text-align: center;
    font-size: 1.3rem;
    letter-spacing: 4px;
    margin: 60px 0 30px;
    text-indent: 0 !important;
}

.ending {
    text-align: center;
    margin: 80px 0;
    line-height: 3;
    color: #CC1F4A;
    font-style: italic;
}

.final-word {
    margin-top: 80px;
    color: #CC1F4A;
}



/* Mobile */


@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 15px 0 10px;
        gap: 5px;
    }

    .hero-banner {
        margin: 0;
        padding: 0;
    }

    .hero-banner h1 {
        font-size: 1.6rem;
        text-align: center;
        margin: 0;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px;
        margin: 0 15px 10px;
        font-size: 0.85rem;
    }

    #hero-img {
        height: 30vh;
    }

    main {
        padding: 0 0 40px 0;
    }

    main h2 {
        font-size: 1.3rem;
        margin: 25px 0 15px;
    }

    .book-card {
        width: 150px;
        height: auto;
        flex-direction: column;
        gap: 0;
    }

    .book-card img {
        width: 100%;
        height: 190px;
        flex-shrink: 0;
    }

    .book-card:hover {
        transform: none; /* hover doesn't make sense on touch */
    }

    .book-info {
        padding: 10px 8px;
        text-indent: 0;
    }

    .book-info h3 {
        font-size: 0.85rem;
        margin: 4px 0;
    }

    .book-info .genre {
        font-size: 0.72rem;
        text-indent: 0;
    }

    .story-page {
        margin: 15px 10px;
        padding: 20px 15px;
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .story-page h1 {
        font-size: 1.5rem;
    }

    .story-page .story-meta {
        margin-bottom: 40px;
    }

    .chapter-heading {
        font-size: 1rem;
        letter-spacing: 2px;
        margin: 35px 0 15px;
    }

    .ending {
        margin: 35px 0;
        line-height: 2.2;
        font-size: 0.88rem;
    }

    .final-word {
        margin-top: 40px;
    }

    #footer {
        padding: 25px 15px 15px;
    }

    #footer .hero-banner h1 {
        font-size: 1.4rem;
    }

    #footer nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px;
        font-size: 0.85rem;
    }

    .footer-copy {
        font-size: 0.72rem;
    }
}

/* mobile - landscape */

@media (max-width: 900px) and (orientation: landscape) {
    header {
        flex-direction: row;
        padding: 8px 20px;
    }

    .hero-banner h1 {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 12px;
        font-size: 0.8rem;
    }

    #hero-img {
        height: 50vh;
    }

    main {
        padding: 0 0 30px 0;
    }

    main h2 {
        font-size: 1.2rem;
        margin: 20px 0 10px;
    }

    .book-card {
        width: 200px;
        height: auto;
        flex-direction: column;
    }

    .book-card img {
        width: 100%;
        height: 160px;
    }

    .story-page {
        max-width: 60%;
        margin: 30px auto;
        padding: 20px 30px;
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .story-page h1 {
        font-size: 1.4rem;
    }

    .story-page .story-meta {
        margin-bottom: 30px;
        font-size: 0.8rem;
    }

    .chapter-heading {
        font-size: 0.9rem;
        margin: 30px 0 15px;
    }

    .ending {
        margin: 30px 0;
        line-height: 2;
        font-size: 0.82rem;
    }

    #footer {
        padding: 20px 15px 10px;
    }

    #footer .hero-banner h1 {
        font-size: 1.2rem;
    }

    .footer-copy {
        font-size: 0.7rem;
    }
}