@import "reset.min.css";
@import "global.css";

/*
*   HEADER
*/

.bg-image {
    background-size: cover;
    border-bottom: 5px solid #c00000;
    position: absolute;
    height: 100px;
    width: 100vw;
    z-index: 10;
    background: url(../img/banner.jpg) no-repeat;
    background-size: cover;
    background-position: 50% 90%;
}

.site-title {
    height: 95px;
    width: 100%;
    z-index: 11;
    position: absolute;
    background-color: rgba(0, 0, 0, .4);
}

.site-title img {
    width: 20%;
    min-width: 220px;
    padding: 1em;
}


/*
*    SIDEBAR
*/

#book {
    height: auto;
    padding-bottom: 1em;
    z-index: 100;
    float: left;
}

.book-back {
    width: 100%;
}

.book-cover {
    height: auto;
    box-sizing: border-box;
    overflow: hidden;
}

.book-form {
    background: #fff;
    display: none;
    top: 3em;
    right: 3em;
    z-index: 101;
    position: absolute;
/*
    background: white;
    height: 100px;
    position: absolute;
    top: 1em;
*/
}

.cont {
    margin-bottom: 2em;
}

.footer {
    margin: 0;
    border-top: 3px solid #c00000;
    background: #ddd;
    font-size: 80%;
}

.footer div div div:not(:last-child) {
    border-bottom: 1px solid #c00000;
}

.footer div div div {
    height: 120px;
    box-sizing: border-box;
    margin: 2em;
}

.footer div div div.middle {
    height: auto !important;
    padding-bottom: 25px;
}
/*
*   Desktops
*/

@media (min-width: 1023px) {
    .cont {
        padding-top: 200px;
    }
    /*
    * HEADER
    */
    .bg-image {
        position: fixed; /* Maybe not fixed? */
        height: 150px;
    }
    .site-title {
        height: 145.5px;
    }
    #book {
        position: fixed;
        /* float: right; */
        right: 3em;
        top: 3em;
        z-index: 10;
    }
    .book-back {
        border: 1px solid #fff;
    }
    /*
    *    NAV bar
    */
    nav {
        left: 1em;
        height: auto;
        width: 0;
        border: 3px solid #2e2e2e;
        border-radius: 2px;
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        z-index: 11;
    }
    nav ul li:first-child {
        margin-top: .5em;
    }
    nav ul li:last-child {
        margin-bottom: .5em;
    }
    nav ul li a:hover {
        text-decoration: none;
    }
    nav ul li a {
        margin-left: 1.5em;
        top: -6px;
        position: relative;
        color: #2e2e2e;
        display: none;
        padding: .2em;
        border-radius: 1px;
        display: table;
        left: -.5em;
    }
    nav:hover {
        cursor: pointer;
    }
    nav ul li[data-selected=true] a {
        color: #c00000;
    }
    nav ul li[data-selected=true],
    nav ul li:hover {
        border: 3px solid #8d8669;
        background-color: #2e2e2e;
    }
    nav ul li[data-selected=true] {
        border: 5px solid #8d8669;
        width: 16px;
        height: 16px
    }
    nav ul li {
        transition: all .2s linear;
        margin: 2em 1em 2em 0;
        border: 3px solid #2e2e2e;
        /*c85c29;8d8669;c4b04c*/
        background-color: #e2e2e2;
        border-radius: 50%;
        box-sizing: border-box;
        content: '';
        position: relative;
        transform: translateX(-50%);
        width: 12px;
        height: 12px;
        top: calc(50% - 6px);
    }
    .footer div div div {
        margin: 2em 0;
    }
    .footer div div div:not(:last-child) {
        border-bottom: none !important;
    }
    .footer div div div.middle {
        border-right: 1px solid #c00000;
        border-left: 1px solid #c00000;
        border-bottom: none !important;
    }
}

/*
*   LARGE
*/
@media (min-width: 1365px) {
    #book {
        right: 10em;
    }
}

/*
*   Fix Issue #5
*/

@media screen and (min-width: 1200px) and (max-width: 1450px) {
    #content {
        margin-left: 8.5em;
    }
    .navPlaceholder {
        display: none;
    }
}
