/* resets */
body {
    margin:0; padding:0;
    font-family: helvetica, serif;
    line-height: 1.4;
    overflow:auto;
    background-color:#222222;
}


/* Header and sticky Navigation; based on https://codepen.io/JGallardo/pen/lJoyk */
/* main */
header {
    display: block;
    position: relative;
    padding: 0;
    width: 100%;
    height: 48px;
    z-index: 10;
}

/*
.header-banner {
    width: 100%;
    height: 100%;
    background-color: #333;
}
*/

/*
#remark.remark-visible {
    display:block;
    position: absolute;
    padding: 0 40px;
    left: 2rem;
    height:100px;
    color: #e0e0e0;
}
#remark.remark-invisible {
    display: none;
}

#remark span.yellow.line1 {
    color:yellow; font-size:small; padding-right:80px;
}
#remark span.smoke.line1 {
    color:whitesmoke; font-size:medium; padding-right:10px;
}
#remark span.yellow.line2 {
    color:yellow; font-size:small; padding-right:28px;
}
#remark span.smoke.line2 {
    color:whitesmoke; font-size:medium; padding-right:16px;
}

header h1 {
    background-color: rgba(18,72,120, 0.8);
    color: #fff;
    padding: 0 1rem;
    position: absolute;
    left: 2rem;
}
header h2 {
    background-color: rgba(18,72,120, 0);
    color: #f0f0f0;
    font-size: 0.8em;
    font-weight: normal;
}

.float-header {
    position: relative;
    width: 100%;
}

*/

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #222222;
}

nav {
    display: block;
    position: fixed;
    top: 0;
    padding: 0;
    height: 50px;
    background: #222222;
    z-index: 10;
}

nav div {
    color: white;
    font-size:1rem;
    position: relative;
    visibility: visible;
}

div nav ul {
    width: 100%;
    list-style-type: none;
    margin: 0;
    padding-left: 12px;
    text-align: left;
}

div nav ul li {
    padding-right: 12px;
    margin: 0;
    font-size: 1em;
    display: inline;
    font-family:sans-serif;
    float: left;
    text-transform: uppercase;
    height:100%;
}
div.nav ul li a{
    text-decoration: none;
    color: whitesmoke;
    background-color: inherit;
    transform: translateX(-0) translateY(50%);
}
div.nav ul li a:hover{
    text-decoration: none;
    color: white;
    background-color: rgba(33, 33, 33, 0.5);
}


.visible-title {
    visibility: hidden;
}
/* based somehow on SO answer https://stackoverflow.com/questions/29268125/how-to-position-one-element-at-the-right-side-of-the-parent-div */
#no-mz3-search {
    color:#ffff00;
}

#wrapper-mz3-html {
    display:block;
}
#wrapper-mz3-search-html {
    /* by default the header is invisible for the HTML version;
        will be loaded by mz3-turn and then made visible
    */
    display: block;
}
#mz3-search-header {
    display: block;
}

#wrapper-mz3-search-content {
    clear:both;
}
#mz3-search-content {
    display: block;
    margin-top:16px;
}
#mz3-search-text {
    padding: 16px;
    display: grid;
}

.is-tag {
    font-style:italic;
    color:#0000ff;
    font-size:small;
}
#wrapper-mz3-search {
    clear:both;
    overflow:auto;
    background-color: #222222; color: #c0c0c0; padding:8px;
}

img.logo{
    transform: translateX(-0) translateY(0%);
    height: 48px;
    width: auto;
}

a.logo {
    margin-left: 12px;
}

.navLi {
    transform: translateX(-0) translateY(50%);  /* center vertically */
}

#open-book {
    display:inline-block;
    font-size: 0.8em;
}

#go-to-top {
    display:inline-block;
    font-size: 0.8em;
}

.float-right {
    float: right;
    margin-right: 12px;
    margin-top: 12px;
}
.language {
    padding-right:12px;
}

.language-selector {
}

#goto-page-number {
    width:4em;
}

#slider-page-number {
    display: inline-block;
    padding: 0 6px;
    width:20vw;
}


/* CSS Definitions based on the PEN for the content
 *   the Mz3 JS Code and CSS must be adjusted accordingly, i.e. using <article> and <header>
 */
section {
    clear:both;
}

.content{
    margin: 0 auto;
    padding: 4rem 0;
    width: 960px;
    max-width: 100%;
}

.outer-border {
    margin-bottom:6px;
}
article {
}

article p:first-of-type {
    margin-top: 0;
}

p img {
    max-width: 100%;
}

@media only screen and (max-width: 960px) {
    .content{
        padding: 2rem 0;
    }
    article {
        float: none;
        margin: 0 auto;
        width: 96%;
    }
    article:last-of-type {
        margin-bottom: 3rem;
    }
}
/* lightbox effects  */
.display-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
}

.grid-item {
    padding:6px;
    place-self: center;
}
.grid-item img {
    transition:0.5s;
    max-width:100%;
    height:auto;
}

.grid-item img:hover {
    filter:grayscale(100%);
    transform: scale(1.1);
}
/* MegaZine3 search Content */

    .mz3-search-page {
        background-color: #c0c0c0; color: #111111; padding:8px;
    }

.area-link {
    color: #900202;
}

.mz3-search-html-page-number {
    padding: 0 12px;
    color: #0000ff;
    font-weight: 700;
}

 a.pageLink {
     text-decoration:none;
 }

 hr {
     display: block;
     height: 1px;
     border: 0;
     border-top: 1px solid #ccc;
     margin: 0;
     padding: 0;
 }

.button-big {
    width: 42px;
    height: 30px;
    border-radius: 15px;
    background-image: linear-gradient(to right bottom, #dadfe1, #abb7b7);
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,.4),
    inset 2px 4px 4px rgba(255,255,255,.4);
}

.button-small {
    padding: 2px 4px 2px 10px;
    color: #666666;
    font-weight: 200;
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 18px;
    border-radius: 15px;
    box-shadow: inset 2px 4px 4px -2px rgba(255, 255, 255, .4),
    0 4px 4px rgba(0,0,0,.6);
    background-image: linear-gradient(to right bottom, #f0f0f0 ,#aaaaaa);
}

.video-wrapper span, .audio-wrapper span {
    color:#111111;
    font-size: small;
}

/* or visibility:hidden; */
.click {
    display: none;
}

.click:checked + label .button-small{
    background-image: linear-gradient(to right bottom, #8b8b8b ,#ececec);
    box-shadow: inset 2px 2px 4px rgba(0,0,0,.4),
    inset -2px -2px 4px rgba(255, 255,255, .4);
    color: #006600;
    font-weight: 600;
}

