
body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

.frame {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header {
    background: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
}

footer {
    background: #eee;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f3549;
    color: white;
    padding: 40px 20px;
}

.hero-text {
    max-width: 50%;
}

.hero-text h2 {
    font-size: 36px;
}

.hero-text p {
    font-size: 18px;
}

.button {
    display: inline-block;
    background: white;
    color: #1f3549;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    border-radius: 4px;
}

.hero-image img {
    max-width: 200px;
    border-radius: 8px;
}

.info-section {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: #fafafa;
}

.info-section div {
    flex: 1;
    padding: 0 10px;
}

.card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin: 10px 0;
    background: #fff;
}



.author-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.author-thumb {
    width: 150px;
    height: auto;
    border-radius: 4px;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
    min-width: 200px;
}

.author-detail-img {
    max-width: 200px;
    cursor: pointer;
    border-radius: 6px;
}

.overlay {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.overlay-content {
    max-width: 90%;
    max-height: 90%;
}

.closebtn {
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}




.book-thumb {
    width: 150px;
    height: auto;
    border-radius: 4px;
    flex-shrink: 0;
}

.book-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.book-info {
    flex: 1;
    min-width: 200px;
}

.book-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.book-tile {
    width: 150px;
    text-align: center;
}

.book-tile img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.book-tile img:hover {
    transform: scale(1.05);
}

.book-title {
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold;
}


.book-cover {
    max-width: 200px;
    border-radius: 6px;
    cursor: pointer;
}


/* DARK MODE */
body.dark-mode {
    background-color: #1e1e1e;
    color: #ddd;
}
body.dark-mode .frame {
    background: #2a2a2a;
}
body.dark-mode header,
body.dark-mode footer {
    background: #333;
    color: #ccc;
}
body.dark-mode .card {
    background: #3a3a3a;
    border-color: #555;
}
body.dark-mode a {
    color: #9cf;
}
body.dark-mode .button {
    background: #ccc;
    color: #1f3549;
}


body.dark-mode .hero {
    background: #2b2b2b;
    color: #eee;
}

body.dark-mode .info-section {
    background: #1f1f1f;
}

body.dark-mode .info-section h3 {
    color: #ccc;
}
