html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background-color: #24140d;
    background-image: url('/img/wood-grain-02.jpg');
    background-repeat: repeat;
    background-position: top left;

    font-family: Georgia, "Times New Roman", serif;
}

/*
 * Main page
 */
.site-main {
    width: 100%;
    min-height: 100vh;
}

/*
 * Bookshelf image and hotspot coordinate system
 */
.bookshelf {
    position: relative;
    width: min(100%, 1800px);
    margin: 0 auto;
}

.bookshelf-image {
    display: block;
    width: 100%;
    height: auto;
}

/*
 * Invisible clickable book regions.
 * Position and dimensions supplied by bookshelf.js.
 */
.book-hotspot {
    position: absolute;
    display: block;
    cursor: pointer;
    z-index: 10;
}

/*
 * Book information popup
 */
.book-popup {
    position: absolute;
    display: none;

    min-width: 220px;
    max-width: 320px;

    padding: 16px 18px;

    background: rgba(35, 20, 12, 0.95);
    border: 1px solid rgba(220, 185, 125, 0.7);

    color: #f3e4c6;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);

    z-index: 100;
}

.book-popup.visible {
    display: block;
}

.book-popup-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.book-popup-subtitle {
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 6px;
}

.book-popup-author {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.book-popup-view {
    color: #f1cc83;
    text-decoration: none;
    font-weight: bold;
}

.book-popup-view:hover {
    text-decoration: underline;
}

/*
 * Mobile
 */
@media (max-width: 700px) {

    .book-popup {
        min-width: 180px;
        max-width: 240px;
        padding: 12px 14px;
    }

    .book-popup-title {
        font-size: 1.05rem;
    }
}
.book-hotspot {
    position: absolute;
    display: block;
    cursor: pointer;

    /*background: rgba(255, 0, 0, 0.25);*/
    /*border: 2px solid red;*/

    z-index: 10;
}


.book-detail {
    width: min(90%, 760px);
    margin: 60px auto;
    padding: 40px;

    background: rgba(35, 20, 12, 0.94);
    border: 1px solid rgba(220, 185, 125, 0.7);
    border-radius: 8px;

    color: #f3e4c6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.55),
        inset 0 0 12px rgba(220, 185, 125, 0.06);

    box-sizing: border-box;
}

.book-popup {
    position: absolute;
    display: none;

    min-width: 220px;
    max-width: 320px;

    padding: 16px 18px;

    background: rgba(35, 20, 12, 0.95);
    border: 1px solid rgba(220, 185, 125, 0.7);
    border-radius: 8px;

    color: #f3e4c6;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.55),
        inset 0 0 12px rgba(220, 185, 125, 0.06);

    z-index: 100;
}

.book-popup-view {
    display: inline-block;

    padding: 7px 12px;

    color: #f1cc83;
    background: rgba(74, 42, 24, 0.8);

    border: 1px solid rgba(215, 179, 110, 0.7);
    border-radius: 4px;

    text-decoration: none;
    font-weight: bold;
}

.book-popup-view:hover {
    background: #684027;
    text-decoration: none;
}

.book-detail {
    width: min(90%, 760px);
    margin: 60px auto;
    padding: 40px;

    background: rgba(35, 20, 12, 0.94);
    border: 1px solid rgba(220, 185, 125, 0.7);
    border-radius: 8px;

    color: #f3e4c6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.55),
        inset 0 0 12px rgba(220, 185, 125, 0.06);

    box-sizing: border-box;
}

.book-button {
    display: inline-block;

    padding: 11px 18px;

    border: 1px solid #d7b36e;
    border-radius: 4px;

    color: #f3e4c6;
    background: #4a2a18;

    text-decoration: none;
    font-family: inherit;
    font-size: 1rem;

    cursor: pointer;
}