html, body, main{
    height: calc(100% - 20px);
}

body{
    font-family: "Brush Script MT";
    font-size: 16px;
    
    background-image: url("/images/photobook/assets/stripes.png");
    background-repeat: repeat;
    
    overflow-wrap: anywhere;
}


main{
    display: grid;
    grid-template-columns: 158px auto;
    
    padding: 20px;
    column-gap: 20px;
    margin: auto;
}


img:not(.photo){
    image-rendering: pixelated;
}

.nav-container{
    display: grid;
    height: fit-content;
}

.nav-button-container{
    display: grid;
    grid-template-columns: 4px auto 4px;
    height: fit-content;
    
    background-color: #030d3a;
    
    img{
        image-rendering: pixelated;
    }
}

.nav-button-list{
    display: grid;
    grid-template-columns: auto;
    margin: 8px;
    row-gap: 8px;
    background-color: inherit;
    
    a{
        color: #ecd053;
    }
    
    hr{
        width: 100%;
        color: #ecd053;
    }
}

.nav-side{
    background-image: url("/images/photobook/assets/side.png");
    background-repeat: repeat-y;
}

.nav-button{
    display: block;
    border: 2px solid #ce9838;
    border-radius: 4px;
    padding: 4px;
    
    text-align: center;
    text-decoration: none;
    
    cursor: pointer;
    
    font: initial;
}

button.nav-button{
    width: 100%;
    background: inherit;
    color: #ecd053;
}

.nav-button:hover{
    background-color: #f2e18e;
    color: #030d3a;
}


.book{
    display: grid;
    grid-template-columns: min-content min-content;
    margin: auto;
}


.page{
    height: calc(100% - 80px);
    margin-top: 20px;

}

.page-left{
    margin-left: 90px;
    margin-right: 10px;
}

.page-right{
    margin-left: 10px;
    margin-right: 80px;
}

.page-span{
    display: grid;
    grid-template-columns: max-content auto max-content;
    text-align: center;
}

.page-flipper{
    cursor: pointer;
    border-width: 1px;
    border-radius: 4px;
    border-color: #00000050;
}

.page-flipper:disabled{
    cursor: not-allowed;
    background: #80808070;
    
}

.page-left-background{
    width: 485px;
    height: 595px;
    background-image: url("/images/photobook/assets/book-left.png");
}

.page-right-background{
    width: 474px;
    height: 595px;
    background-image: url("/images/photobook/assets/book-right.png");
}


.photo-container{
    display: grid;
    grid-template-columns: 50% 50%;
    margin-top: 15px;
    
    height: calc(100% - 50px);
    overflow-x: hidden;
    overflow-y: auto;
    
    .photo-link{
        color: white;
    }
}

.photo-single{
    grid-template-columns: 100%;
    row-gap: 20px;
}

.photo{
    width: calc(100% - 40px);
    margin-bottom: 15px;
    
    border-color: white;
    border-style: solid;
    border-radius: 2px;
    border-top-width: 10px;
    border-right-width: 10px;
    border-left-width: 10px;
    border-bottom-width: 30px;
    box-shadow: 5px 5px 10px #00000040;
}

.textbox{
    margin-right: 10px;
}


.page-manual-navigation{
    display: grid;
    grid-template-columns: max-content auto max-content;
    column-gap: 5px;
    
    p{
        color: #ecd053;
        margin: 0px;
    }
    
    input{
        width: 40px;
        margin-left: auto;
    }
    
}

.page-date-navigation{
    display: grid;
    grid-template-columns: auto;
    
    p{
        margin: 0px;
        color: #ecd053;
    }
    
    button{
        border: none;
        background-color: transparent;
        color: #ecd053;
        font-size: inherit;
        cursor: pointer;
    }
    
    button:hover{
        text-decoration: underline;
    }

    ul{
        margin-top: 10px;
        padding-left: 20px;
        color: #ecd053;
        list-style: disclosure-closed;
    }
}

#js-hint{
    color: #ecd053;
}
