/* Fixes the initial browser s style */
* {
    margin: 0;
    padding: 0;
}
div {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* FONT */
@font-face {
    font-family: 'robotolight';
    src: url('../fonts/roboto-light-webfont.eot');
    src: url('../fonts/roboto-light-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/roboto-light-webfont.woff2') format('woff2'),
         url('../fonts/roboto-light-webfont.woff') format('woff'),
         url('../fonts/roboto-light-webfont.ttf') format('truetype'),
         url('../fonts/roboto-light-webfont.svg#robotolight') format('svg');
    font-weight: normal;
    font-style: normal;

}



/******************** MOBILE FIRST ********************/
/* GENERAL + FONT */
body {
    font-size: 18px;
    font-family: 'robotolight', sans-serif;
    line-height: 24px;
    letter-spacing: 1px;
    color: #2A3E92;
}
a, a:visited {
    color: red;
}

a:hover {
    color: #990000
}

h1 {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: normal;
    margin: 20px 0px;
    letter-spacing: 4px;
    color: red;
    text-align: center;
}
h3 {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: normal;
    margin: 20px 0px;
    letter-spacing: 4px;
}
p {
    margin: 10px 0;
}
img {
    width: 100%;
}


p.caption {
    margin: 5px 0;
    font-size: 14px;
}

#mediaData p.caption {
    border-left: 5px solid #CCFF00;
}

/******************** BIGGER SCREENS THEN ********************/
@media (min-width:1024px) {
    body {
        width: 1024px;
        margin: auto;
    }

    img {
        max-width: 1024px;
        margin: auto;
    }
}

@media (min-width: 1280px) {
    body {
        width: 1280px;
        margin: auto;
    }

    img {
        max-width: 1280px;
        margin: auto;
    }
}

/* COLLECTION CONTAINER */
#collection-container {
    height: 80vh;
}

/* HEADER */
#collection-title,
#chapter-title {
    float: left;
    width: 50%;
}

#collection-title h1 {
    text-align: left;
}

#chapter-title h2 {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: normal;
    margin: 20px 0px;
    letter-spacing: 4px;
    color: blue;
    text-align: left;
}

/* CHAPTER */
#chapter-container {
    float: left;
    clear: both;
    height: 100%;
    width: 100%;
}

/* Media */
#media-container {
    height: 100%;
    padding-left: 10px;
    float: left;
    width: 50%;
    position: relative;
}

#media-metadata-container {
    width: 100%;
    display: none;
    max-height: 95%;
    overflow-y: scroll;
}

#media-metadata-container table,
#media-metadata-container table tbody,
#media-metadata-container table tr {
    max-width: 100%;
    width: 100% !important;
}

#media-metadata-container table,
#media-metadata-container table tbody,
#media-metadata-container table tr,
#media-metadata-container table td {
    display: block;
}

#media-metadata-container table td {
    float: left;
    word-wrap: break-word;
    overflow-x: hidden;
    max-width: 100%;
}

#media-metadata-container table td {
    margin-right: 5px;
}

#media-metadata-container table tr td:first-child {
    text-transform: uppercase;
    font-weight: 900;
}

#media-metadata-container table td a {
    overflow-x: hidden;
    max-width: 100%;
}

#media-metadata-container table tr {
    float: left;
    margin-bottom: 10px;
    clear: both;
}

#mediaData {
    max-height: 95%;
}

#mediaData img {
    max-height: 100%;
    display:block;
}

/* Metadata toggle */
#metadata-toggle {
    height: 5%;
    width: auto;
/*    width: 100%;*/
    text-align: center;
    background-color: #cdcdcd;
    text-decoration: underline;
    color: red;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 4px;
    line-height: 18px;
    padding: 2px 0 0px 0;
}

#metadata-toggle:hover {
    color: #990000
}

#mediaData p:first-child {
    margin-top: 0;
}

/* Drop Down Chapter Menu */
#chapter-menu {
    float: left;
    width: 100%;
    list-style: none outside none;
    margin:0;
    padding:0
}

#chapter-menu li {
    background-color: #cdcdcd;
    display:block;
    float:left;
    position:relative;
    width:100%;
    z-index:500;
    margin:0 0px
}

#chapter-menu li a {
    display:block;
    /*height:25px;*/
    text-decoration:none;
    text-align:center;
    padding:4px 5px 4px 5px;
}

#chapter-menu li a:hover {
    color:#fff
}

#chapter-menu a.selected {
    color:red;
}

#chapter-menu ul {
    width: 100%;
    list-style:none outside none;
    position:absolute;
    display:none;
    left:0;
    margin:4px 0 0 -1px;
    padding:0;
}

#chapter-menu ul li {
/*    width:auto;*/
    float:left;
    margin:1px 0 0;
}

#chapter-menu ul a {
    display:block;
    /*height:15px;*/
    color:#FFF;
    padding:8px 5px;
}

#chapter-menu ul a:hover {
    text-decoration:none;
}

#chapter-menu li:hover {
    background:#ababab;
}


/* Text */
#lhs-column {
    height: 100%;
    float: left;
    width: 50%;
    padding-right: 5px;
}

#lhs-html-container {
    padding-left: 5px;
    height: calc(100% - 32px);
    float: left;
    clear: both;
    width: 100%;
    overflow-y: scroll;
    border: 1px solid #ccc;
}

#lhs-html-container h3 {
    padding-left: 8px;
}


::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}
::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0,0,0,.5);
    -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}

#lhs-column p.active {
    border-left: 3px solid #666;
}

#lhs-column p {
    border-left: 3px solid #fff;
    padding: 0 10px 0 5px;
}

/* Chapter Navigation */
#chapter-navigation {
    height: 30px;
    clear: both;
    float: left;
    width: 100%;
    /*border: 1px solid #ccc;*/
    margin: 10px 0;
}

#chapter-navigation-rhs,
#chapter-navigation-lhs {
    height: 30px;
    float: left;
    width: 50%;
}

#chapter-navigation-lhs {
    line-height: 18px;
    padding: 5px;
    border: 1px solid #ccc;
}

.chapter-nav a {
    text-decoration: underline;
}

#nav-previous {
    display: none;
}

/* Share */
#nav-share {
    float: right;
}


/* LHS MEDIA UPDATE LINKS */
span.update-lhs-link {
    background-color: #FFFFEE;
    border-left: 5px solid #CCFF00;
}

span.update-lhs-link:hover {
    background-color: #FFFF99;
    cursor: pointer;
}

/* INSERT REFERENCE LINKS */
span.insert-ref-link {
    background-color: #FFEEEE;
    border-left: 5px solid #FF9999;
}

span.insert-ref-link:hover {
    background-color: #FF9999;
    cursor: pointer;
}

/* Progress Bar */
#progress-bar {
    background-color: #999;
}

canvas#progress-bar {
    display: none;
    border: 1px solid #ccc;
}

/* Map Tiler */
#mediaData iframe {
    width: 100%;
    height: 500px;
    max-height: 80%;
}

/* List of Illustrations */
#lhs-html-container img.thumbnail {
    width: 200px;
    height: auto;
}

.figure-details-wrapper {
    float: left;
    clear: both;
}

p.figure-image {
    float: left;
}

