body {
    font-family: 'Pretendard', sans-serif;
    background-color: #f8f8f8;
}

.layout-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.content-container {
    flex-grow: 1;
    max-width: calc(100% - 220px);
    margin: 0 10px;
}

.banner-container {
    width: 100px;
    position: sticky;
    top: 20px;
}

.book {
    width: 100%;
    aspect-ratio: 1 / 1;
    perspective: 1000px;
    cursor: pointer;
}

.book-content {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.book.flipped .book-content {
    transform: rotateY(180deg);
}

.book-cover,
.book-page {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.book-cover {
    background-image: url('book-cover.webp'), url('book-cover.jpg');
    background-size: cover;
    background-position: center;
}

.book-page {
    background-color: #ffffff;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.circle {
    width: 90%;
    height: 90%;
    border: 2px solid #1a365d;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 책 안의 글씨 스타일 변경 */
#quote {
    text-align: center;
    max-width: 80%;
    font-size: 18px;
    line-height: 1.4;
    color: #1a365d;
    word-break: keep-all;
    font-family: 'Pretendard GOV', 'Pretendard', sans-serif;
    padding: 20px;
}

.thinking {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#faqContent {
    transition: max-height 0.4s ease;
    overflow: hidden;
    max-height: 0;
}

.faq.open #faqContent {
    max-height: 1000px;
}

/* 레이아웃 유지를 위한 최소 높이 설정 */
.layout-container {
    min-height: 100vh;
}

/* FAQ 컨테이너에 고정 높이 설정 */
.faq-container {
    height: auto;
    overflow: hidden;
}


@media (max-width: 600px) {
    .layout-container {
        flex-direction: column;
        align-items: center;
    }

    .content-container {
        max-width: 100%;
    }

    .banner-container {
        width: 100%;
        height: auto;
    }

    .book {
        max-width: 300px; /* Adjust as necessary for first load */
        margin: 0 auto;
    }
}

/* 배너 스타일 조정 */
.banner-container iframe {
    margin: 10px 0; /* 위아래 간격 설정 */
}

/* 배너 스타일 조정 */
#topBanner, #middleBanner {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#middleBanner iframe {
    width: 380px; /* 중간 배너 너비 조정 */
}
