
* {
    font-size: 1.1rem;
    font-family: sans-serif;
}
body {
    position: fixed;
    margin: 0;
    padding: 0;
    height: 100vh;
}
.btn-wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 94vw;
    margin-left: 3vw;
    height: 5vh;
}
.book-container {
    position: fixed;
    width: 94vw;
    left: 3vw;
    height: 90vh;
    border: 1px solid #ccc;
    writing-mode: vertical-rl;
    text-orientation: upright;
    overflow-x: auto;
    white-space: nowrap;
}
#view-mode {
    width: 100%;
    height: 100%;
}
.page {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
    height: 100%;
    margin-left: 20px;
    overflow-x: auto;
}
#page-0 {
    width: 100%;
    display: block;
    text-align: center;
    margin: auto;
    text-orientation: initial;
    writing-mode: horizontal-tb;
    padding-top: 30vh;
    background: no-repeat 0 0 / cover url('./img/AdobeStock_471075536.jpeg');
}

.horizontal-scroll {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.horizontal-scroll p {
    writing-mode: vertical-rl;
    text-orientation: upright;
    margin: 0;
    padding: 0 2px;
    height: 100%;
}

h1, h2, h3 {
    margin: 0;
    padding: 0;
}

.subtitle {
    font-size: 1rem;
    font-weight: bold;
    writing-mode: horizontal-tb;
    color: white;
    text-shadow: 1px 1px 1px #333;
}
.title {
    font-size: 4rem;
    font-weight: bold;
    writing-mode: horizontal-tb;
    color: white;
    text-shadow: 1px 1px 1px #333;
}
.chapter {
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 1em;
    margin-left: 2rem;
    text-orientation: upright;
    -webkit-text-orientation: upright;
}
.other-heading {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
    text-orientation: upright;
    -webkit-text-orientation: upright;
}
.sub {
    display: block;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.4rem;
    margin-right: 2rem;
}
.bold {
    font-family: sans-serif;
    font-weight: bold;
}
.column {
    border: 4px double #999;
    border-radius: 1rem;
    padding: 1rem;
    margin: 1rem 0;
}
p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    white-space: pre-wrap;
    word-wrap: break-word;
}
#edit-mode {
    width: 100%;
    height: 100%;
    writing-mode: horizontal-tb;
}

#edit-mode form {
    height: 100%;
    width: 100%;
}

#edit-mode textarea {
    pointer-events: auto;
    user-select: auto;
    writing-mode: horizontal-tb;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.edit-mode .page {
    writing-mode: horizontal-tb;
    -webkit-writing-mode: horizontal-tb;
    -ms-writing-mode: lr-tb;
    overflow-y: auto;
    white-space: pre-wrap;
}

#edit-area {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    font-size: 1.1rem;
}



@media screen and (max-width: 767px) {
    .book-container {
        height: 76vh;
    }
    #page-0 {
        background: no-repeat 30% 0 / cover url('./img/AdobeStock_471075536.jpeg');
    }
    .subtitle {
        font-size: 1.4rem;
    }
    .title {
        font-size: 2.3rem;
    }
    .chapter { font-size: 1.2em; }
}