/* book-page.css */

/* CSS Reset and Base Styles */
:root {
    --primary-color: #2196f3;
    --secondary-color: #1976d2;
    --text-color: #333;
    --background-color: #f5f5f5;
    --border-color: #ddd;
    --accent-color: #e3f2fd;
    --warning-color: #fff3e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Top Section */
.top-section {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.cover-container {
    position: relative;
    width: 100%;
}

.cover-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.book-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.book-title {
    font-size: 2.5rem;
    color: var(--text-color);
    line-height: 1.2;
}

.isbn-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
}

.isbn-section p {
    margin: 5px 0;
}

.label {
    font-weight: bold;
    width: 100px;
    display: inline-block;
}

/* Series Information */
.series-info {
    background: var(--accent-color);
    padding: 20px;
    border-radius: 8px;
}

.series-list {
    list-style: none;
    margin-top: 10px;
}

.series-list li {
    margin: 5px 0;
}

/* Accordion Sections */
.accordion-section {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}
.accordion-section2 {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    cursor: pointer;
    user-select: none;
}

.accordion-content {
    background: white;
    padding: 20px;
    border: 1px solid var(--border-color);
}

/* Genre Grid */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.genre-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.resource-button {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.resource-button:hover {
    background: var(--secondary-color);
}

/* Merchandise Grid */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.merch-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Footer */
.page-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .top-section {
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .top-section {
        grid-template-columns: 1fr;
    }

    .cover-container {
        max-width: 400px;
        margin: 0 auto;
    }

    .book-title {
        font-size: 2rem;
    }

    .genre-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .book-title {
        font-size: 1.8rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .isbn-section {
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .accordion-content {
        display: block !important;
    }

    .resource-button,
    .merch-grid {
        display: none;
    }
}
/* Synopsis Styles */
.synopsis-preview {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 1.5em;
    color: #2c3e50;
}

.expand-synopsis-btn {
    background: #e3f2fd;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    color: #1976d2;
    cursor: pointer;
    font-weight: 500;
    margin: 1em 0;
    transition: background-color 0.3s;
}

.expand-synopsis-btn:hover {
    background: #bbdefb;
}

.synopsis-full {
    display: none;
    margin-top: 1.5em;
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5em;
}

.synopsis-full h3 {
    color: #1976d2;
    margin-bottom: 1em;
}

.synopsis-full p {
    margin-bottom: 1em;
    line-height: 1.6;
}

/* Show more animation */
.synopsis-full.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Synopsis Styles */
.synopsis-preview {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 1.5em;
    color: #2c3e50;
}

.expand-synopsis-btn {
    background: #e3f2fd;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    color: #1976d2;
    cursor: pointer;
    font-weight: 500;
    margin: 1em 0;
    transition: background-color 0.3s;
}

.expand-synopsis-btn:hover {
    background: #bbdefb;
}

.synopsis-full {
    display: none;
    margin-top: 1.5em;
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5em;
}

.synopsis-full h3 {
    color: #1976d2;
    margin-bottom: 1em;
}

.synopsis-full p {
    margin-bottom: 1em;
    line-height: 1.6;
}

/* Show more animation */
.synopsis-full.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.synopsis-full {
    display: none;
    margin-top: 1.5em;
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5em;
}

.synopsis-full.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.expand-synopsis-btn {
    background: #e3f2fd;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    color: #1976d2;
    cursor: pointer;
    font-weight: 500;
    margin: 1em 0;
    transition: background-color 0.3s;
}

.expand-synopsis-btn:hover {
    background: #bbdefb;
}
.download-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-notice i {
    font-size: 1.2em;
}

.resource-button {
    background: #4caf50;
    color: white;
    padding: 15px 25px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}

.resource-button:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.resource-button i {
    font-size: 1.2em;
}

/* Modal Styles */
.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.confirm-button {
    background-color: #4caf50;
    color: white;
}

.cancel-button {
    background-color: #f5f5f5;
    color: #333;
}
.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.confirm-button {
    background-color: #4caf50;
    color: white;
}

.confirm-button:hover {
    background-color: #45a049;
}

.open-button {
    background-color: #2196f3;
    color: white;
}

.open-button:hover {
    background-color: #1976d2;
}

.cancel-button {
    background-color: #f5f5f5;
    color: #333;
}

.cancel-button:hover {
    background-color: #e0e0e0;
}
.bottom-nav {
    background: white;
    padding: 30px 20px;
    margin-top: 40px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 250px;
}

.website-link {
    background-color: #2196f3;
    color: white;
}

.website-link:hover {
    background-color: #1976d2;
    transform: translateY(-2px);
}

.store-link {
    background-color: #9c27b0;
    color: white;
}

.store-link:hover {
    background-color: #7b1fa2;
    transform: translateY(-2px);
}

.purchase-link {
    background-color: #4caf50;
    color: white;
}

.purchase-link:hover {
    background-color: #388e3c;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-link {
        width: 100%;
        max-width: 300px;
    }
}
/* Book Catalog Colors and Variables */
:root {
    --maciver-color: #e3f2fd;
    --draconim-color: #fff3cd;
    --standalone-color: #f8f9fa;
    --standaloneSymbiosisSequence-color: #f8f86af0;
    
    /* Age category colors */
    --children-color: #98FB98;
    --teen-color: #87CEEB;
    --ya-color: #DDA0DD;
    --adult-color: #FFB6C1;
    
    /* Border and text colors */
    --border-color: #dee2e6;
    --text-dark: #333;
    --hover-opacity: 0.9;
}

/* Book Catalog Container */
.book-catalog-section {
    margin: 40px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.catalog-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Book Table Styles */
.book-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
}

.book-table th,
.book-table td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.book-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.book-table tr:hover {
    opacity: var(--hover-opacity);
}

/* Series Background Colors */
.series-maciver { 
    background-color: var(--maciver-color); 
}

.series-draconim { 
    background-color: var(--draconim-color); 
}

.series-standalone { 
    background-color: var(--standalone-color); 
}

.series-standaloneSymbiosisSequence { 
    background-color: var(--standaloneSymbiosisSequence-color); 
}

/* Age Category Markers */
.age-marker {
    width: 8px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.age-children { 
    background-color: var(--children-color); 
}

.age-teen { 
    background-color: var(--teen-color); 
}

.age-ya { 
    background-color: var(--ya-color); 
}

.age-adult { 
    background-color: var(--adult-color); 
}

.book-row {
    position: relative;
}

/* Legend Styles */
.catalog-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.legend-section {
    margin-bottom: 20px;
}

.legend-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 4px;
}

/* Book Links */
.book-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.book-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .book-table {
        font-size: 14px;
    }
    
    .book-table th,
    .book-table td {
        padding: 8px;
    }
    
    .catalog-legend {
        grid-template-columns: 1fr;
    }
}

/* Dropdown Purchase */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.purchase-link {
    cursor: pointer;
}

/* Retailers */
#inside-content2 {
	background-color: #FFF;
	margin: 0 8%;
	padding: 10px 30px;
	font-size: 16px;
	
	
}
#inside-content2 .works {
	padding: 40px 60px 50px;
}
#inside-content2 .one-work {
	width: 150px;
	height: 200px;
	text-align: center;
	background-color: #eee8d5;
	border-radius: 4px;
	border: 1px solid #cbc5b7;
	color: #261913;
	float: left;
	margin: 0 20px 20px;
	padding: 10px;
	line-height: 1.2em;
}

/* End Retailers */

/*Footer Book Stores*/
#bookstores {
	background-color: #e0d1b2;
	
	padding: 30px 0;
	margin: 0px;
	text-align: left;
}
#bookstores.inside {
	background: #107869 url(/images/inside-shadow.jpg) no-repeat center 22px;
	background-size: 89%;
}

/* Missing code?*/
.one-work-img {
	background-color: #fff9e6;
	height: 126px;
	width: 79px;
	padding: 10px;
	margin: 0 auto 5px;
	display: block;
}
.one-work-img img {
	position: relative;
  	top: 50%;
	-ms-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-o-transform: translateY(-50%);
  	transform: translateY(-50%);
	width: 79px;
 }
.one-work-img:hover {background-color: #FFF;}
.one-work a { 
	color: #261913;
	text-decoration: none;
}
.one-work a:hover { color: #000; text-decoration: underline;}
#inside-content .extras { text-align: center; }
.book-col {
	background-color: #eee8d5;
	border-radius: 4px;
	border: 1px solid #cbc5b7;
	color: #261913;
	float: left;
	text-align: center;
	width: 200px;
	padding: 30px;
	margin-right: 40px;
}
