/*
Theme Name: Ziegenhagel Media
Theme URI: https://ziegenhagel.com
Author: Dominik Ziegenhagel
Author URI: https://ziegenhagel.com/
Description: Our default theme for Ziegenhagel Media Websites
Version: 1.1.0
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
Text Domain: ziegenhagel-media
*/

/* load Poppins Regular */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: url('fonts/Poppins-Regular.ttf');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/Poppins-SemiBold.ttf');
}

/* define variables */
:root {
    /* define COLORS */
    --color-primary: #c00;
    /* define FONTS */
    --font-primary: 'Poppins', sans-serif;
    /* define SIZES */
    --border-radius: 13px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
}

* {
    font-family: var(--font-primary);
}

#logo {
    height: 50px;
    margin-top: 40px;
    width: 100%;
    object-position: center;
    object-fit: contain;
}

.popover {
    margin: auto;
    width: max-content;
    background: #000;
    color: #fff;
    padding: 2px 7px;
    position: absolute;
    z-index: 999;
    left: 50%;
    top: 50%;
    display: block;
    scale: 1;
    transition: .6s scale;
    opacity: 0;
    pointer-events: none;
}

#previewImage.pageVisible:hover .popover {
    opacity: 1;
    scale: 1.2;
}

.container-fluid {
    margin: 0 auto;
    overflow: auto;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 0 10px;
}

footer:not(.front-page) {
    /*
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
     */
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer ul li {
    display: inline-block;
    padding: 10px 10px;
}

footer ul li a {
    color: #bbbbbb;
    font-size: 1.1em;
    text-decoration: none;
    font-weight: bold;
    color: #444;
}

footer a:hover {
    color: #333333;
}

body a {
    color: var(--color-primary);
    text-decoration: none;
}

#app {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    overflow: hidden;
}

#app * {
    box-sizing: border-box;
}

#app nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
}

#app nav aside {
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    position: absolute;
    right: 0;
    transition: .5s width;
    height: 100%;
}

#app nav.pageVisible aside {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#app nav.childrenVisible aside {
    width: 400px;
}

#app nav aside ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    margin: 50px 0 0;
    transition: .5s;
}

#app nav aside ul.collapsed {
    margin-top: -30px;
    pointer-events: none;
}

#app nav aside ul.collapsed li:not(.active) {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

#app nav aside ul li {
    padding: 10px 15px;
    cursor: pointer;
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 1.9em;
    opacity: 1;

    /* have a little 3d deformation */
    transform: skew(-6deg, -3deg);
    transition: transform 0.5s, color 0.2s, height 0.5s, padding 0.5s;

}

.skew {
    transform: skew(-6deg, -3deg);
}

#app nav aside ul li a {
    color: #000;
}

#app nav aside ul li:hover {
    opacity: .6;
}

#app nav aside ul li.active {
    color: #c00;
    opacity: 1 !important;
}

#previewImage {
    width: calc(100% - 00px);
    height: 100vh;
    margin-left: 0px;
    transition: .4s;
    scale: 1;
}

#logo:hover {
    cursor: pointer;
    opacity: .7;
}

#app nav #previewImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
}

#hidden_preload {
    display: none;
}


#app #previewText {
    padding: 0 20px 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    transform: translate(0, 100px) skew(-3deg, -1deg);
    opacity: 0;
    pointer-events: none;
    flex: 1;
    transition: 0.4s all;
    overflow: auto;
}

#app #previewText.visible {
    transform: translate(0, 0);
    opacity: 1;
    pointer-events: auto;
}

#app #previewText a {
    margin: 10px 0;
    padding: 4px 0;
    color: white;
    display: block;
    font-weight: bold;
    cursor: pointer;
}


#previewText a::after {
}

#previewText .btns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#previewText .btns:first-of-type::before {
}

#previewText .btns:first-of-type::after {
    content: "";
    padding: 0;
}

#app #previewText a:hover {
    opacity: .8;
}

#previewImage.pageVisible {
    transition: 0.5s all;
    scale: 1.1;
}

#previewImage.pageVisible:hover {
    cursor: pointer;
    opacity: .5;
    scale: 1;
}

#previewImage:hover img:not(#frontImage) { /*:not(.childrenVisible)*/
    opacity: 0;
}

#previewImage:not(.previewVisible):not(.pageVisible) .previewThumbnail:not(.visible) {
    opacity: 0;
}

#app .previewThumbnail {
    opacity: 0;
    transition: opacity 0.5s;
}

#app .visible.previewThumbnail {
    opacity: 1;
}

#custom-cursor.visible {
    opacity: 1;
    width: 15px;
    height: 15px;
}

#custom-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #c00;
    background: gray;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    transition: 0.1s height, 0.1s width, opacity 2s;
    animation: red-record-button-blinking-intro 1s ease-in-out alternate;
    opacity: 0;
}

/* the button should blink four times and then stay visible */
@keyframes red-record-button-blinking-intro {
    0% {
        opacity: 0;
        background: red;
    }
    25% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    75% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        background: red;
    }
}


#app, #app * {
    cursor: none !important;
}

#app {
    opacity: 0;
    transition: .4s opacity;
    /*transition-delay: 1.3s; */
}

#app.visible {
    opacity: 1;
}

#custom-cursor.hover {
    background: #c00;
    width: 20px;
    height: 20px;
}

#custom-cursor.hover.expand {
    width: 50px;
    height: 50px;
}

nav#top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 1em 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

footer:not(.front-page) {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    width: 100%;
}

footer:not(.front-page) a {
    color: #707070;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.container * {
    max-width: 100%;
    box-sizing: border-box;
}

body, html {
    padding: 0;
}

#nojs section {
    padding: 2em 0;
}

#nojs {
    margin-bottom: 50px;
}

#nojs section p, #nojs section h1, #nojs h2, #nojs h3, #nojs h4, #nojs h5, #nojs h6, #nojs section img, #nojs section a {
    animation: fadein .8s;
}

@keyframes fadein {
    from {
        transform: translate(0, 10px);
        opacity: 0;
    }
    to {
        transform: translate(0, 0);
        opacity: 1;
    }
}

#nojs section#first {
    background: black;
    color: white;
    margin-top: 70px;
}

#nojs section:nth-of-type(2n) {
    background: #f0f0f0;
}

nav#top img {
    height: 50px;
}

nav#top a, nav#top h1 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 700;
}

nav#top h1 {
    font-size: 1.7em;
    color: red;
}

.container.mt {
}

nav#top .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    padding: 0;
}
