html {
    height: 100%;
    font-family: sans-serif;
}

body {
    display: flex;
    margin: 0;
    min-height: 100%;
}

hr {
    display: none;
}

#sidebar_image {
    z-index: -1;
    position: fixed;
    right: 0;
    background-image: url("../img/sidebar.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left center;
    /*background-attachment: fixed;*/
    height: 100%;
    width: 30%;
}
    
    
#flex {
    background-color: transparent;
    display: flex;
    flex-direction: row-reverse;
    min-height: 100%;
    min-width: 100%;
}

pre {
    padding:4em;
    overflow-x: scroll;
}

a:link {
    color: black;
    text-decoration: none;
}

a:visited {
    color: black;
    text-decoration: none;
}

a:hover {
    color: black;
    text-decoration: underline;
}

#navpanel {
    background-color: transparent;
    box-sizing: border-box;
    /*display: flex;
    flex-direction: column;*/
    min-height: 100%;
    min-width: 30%;
    max-width: 30%;
    padding: 5vw;
    order: 0;
}

#navpanel h2 {
    font-size: 1.7vw;
}

#navpanel ul {
    padding-left: 1vw;
}

#navpanel li {
    margin: 1em auto;
    list-style: none;
}

#navpanel .navblock {
    font-family: "Barlow";
    font-size: 1.3vw;
    margin-top: 3em;
}

#navpanel .navblock h2 {
    font-family: "ChanticleerRoman";
    text-transform: uppercase;
}

#siteblock {
    line-height: 0.9;
}

#sitename, #sitename h1 {
    margin: 0;
    display: block;
    font-family: "ChanticleerRoman";
    font-size: 2.8vw;
    font-weight: bold;
}

#sitename a:hover {
    text-decoration: none;
}

#site-description, #site-description h3 {
    display: block;
    font-size: 1.2vw;
    font-weight: normal;
    margin: 0;
}

#menu {
    transition: margin-top 0.7s ease-out;
    /*-webkit-transition: margin-top 0.7s ease-out;*/
}

#menubutton {
    visibility: hidden;
    display: none;
    margin-top: 3%;
    margin-right: 2%;
}

.icono-hamburger {
    color: black;
}

#closemenubutton {
    visibility: hidden;
    display: none;
}

.icono-cross {
    color: black;
}

#siteseal {
    margin-top: 2em;
    background-image: url("../img/seal.png");
    background-repeat: no-repeat;
    background-size: cover;
    width: 119px;
    height: 119px;
}


#content{
    font-family: "ChanticleerRoman";
    font-size: 1.2em;
    line-height: 1.4em;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 1;
    background-color: #eeeeee;
}

.storybox {
    display: flex;
    flex-direction: column;
    margin: 5% 5% 0 5%;
    border: solid 1px #dddddd;
    background-color: white;
}

.storybox img {
    padding: 0 1em 1em 1em;
    float: left;
}

.page-title {
    padding: 1em 4em 1em 4em;
}

.article-title {
    padding: 4em 4em 1em 4em;
}

.article-title h1{
    padding: 0;
    margin: 0;
    line-height: 1.2em;
}

.article {
    font-family: "Barlow";
    order: 0;
    /*border-radius: 1em;*/
    padding: 0em 4em 1em 4em;
}

.article a:link {
    color: #0099cf;
    text-decoration: none;
}

.article a:visited {
    color: #0099cf;
    text-decoration: none;
}

.article a:hover {
    color: #8e7b6d;
    text-decoration: underline;
}

.article-details {
    order: 1;
    padding: 1em 4em 1em 4em;
    background-color: #f1f1f1;
}

.paginator {
    text-align: center;
    display: flex;
}
.paginator .item {
    flex:1;
    /*#padding: 0 3em;*/
}

.paginator .item-disabled {
    flex:1;
    /*#padding: 0 3em;*/
    color: #bbbbbb;
}

/*.article-details {
    order: 0;
    padding: 0;
    background-color: white;
    padding: 0 4em 0 4em;
}*/

#empty {
    flex: 1;
}

#footer {
    font-family: "Barlow";
    font-size: 0.9rem;
    line-height: 1.3em;
    color: #404040;
    margin: 5% 5% 0 5%;
    border: solid 1px #dddddd;
    background-color: white;
    padding: 2em 4em 1em 4em;
}

@media all and (max-width: 800px) {
    #sidebar_image {
        height: 100vh;
        width: 100%;
        background-position: center bottom;
    }
    
    #navpanel {
        /*flex-direction: row;
        justify-content: space-around;*/
        padding: 1em;
        min-width: 100%;
        max-width: 100%;
        min-height: auto;
        max-height: none;
        font-size: 4vw;
    }
    
    #siteblock {
        float: left;
        max-width: calc(95% - 6em - 32px);
    }
    
    #sitename,  #sitename h1 {
        font-size: 9vw;
    }
    
    #site-description, #site-description h3{
        font-size: 3vw;
    }
    
    #navpanel .navblock {
        /*margin-left: 20%;*/
        font-size: 4vw; /*calc((8vw + 8vh) - (6.5vh + 6.5vw));*/
        margin: 1em;
    }
    
    #navpanel .navblock h2 {
        /*margin-left: 20%;*/
        font-size: 5.5vw; /*calc((8.5vw + 8.5vh) - (6.5vh + 6.5vw));*/
        margin: 0em;
    }
        
    #siteseal {
        margin: 0;
        width: 5em;
        height: 5em;
        max-width: 119px;
        max-height: 119px;
        float: right;
    }
    

    #flex {
        flex-direction: column;
    }
    
    #menuwrap {
        clear: both;
        overflow: hidden;
        display: inline;
        visibility: hidden
    }
    
    #menu {
        padding: 0;
        margin-top: -100%;
    }

    #navpanel:target #menuwrap {
        visibility: visible;
        display: block;
        padding: 4% 10%;
    }
    
    #navpanel:target #menu {
        margin-top: 0;
    }
    
    #navpanel:target #siteblock {
        max-width: calc(95% - 1em - 32px);
    }
    
    #navpanel:target .icono-hamburger {
        display: none;
    }
    
    #navpanel:target .icono-cross {
        display: block;
    }
    
    #navpanel:target #siteseal {
        float: none;
        margin-left: 10%;
    }
    
    
    #navpanel .icono-cross {
        display: none;
    }
    
    #menubutton {
        visibility: visible;
        display: block;
        float: left;
    }
    
    .storybox img {
        width: 95% !important;
    }

}

@media all and (max-width: 1000px) {
  body {
    font-size: 70% !important;
  }
}
