.page-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    column-gap: 5%;
    height: min-content;
}

.passport-container {
    padding-top: 20px;
    padding-bottom: 20px;
    width: 400px;
    flex-grow: 4;
    background: linear-gradient(var(--background-color) 0%, var(--background-color) 95%, transparent 100%);
    max-width: 800px;
    z-index: 500;
}

.book-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.book, .passport-menu {
    text-align: right;
    position: relative; 
    width: 100%;
    overflow: hidden; 
    aspect-ratio: 1.42126514132;
}

.page-image-container:active {
    transform: scale(4) translate(var(--mouse-x), var(--mouse-y));
}

@media (pointer: coarse) {
    .page-image-container:active {
        transform: none;
    }
}

.book-no-js .page .internal-page {
    display: inline-block;
}

.book-arrow {
    max-width: 3%;
    width: 20px; 
    aspect-ratio: 0.4;
    margin-left: 10px;
    margin-right: 10px; 
    padding: 0;
    background: transparent;
    border: none;
    overflow: hidden;
}

.book-arrow > img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

.book-arrow:hover {
    cursor: pointer;
}

.primary .book-arrow > img {
    content:url("/static/images/carousel-arrow-white.svg");
}

.secondary .book-arrow > img {
    content:url("/static/images/carousel-arrow-black.svg");
}

.page {
    display: none;
    text-align: unset;
    position: relative;
    width: 100%;
    height: 100%;
}

.page-image {
    width: 100%;
}

.page-text {
    display: none;
    position: relative;
    z-index: 400;
}

.page:first-child, .page-text:first-child {
    display: inline-block;
}

.first .page-image, .last .page-image {
    width: 50% !important;
}

#passport-settings-container {

}

#passport-nav {
    width: 400px;
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    -webkit-user-select: none; /* Chrome/Safari */ 
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+ */
}

#passport-radio {
    width: 350px;
    max-width: 80%;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: nowrap;
    border: solid #333 1px;
    border-radius: 5em;
    overflow:hidden; 
    height: 50px;
    padding: 0;
    box-shadow: 0 0 0 1px #aaaaaa inset
}

#passport-radio > button {
    text-align: center;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    height: 50px;
    line-height: 50px;
    vertical-align: middle;
    font-size: 15px;
    border-left: solid #333 1px;
}

#passport-radio > button:first-child {
    border-left: none;
}

#passport-radio > button:hover {
    cursor: pointer;
}

#passport-radio .activated {
    background-color: #aaaaaa;
}

.texts {
    padding-top: 10px;
    padding-bottom: 10px;
    -ms-overflow-style: none;
    scrollbar-width: none; 
    aspect-ratio: 0.7672;
    overflow: auto;
}

.texts::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.texts-upper-mask, .texts-lower-mask {
    height: 20px;
    width: 100%;
    position: absolute;
    z-index: 500;
}

.texts-upper-mask {
    top: 0;
    background: linear-gradient(var(--background-color), transparent);
}

.texts-lower-mask {
    bottom: 0;
    background: linear-gradient(transparent, var(--background-color));
}

.texts-container {
    z-index: 400;
    position: relative;
    max-width: 800px;
    width: 300px;
    flex-grow: 2;
    height: min-content;
}

@media (max-width: 768px) {
    .page-container {
        display: block;
        align-items: center;
    }

    .texts-container {
        flex-grow: unset;
        width: 800px;
        max-width: 100%;
    }

    .passport-container {
        flex-grow: unset;
        width: 1000px;
        max-width: 100%;
    }

    .texts {
        aspect-ratio: auto;
    }

    .texts-upper-mask, .texts-lower-mask {
        display: none;
    }
}

@media (max-width: 768px) and (max-aspect-ratio: 9/10) {
    .passport-container {
        position: sticky;
        top: 0px;
        align-self: start;
    }

    .body {
        color: red;
    }

    .texts-upper-mask {
        display: auto;
    }
}

.info-dot-container {
    width: 100%;
    height: 100%;
}

.info-dot {
    width: 15px;
    height: 15px;
    padding: 0;
    background-color: rgba(220, 10, 10, 50);
    font-size: 10px;
    color: white;
    border-radius: 2em;
    border: 0px;
    position: absolute;
}

.info-dot::before {
    content: "i"
}

.internal-page:active .info-dot-container {
    display: none;
}

.internal-page:active .info-dot-container:active {
    display: block;
}

@media (pointer: coarse) {
    .internal-page:active .info-dot-container {
        display: block;
    }
}

.passport-menu {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000000bb;
}

.passport-menu-content {
    text-align: left;
    width: min(100%, 400px);
    height: min(100%, 400px);
    padding: 20px;
}

.passport-menu-option-header {
    margin-bottom: 5px;
}

#passport-menu-button, #passport-menu-close-button {
    position: absolute;
    top: 0px;
    right: 0px;
    background: transparent;
    border: none;
}

#passport-menu-button {
    display: none;
}

.book-container:hover #passport-menu-button {
    display: block;
}

.book-container:active #passport-menu-button {
    display: none;
}

.book-container #passport-menu-button:active {
    display: block;
}

@media (pointer: coarse) {
    .book-container:active #passport-menu-button {
        display: block;
    }
}

.image-slider-container {
    margin-bottom: min(20px, 5%);
    margin-right: 10px;
}

.image-slider {
    -webkit-appearance: none;  
    appearance: none;
    width: 50%; 
    height: 6px; 
    background: #fff; 
    opacity: 0.7;
    outline: none; 
    -webkit-transition: .2s; 
    transition: opacity .2s;
}

.image-slider:hover {
    opacity: 1; 
}

.image-slider::-webkit-slider-thumb {
    -webkit-appearance: none; 
    appearance: none;
    width: 15px;
    height: 15px; 
    background: var(--primary-color); 
    cursor: pointer; 
    border-radius: 10em;
}
  
.image-slider::-moz-range-thumb {
    width: 15px; 
    height: 15px; 
    background: var(--primary-color); 
    cursor: pointer; 
    border-radius: 10em;
}

.image-setting-input {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    width: 80px;
    height: 20px;
}