/**
* CSS
* 
* @version 2.0
* @author Vaska 
*
* There are also some obscure rules in base.css
*/

@font-face {
    font-family: 'SourceSansPro';
    src: url('assets/webfonts/sourcesanspro-regular-webfont.eot');
    src: url('assets/webfonts/sourcesanspro-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('assets/webfonts/sourcesanspro-regular-webfont.woff') format('woff'),
         url('assets/webfonts/sourcesanspro-regular-webfont.ttf') format('truetype'),
         url('assets/webfonts/sourcesanspro-regular-webfont.svg#SourceSansPro') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SourceSansPro';
    src: url('assets/webfonts/sourcesanspro-semibold-webfont.eot');
    src: url('assets/webfonts/sourcesanspro-semibold-webfont.eot?#iefix') format('embedded-opentype'),
         url('assets/webfonts/sourcesanspro-semibold-webfont.woff') format('woff'),
         url('assets/webfonts/sourcesanspro-semibold-webfont.ttf') format('truetype'),
         url('assets/webfonts/sourcesanspro-semibold-webfont.svg#SourceSansPro') format('svg');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'SourceSansPro';
    src: url('assets/webfonts/sourcesanspro-it-webfont.eot');
    src: url('assets/webfonts/sourcesanspro-it-webfont.eot?#iefix') format('embedded-opentype'),
         url('assets/webfonts/sourcesanspro-it-webfont.woff') format('woff'),
         url('assets/webfonts/sourcesanspro-it-webfont.ttf') format('truetype'),
         url('assets/webfonts/sourcesanspro-it-webfont.svg#SourceSansPro') format('svg');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'SourceSansPro';
    src: url('assets/webfonts/sourcesanspro-semiboldit-webfont.eot');
    src: url('assets/webfonts/sourcesanspro-semiboldit-webfont.eot?#iefix') format('embedded-opentype'),
         url('assets/webfonts/sourcesanspro-semiboldit-webfont.woff') format('woff'),
         url('assets/webfonts/sourcesanspro-semiboldit-webfont.ttf') format('truetype'),
         url('assets/webfonts/sourcesanspro-semiboldit-webfont.svg#SourceSansPro') format('svg');
    font-weight: bold;
    font-style: italic;
}

html {
    box-sizing: border-box;
    overflow-y: scroll;
}

* {
    box-sizing: inherit;
}

*::before, *::after {
    box-sizing: inherit;
}

body {
	font-size: 16px;
	font-family: SourceSansPro, DroidSans, "Helvetica Neue", Helvetica, sans-serif;
	background: #fff;
	color: #888;
	line-height: 1.3em;
	/* font-weight: 300; */
}

/* link scheme */
/* you can customize links further down the page too */
a:link { text-decoration: none; color: #111; }
a:active { text-decoration: none; color: #00cc00; }
a:visited { text-decoration: none; color: #111; }
a:hover { text-decoration: underline; color: #111; }
a img { border: none; }

::selection {
    background: #666;
    color: #fff !important;
}

::-moz-selection {
    background: #666;
    color: #fff !important;
}

/* general styles */
small { font-size: 9px; }
code { font-family: monospace; }
blockquote { padding-left: 9px; }

img {
    -ms-interpolation-mode: bicubic;
    border: 0;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
}

embed,
iframe,
object,
video {
    margin-bottom: 1.6em;
    max-width: 100%;
    vertical-align: middle;
}

/* headings */
h1 { font-size: 13px; margin-bottom: 1em; font-weight: bold; }
h2 { font-size: 13px; margin-bottom: 1em; font-weight: bold; }
h3 { font-size: 13px; margin-bottom: 1em; }
h4 { font-size: 13px; margin-bottom: 1em; }

/* paragraph width */
#index p { margin-bottom: 1em; }
/*#exhibit p, code, blockquote { margin-bottom: 1em; } */

#exhibit p, code, blockquote { width: 100%; max-width: 750px; margin-bottom: 1em; }

/* highlighter style - maybe you want to change colors? */
.highlight { background: #ccff00; color: #000; }

/* never adjust the margin or padding here unless you seriously know what you are doing */
/* think #index .container and #exhibit .container for only padding adjustments */
/*#index { position: fixed; top: 0; left: 0; height: 100%; background: rgba(255, 255, 255, 0.95); }
#exhibit { margin: 0 0 0 370px; } */

#exhibit { margin: 0; }
#index {
    width: 100%;
    height: auto;
    max-height: 100vh;
    bottom: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    overflow-y: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
}

#index .top { font-family: SourceSansPro, DroidSans, "Helvetica Neue", Helvetica, sans-serif; font-size: 26px; line-height: 26px; letter-spacing: -2px; }
#index .top a { color: #666; }
#index .top a:hover { text-decoration: none; }
#index .top img { vertical-align: middle; }

/* styling the index */
#index ul { list-style: none; margin: 0 0 20px 0; }
#index ul.section { margin: 0; padding: 2px 0; color: #888; font-family: SourceSansPro, DroidSans, "Helvetica Neue", Helvetica, sans-serif; font-size: 18px; line-height: 1.4; }
#index ul.section a { color: #555; }
#index ul.subsection { }
#index ul ul { margin: 0 0 0 15px; font-family: SourceSansPro, DroidSans, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; line-height: 1.4; }


/* the follow rules for index are not required */
/* they are mostly for complex customization */
/* for tag display */
#index ul#all_tags { list-style-type: none; margin-bottom: 1em; }
#index ul#all_tags li { display: inline; margin-right: 3px; }
#index ul#all_tags li a {  }

/* active section title */

#index span.active_section_title,
#index span.active_section_title a { font-weight: bold; }

/* active exhibit title parts */
li.active a:link, li a.active, li.active a:hover, li a.active, li.active a:active, li a.active, 
li.active a:visited, li a.active, li span.active, #index ul.section li.active a:link, 
#index ul.section li.active a:hover, #index ul.section li.active a:active, #index ul.section li.active a:visited
{ font-weight: bold; }

#index ul.section span.section_title, #index ul.section span.section_title a, #index ul.section span.section_title a:hover {
  color: #888; 
  font-weight: normal;
  text-decoration: none;
}

/* additional #index options */
#index ul li .password a { /* background: url(../img/locked.gif) right center no-repeat; padding-right: 18px; */ }

/* the "new" indicator */
#index ul li sup.new_exhibit { color: #0c0; font-weight: bold; text-transform: uppercase; font-size: 8px; vertical-align: top; }
#index ul li sup.new_exhibit:before { color: #0c0; font-weight: bold; text-transform: uppercase; font-size: 8px; vertical-align: top; content: "New"; }
/* end styling for index */

/* links styles only for the #index region */
#index a:link {  } 
#index a:hover {  } 
#index a:active {  } 
#index a:visited {  }

#index .bot { margin: 50px 0 0 0; font-size: 11px; }

#index .copyright, #index .built { font-size: 11px; }
#index .copyright a, #index .built a { color: #888; }
#index .copyright a:hover, #index .built a:hover { text-decoration: underline; color: #111; }

/* links styles only for the #exhibit region */
#exhibit a:link {  } 
#exhibit a:hover {  } 
#exhibit a:active {  } 
#exhibit a:visited {  } 

/* this is where you adjust your paddings for #index and #exhibit together */
.container {  }

/* this is where you pad them separately */
#index .container { padding: 0; }
#exhibit .container { padding: 180px 25px 25px 25px; }

#index .top { position: relative; }

#exhibit p img { margin: 0 40px 40px 0; }
#exhibit #ndxz-media p img { margin: 0; }

.format-horizontal .textor { clear: both; margin: 30px 0 0 0; }

.format-horizontal #exhibit { height: 100vh; overflow-x: auto; }
.format-horizontal #img-container { display: inline-block; white-space: nowrap; width: auto; }
.format-horizontal #img-container .picture { display: inline-block; float: none; width: auto !important; }
.format-horizontal #img-container .separator { display: inline-block; float: none !important; }
.format-horizontal #img-container .picture img { max-height: 60vh; width: auto; max-width: none; }
.format-horizontal #img-container .picture .captioning { width: auto !important; }

/* jScrollPane */
.jspArrow { background: #bbb !important; }
.jspTrack { background: #eee !important; }
.jspDrag { background: #ddd !important; }
.jspVerticalBar { opacity: 0; -webkit-transition: opacity 0.25s; -moz-transition: opacity 0.25s; -o-transition: opacity 0.25s; transition: opacity 0.25s; }
.scrollpane:hover .jspVerticalBar { opacity: 1; }

button {
    -webkit-appearance: button;
    background-color: transparent;
    border-style: solid;
    border-width: 1px;
    border-radius: 2px;
    color: inherit;
    cursor: pointer;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    padding: 0.4278em 1.25em;
}

.menu-toggle {
    border-color: rgba(151, 151, 151, 0.9);
}
.menu-toggle {
    position: absolute;
    right: 0;
    top: 25%;
    background-color: transparent;
    border: 1px solid rgba(151, 151, 151, 0.9);
    height: 42px;
    overflow: hidden;
    padding: 0;
    text-align: center;
    transform: translateY(-25%);
    width: 42px;
}

.menu-toggle::before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-family: "Genericons";
    font-size: 12px;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    line-height: 1.1;
    speak: none;
    text-align: center;
    text-decoration: inherit;
    text-transform: none;
    vertical-align: top;
}

.menu-toggle::before {
    position: relative;
    color: rgba(151, 151, 151, 0.5);
    content: '\f419';
    font-size: 12px;
    line-height: 3.3;
    width: 40px;
    height: 40px;
}

.menu-toggle.toggled-on::before {
    content: '\f405';
    font-size: 32px;
    line-height: 1.4;
    left: -1px;
}

.nav-menu {
    display: none;
}

.nav-menu.toggled-on {
    display: block;
}

/**
 * Desktop Small 955px
 */

@media screen and (min-width: 59.6875em) {

    .nav-menu {
        display: block;
    }
    
    #index {
        height: 100%;
        width: 380px;
        padding: 0 50px 0 70px;
        background: rgba(255, 255, 255, 0.95);
        /*overflow: hidden;*/
        -ms-overflow-style: none;
        scrollbar-width: none; 
        z-index: 1;
    }

    #index::-webkit-scrollbar { width: 0 !important }

    #index .container { height: 100%; padding: 30px 0 25px; }

    .menu-toggle {
        display: none;
    }
    
    .container {
        padding: 50px 9px 25px 27px;
    }

    #exhibit {
        margin: 0 0 0 380px;
    }

    #exhibit .container {
        padding-top: 100px;
    }

    .format-horizontal #exhibit {
        overflow-x: visible;
    }

}