/*#69022f */

body {
  /*background:#ebeae5;
  background: #fafaf2;*/
  background:#f0f2f5;
  color:#000;

  font-size:13pt;
  line-height: 1.7em;
 }
 
a { color:#070707; text-decoration:underline; } 
a:visited { color:#000; } 
.dropdown-menu a:visited { color:white; }

main { margin-top: 2em; }
main h2 { font-weight:bold; }

main a { color:black;}
main a:hover, main a:visited { color:black;}

main .thumbcol { margin-bottom:2em;padding-left:0px; }
main .thumbcol img { width:100%; }

.dropcap {
  font-family: 'Hedvig Letters Serif', serif;
  color: #000;
  float: left;
  font-size: 75px;
  line-height: 60px;
  font-weight:bold;
  padding-top: 4px;
  padding-right: 8px;
  padding-left: 3px;
}


h1, h2, h3 { font-family: 'Open Sans', serif; font-weight:900; }


.doc-link { font-weight:bold; }
.thumbcol-title { 
  text-align: left;
  font-size: 0.8em;
  color: black;
  font-weight: bold;
  line-height: 1.1em;
  font-weight: normal;
  text-decoration:none;
  padding-left: 10px;
}

.bg-primary {
    
}
.navbar {
  background-color:#2f2627;
}
.navbar-nav li > a:hover { background:rgba(0,0,0,0.2); }
.navbar-nav > .active > a { 
    background-color: black !important ; 
}

.navbar-nav > li > a {
    color:#FFF !important;
    text-decoration:none;
}
.navbar-toggle .icon-bar { background:white; }

.navbar-brand { color:black; }

.footnote {font-size: 0.9em;}



.dropcap {
  float: left;
  font-size: 45px;
  line-height: 45px;
  padding-top: 0px;
  padding-right: 8px;
  padding-left: 3px;
}

.gallery {
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  gap:1%;
  direction: rtl;
  justify-content:right;
}
.t {
  width:24%;
  height:220px;
  margin-bottom:1%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:center;
  position:relative;
  border: solid 1px #FFF;
  box-shadow: 0px 0px 2px #FFF;
}
.t-title {
  text-align: left;
  padding: 0.5em 1em;
  font-size: 0.8em;
  color: black;
  position: absolute;
  left: 0;
  right: 0;
  top: 180px;
  background: rgba(255,255,255,0.6);
  font-weight: bold;
  line-height: 1.1em;
  font-weight: normal;
}
.t img { max-width:100%; }

.tr-toolbar {text-align:right;margin-bottom:1.7em;}
.tab {
  color: black;
  padding: 0.5em 0.7em 0.3em;
  text-decoration: none;
  background: white;
  border: solid 1px #EEE;
  border-radius:6px;
}
.tab.active {
  color: white;
  background: #353027;
}

.btn-small {   
  color: white !important;
  padding: 0.5em 0.7em 0.3em;
  text-decoration: none;
  background: #343434;
  border: solid 1px #EEE;
  border-radius:6px;
}



#tr-toolbar { text-align:right;margin-bottom:1.7em;}
#tr-toolbar a { 
  color: black;
  padding: 0.5em 0.7em 0.3em;
  text-decoration: none;
  background: white;
  border: solid 1px #EEE;

 }
#tr-toolbar a:nth-child(1) { border-radius:5px 0 0 5px; }
#tr-toolbar a:nth-child(2) { border-radius:0 5px 5px 0; }


.jp-btn { border:solid 3px red; }

#en-btn.active, #jp-btn.active { background: #353027; color: white; }
.en-btn.active, .jp-btn.active { background: #353027 !important; color: white !important; }
 
h1,h2,h3,h4 { }
h2 { font-size:1.8em;color:#000; line-height: 1em; }
h3 { font-size:1.6em;color:#000; }
h4 { font-size:1.4em;color:#000; }

.small { font-size:0.8em; }
#page_title { font-size:1.5em; }

.navbar-brand { margin-left:-30px; }

header { 
  background:#b2dcee;
  color:#000;
  margin-top:0em;
  background: url('../images/banner3.jpg');
  background-size: cover;
  background-position: center; 
  position:relative;
 }
#header-tint {
  position:absolute;
  left:0px;
  right:0px;
  top:0px;
  bottom:0px;
  background: rgba(0,0,0,0.2);
  
}

/*#header h1 { font-size: 1em; }*/

header h1 a { color:#070707;; text-decoration:none; }
#site-title { margin: 1.3em 0; padding-left: 0px;  }
#site-title h1 { font-size:3.2em;margin:0px; margin-left:10px;margin-bottom:7px; padding-bottom:0px;font-weight:bold;font-family:Hedvig, "Times New Roman" }
#site-title h1 a { color:#000;}
#site-title h5 { font-size:1.2em;margin-top:0px;margin-left:10px;color:black;margin-top:-10px;font-weight: bold;color: ##480000; }


#footersection { margin: 5% 0; }
#footer { color:black; }
#footer a { color:black; }

.anchor { padding-top:65px; }

#overview{ position:relative;background-image:url(../images/banner.jpg); color:white; font-weight:bold;color:#333;border-bottom:1px solid #CCC; }
#acknowledgements { color:white; background:#333; font-weight:bold;border-bottom:1px solid #CCC;border-top:1px solid #CCC; }




#overview h2, #acknowledgements h2 { color:white; }

#overview a, #acknowledgements a { color:white; }

button { background:#3f4b58;color:white;margin:0 4px 4px 0; border:solid 0px black; border-radius: 4px;padding: 4px 7px }
button.active { background:#333; color:white; }




/***** transcription window *****/

.viewer-nav { text-align:right; margin-bottom: 4%; }

.viewer-frame {
 }
#transcription {overflow:scroll; width:100%; margin-bottom:3em;}
#translation { display:none; }

.hidden { display:none; }
.hideanno { background:#DDD; }

/*.shown { display:block; }*/

.translucent-bg { position:absolute;top:0px;left:0px; width: 100%; height:100%; background:rgba(0,0,0,0.5); }

.illustration-box {
  padding:10px;
  width:100%;
  height:170px;
}
.figure {
  height: 160px;
  float:left;
  margin-right: 5%;
}
.figure img {
  height: 150px;
  box-shadow: 0px 0px 6px #DDD;
}
.caption { font-size:0.7em; }
.note { color:red; }


#manu-wrap {
  width:98%;
  height: 500px;
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
 }
 #osd-viewer { 
  background:black;
  width: 49%;
  margin-right:1%;
 }
 #img-viewer { 
  width: 49%;
  direction:rtl;
  height: 500px;
  overflow-y: scroll;
 }
 #img-viewer img { 
  height:480px;
 }

 #tra-viewer { 
  margin-bottom: 3%;
 }

/* **************************** */

.manu-gallery {
  width:98%;
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  margin-top:4%;
 }
.manu-gallery img {
  margin-bottom: 10px;
 }  
 
.manu-gallery a {
  margin: 0 2% 2% 0;
  width: 200px;
  font-size: 0.85em;
  line-height: 1.8em;
 } 

.tile {
  height: 180px;
  position:relative;
  box-shadow: 0px 0px 4px grey;
  overflow:hidden;
  background-repeat: no-repeat;
  background-size:cover;
  background-position: center;
  margin: 0 2% 2% 0;
}

.tile img{
  height:100%;
}

.meta {
  width:100%;
  height:40px;
  background:grey;
  position:absolute;
  bottom:0px;
  padding: 4%;
  font-size: 0.7em;
  line-height:0.8em;
  opacity: 0;
}

.transcr {  }

.tile:hover .meta {
  opacity: 1;
  transition: all 500ms ease-in-out 0s;
  background-color: #70869e;
  color:white;
  position:absolute;
  bottom:0px;
}

sup { }

.footnotes { padding: 8% 0%; }
.footnote { font-size:0.8em; line-height:1.2em;}

.viewer { margin-bottom: 20px; }

/************ NAV BAR *******************/

.nav .open > a, .nav .open > a:focus, .nav .open > a:hover {
  background-color: #444 !important;
  border-color: #337ab7 !important;
}


.dropdown-menu { padding:0.5em; }
.dropdown-menu a { 
  display:block;
  width:100%;
  padding:0px;
  text-decoration:none;
}

.dropdown-menu { background:rgba(0,0,0,0.85);z-index:999; }
.dropdown-item { color:white; padding:1em; }
.dropdown-item:hover { color:#BBB; }

/************ NEXT PREV ****************/

.nextprev a {  }
.nextprev { 
  width:100%;
  margin: 0.5em 0 2em 0px;
  padding-left: 0px;
  padding-right: 0px;  
  display:flex;
  justify-content:space-between;
}
.next {  }

/*********** VERTICAL JAPANESE *************/

.vert {
  font-family: "Times New Roman", Times, serif;
  -webkit-writing-mode: vertical-rl;
  -moz-writing-mode: vertical-rl;
  -ms-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  line-height: 1.6em;
}

.vert p{
  padding:0px; margin:0px;
}
small { font-size:60%; }


/********** FRONT PAGE SCROLL VIEWER **********/


.gloss {
display:flex;
gap:10px;
height:12em;
}

.gloss-text { display:none;  }
.gloss-text.shown {display:block;}

/*
.gloss {
  font-size:0.85em;
  line-height:1.5em;
  height:3em;
  } 
.gloss span { display:none; }
.gloss span.shown { display:inline; }

 */

.highlight.shown { border:solid 2px darkred; }
.highlight { border:solid 0px transparent; }
 

 
 
.show-gloss { 
  background: #353027;
  color: white !important;
  text-decoration:none !important;
  padding: 0.4em 0.4em 0.2em;
  border-radius:3px;
 }
.show-gloss:hover { 
  text-decoration:none;
 }





/*********** GALLERY ***************/

#gallery {
  width:100%;
  display:flex;
  flex-wrap:wrap;
  flex-direction: row;
}
.gallerytile {
  width:25%;
  
}
.gallerytile .tile-content {
  margin:5%;
  
}
.gallerytile h3 { font-size: 12px; line-height:17px; }
.gallerytile img {
  width:100%;
  
}



@media only screen and (max-width: 780px) {
  #site-title {margin: 1em;}
  h2 {   font-size: 1.1em; margin:0px 0.5em 0.5em; }
  .nextprev { margin:1em 0.5em 1em; width:95%; }
}



@media only screen and (max-width: 980px) {

  h2 {   font-size: 1.4em; }
  #overview { padding-top: 108px !important; }
  .gallerytile {  width: 100%; }
  .manu-gallery a { width: 100%; }
}


