:root {
    --primary-color: #8B0000;
    /*--secondary-color: #1A1A1A;
    --text-color: #E0E0E0;
    --accent-color: #aca999;*/
    --alt-text-color: #E0E0E0;
    --body-font: 'Roboto', sans-serif;
    --header-font: 'Cinzel', serif;
    --book-font: 'Times New Roman', Times, serif;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


header {
    text-align: center;
    padding: 4rem 0;
    background-color: rgba(0, 0, 0, 0.7);
}

h1, h2, h3 {
    font-family: var(--header-font);
    font-weight: 400;
    font-style: normal;
  }

h1 {
    font-size: 6rem;
    margin: 0;
    color: white;
    font-variant: small-caps;
    margin: 0;
    padding: 0;
    line-height: 0.8;
}

h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--accent-color);
}

nav {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

a {
    color: var(--primary-color);
    font-variant: small-caps;
    font-size: 1.2rem;
}

nav ul li a {
    color: var(--alt-text-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--secondary-color);
    position: relative;
    z-index: 1;
}

section {
    margin-bottom: 3rem;
    clear: both;
}

h3 {
    color: var(--primary-color);
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.book-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-links {
    margin: 0 auto;
    text-align: center;
}

.social-links {
	margin: 0 auto;
    text-align: center;
}

.social-links img {
	width: 32px;
	height: 32px;
}

.order-button {
    display: inline-block;
    margin: 0.5rem 0;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--alt-text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.3),
        0 1px 3px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    border: 2px solid rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.order-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
    pointer-events: none;
}

.order-button:hover {
    background-color: #a50000;
    transform: translateY(-2px);
    box-shadow:
        0 6px 12px rgba(0,0,0,0.4),
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.order-button:active {
    transform: translateY(0);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(0,0,0,0.3);
}

footer {
    text-align: center;
    padding: 1rem 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.book-text {
    font-family: var(--book-font);
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 0;
    margin-right: 5em;
    margin-left: 5em;
}

.book-text p {
    margin: 0;
    text-indent: 1.5em;
}

.book-text p:first-of-type {
    text-indent: 0;
}

.drop-cap {
    float: left;
    font-family: var(--book-font);
    font-size: 4em;
    line-height: 0.8;
    padding-top: 0.1em;
    padding-right: 0.1em;
    padding-left: 0;
    color: var(--primary-color);
}

.small-caps {
    font-variant: small-caps;
}

.blurb {
    text-align: center;
    font-style: italic;
}

.tags {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
}

.tags li {
    background-color: var(--primary-color);
    color: var(--alt-text-color);
    padding: 0.5em 1em;
    border-radius: 0.25em;
    font-size: 0.8em;
}

.author-email {
    font-size: 2rem;
    text-align: center;
    padding-top: 2rem;
}

#about .about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#about .book-cover {
    flex: 0 0 auto;
    width: 280px;
    height: 450px;
    background-color: var(--primary-color);
    background-image: url('img/Cover-(website)---Crimson-Fall---Vampire-Romantic-Thriller.jpg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

#about .about-text {
    flex: 1;
}

.spoiler {
	color: transparent;
	background-color: black;
	border: 1px dashed transparent;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
	/*display: inline-block;*/
}

.spoiler:hover {
	color: white;
	background-color: black;
}

.spoiler.revealed {
	color: white;
	background-color: black;
	border: 1px dashed lightgray;
}

@media (max-width: 600px) {

    nav {
        position: static;
    }
    
    /* Stacked nav bar */
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    /* Book cover above about-text */
    #about .about-content {
        flex-direction: column;
    }

    #about .book-cover {
        margin-bottom: 1rem;
    }

    /* Adjust other elements for better mobile display */
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    main {
        padding: 1rem;
    }

    .book-text {
        margin-right: 0;
        margin-left: 0;
    }
}