﻿/*Custom CSS For books
-------------------------------------------------- */
.grecaptcha-badge {
    visibility: hidden !important;
}

.body-item {
    background: #874143;
    background-image: url("/images/ShapersMapShaded.png");
    background-size: cover;
    background-position: center;
    height: 110%;
}

.collapsible-body-background {
    background: rgba(238,238,238,0.8);
}

.basic-line-break {
    background-color: #ee6e73;
    height: 1px;
    border: 0;
    margin-top: 5px;
}

/*Initialize the sub-tab for the map so its content is displayed on Lore tab load */
#LoL {
    display: block;
}

.image-container-mobile {
    max-width: 100%;
    max-height: 50vh;
    overflow: auto;
    touch-action: pan-x pan-y pinch-zoom; /*Allow horizontal/vertical scrolling with touch on mobile as well as zooming*/
    background-color: dimgray;
}

.image-container-desktop {
    max-width: 100%;
    max-height: 50vh;
    overflow: hidden;
    cursor: grab;
    background-color: dimgray;
}

.map-image.mobile {
    max-width: 80vw;
    height:auto;
    object-fit: cover;
}

.map-image.desktop {
    max-width: 70vw;
    height: auto;
    object-fit: cover;
}

.page-wrapper {
    width: 100%;
    overflow-x: hidden; /* Hide horizontal overflow */
    overflow-y: hidden;
}

.zoom-container {
    overflow: hidden;
    position: relative;
}

#mobile-image {
    touch-action: pan-x pan-y pinch-zoom;
}

#draggable {
    transition: transform 0.3s ease;
}

.grabbable {
    cursor: grab;
}

.grabbable:active {
    cursor: grabbing;
}

/*Desktop Version*/
@media (min-width: 1000px) {
    html {
        font-size: 16px;
    }

    .header-symbol {
        width: 3% !important;
    }

    .header-contents {
        margin-bottom: 2%
    }

    .content-bottom-spacer {
        margin-bottom: 10vh;
    }
}

/*IPad Version*/
@media (min-width: 750px) and (max-width: 1000px) {
    body {
        margin: 0;
    }

    .header-symbol {
        width: 5% !important;
    }

    .content-bottom-spacer {
        margin-bottom: 2vh;
    }
}

/* Mobile Version */
@media (min-height: 746px) and (max-width: 750px) {
    body {
        margin: 0;
    }

    .header-symbol {
        width: 9% !important;
    }

    .content-bottom-spacer {
        margin-bottom: 10vh;
    }

    .tab-margins {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* iPhone SE and older mobile */
@media (max-height: 745px) and (max-width: 500px)
{
    body {
        margin: 0;
    }

    .header-symbol {
        width: 9% !important;        
    }

    .content-bottom-spacer {
        margin-bottom: 10vh;
    }

    .content-cutoff-spacer {
        margin-bottom: 15vh !important;
    }

    .tab-margins {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}



