* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

body {
    background-color: #f8f8f8;
    color: #333;
}

.sidebar {
    width: 120px;
    background-color: #f8f8f8;
    height: 100vh;
    position: fixed;
    border-right: 2px solid #333;
}

.sidebar nav ul {
    list-style-type: none;
    padding: 20px;
}

.sidebar nav ul li {
    margin-bottom: 30px;
}

.sidebar nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.sidebar nav ul li a:hover {
    color: #555;
    transform: scale(1.1);
}

.main-content {
    margin-left: 140px;
    padding: 40px;
    transition: width 0.3s ease;
    width: calc(100% - 160px);
    margin-right: 40px;
}

.main-content.with-panel {
    width: calc(100% - 460px);
}

header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: 2px solid #333;
    outline: none;
    background-color: #f8f8f8;
}

.search-bar input:focus {
    border-color: #555;
    background-color: #f8f8f8;
}

.theme-toggle {
    background-color: transparent;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.theme-toggle:hover {
    color: #555;
}

.biography-section {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.author-image img {
    width: 150px;
    height: 150px;
    border: 2px solid #333;
    border-radius: 50%;
}

.biography-info {
    margin-left: 30px;
}

.biography-info h2 {
    font-size: 28px;
    color: #000;
}

.biography-info p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-top: 10px;
}

.social-media {
    margin-top: 20px;
}

.social-media h3 {
    font-size: 24px;
    color: #000;
    margin-bottom: 10px;
}

.social-media a {
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.social-media a i {
    margin-right: 8px;
}

.social-media a:hover {
    color: #555;
}

.content-section {
    margin-top: 40px;
}

.quote {
    border: 2px solid #333;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f8f8f8;
    font-size: 16px;
}

.gallery {
    margin-top: 30px;
}

.gallery h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #000;
}

.image-thumbnail {
    display: inline-block;
    width: 150px;
    height: 200px;
    padding: 20px;
    border: 2px solid #333;
    background-color: #ddd;
}

.right-panel {
    width: 300px;
    height: 100vh;
    display: block;
    position: fixed;
    right: -300px;
    top: 0;
    background-color: #f8f8f8;
    padding: 20px;
    border-left: 2px solid #333;
    transition: transform 0.4s ease;
}

.right-panel.open {
    transform: translateX(-300px);
}

.author-info,
.works-info,
.contact-info {
    margin-bottom: 40px;
}

.works-info ul {
    list-style-type: none;
}

.works-info ul li {
    font-size: 16px;
    line-height: 1.6;
}

.author-info h4,
.works-info h4,
.contact-info h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.author-info p,
.works-info p,
.contact-info p {
    font-size: 16px;
    line-height: 1.6;
}

footer {
    background-color: #000;
    color: #f8f8f8;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
}
  
footer p {
    margin: 5px 0;
}

footer a {
    text-decoration: none;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
        position: fixed;
        width: 100%;
        height: auto;
        top: 0;
        left: 0;
        background-color: #f8f8f8;
        border-bottom: 2px solid #333;
        padding: 10px;
        z-index: 10;
    }

    .search-bar {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .search-bar input {
        padding: 8px;
        flex-grow: 1;
        margin-left: 10px;
    }

    .main-content {
        margin-left: 0;
        margin-top: 60px;
        padding: 20px;
        width: 100%;
    }

    .biography-section {
        flex-direction: column;
        text-align: center;
    }

    .biography-info {
        margin-left: 0;
        margin-top: 20px;
    }

    .author-image img {
        width: 120px;
        height: 120px;
    }

    .search-bar input {
        padding: 8px;
    }

    .image-thumbnail {
        margin-bottom: 20px;
        display: block;
    }

    .gallery {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .right-panel {
        width: 100%;
        right: -100%;
    }

    .right-panel.open {
        transform: translateX(-100%);
    }
}
