/* Reset-ish */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
    color: #f4f4f4;
    background-color: #020308;  /* fallback if image fails */
}

/* Full-screen background on pages that use .hero-bg */
.hero-bg {
    min-height: 100vh;
    background: url("../img/afp-hero.jpg") no-repeat center top fixed;
    background-size: cover;        /* back to cover so it fills nicely */
    background-position: center 60px;
	padding-top: 140px;  /* gives breathing room under the header */
	background-color: #020308;
    display: flex;
    flex-direction: column;
}


/* Navigation bar */
.navbar {
    position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.6);  /* optional: improves readability */
    backdrop-filter: blur(4px);      /* optional: adds modern polish */
	display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.2rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 1.2rem;
}

.navbar a {
    color: #f4f4f4;
    text-decoration: none;
    position: relative;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: #f4e08a;
    transition: width 0.2s ease-out;
}

.navbar a:hover::after {
    width: 100%;
}

/* Main centered content block */
.main-content {
    background: rgba(0, 0, 0, 0.20);   /* slightly darker now that blur is gone */

    /* positioning */
	max-width: 600px;
    margin: 10rem 2rem 0 auto;
    padding: 0;
    border-radius: 0;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);*/

}

@media (max-width: 768px) {
    .main-content {
        margin: 1.5rem;
        padding: 1.5rem;
    }
}

/* Typography */
h1, h2, h3, p, .navbar a, .hero-subtitle {
    text-shadow: 0 0 12px rgba(0,0,0,0.9);
}

.hero-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: #f4e08a;
    max-width: 700px;
    margin: 0 auto 1.8rem auto;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}.navbar a {
    color: #f4f4f4;
    text-decoration: none;
    position: relative;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
}

.hero-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: #f4e08a;
    max-width: 700px;
    margin: 0 auto 1.8rem auto;
    line-height: 1.6;
}

/* Generic text */
p {
    line-height: 1.7;
    margin: 0 0 1.1rem 0;
}

/* CTA button */
.button-row {
    text-align: center;
    margin-top: 1.4rem;
}

.button {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    border: 1px solid #f4e08a;
    text-decoration: none;
    color: #f4e08a;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
}

.button:hover {
    background: #f4e08a;
    color: #020308;
}

/* Footer */
.site-footer {
    position: fixed;
    bottom: 1rem;     /* distance from bottom of screen */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

/* Layout for non-hero pages */
.page-wrapper {
    min-height: 100vh;
    background: radial-gradient(circle at top, #050714 0%, #010208 65%);
    display: flex;
    flex-direction: column;
	padding-top: 140px; /* clears space under fixed navbar */
    padding-left: 2rem;
    padding-right: 2rem;
	max-width: 1000px;
    margin: 0 auto;
}

/* Contact list */
.contact-list {
    list-style: none;
    padding-left: 0;
}

.contact-list li {
    margin-bottom: 0.5rem;
}

.contact-list a {
    color: #f4e08a;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}
.book-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
	max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
}

body {
	padding-top: 20px;
}
.book-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.book-cover {
    width: auto;
	max-width: 380px;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    width: 140px;
    height: auto;
	transition: transform 0.2s ease-in-out;
}
.book-cover:hover {
	opacity: 0.85;
	cursor: pointer;
	transform: scale(1.05);
}

.book-info {
    max-width: 500px;
    flex: 1;
	text-align: left;
}

.book-button {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    margin-top: 1rem;
    text-decoration: none;
    transition: opacity 0.25s ease;
	background: #007bff;
    padding: 0.6rem 1.1rem;
}

.book-button:hover {
    opacity: 0.8;
}