@charset "utf-8";
/* CSS for Common Elements */

* {
	margin: 0;
        padding: 0;
        box-sizing: border-box;
}

body {
    font-family: "Rosarivo";
    font-weight: 400;
    font-style-normal;
    color: #333;
    background-color: #fff;
}

h1,h2,h3,h4,h5,h6 {
    font-family: "Amaranth", sans-serif;
    font-style: normal;
}

/* Header with author placeholder image on left and nav on right */
header {
	display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 800px;
        margin: 20px auto;
        padding: 0 20px;
        height: 70px;
}

.author-logo {
	width: 60px;
        height: 60px;
        background-color: #ddd;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9em;
        user-select: none;
        flex-shrink: 0;
}

nav {
	display: flex;
        justify-content: flex-end;
        align-items: center;
        min-width: 200px;
        gap: 30px;
}

nav a {
	text-decoration: none;
        /*color: #333;*/
        color: #336681;
        font-size: 1em;
        font-weight: normal;
        transition: color 0.3s ease;
}

nav a:hover, nav a.active {
	color: #666;
        
}

/* Container for content to center on page */
.container {
	max-width: 800px;
        margin: 0 auto;
        padding: 0 20px 40px;
}

/* Hero unit for book with text left, image right */
.hero {
	display: flex;
        align-items: center;
        gap: 40px;
        margin-top: 40px;
        margin-bottom: 60px;
        flex-wrap: wrap;
}

.hero-text {
	flex: 1 1 300px;
        max-width: 450px;
	text-align: justify;
}

.hero-text h2 {
	font-size: 2em;
        font-weight: normal;
        margin-bottom: 20px;
}

.hero-text p {
	font-size: 1.1em;
        margin-bottom: 30px;
        line-height: 1.4;
	
}

.more-info-button {
	display: inline-block;
        background-color: #333;
        color: white;
        padding: 12px 30px;
        text-decoration: none;
        font-size: 1.1em;
        font-weight: bold;
        transition: background-color 0.3s ease;
        border-radius: 5px;
        margin-bottom: 5px;
}

.more-info-button:hover {
	background-color: #555;
}

.hero-image {
	flex: 0 0 300px;
        height: 375px;
        display: flex;
        align-items: center;
        justify-content: center;
}

/* Newsletter Section */
.newsletter-section {
	background-color: #f5f5f5;
        padding: 30px;
        text-align: center;
        margin-top: 40px;
}

.newsletter-section h3 {
	font-size: 1.3em;
        margin-bottom: 15px;
}

.substack-iframe {
	width: 100%;
        height: 400px;
        border: none;
        margin-top: 20px;
}

footer {
	text-align: center;
        margin-top: 60px;
        padding-top: 30px;
        border-top: 1px solid #eee;
        color: #666;
        font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	header {
            flex-direction: column;
            height: auto;
            gap: 15px;
            margin-bottom: 20px;
        }

	nav {
            justify-content: center;
            gap: 20px;
            min-width: auto;
        }

        .hero {
            flex-direction: column-reverse;
            align-items: center;
            gap: 30px;
         }

        .hero-text, .hero-image {
            max-width: 100%;
            flex: none;
        }


        .hero-image {
            min-width: 300px;
            height: 375px;
        } 

        .substack-iframe {
            height: 350px;
        }
}
 
/* Author bio specific styles */
.author-bio .hero-text {
    text-align: left;
}

.author-image {
    border-radius: 20%;
}

/* Social Media Section */
.social-media-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px 0;
}

.social-media-section h3 {
    font-size: 1.5em;
    margin-bottom: 30px;
    font-weight: normal;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 180px;
    justify-content: center;
}

.social-link:hover {
    background-color: #e8e8e8;
    transform: translateY(-2px);
}

.social-icon {
    font-size: 1.2em;
}

.social-text {
    font-weight: bold;
}

.email-text {
    color: #336681;
    /*font-family: 'Montserrat';*/
    font-variant: small-caps; 
}

/* Responsive adjustments for social links */
@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        max-width: 250px;
    }
}

/* Book Page Specific Styles */
.book-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.book-left-column {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.book-right-column {
    flex: 1 1 400px;
    min-width: 300px;
}

/* Book Cover Section */
.book-cover-section {
    text-align: center;
}

.book-cover-image {
    width: 300px;
    height: 464px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1em;
    font-style: italic;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Buy Links Section */
.buy-links-section {
    text-align: center;
}

.buy-links-section h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: normal;
}

.buy-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.buy-link:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.buy-icon {
    font-size: 1.2em;
}

/* Content Warnings Section */
.content-warnings-section {
    width: 100%;
}

.content-warnings-toggle {
    width: 100%;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: Georgia, serif;
    font-size: 1em;
    transition: background-color 0.3s ease;
    border-radius: 5px 5px 0 0;
}

.content-warnings-toggle:hover {
    background-color: #f0f0f0;
}

.content-warnings-toggle .warning-text {
    flex-grow: 1;
    text-align: left;
    margin-left: 10px;
    font-weight: bold;
}

.toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.content-warnings-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.content-warnings-panel {
    max-height: 0;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    transition: max-height 0.3s ease;
    border-radius: 0 0 5px 5px;
}

.content-warnings-panel.active {
    max-height: 250px;

}

.warnings-text {
    padding: 20px; 
}


/* Book Details Section */
.book-details {
    padding-left: 20px;
}

.book-title {
    font-size: 2 em;
    font-weight: normal;
    margin-bottom: 10px;
    line-height: 1.2;
}

.book-subtitle {
    font-size: 1 em;
    color: #666;
    font-weight: normal;
    font-style: italic;
    margin-bottom: 30px;
}

.book-summary {
    font-size: 1em;
    line-height: 1.5;
}

.book-summary p {
    margin-bottom: 20px;
}

.book-summary p:first-child {
    font-size: 1em;
    font-weight: 900;
    color: #444;
}

.book-summary p:last-child {
    font-style: italic;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .book-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .book-left-column {
        flex: none;
        width: 100%;
        align-items: center;
    }
    
    .book-right-column {
        flex: none;
        width: 100%;
    }
    
    .book-details {
        padding-left: 0;
        text-align: center;
    }
    
    .book-title {
        font-size: 2em;
    }
    
    .book-summary {
        text-align: left;
    }
    
    .book-cover-image {
        width: 250px;
        height: 375px;
    }
}

/* Wallpaper Panels*/
.desktop-wallpapers {
    width: 100%;
}

.phone-wallpapers {
    width: 100%;
}

.wallpaper-section-header {
    width: 100%;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: Georgia, serif;
    font-size: 1em;
    transition: background-color 0.3s ease;
    border-radius: 5px 5px 0 0;
}

.wallpaper-section-header .header-text {
    flex-grow: 1;
    text-align: left;
    margin-left: 10px;
    font-weight: bold;
}

.wallpaper-panel {
    max-height: 250px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    padding: 20px;
}

.wallpaper-panel ul {
    padding-left: 20px;
}

.wallpaper-panel a {
    color: #336681;
}

.wallpaper-panel a:visited {
    color: #A05743;
}