body { font-size: 62.5%;}

body.frontpage {
    overflow: hidden;
}


/**
 * Layout CSS
 */
#header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2;
    transition: left 0.2s;

}
/*
#sideDrawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 260px;
    left: -200px;
    overflow: auto;
    z-index: 2;
    background-color: #538493;
    transition: transform 0.2s;
    font-family: 'Open Sans',Arial,sans-serif;
}

#sideDrawer a:link, #sidedrawer a:link, #sidedrawer a:visited, #sidedrawer a:hover, #sidedrawer a:active {
    color: #fff;
    text-decoration: none;
}
*/

#sideDrawer {

}


.rightBox div {
    max-width: 100%;
}


#content-wrapper {
    min-height: 100%;
    overflow-x: hidden;
    margin-left: 0px;
    transition: margin-left 0.2s;

    /* sticky bottom */
    margin-bottom: -160px;
    padding-bottom: 160px;
}

@media (min-width: 768px) {
    #header {
       /* left: 260px;*/
    }
}

/**
 * Toggle Side drawer
 */
#sidedrawer.active {
    transform: translate(200px);
}


/**
 * Header CSS
 */
.sidedrawer-toggle {
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 20px;
    margin-right: 10px;
}

.sidedrawer-toggle:hover {
    color: #fff;
    text-decoration: none;
}


/**
 * Footer CSS
 */


/* ----- */

#newTextUI div.column {
    overflow-y: inherit;
}

.sideBox {
    position: absolute;
    top: 213px;
    width: 260px;
    transition: transform 0.2s;

    height: 650px;
    overflow-y: auto;
}

.button.changes_visible {
    display: none;
}


#readView,
.extra-column-text {
    min-height: 500px;
    position: relative;
    padding: 20px 50px;
}

#readView{
    padding-left: 100px;
}

#readView h1, .extra-column-text h1,
#readView h2, .extra-column-text h2,
#readView h3, .extra-column-text h3,
#readView h4, .extra-column-text h4,
#readView p, .extra-column-text p {
    font-family: Georgia,Times,"Times New Roman",serif;

}

.extra-column-text {

}



/*
#readMenu {
    background-color: transparent;
    width: 230px;
    position: absolute;
    top: 0;
    padding-left: 20px;
    height: 100%;
    width: 100%;
}

#readMenu #minimizeButton {
    display:none;
}

#readMenu .toc_p1, #readMenu .toc_p2 {
    background-color: transparent;
    list-style: none;
    font-size: 14px;
}

#readMenu .toc_p2 {
    font-family: 'Open Sans',Arial,sans-serif;
    margin-top: 0;
    padding-top: 10px;
    padding-left: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;

    border: none;
}

#readMenu a:hover, #readMenu a:active {
}

#readMenu a {
    color: #fff;
    font-size: 14px;
    border: 1px solid transparent;
}

#readMenu a:hover {
    background: none;
}
#readMenu li[role=menuitem]:hover {
    background: white;
}

#readMenu li[role=menuitem]:hover > a {
    color: #538493;
}
*/
/*


#readView .mainText {
    min-height: 650px;
    box-shadow: rgba(0,0,0,0.5) 3px 3px 15px;
}

#readView div.mainText,
#readView #cont_introduction,
#readView .cont_comment {
    padding: 50px;
    font-family: Georgia,Times,"Times New Roman",serif;
    z-index: 1001;
    background: #fff;
}

#readView .mainText p {
    font-size: 14px;
    line-height: 20px;
}


#readView #prevNext {
    position: absolute;
    width: 100%;
    top: -50px;
    left: 0px;
    height: 50px;
}

#readView #prevNext table tbody {
    background: none;
    border: 0px;
}

#readView #prevNext > table tbody td:nth-child(2){
    position:absolute;
    left: 12px;
}

#readView #prevNext > table tbody td:first-child {

}

#readView #prevNext > table tbody td:last-child{
    position:absolute;
    right: 0;
    text-align:right;
}
*/

#readDrawer {
    background-color: #fff;
    width: 846px;
    height: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 260px;
}

#toolboxSpacer {
    height: 0;
}


.rightBox {
    position: absolute;
    width: 50%;
    border: 1px solid #eee;
    right: -30px;
    top: 40px;
    z-index: 1000;
    transition: 1s right ease-out;
    background-color: #fff;
}

.rightBox.open {
    right: -50%;
}
.rightBox .wrapper div {
    background: #fff;
}

.rightBox .toggleDrawer {
     float: right;
     font-size: 30px;
     margin: 0 5px 0 0;
 }

#settings, #helpMenu {
   /* position: inherit;*/
}

body {
    background: url(//www.sls.fi/sites/all/themes/bootstrap_subtheme/images/bg.png);
    background-size: cover;
    font-family: Georgia,Times,"Times New Roman",serif;
    color: #444b53;
}

#header {
    background: none;
    height: 100px;
    width: 100%;
}

/* #headerSearch, .nav, #header {
    position: absolute; /* instead of fixed...
}
*/

#printIcon {
    display: none;
}
/*
.nav {
    float: left;
    width: 100%;
    padding: 0 30px;
    background: #fff;
}

.nav a {
    color: #777 !important;
    border: 0 !important;
    font-family: 'Open Sans',Arial,sans-serif !important;
    font-weight: 700 !important;
    background-image: none !important;
    padding: 15px 20px;
    line-height: 50px;

    font-size: 1.5rem;
    padding-right: 12px !important;
    padding-left: 12px !important;
    text-transform: uppercase;
}
*/

div.column {
    height: auto;
    overflow-y: inherit;
    padding: 0;
    position: inherit;
}


/* Foundaiton things */
.is-drilldown {
    overflow-x: hidden;
    overflow-y: inherit;
    height: 100%;
}

#readMenu .is-drilldown-submenu-item a {
    padding: 3px 10px !important;
    display: block;
}

.is-drilldown-submenu {
    background-color: #538493;
}
.is-drilldown-submenu.is-active {
    transform: translateX(-110%);
}

.is-drilldown-submenu-parent>a:after {
    color: white;
}


.accordion-menu {
    background-color: #538493;
}

/* Tei fixes that foundation overrides */
p.l.l {
    margin-bottom: 0;
}





/** Bootstrap overrides **/

.contentbox .container,
.contentbox .columnwrapper {
    width: 100%;
}


/** Styling of the accordion menu */
#readMenu #accordion .panel {
    border-radius: 0;
    border: 0;
    margin: 0;
}

#readMenu #accordion a,
#readMenu #accordion a:hover,
#readMenu #accordion a:active {
    font-family: Georgia, Times, "Times New Roman", serif;
    font-weight: normal;
    font-size: 14px;
    padding: 10px;
    display: block;
    background: none;
}

#readMenu #accordion .list-group {
    color: #687582;
    font-weight: normal;
}

#readMenu #accordion h4.panel-title {
    background: rgba(33,33,33, 0.5);
    color: white;
    padding: 0;
    font-weight: normal;
    text-transform: none;
    font-size: 20px;
}

#readMenu #accordion h4.panel-title a {
    color: white;
    font-size: 18px;
    padding: 20px 20px;
}

#readMenu #accordion h3 a {
    background: none;
    
}

#readMenu #accordion h4.toc_p2 {
    font-size: 14px;
    background-color: transparent;
    text-align: left;
    padding: 10px 0px 20px 30px;
    border-radius: 0;
    line-height: 28px;
    text-transform: inherit;
    font-family: inherit;
    color: #333;
}

#readMenu .list-group-item {
    border: none;
}

#readMenu .list-group-item:last-child {
    margin: 0;
    border-radius: 0;
}

#readMenu .list-group {
    margin: 0;
}

#readMenu #accordion > .panel:first-child h4.panel-title {
    border-radius: 5px 5px 0 0;
    overflow: hidden;
}

#readMenu #accordion > .panel:last-child h4.panel-title {
    border-radius: 0 0 5px 5px;
    overflow: hidden;
}


@media (max-width: 992px) {
    #readMenu ul.list-group.level-1 {
        max-height: 300px;
        overflow-y: scroll;
        overflow-x: hidden;
    }
}


@media (hover: none) { 
    .mobile-layout #settings {
        position: relative;
        width: 100%;
        left: 0;
        top: 0;
        border: none;
        background: white;
    }

    #dynamicColumns .columnwrapper{
        width: 100%;
        display: block;
        clear: both;
    }
}


#readMenu .panel-title {
    width: 100%;
    position: relative;
}


#readMenu .caret {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: rotate(-90deg);
    transition: transform 0.2s ease-out;
}

#readMenu a {
    color: #444b53;
    border: none;
}

#readMenu .level-2 .caret {
    color: #3a595b;
}


#readMenu a[aria-expanded=true],
#readMenu a.sel {
    font-weight: bold;
}

#readMenu .list-group-item.sel > h3.panel-title > a,
#readMenu .panel.sel > h4.panel-title > a {
    text-decoration: underline;
    font-weight: bold;
   
}


#readMenu .list-group-item.sel > h4 > a {
    text-decoration: underline;
    font-weight: bold;
}


#readMenu a[aria-expanded=true] .caret {
    transform: rotate(0deg);
}

#readMenu h4.panel-title .caret {
    position: absolute;
    right: 15px;
    top: 35px;
    color: #fff;
}

#readMenu #accordion .level-2 > li > a {
    padding: 10px 0 10px 30px;
}

#readMenu #accordion .level-2 > li > h4,
#readMenu #accordion .level-2 > li > h4 > a
{
    margin: 0;
    font-weight: bold;
    text-transform: none;
}
#readMenu #accordion .level-2 > li > h4 > a .caret {
    top: inherit;
}



.nav {
    position: inherit;
}

.navbar-header > * {
    float: left;
}

.dropdown-menu>li>a {
    font-size: 16px;
}


#readMenu  #accordion .sel > .item_link {
    /*font-weight: bold;
    text-decoration: underline;*/
    color: #333;
}

body.collapsedSideDrawer #sideDrawer .hideit,
#sideDrawer .showit {
    display:none;
}
#sideDrawer .hideit,
body.collapsedSideDrawer #sideDrawer .showit {
    display:inline;
}

body.collapsedSideDrawer img.tooltiptrigger {
    display: none;
}

#sideDrawer .hideit {

}


.sideDrawerControl .glyphicon {
    font-size: 24px;
    margin-left: 10px;
    position: relative;
    top: 6px;
    margin-right: 10px;
}

.sideDrawerControl.active .glyphicon {
    color: #cfdf9b;
}

#sideDrawer {
  transition: width 1s ease-in, top 1s ease-in;
}

body.collapsedSideDrawer #sideDrawer {
    width: 180px;
}

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

    .stickySidebarContainer {

        position: fixed;
        top: 0;
        right: 0;
        transition: top 1s ease-in, right 1s ease-in;
        height: 100%;
    }
}
.stickySidebarContainer #sideDrawer {

}

.stickySidebarContainer #sideDrawer > .sideDrawerControl {


}

#sideDrawerContent > .tab-content {
    height: 70vh;
    overflow-y: scroll;
}

.stickySidebarContainer #sideDrawerContent > .tab-content {
    height: 90vh;
    overflow-y: scroll;
}


#sideDrawerContent > .nav-tabs > li > a {
    padding: 10px 5px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

#sideDrawerContent > .nav-tabs > li {
    max-width: 20%;
}

#sideDrawerContent .sub_selector {
    margin-top: 40px;
    text-align: center;
}

.carousel-indicators {
    display: none;
}

.carousel-control:focus, .carousel-control:hover {
    opacity: 0.2;
}

.right.carousel-control{
    margin-right:1em;
}

.carousel.expandedCarousel {
    position: fixed;
    top:0;
    left:0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.8);
    text-align: center;
    overflow-y: scroll;
}

.carousel.expandedCarousel .carousel-control {
    position: fixed;
}

.relative {
    position: relative;
}


.prev-next-arrow {
    position: absolute;
    display: block;
    content: '';
    width: 40px;
    heighT: 98%;
    top: 1%;
    left: 20px;
    background-color: transparent;
    border-radius: 3px;
}

.prev-next-arrow .caret {
    position: relative;
    top: 300px;

    border-top: 25px solid;
    border-right: 18px solid transparent;
    border-left: 18px solid transparent;

    transform: rotate(90deg);
}

.prev-next-arrow.next .caret {
    transform: rotate(-90deg);
}

.prev-next-arrow:hover {
    background-color: rgba(0,0,0,0.1);
}

.prev-next-arrow.next {
    right: 20px;
    left: auto;
}



/*** Advanced mode styles */
body                span.reg_hide {display: none;}
body.show_regStyle  span.reg_hide {display: inherit;}
body.show_regStyle  span.reg {background-color: #d2d2d2; cursor: default;}

body.show_personStyle    span.person {background-color:#edd19f;},
body.show_personStyle    span.person[id] {cursor:pointer;}

body                     span.corr_hide {display: none;}
body.show_choiceStyle    span.corr_hide {display: inherit;}
body.show_choiceStyle    span.corr {background-color: #d2d2d2; cursor: default;}
body.show_choiceStyle    span.corr_red {background-color: #d2d2d2; cursor: default;}

body                     span.reg_hide {display: none;}
body.show_regShow        span.reg_hide {display: inherit;}
body.show_regShow        span.reg {background-color: #d2d2d2; cursor: default;}

body                     span.reg_hide {display: none;}
body.show_regStyle       span.reg_hide {display: inherit;}
body.show_regStyle       span.reg {background-color: #d2d2d2;cursor: default;}

body.show_ttAbbreviations   span.abbr {background-color: #f6cdf6;cursor: default;}

body.show_placeStyle        span.placeName {background-color:#d1dfb6;}
body.show_placeStyle        span.placeName[id] {cursor:pointer;}

body.show_foreignStyle      .foreign {background-color: #cae4eb;cursor: default;}

body.show_titleStyle        span.title {background-color: #eae18a;}
body.show_titleStyle        span.title[id] {cursor:pointer;}

body                        .pb_zts {display: none;}
body.show_pbztsStyle        .pb_zts {display: inherit;}
body.show_pbztsStyle        .pb_zts {color: #d58205;}

/** End of advanced mode styles */




/** Facimilies */

#menu_fa {
    height: 700px;
    position: relative;
}

.bigImageContainer {
    position: absolute;
    top: 70px;
    left: 10px;
    border: 1px solid #d47f00 !important;
    right: 10px;
    bottom: 10px;
    height: 80%;
    overflow: hidden;
    width: 92%;
    margin: 0px !important;
    padding: 0px !important;
}

#image_viewer {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    top: 0px;
    left: 0px;
    display: none;
    overflow-y: scroll;
    text-align:center;
    z-index: 2000;
}

#image_viewer img {
    max-width: 100%;
}

.carousel-inner img {
    margin-left: auto;
    margin-right: auto;
}

/** End facimilies */


#staticContent.contentbox {
    overflow: hidden;
    height: 100% !important;

}




.toggle-box .toggle-box-label,
.
 {
    padding-left: 40px;
    margin: 0;
}

.toggle-box .toggle-box-content {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease-in;
  margin: -15px 30px 0 20px;
}
.toggle-box .toggle-box-content li {
    list-style: none;
    margin: 5px 10px;
}
.toggle-box .caret {
    transform: rotate(-90deg);
    transition: transform 0.2s ease-out;
    margin: inherit;
    position: absolute;
    margin-left: -20px;
    margin-top: 6px;   
}

.toggle-box.open .caret {
    transform: rotate(0deg);
}

.toggle-box.open .toggle-box-content {
    height: auto;
    border: 1px solid black;

}

div[aria-expanded="true"]{
    height: auto;
}

div .panel-collapse.collapse.in{
    height: auto !important;
}

.person_box_toggle{

}

.person-list hr{

}

.person-list{

}

#forekomst_text{

}

#forekomst_post{

}
#forekomst_post div{

}

#forekomster{

}

.caret_ms {
    color: #cfdf9b;
    border-top: 12px solid;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
}

.toggle-box .caret_ms {
    transform: rotate(-90deg);
    transition: transform 0.2s ease-out;
    margin: inherit;
    position: absolute;
    margin-left: -20px;
    margin-top: 6px;   
}

.toggle-box.open .caret_ms {
    transform: rotate(0deg);
}


.sideDrawerControl {
    text-align: right;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    font-family: Calibri,Candara,Segoe,"Segoe UI",Optima,Arial,sans-serif;
    font-size: 16px;
    color: #3a595b;
    margin-right: 2em;
}

.caret_sidemenu {
    color: #cfdf9b;
    border-top: 12px solid;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    position: absolute;
    top: 1em;
    margin-left: 1em;
    
}

.caret_sidemenu.showit {
    transform: rotate(-180deg);
    transition: transform 0.2s ease-out;
    margin-top: -2px;
}


#footer{
    
	border-radius: 4px;
    color: #6E6E6E;
    clear: both;
    /*border-top: 1px dashed #6E6E6E;*/
    padding: 10px;
    margin-top: 1em;
}

p.center{
    display: inherit !important; 
}

.forTable{
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

.list-group-item.sel{
    text-decoration:none !important; 
    color: #000;
    background-color: rgb(207,223,155);
	background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 0C6.716 0 0 6.716 0 15c8.284 0 15-6.716 15-15zM0 15c0 8.284 6.716 15 15 15 0-8.284-6.716-15-15-15zm30 0c0-8.284-6.716-15-15-15 0 8.284 6.716 15 15 15zm0 0c0 8.284-6.716 15-15 15 0-8.284 6.716-15 15-15z' fill='%239a9a9a' fill-opacity='0.06' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.list-group-item{
    text-decoration:none !important; 
    color: #000; 
    background-color: rgb(255,255,255);
	background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 0C6.716 0 0 6.716 0 15c8.284 0 15-6.716 15-15zM0 15c0 8.284 6.716 15 15 15 0-8.284-6.716-15-15-15zm30 0c0-8.284-6.716-15-15-15 0 8.284 6.716 15 15 15zm0 0c0 8.284-6.716 15-15 15 0-8.284 6.716-15 15-15z' fill='%239a9a9a' fill-opacity='0.06' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.list-group-item.panel.sel{
    text-decoration:none !important; 
    color: #000; 
    background-color: rgb(255,255,255);
	background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 0C6.716 0 0 6.716 0 15c8.284 0 15-6.716 15-15zM0 15c0 8.284 6.716 15 15 15 0-8.284-6.716-15-15-15zm30 0c0-8.284-6.716-15-15-15 0 8.284 6.716 15 15 15zm0 0c0 8.284-6.716 15-15 15 0-8.284 6.716-15 15-15z' fill='%239a9a9a' fill-opacity='0.06' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.item_link.indented{
    text-decoration: none !important;
}

/*
https://www.heropatterns.com/
*/
.list-group-item.panel{
    text-decoration:none !important; 
    color: #000; 
    background-color: rgb(255,255,255);
	background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 0C6.716 0 0 6.716 0 15c8.284 0 15-6.716 15-15zM0 15c0 8.284 6.716 15 15 15 0-8.284-6.716-15-15-15zm30 0c0-8.284-6.716-15-15-15 0 8.284 6.716 15 15 15zm0 0c0 8.284-6.716 15-15 15 0-8.284 6.716-15 15-15z' fill='%239a9a9a' fill-opacity='0.06' fill-rule='evenodd'/%3E%3C/svg%3E");
}

#popupContainer_close{
    position: absolute;
    z-index: 99;
}

@media (hover: hover) { 
    #popupContainer_close{
        display: none !important;
    }
}

.glyphicon{
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
}

#myScrollspy{
    top: 20px;
}
.affix{
    left:inherit;
}

@media (max-width: 992px) {
    #myScrollspy{
        display: none;
    }
}
