body {
    background-color: #f5e9e0;
    background-image: url('images/bg2.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: #5a4a42;
    font-family: 'VT323', monospace;
    margin: 0;
    padding: 10px;
    line-height: 1.4;
    font-size: 18px;
    position: relative;
}

.sparkle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/sparkles.png');
    pointer-events: none;
    opacity: 0.15;
    z-index: -1;
}

.sticker-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background-image: url('images/sticker2.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.8;
    z-index: -1;
    transform: rotate(-15deg);
}

.main-box {
    border: 2px solid #d4a5a5;
    padding: 10px;
    background-color: rgba(245, 233, 224, 0.9);
    max-width: 750px;
    margin: 10px auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.main-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/old-paper.png');
    opacity: 0.1;
    pointer-events: none;
}

.banner {
    position: relative;
    width: 100%;
    margin: 0 auto 10px;
    padding: 0;
    overflow: hidden;
}

.banner-gif {
    width: 100%;
    height: auto;
    max-height: 60px;
    display: block;
    object-fit: cover;
}

.banner-sticker {
    position: absolute;
    width: 60px;
    height: auto;
    right: 10px;
    bottom:  5px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

.columns {
    display: flex;
    gap: 10px;
}

.left-column {
    flex: 1;
    min-width: 150px;
}

.middle-column {
    flex: 2;
}

.right-column {
    flex: 1;
    min-width: 150px;
}

.box {
    background-color: rgba(245, 233, 224, 0.7);
    border: 1px solid #d4a5a5;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.nav-box {
    padding: 8px;
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-button {
    color: #5a4a42;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid #d4a5a5;
    border-radius: 12px;
    background-color: rgba(212, 165, 165, 0.2);
    display: block;
    text-align: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.nav-button:hover {
    background-color: rgba(212, 165, 165, 0.4);
    transform: translateX(3px);
}

.link-button {
    color: #5a4a42;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid #d4a5a5;
    border-radius: 12px;
    background-color: rgba(212, 165, 165, 0.2);
    display: block;
    text-align: center;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.link-button:hover {
    background-color: rgba(212, 165, 165, 0.4);
}

.links-gif {
    width: 100%;
    max-width: 100px;
    height: auto;
    display: block;
    margin: 10px auto 0;
    border: 1px solid #d4a5a5;
    border-radius: 5px;
}

.box-decoration {
    position: absolute;
    opacity: 0.3;
    z-index: 0;
}

.box-decoration.right {
    right: 5px;
    top: 5px;
}

h2 {
    color: #b37d7d;
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 8px;
    position: relative;
}

h3 {
    color: #5a4a42;
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 8px;
    position: relative;
    font-weight: bold;
}

.book-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 15px 0;
    position: relative;
    font-size: 16px;
}

.book-list li {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #d4a5a5;
    position: relative;
}

.review-box {
    padding: 8px;
}

.reviews-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
    font-size: 16px;
}

.review {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #d4a5a5;
}

.review:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.book-review-content {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.book-cover-left {
    flex: 0 0 80px;
}

.book-cover-left img {
    width: 80px;
    height: auto;
    border: 1px solid #d4a5a5;
}

.review-text {
    flex: 1;
}

.favorite-books-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.favorite-book {
    text-align: center;
    margin-bottom: 15px;
}

.favorite-book img {
    width: 80px;
    height: auto;
    border: 1px solid #d4a5a5;
    margin-bottom: 5px;
}

.favorite-book p {
    margin: 0;
    font-size: 0.9em;
}

.quote {
    font-style: italic;
    color: #5a4a42;
    margin: 0;
    position: relative;
    font-size: 16px;
}

.quote-decoration {
    position: absolute;
    right: 5px;
    top: 5px;
    opacity: 0.5;
}

.corner-gif {
    position: absolute;
    width: 30px;
    height: auto;
    opacity: 0.7;
}

.bottom-left {
    bottom: 3px;
    left: 3px;
}

.top-right {
    top: 3px;
    right: 3px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(212, 165, 165, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(179, 125, 125, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(179, 125, 125, 0.6);
}
/* Video Essay Specific Styles */
.video-review-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #d4a5a5;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-meta {
    font-size: 0.8em;
    color: #8a7a72;
    margin-top: 5px;
    font-style: italic;
}

.review-divider {
    height: 1px;
    background: #d4a5a5;
    margin: 10px 0;
    opacity: 0.5;
}

.channel-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.channel-list li {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #d4a5a5;
}
