/* style.css */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

h1 {
    color: #2c3e50;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #3498db;
}

h2 {
    margin-top: 0;
}

.book-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.book-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 220px;
    text-align: center;
}

.book-card p {
    font-size: 0.9em;
    margin: 5px 0;
    color: #666;
}

ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

li {
    margin: 10px 0;
}

a.chapter-link {
    display: block;
    padding: 10px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s ease;
}

a.chapter-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

a.chapter-link.read {
    background-color: #2ecc71;
}

a.chapter-link.read:hover {
    background-color: #27ae60;
}


.btn {
    display: inline-block;
    padding: 12px 20px;
    margin: 10px 5px;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    font-size: 1em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #2ecc71;
}

.btn-primary:hover {
    background-color: #27ae60;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.tag-filter-btn {
    background-color: #ecf0f1;
    color: #34495e;
    margin: 5px;
    font-weight: 500;
}

.tag-filter-btn:hover {
    background-color: #bdc3c7;
}

.tag-filter-btn.active {
    background-color: #3498db;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.filter-controls {
    background-color: white;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-category {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.filter-category:last-child {
    border-bottom: none;
}

.filter-category h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #2c3e50;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}