/*
Theme Name: elbauenlandschaft
Theme URI: www.leuchtende-elbauen.de
Author: 
Author URI: 
Description: 
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: colorful rainbow
Text Domain: elbauenlandschaft
*/

@font-face {
    font-family: 'EB Garamond 12 r';
    src: url('assets/ebgaramond12-regular-webfont.woff2') format('woff2'),
         url('assets/ebgaramond12-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'EB Garamond 12 i';
    src: url('assets/ebgaramond12-italic-webfont.woff2') format('woff2'),
         url('assets/ebgaramond12-italic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/*.scrollbar::-webkit-scrollbar {
    width: 8px;
}

.scrollbar::-webkit-scrollbar-thumb {
    background: black;
}

.scrollbar::-webkit-scrollbar-track {
    background-color: white;    
}*/

html, body {
    margin: 0;
    padding: 0;
    font-size: 1.1em;
    /*overflow-x: hidden;*/
}

body {
    font-family: 'EB Garamond 12 r';
    background-color: #FFFFFC;
}

body iframe, .wp-block-embed-youtube {
    width: 100%;
	height: calc(100vw*9/16);
	max-height: 315px;
}

.wp-block-embed-youtube {
    margin-left: 0;
    margin-right: 0;
}

twitter-widget {
	width: 100% !important;
}

em {
    font-family: 'EB Garamond 12 i';
    font-style: normal;
}

em, a {
    line-height: 1;
}

::selection {
    background-color: black;
    color: white;
}

::-moz-selection {
    background-color: black;
    color: white;
}

a, a:visited {
    color: inherit;
    text-decoration: none;
}

a:hover, a:active {
    text-decoration: underline;
}

h3 {
    margin: 25px 0 5px 0;
}

p {
    margin: 5px 0 20px 0;
}

.inverted {
    animation: 1.5s elbauen-invert forwards
}

.inverted-wo-animation {
    filter:invert(100%);
}

@keyframes elbauen-invert{
    from {
        filter:invert(0%);
    }
    
    to {
        filter:invert(100%);
    }
}

/* HEADER */

.site-header-image {
    left: 0;
    right: 0;
    top: 0;
    position: absolute;
    z-index: 42;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    /*background-image: url(assets/header-2.png);*/
    padding-top: 33.3%;
}

.admin-bar .site-header-image {
    top: 46px;
}

.no-webp .bg-1, .no-js .bg-1 {
    background-image: url(assets/header-1.png);
}

.no-webp .bg-2, .no-js .bg-2 {
    background-image: url(assets/header-2.png);
}

.no-webp .bg-3, .no-js .bg-3 {
    background-image: url(assets/header-3.png);
}

.no-webp .bg-4, .no-js .bg-4
    background-image: url(assets/header-4.png);
}

.no-webp .bg-lat-1, .no-js .bg-lat-1
    background-image: url(assets/header-lat-1.png);
}

.webp .bg-1 {
    background-image: url(assets/header-1.webp);
}

.webp .bg-2 {
    background-image: url(assets/header-2.webp);
}

.webp .bg-3 {
    background-image: url(assets/header-3.webp);
}

.webp .bg-4 {
    background-image: url(assets/header-4.webp);
}

.webp .bg-lat-1 {
    background-image: url(assets/header-lat-1.webp);
}

.site-header {
    background-color: #ff4040;
    box-shadow: 0px 0px 10px 0px darkgrey;
    padding-top: 33.3%;
    transition: 0.4s;
}

.site-header h1 {
    top: 100px;
    width: 100%;
    text-align: center;
    position: absolute;
}

.mobile-open-menu, .mobile-close-menu {
    position: absolute;
    z-index: 42;
    top: 0;
    right: 0;
    width: 24px;
    padding: 24px;
    opacity: 0.8;
    cursor: pointer;
}

.logged-in .mobile-open-menu, .logged-in .mobile-close-menu {
    top: 46px;
}

.mobile-close-menu {
    display: none;
}

/* MAIN */

main {
    display: flex;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
    margin-top: 40px;
    margin-bottom: 40px;
    border-top: 1px solid lightgrey;
    border-bottom: 1px solid lightgrey;

}

.classname-not-found {
    padding-bottom: 50px;
}

/* ARTICLES */

article {
    max-width: 750px;
    margin: 0 auto;
    display: block;
}

.article-header, .article-read-on {
    text-align: center;
}

.article-header {
    margin: 0px 10px;
}

article h1 {
    font-size: 32pt;
    margin: 50px 0 0 0;
}

.article-date {
    margin: 5px 0 0 0;
    font-size: 12pt;
}

.article-category, .article-author {
    margin: 0;
    font-size: 12pt;
}

.article-content {
    text-align: justify;
    margin: 10px;
}

.article-content a {
    text-decoration: underline;
}

.first-letter, .has-drop-cap:not(:focus)::first-letter {
    font-size: 24pt;
    border: 2px solid #ff4040;
    border-radius: 4px;
    padding: 0 5px;
    margin: 3px 10px 0 10px;
    float: left;
}

blockquote {
    font-style: italic;
}

.wp-block-quote > p {
    margin-bottom: 0;
}

cite {
    
}

.aligncenter {
    width: 100%;
    height: 100%;
    margin-top: 10px;
}

.size-article-main-image > img, .size-article-main-image > a > img  {
    width: 100%;
	height: auto;
}

.wp-block-gallery {
    display: inline-block;
    margin: 10px 0;
    max-width: 100vw;
}

.wp-block-image {
    margin: 29.3667px 0 !important;
}

ul.blocks-gallery-grid {
    padding: 0;
}

.blocks-gallery-item {
    list-style: none;
    max-width: 420px;
    float: left;
    box-shadow: 2px 2px 8px lightgray;
    /*transform: rotate(2deg);*/
    transition: 0.4s;
    background-color: #fffffc;
}

.wp-block-image.size-image-in-article {
    max-width: 90vw;
    margin: 10px auto !important;
    display: block;
    box-shadow: 2px 2px 8px lightgray;
    transition: 0.4s;
}

.wp-block-image.size-image-in-article img {
    max-width: calc(90vw - 20px);
	height: auto;
}

.size-image-in-article > figure, .size-image-in-article > a > img {
    margin: 10px;
}

.size-image-in-article > figcaption {
    padding-bottom: 10px;
}

.size-image-in-article.alignleft, .size-image-in-article > .alignleft {
    float: none;
}

.blocks-gallery-item__caption, .wp-block-image.size-image-in-article figcaption {
    text-align: center;
}

.blocks-gallery-item > figure {
    margin: 10px;
}

.blocks-gallery-item > figure > a > img, .blocks-gallery-item > figure > img:first-of-type {
    width: calc(70vw);
    max-width: 400px;
    height: auto;
}

.article-read-on {
    margin: 30px;
}

.previous-posts {
    float:left;
    padding-left:30px;
}

.next-posts {
    float:right;
    padding-right:30px;
}

/* inspireed by implementation from CSS-TRICKS
    https://css-tricks.com/simple-styles-for-horizontal-rules/   */
.line {
    overflow: visible; /* For IE */
    padding: 0;
    border: none;
    border-top: medium double lightgrey;
    text-align: center;
}

.line:after {
     content: "o";
    display: inline-block;
    position: relative;
    top: -0.8225em;
    font-size: 1.2em;
    padding: 0 0.25em;
    background: white;
    color: #000;
}

.line-container {
    padding: 40px 0 0 0;
    width: 50%;
    margin-left: 25%;
}

.line-container-single {
    padding: 50px 0 0 0;
}

.line-container-page {
    padding: 35px 0 30px 0;
}

/* LINKS PAGE */

.page-template-page-links .classname-not-found {
    width: 100%;
    margin: 0;
}

.page-template-page-links .article-content {
    margin: 20px 0 0 0;
}

.links-block {
    border-bottom: 1px solid lightgray;
    width: 90%;
    margin: 20px 5% 20px 5%;
}

.links-block > a {
    border-color: #ff4040;
    border-width: 2px;
    border-style: solid;
    display: block;
    padding: 20px;
    text-decoration: none !important;
    text-align: center;
    line-height: 1.1;
}

/* COMMENTS */

.comments-area {
    margin: 50px 0;
    max-width: 750px;
    -moz-hyphens: auto;
    -o-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.comments-title {
    text-align: center;
}

.comment-list {
    margin: 0px 30px 0px 30px;
    padding: 0;
}

.comment-list, .comment-list * {
    list-style: none;
}

.comment-author, .comment-meta {
    text-align: center;
    font-size: 12pt;
}

.comment-author cite {
    font-style: normal;
}

.comments-pagination {
    text-align: center;
}

.prev, .next {
    padding: 0 10px;
}

.page-numbers {
    padding: 0 4px;
}

.current {
    text-decoration: underline;
}

.comment-form-comment {
    margin-left: 30px;
    margin-right: 30px;
}

.comment-author .says, .comments-area .screen-reader-text, label[for='comment'] {
    display: none;
}

.comment-respond {
    text-align: center;
    margin-top: 50px;
}

#comment {
    resize: vertical;
    width: 90%;
}

#commentform #email, #commentform #author, #commentform #url, #comment {
    background-color: transparent;
    border: 1px solid black;
}

#submit {
    border: none;
    background-color: black;
    color: white;
    height: 24px;
}

/* SIDEBAR */

aside {
    display: none;
}

.sidebar-slidein {
    animation: 1s slidein-s forwards;
}

.sidebar-slideout {
    animation: 1s slideout-s forwards;
}

@keyframes fadein {
    from {
        opacity: 0;
    }
    
    to {
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        opacity: 1;
    }
    
    to {
        opacity: 0;
    }
}

@keyframes slidein-s {
  from {
    left: 100%;
  }

  to {
    left: 0%;
  }
}

@keyframes slideout-s {
  from {
    left: 0%;
  }

  to {
    left: 100%;
  }
}

.search-form {
    margin: 50px auto 0 auto;
    padding: 40px 40px 15px 40px;
    width: 143px;
}

.search-field {
    width:100%;
    height:100%;
    border: 1px solid #ff4040;
    background: #FFFFFC;
}

aside h2 {
    font-size: 24pt;
    text-align: center;
    margin: 20px 0 0 0;
}

aside ul {
    margin: 10px 0 0 0;
}

.list-categories, .menu, .menu-favorites {
    list-style: none;
    text-align: center;
    padding-left: 0;
}

.sidebar-overlay, .overlay {
    top: 0;
    bottom: 0;
    position: fixed;
    overflow-y: scroll;
    z-index: 1337;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFC;
    width: 100%;
}

.sidebar-button {
    width: 50px;
    height: 50px;
    margin: 10px;
    float: left;
}
/*
.menu-item:hover .menu-item-description {
    display: block;
}
*/
.menu-favorites .menu-item {
    padding: 3px 0;
    min-height: 25px;
}

.menu-favorites .menu-item div:first-of-type{
    float: left;
    width: 244px;
    margin-left: calc(50vw - 122px);
}

.menu-item-description {
    border: 1px solid black;
    background-color: #FFFFFC;
    width: calc(80vw - 12px);
    margin: 30px 10vw 0 10vw;
    text-align: left;
    padding: 5px;
    display: none;
    position: absolute;
    z-index: 2;
    box-shadow: 0px 10px 10px 10px rgba(0,0,0,0.03);
}

.menu-item-description a {
    text-decoration: underline;
}

.menu-item-description a:hover {
    background-color: black;
    color: #FFFFFC;
    text-decoration: none;
}

.menu-item-open-description {
    margin: 6px 20px 0 0;
    float: right;
    cursor: pointer;
    opacity: 0.17;/* black with 0.17 opacity on white yields css lightgrey color*/
    transition: 0.4s;
}

.menu-item-open-description:hover {
    opacity: 1 !important;
}

.fadein {
    animation: 0.4s fadein forwards;
}

.fadeout {
    animation: 0.4s fadeout forwards;
}

.rose {
    font-size: 32pt;
    text-align: center;
}

/* FOOTER */

footer {
    text-align: center;
    height: 120px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0px 0px 10px 0px darkgrey;
    background-color: #ff4040;
}

footer * {
    margin: 2px;
}

.footer-cite, .stay-tuned-cite {
    font-size: 11pt;
}

.gamepad {
    width: 100%;
    height: 50px;
    margin: 0;
    cursor: pointer;
}

.blurry {
    filter: blur(5px);
    transition-duration: 1s;
}

.stay-tuned-1, .stay-tuned-2, .stay-tuned-3, .stay-tuned-4 {
    display: none;
    z-index: 1337;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    background-color: #fff;
    text-align: center;
}

.black-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 420;
    /* for gallery */
    justify-content: space-around;
    align-items: center;
}

.black-overlay-fadein {
    animation: 1s blackoverlayfadein forwards;
}

.black-overlay-fadeout {
    animation: 1s blackoverlayfadeout forwards;
}

@keyframes blackoverlayfadein {
  from {
    background-color: rgba(0,0,0,0);
  }

  to {
    background-color: rgba(0,0,0,0.75);
  }
}

@keyframes blackoverlayfadeout {
  from {
    background-color: rgba(0,0,0,0.75);
  }

  to {
    background-color: rgba(0,0,0,0);
  }
}

.gallery-open-image {
    max-width: 75vw;
    max-height: 90vh;
}

.close-image-overlay {
    filter: invert(100%);
    opacity: 75%;
}

.close-video, .close-image-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    padding: 24px;
    opacity: 0.8;
    cursor: pointer;
    z-index: 101;
}

#cookie-notice {
    font-size: 12pt;
}

.have-fun {
    position: absolute;
    z-index: 100;
    left: 0;
    mix-blend-mode: multiply;
    cursor: text;
}

@media screen and (min-width: 360px){
    .site-header h1 {
        font-size: 32pt;
    }
}

@media screen and (min-width: 480px){
    
    .blocks-gallery-item > figure > a > img, .blocks-gallery-item > figure > img:first-of-type {
        max-width: 223px;
    }
    
    .sidebar-overlay, .overlay {
        max-width: 300px;
    }
    
    .menu-favorites .menu-item div:first-of-type {
        width: 188px;
        margin-left: 56px;
    }
    
    .menu-item-description {
        width: 260px;
        margin: 30px 0 0 14px;
    }
    
    .menu-item-open-description {
        margin: 6px 10px 0 0;
    }

    .sidebar-slidein {
        animation: 1s slidein-l forwards;
    }

    .sidebar-slideout {
        animation: 1s slideout-l forwards;
    }

    @keyframes slidein-l {
      from {
        left: 100%;
      }

      to {
        left: calc(100% - 300px);
      }
    }

    @keyframes slideout-l {
      from {
        left: calc(100% - 300px);
      }

      to {
        left: 100%;
      }
    }

}

@media screen and (max-width: 480px){
    footer {
        height: 140px;
    }
    
    .gamepad {
        padding: 8px 0;
    }
}

@media screen and (min-width: 560px){
    .wp-block-image.size-image-in-article {
        max-width: 520px;
    }
    
    .wp-block-image.size-image-in-article img {
        max-width: max-content;
    }
}

@media screen and (min-width: 640px){
    
    .stay-tuned-1, .stay-tuned-2, .stay-tuned-3, .stay-tuned-4 {
        width: 600px;
        left: calc( (100% - 600px)/2 );
        top: calc( (100% - 514px)/2 );
        height: 438px;
    }
    
    .stay-tuned-1 {
        height: 506px;
        top: calc( (100% - 548px)/2 );
    }
    
    
    .site-header h1 {
        font-size: 42pt;
    }
    
    .alignleft {
        float: left;
        margin-right: 20px;
        width: auto;
        height: auto;
    }

    .alignright {
        float: right;
        margin-left: 20px;
        width: auto;
        height: auto;
    }

}

@media screen and (min-width: 783px){
    .admin-bar .site-header-image {
        top: 32px;
    }
    
    .logged-in .mobile-open-menu, .logged-in .mobile-close-menu {
        top: 32px;
    }

}

@media screen and (min-width: 1100px){
    html, body {
        overflow-x: auto;
    }
    
    aside {
        width: 300px;
        margin: 50px 50px 50px 60px;
        border: 1px solid lightgrey;
        display: flex;
        flex-direction: column;
    }
    
    .search-form {
        min-width: 200px;
        max-width: 400px;
        margin-top: 0;
    }
    
    #comment {
        width: 690px;
    }
    
    .article-content {
        min-width: 624px;
        margin: 10px 30px 30px 30px;
    }
    
    .adjust-width {
        width: 750px;
    }
    
    .blocks-gallery-item > figure > a > img, .blocks-gallery-item > figure > img:first-of-type {
        max-width: 210px;
    }

    .mobile-open-menu {
        display: none;
    }
    
    .page-template-page-links article {
        margin-top: 60px;
    }

}

@media screen and (min-width: 1280px){
    main {
        border: 1px solid lightgrey;
    }
    
    .menu-favorites .menu-item div:first-of-type {
        width: 244px;
        margin-left: 28px;
    }
}

@media screen and (min-width: 1920px){
    .site-header {
        margin: 0 auto;
        max-width: 1920px;
        padding-top: 640px;
    }
}