/**
 * Theme Name:     Generic Child
 * Author:         Pascal Langer
 * Template:       generic
 * Text Domain:	   generic-child
 * Description:    Theme für den Spitzeichen-Verlag
 */

body {
    background: #4A708B;
}

p {
    font-size: 20px !important;
}

#wrapper {
    max-height: 100vh;
}

body.configurable h1 a,
body.hidetitle h1 a {
    display: none !important;
}

body.configurable div#container {
    overflow: hidden;
}

#site-description {
    font-size: 25px;
    color: white;
    margin-left: 40px;
}

#container,
#content,
article,
div.entry-content {
    background: white;
}

.wp-block-pdfjsblock-pdfjs-embed {
    margin-top: -3%;
    margin-bottom: -3%;
}

main#content {
    color: black;
    display: inline-block;
    float: none;
    height: 75vh;
}

body.notconfigurable main#content {
    width: 100%;
}

body.configurable main#content {
    padding-right: 0;
}

footer *,
#copyright {
    color: white;
}

#header {
    padding-top: 0%;
    padding-bottom: 0%;
    height: 140.55px;
    display: flex;
    align-items: center;
}

article.page div.entry-content p:first-of-type {
    margin-top: 0;
}

span#bookcover {
    margin-top: 15px;
}

span#bookcover img {
    width: 55%;
    min-width: 150px;
}

div#container {
    padding-bottom: 10px;
    padding-top: 10px;
    height: calc(100vh-46.85px-140.55px);
    overflow-y: scroll;
}

#logo-container {
    height: auto;
    margin-bottom: 0px;
}

span#bookcover {
    display: inline-block;
    width: 100%;
    text-align: center;
}

#footer {
    display: flex;
    padding-top: 0;
    padding-bottom: 0;
    height: 46.85px;
}

#footer>* {
    width: 50%;
    display: flex;
    align-items: center;
}

#copyright {
    justify-content: left;
}

input.wpcf7-quiz {
    width: 80px;
}

input.wpcf7-submit {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: darkgray;
    border: 1px solid darkgray;
}

.wpcf7 .wpcf7-submit:hover {
    background: white;
    color: darkgray;
    border: 1px solid darkgray;
}

.wpcf7 .wpcf7-submit:disabled:hover {
    background: darkgray;
    opacity: 1;
    color: white;
    border: 1px solid darkgray;
}

#price {
    text-align: center !important;
    font-size: 21px;
    margin-top: 5px;
}

#priceamount {
    color: black;
    font-weight: normal;
}

div#amazon-link-div {
    margin-top: 20px;
}

#footer-menu {
    justify-content: right;
}

#footer-menu li {
    display: inline;
    padding-right: 15px;
}

#footer-menu li:after {
    content: '|';
    padding-left: 20px;
}

#footer-menu li:last-child:after {
    content: '';
}

#search {
    display: none;
}

article.page {
    display: flex;
    height: 100%;
}

div#article-text {
    width: 100%;
    display: flex;
    align-items: center;
}

div#article-text div.entry-content {
    columns: 3;
    /* margin-top: 20px; */
    /* height: 100%; */
}

body.notconfigurable div#article-text div.entry-content {
    columns: 1;
}

body.notconfigurable article.page {
    justify-content: center;
}

#article-pic {
    width: 30%;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

#article-pic img {
    /* margin: auto; */
}

figure#amazon-link a {
    background-color: #febd69;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    padding: 11px 65px;
    display: block;
    box-shadow: 5px 3px 10px -2px #000000;
}

a img:hover,
a:focus img,
a svg:hover,
a:focus svg {
    opacity: 1;
}

body.configurable div#container {
    display: flex;
    align-items: center;
}

div#amazonlink {
    text-align: center;
    margin-top: 30px;
}

div#amazonlink a {
    width: 50% !important;
    display: inline-block;
    max-width: 260px !important;
    min-width: 150px !important;
}

.entry-content ul,
.widget-container ul,
.comment-body ul,
.entry-content ol,
.widget-container ol,
.comment-body ol {
    margin-left: 20px;
}

.entry-content ul li,
.widget-container ul li,
.comment-body ul li {
    list-style-type: disc;
}

body.notconfigurable div#article-text {
    padding-top: 3%;
    display: inline-block;
}

body.notconfigurable .entry-content {
    padding-bottom: 3%;
}

/* styles sidebar */
aside#sidebar,
aside#sidebar a {
    color: white;
    font-weight: bold;
    font-size: large;
    text-decoration: none;
    margin-top: 26px;
}

aside#sidebar {
    padding-left: 1vw;
    height: 70vh;
}

aside#sidebar ul li {
    list-style: none;
}

li.widget_nav_menu {
    margin-top: 5px !important;
}

li.widget_nav_menu:first-of-type {
    margin-top: 0 !important;
}

h3.widget-title,
.widget-container,
div#primary.widget-area * {
    margin: 0;
    font-size: 16px;
}

h3.widget-title {
    letter-spacing: 2px;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 2;
    font-weight: bold;
    font-size: 18px;
}

.menu-item-185 a {
    background: #000099 !important;
}

.menu-item-196 a {
    background: #1E90FF !important;
}

aside#sidebar ul li a {
    width: 100%;
    display: block;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    background-color: chocolate;
    margin: 5px !important;
    margin-left: 0 !important;
    padding: 5px;
}

aside#sidebar li a {
    /* line-height: 2; */
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}


h3.widget-title {
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    color: white;
    padding: 5px;
}

.mobilesidebar {
    display: none;
}

body.configurable aside#sidebar.mobilesidebar {
    width: 100%;
    float: none;
    height: auto;
    max-width: 266px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 20px;
}

aside#sidebar.mobilesidebar ul.xoxo li#nav_menu-2.widget-container.widget_nav_menu h3.widget-title:after {
    content: "\f333";
    font-family: dashicons;
    font-size: 17px;
}

aside#sidebar.mobilesidebar ul.xoxo li#nav_menu-2.widget-container.widget_nav_menu h3.widget-title:hover {
    cursor: pointer;
}

aside#sidebar.mobilesidebar ul.xoxo li#nav_menu-2.widget-container.widget_nav_menu h3.widget-title {
    justify-content: center;
    align-items: center;
    display: flex;
}


/** Media Queries **/
@media only screen and (max-width: 1675px) {
    p {
        font-size: 18px !important;
    }
}

@media only screen and (max-width: 1200px) {
    #header {
        height: 100px;
    }

    body.notconfigurable p {
        margin-top: 5px;
    }

    body.notconfigurable div#article-text {
        padding-top: 1%;
    }

    body.notconfigurable div#article-text .entry-title {
        margin-bottom: 0;
    }

    body.notconfigurable div#article-text h2,
    body.notconfigurable div#article-text h3,
    body.notconfigurable div#article-text h4,
    body.notconfigurable div#article-text h5 {
        margin-top: 15px;
        margin-bottom: 15px;
    }
}

@media only screen and (max-width: 1200px) {
    .wp-block-pdfjsblock-pdfjs-embed {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

@media only screen and (max-height: 878px) {
    p {
        font-size: 18px !important;
    }

    h3.widget-title,
    .widget-container,
    div#primary.widget-area * {
        font-size: 14px;
    }
}

@media only screen and (max-height: 817px) {
    body.configurable p {
        font-size: 15px !important;
    }

    h3.widget-title,
    .widget-container,
    div#primary.widget-area * {
        font-size: 12px;
    }
}

@media only screen and (max-height: 740px) {
    body.configurable p {
        font-size: 13px !important;
    }

    h3.widget-title,
    .widget-container,
    div#primary.widget-area * {
        font-size: 11px;
    }

    aside#sidebar,
    aside#sidebar a {
        margin-top: 0;
    }

    aside#sidebar ul li a {
        padding: 3px;
    }
}

@media only screen and (max-height: 685px) {
    div#article-text div.entry-content {
        columns: 1;
    }

    body.configurable div#container {
        overflow-y: scroll;
    }

    div#article-text {
        display: block;
    }

    #site-title h1,
    #site-title a {
        font-size: 35px;
    }

    #site-description {
        font-size: 20px;
    }
}


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

    body.notconfigurable div#article-text h2,
    body.notconfigurable div#article-text h3,
    body.notconfigurable div#article-text h4,
    body.notconfigurable div#article-text h5 {
        margin-top: 10px;
        margin-bottom: 5px;
    }

    body.notconfigurable #header {
        height: 70px;
    }

    body.notconfigurable #site-title h1,
    #site-title a {
        font-size: 25px;
    }

    body.notconfigurable p {
        font-size: 15px !important;
    }

    body.notconfigurable div#article-text h1 {
        font-size: 25px;
    }

    body.notconfigurable div#article-text h2 {
        font-size: 22px;
    }

    body.notconfigurable div#article-text h3 {
        font-size: 19px;
    }

    body.notconfigurable div#article-text h4 {
        font-size: 17px;
    }

    #footer {
        flex-direction: column;
        justify-content: center;
        height: 37.85px;
    }

    #footer * {
        font-size: 11px;
    }

    #copyright,
    #footer-menu {
        width: 100%;
        justify-content: center;
    }

    #footer-menu li:last-child:after {
        padding: 0;
    }

    #footer-menu li:last-child {
        padding-right: 0;
    }

}

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

    #site-title h1,
    #site-title a {
        font-size: 25px;
    }

    #site-description {
        font-size: 15px;
    }

    #header {
        height: auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

@media only screen and (max-width: 480px) {
    #site-description {
        margin-left: 0;
    }

    #header {
        padding: 0;
        justify-content: center;
    }
}

@media only screen and ((max-width: 1068px) or (max-height: 800px)) {
    #header {
        height: auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    #header h1 {
        margin-bottom: 10px;
        display: block;
    }

    .desktopsidebar {
        display: none;
    }

    .mobilesidebar {
        display: block;
    }

    div#article-text div.entry-content {
        columns: unset;
    }

    body.configurable div#container {
        overflow-y: scroll;
        display: flex;
        flex-direction: column-reverse;
    }

    div#article-text {
        display: block;
    }

    body.configurable #content {
        width: 100%;
    }

    span#bookcover {
        width: 50%;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    div#article-text div.entry-content {
        columns: 1;
    }

    #wrapper {
        display: block;
    }

    main#content {
        height: 100%;
    }

}