/* ===== Primary Styles ======================================================== */

body {
  background-color: #e2ded2;
  color: #222;
  font-family: "Lucida Grande", "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}

a { color: #892100; }
a:hover { color: #621800; }

.navbar {
  margin: 0 auto;
  width: 80%;
  max-width: 1200px;
}

.nav {
  width:80%;
}

.nav li.lang-switcher {
  float:right;
}

@media (max-width: 980px) {
  .nav li.lang-switcher {
    float:left;
  }  
}

.navbar .nav > li > a {
  border-radius:10px;
}

.error {
  color:red;
  font-size: 95%;
}

.alert-success, .alert-error {
  margin-top:30px;
  padding:30px;
}

p.startpage_buttons a.btn {
  margin-right:50px;
}

ul.startpage-list {
  list-style-type: none;
}

ul.startpage-list li {
  margin-right:10px;
  line-height: 1.5em;
}

ul.startpage-list li i {
  margin-top:3px;
  padding-right: 3px;
}

ul.startpage-list a {
  color:#eee;
  border-bottom:1px dotted #eee;
}

ul.startpage-list a:hover {
  border-bottom:1px dotted white;
  text-decoration: none;
  color:white;
}


.navbar-inner {
  background-color: #050505;
  border-bottom-right-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
  -moz-border-radius-bottomright: 8px !important;
  -moz-border-radius-bottomleft: 8px !important;
  -webkit-border-bottom-right-radius: 8px !important;
  -webkit-border-bottom-left-radius: 8px !important;
}

.navbar .brand {
  color: #eeeeee;
}

.content-container {
  margin: 0 auto;
  width: 80%;
  max-width: 1200px;
  font-size:14px;
  line-height: 160%;
}

.digital-edition-container {
  min-width: 960px;
}

.content-container .container-fluid {
  clear: both;
  padding: 0;
}

.container {
  font-size:14px;
  line-height: 160%;
}

/* home page */

.bottom-content-container {
  background-color: #f2f1ec;
  border-top: 1px solid #d3d0c9;
  border-bottom: 1px solid #d3d0c9;
  padding: 25px 0;
  width: 100%;
}

.hero-unit {
  background-color: #be2f00;
  border: 1px solid #992a06;
  color: #ffffff;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  padding:40px 60px;
  max-width:1200px;
}

.hero-unit .startpage-image {
  margin-bottom: 20px;
}

.hero-unit h1 {
  font-family: "Lucida Grande", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 45px;
  margin-bottom: 10px;
  text-shadow: 0.03em 0.03em 0.1em #333;
}

.hero-unit h2 {
  font-size: 18px;
  font-weight: 200;
  line-height: 27px;
  text-shadow: 0.03em 0.03em 0.1em #333;
}

.hero-unit blockquote {
  border: none;
  font-size:130%;
  line-height: 130%;
  font-family: "Lucida Grande", "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 10px 0 25px 0;
  padding:15px;
  border-radius:5px;
}

.hero-unit blockquote em {
  font-size:120%;
}

.hero-unit blockquote p {
  margin-bottom: 10px;
}

.hero-unit blockquote p.quote_author {
  font-size:95%;
  margin-top: 20px;
  margin-right: 50px;
  text-align: right;
}

.hero-unit blockquote img {
  float:left;
  margin-right: 25px;
}

footer {
  font-size: 12px;
  text-align: center;
}

.bottom-content-container hr {
  border-top: 1px solid #bbb;
  border-bottom: 1px solid #f9f9f9;
  margin: 20px 0;
}

.bottom-content-container h3 {
  margin-bottom: 10px;
}

.border-right-dotted {
  border-right: 1px dotted #999;
  padding: 0 25px;
}

/* digital edition */

.step-arrow {
  margin: 5px 0;
  padding: 0;
  position: relative;
}

.step-arrow h3 {
  float: left;
  height: 24px;
  line-height: 24px;
  position: relative;
  margin: 0;
  padding: 0 10px 0 14px;
  background: #be2f00;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}

.step-arrow h3:after {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  width: 0;
  height: 0;
  border-color: transparent transparent transparent #be2f00;
  border-style: solid;
  border-width: 12px 0 12px 12px;
}

.step-arrow-text {
  font-style: italic;
  margin-left: 20px;
  line-height: 24px;
}

.sidebar-bg-inactive { background-color: #bbb; }
.border-right-1px-666 { border-right: 1px solid #666; }
.padding-5px { padding: 5px; }
.padding-10px { padding: 10px; }

.sidebar-player {
	background-color: #be2f00;
	border-top: 1px solid #892100;
	border-right: 1px solid #892100;
	border-bottom: 1px solid #892100;
	color: #fff;
	padding: 10px;
}

.list-preview-img-box {
  overflow: auto;
  background-color: #000;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  float: left;
  min-height: 100%;
}

ul.list-manuscripts, ul.list-pages {
  background-color: #000;
  margin: 0 auto;
  padding: 10px 10px 0 10px;
}

ul.list-manuscripts {
  -webkit-border-top-left-radius: 4px;
  -webkit-border-top-right-radius: 4px;
  -moz-border-radius-topleft: 4px;
  -moz-border-radius-topright: 4px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

ul.list-pages {
  /*border-right: 1px dotted #666;*/
  float: left;
  margin-top: 15px;
  overflow: auto;
  padding: 0px;
}

.list-manuscripts li, .list-pages li {
  color: #ccc;
  cursor: pointer;
  font-size: 11px;
  list-style-type: none;
  padding-bottom: 4px;
  text-align: center;
}

.list-manuscripts li {
  float: left;
  padding-top: 5px;
  width: 100px;
}

.list-pages li {
  padding: 0 20px 10px 20px;
  width: 70px;
}

.ms-selected {
  background-color: #000;
  border: 1px solid #cdc7b1;
  border-top: 2px solid #cdc7b1;
  border-bottom-width: 0;
  -webkit-border-top-right-radius: 4px;
  -webkit-border-top-left-radius: 4px;
  -moz-border-radius-topright: 4px;
  -moz-border-radius-topleft: 4px;
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
  position: relative;
  top: 1px;
}

.page-selected > img {
  background: url('../img/page-selected.png') no-repeat center right;
  padding-right: 15px;
}

audio {
	width:80%;
	padding-bottom:10px;
}

.jp-playlist li {
	line-height:1.5em;
	font-size:1.2em;
}

.manuscript-desc {
  margin-top: 15px;
}

.ms-preview-controls {
  float: left;
  margin-left: 20px;
  width: 85%;
}

div.zoom-and-dropdown {

}

ul.zoom-controls {
  float: left;
  list-style-type: none;
  margin: 15px 0 10px 5px;
  overflow: auto;
}

.zoom-controls li {
  float: left;
  margin-right: 10px;
}

.zoom-controls li img {
  cursor: pointer;
}

.zoom-controls .zoom-in, .zoom-controls .zoom-out {
  margin-top: 5px;
}

div#view-options-container {
  float: right;
  padding-top: 15px;
}

#view-options-container * {
  font-family: "Lucida Grande", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
}

#view-options-container select {
  height: 25px;
}

#view-options-container label.view-options-label {
  color: #fff;
  display: inline-block;
  vertical-align: middle;
}


.view-options-panels {
  height: 650px;
  margin-top: 50px;
  position: relative;
  width: 100%;
}

.ms-preview {
  clear: both;
  height: 100%;
  left: 0;
  overflow: auto;
  position: absolute;
  top: 0;
  width: 100%;
}

.text-panel-left, .text-panel-right {
  display: none;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 48%;
}

.text-panel-right {
  left: 50%;
}

.text-panel-left div, .text-panel-right div {
  background-color: #e2ded2;
  border-radius: 5px;
  font-size: 11px;
  height: 80%;
  margin: 10px;
  overflow: auto;
  padding: 20px;
  width: 95%;
}

.text-panel-left div hr, .text-panel-right div hr{
  border: none;
  border-bottom: 1px dotted #999;
  margin: 5px 0;
}

.text-panel-right div {
  border-left: 1px solid #000;
}

.preview-img {
  clear: both;
  max-width: none;
  position: absolute;
  cursor:move;
}

.preview-img-loading {
  background: url('../img/loading.gif') no-repeat center left;
  color: #fff;
  display: inline;
  margin-left: 10px;
  padding: 0 0 0 20px;
}


.manuscript-desc-md {
  color: #e2ded2;
  float: left;
  padding-left: 2%;
  padding-top: 15px;
}

.manuscript-desc-md dl dt {
  float: left;
  font-size: 11px;
  padding: 4px 0;
  width: 10em;
}

.manuscript-desc-md dl dd {
  font-size: 11px;
  padding: 4px 0;
}

.manuscript-caption {
  margin:20px 0;
}

/* Twitter Bootstrap Overrides */

.popover.right .arrow {
  border-right: 5px solid #A2300A;
}

.popover.left .arrow {
  border-left: 5px solid #A2300A;
}


.popover-inner {
  background: rgb(162, 48, 10);
  font-size: 11px;
  padding: 6px;
  width: 400px;
}

.popover-inner em {
  margin:10px 0;
  display: block;
  font-style: normal;
  color: #555;
}

.popover-title {
  font-size: 120%;
}

ul.tabs-sequences {
  list-style-type: none;
  margin: 0 0 0 30px;
  overflow: auto;
}

ul.tabs-sequences li {
  background: #d3cdbf url('../img/icon-music.png') no-repeat 8px 8px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border: 1px solid #afaba0;
  border-bottom-width: 0;
  float: left;
  line-height: 1.4;
  margin-right: 10px;
  min-height: 35px;
  padding:4px 10px 3px 30px;
  text-shadow: 0 1px 0px rgba(182,172,165,0.3);
  width: 110px;
  -webkit-border-top-left-radius: 4px;
  -webkit-border-top-right-radius: 4px;
  -moz-border-radius-topleft: 4px;
  -moz-border-radius-topright: 4px;
}

ul.tabs-sequences li a {
  display: block;
  font-size: 11px;
  margin-top: 2px;
  text-decoration: none;
}

ul.tabs-sequences li a:visited, ul.tabs-sequences li a {
  color: #666;
}

ul.tabs-sequences li.tab-selected, ul.tabs-sequences li.tab-selected:hover {
  background: #f1eee7 url('../img/icon-music-selected.png') no-repeat 8px 8px;
  border-bottom:1px solid #f1eee7;
  position: relative;
}

ul.tabs-sequences li.tab-selected a:visited, ul.tabs-sequences li.tab-selected a {
  color: #000;
}

ul.tabs-sequences li:hover {
  cursor: pointer;
  background-color: #e8e3d7;
}

#content-selector {
  margin:8px 0 -8px 10px;
}

#content-selector label {
  font-size:11px;
  margin-left:10px;
}

#content-selector span {
  font-size:11px;
  font-weight:bold;
}

#jp_container_1 {
  position:static;
  margin-top:-1px;
}

.transcription-translation-table th {
  text-align: left;
}

.transcription-translation-table td {
  border:1px solid #eee;
  padding:5px;
  vertical-align:top;
} 

.info_page h3 {
  margin-top:25px;
  margin-bottom:5px;
}

.info_page ul {
  list-style-type: square;
}

.info_page li {
  margin-bottom: 5px;
}

footer .logos img{
  margin-right:30px;
  margin-top:10px;
}

.img-polaroid {
float:left;
margin-right:25px;
margin-top:20px;
margin-bottom: 20px;
padding: 4px;
background-color: white;
border: 1px solid #CCC;
border: 1px solid rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


/* screenshot should maintain its size and not shrink responsively, container, however, should not become bigger and scale down entire page */
.screenshot {
  max-width: 100%;
  overflow: auto;
}

.screenshot img {
  max-width: none;
}

/* ancient browser warning */
.chromeframe {
background-color: white;
font-size: 130%;
font-weight:bold;
margin:50px 300px;
padding:50px;
}

@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) { 
/* iPad */
  .navbar {
    position: fixed;
    width: 100%;
  }

  .nav {
    width:100%;
  }

  .nav-collapse .nav {
    float:left !important;
  }

  .navbar .nav-collapse {
  clear: none;
  float:left;
  padding-top: 5px;
  }

  .navbar .nav > li {
  float: left !important;
  }

  .nav-collapse, .nav-collapse.collapse {
  height: 40px !important;
  }

  .navbar-inner {
    width: 100%;
    background-color: #050505;
  }

  .btn-navbar {
    display:none !important;
  }

}


@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 568px) { 
/* iPhone 5 */

  body {
    padding-top: 0;
  }
  .navbar {
    margin: 0;
    width: 100%;
  }

  .nav {
    width:100%;
  }

  .hero-unit {
    padding:15px;
  }

  .hero-unit img {
    min-height:200px;
  }

  .hero-unit .startpage-image {
    height:120px;
  }

  p.startpage_buttons a.btn {
    margin-right:5px;
    margin-bottom: 20px;
  }

  .navbar .brand {
    color: #eeeeee;
  }

  .content-container {
    width: 100%;
  }

  .hero-unit blockquote p.quote_author {
    margin-top: 5px;
    margin-right: 0;
    }

}

@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 568px) 
and (orientation : portrait) { 
/* iPhone 5 in portrait orientation */ 
  .hero-unit img {
    min-height:150px;
  }

  ul.startpage-list {
    margin:0;padding:0;
    margin-right:-5px;
  }

  p.logos a {
    display: block;
    margin-bottom: 10px;
  }
}

