/*
Theme Name: Minimal Book Theme
Theme URI: https://example.com/minimal-book-theme
Author: TG
Author URI: https://example.com
Description: Book theme for Ebay
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minimal-book-theme
*/
:root {
    --deep-green: rgb(6, 87, 68);
    --paper: #fffdf7;
    --ink: rgb(222, 247, 238);
}

#bg-audio {
    height: 0px;
    overflow: hidden;
}

body.book-landing {
    margin: 0;
    font-family: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    height: 100vh;
}

.book-template-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    overflow: hidden;
}

#book-wrap {
    max-width: 1200px;
    width: 100%;
    height: calc(100vh - 6rem);
    max-height: 900px;
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

@media (max-width: 768px) {
    #book-wrap {
        height: auto;
    }
}


#book {
    max-width: 100%;
    max-height: 100%;
}

.book-page {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    background: var(--paper);
}

.page-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--deep-green);
    color: var(--ink);
    position: relative;
    box-sizing: border-box;
}

.page-inner p {
    font-size: 22px;
    margin: 12px 0;
}

#book.width-xxxs .page-inner p {
    font-size: 10px;
    margin: 2px 0;
}

#book.width-xxs .page-inner p {
    font-size: 11.5px;
    margin: 2px 0;
}

#book.width-xs .page-inner p {
    font-size: 13px;
    margin: 2px 0;
}

#book.width-s .page-inner p {
    font-size: 14px;
    margin: 4px 0;
}

#book.width-ms .page-inner p {
    font-size: 16px;
    margin: 10px 0;
}

#book.width-m .page-inner p {
    font-size: 18px;
    margin: 10px 0;
}

#book.width-l .page-inner p,
#book.width-xl .page-inner p {
    font-size: 22px;
}

#book.width-xxxs .closing-paragraph {
    width: 75%;
    position: relative;
    z-index: 1;
}

#book.width-xxs .closing-paragraph {
    width: 75%;
    position: relative;
    z-index: 1;
}

#book.width-xs .closing-paragraph {
    width: 75%;
    position: relative;
    z-index: 1;
}

#book.width-s .closing-paragraph {
    width: 75%;
    position: relative;
    z-index: 1;
}

#book.width-ms .closing-paragraph {
    width: 75%;
    position: relative;
    z-index: 1;
}

#book.width-m .closing-paragraph {
    width: 75%;
    position: relative;
    z-index: 1;
}

/* Video pages - video spans across two pages */
.video-page .page-inner {
    padding: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.snowman-advisor {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 100px;
    cursor: pointer;
}

#book.width-ms .snowman-advisor {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 25%;
}

#book.width-s .snowman-advisor {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 25%;
}

#book.width-xs .snowman-advisor {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 25%;
}

#book.width-xxs .snowman-advisor {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 25%;
}

#book.width-xxxs .snowman-advisor {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 25%;
}

.video-page-left {
    z-index: 10 !important;
}

.book-page.video-page-left {
    overflow: visible;
}

.video-page-left .video-container {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    width: 190%;
    aspect-ratio: 16 / 9;
    z-index: 10;
    border-radius: 1rem;
}

.video-page-left .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

.video-page-right .page-inner {
    background: var(--deep-green);
}

.hero-right {
    display: block;
}

.hero-right .page-header-image {
    top: 10px;
    left: 16px;
    position: absolute;
}

.hero-right h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    line-height: 1.1;
}

.page-left {
    justify-content: center;
}

.page-right {
    padding: 1rem;
    display: block;
}

#book.width-xxs .page-right {
    padding: 0.3333rem;
}

#book.width-xxxs .page-right {
    padding: 0.3333rem;
}

.brand-panel {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    position: relative;
}

.brand-mark {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 120px;
    margin: 0 auto;
    margin-top: 0;
    z-index: -1;
}

.logo-ebay {
    font-size: 1.8rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

.page-header-image {
    height: 41px;
    margin-top: 21px;
}

#book.width-xxxs .page-header-image {
    height: 15px;
    margin-top: 0;
    margin-bottom: -5px;
}

#book.width-xxs .page-header-image {
    height: 17px;
    margin-top: 0;
    margin-bottom: -3px;
}

#book.width-xs .page-header-image {
    height: 23px;
    margin-top: 2px;
}

#book.width-s .page-header-image {
    height: 30px;
    margin-top: 6px;
}

#book.width-ms .page-header-image {
    height: 35px;
    margin-top: 12px;
}

#book.width-m .page-header-image {
    height: 41px;
    margin-top: 21px;
}


.logo-letter {
    display: inline-block;
}

.logo-text {
    font-size: 1.4rem;
    letter-spacing: 0.05em;
}

.brand-copy p {
    margin: 0 auto;
    padding: 1rem;
    max-width: 900px;
    color: var(--muted-ink);
    text-align: center;
    line-height: 1.5;
}

.dec-top {
    width: 90%;
    top: 4%;
    left: 5%;
}

.dec-bottom {
    width: 90%;
    bottom: 5%;
    left: 5%;
}

.video-landing {
    margin: 0;
}

.video-page {
    max-width: 900px;
    margin: 32px auto;
    margin-top: 0;
    background-color: var(--deep-green);
}

.video-container {
    padding: 0 5%;
}

.vdec-top {
    width: 90%;
    margin: 1rem 5%;
}

.vdec-bottom {
    width: 90%;
    bottom: 5%;
    margin: 12px 5%;
}