/*!
 * Theme Name: Demo BFI Design
 * Author: Josef Rainer
 */

:root {
    --white: #ffffff;
    --black: #000000;
    --grey-light: #eee;
    --grey-medium: #A6A6A6;
    --grey-dark: #404040;

    --text: #000000;
    --text-light: #eeeeee;

    --primary: #412666;
    --secondary: #ff7b00;

    --navigation-width: 350px;
    --navigation-background: rgba(2, 55, 112, 0.8);
    --navigation-backdrop: rgba(0, 0, 0, 0.5);

    --header-padding: 30px;
    --header-bottom: 40vh;
    --logo-width: 500px;

    --box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.600);
}

body {
    --header-bottom: 70px;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

/*-----------------------------------
 *---------- Typographie -----------*
 *----------------------------------*/
body,
button,
input,
select,
optgroup,
textarea {
    color: var(--text-light);
    font-size: 1.5rem;
    line-height: 1.5;
    font-family: "Pixelify Sans";
}

h1 {
    text-align: center;
}

h2, h3,
h4, h5, h6, p {
    padding: 0px 20px 0px 20px;
}


/*-----------------------------------
 *------------ Layout --------------*
 *----------------------------------*/

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--grey-dark);
}

body .is-layout-grid {
    display: flex;
    flex-flow: row wrap;
    padding: 0px 20px 0px 20px;
}

.is-layout-grid > :is(*, div) {
    margin: auto auto 0 auto;
}

#game-container canvas {
    display: flex;
    justify-content: center;
    border: 7px solid var(--grey-medium);
    margin: auto;
}

.wp-block-image img {
    box-sizing: content-box;
}

.wp-element-caption {
    text-align: center;
}

#page {
    display: flex;
    flex-flow: column nowrap;
    min-height: calc(100vh - var(--wp-admin--admin-bar--height));
}

#content {
    flex: 1;
    z-index: 1;
}

.site-header {
    position: relative;
    z-index: 2;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: var(--header-padding);
}

.custom-logo {
    max-width: 90%;
    height: auto;
    display: block;
    margin: auto;
}

.menu-toggle {
    position: absolute;
    top: var(--header-padding);
    left: var(--header-padding);
    cursor: pointer;
    display: inline-block;
}

.menu-toggle div {
    width: 35px;
    height: 5px;
    background: var(--white);
    margin: 6px 0;
}


.header-media {
    height: calc(26vh - var(--wp-admin--admin-bar--height) - var(--header-bottom));
    background: var(--primary);
    border: 7px solid var(--grey-medium);
    border-radius: 0px 0px 20px 20px;
    box-shadow: var(--box-shadow);
}


@media screen and (min-width: 1024px) {
    .custom-logo {
        max-width: var(--logo-width);
    }
}

@media screen and (max-height: 900px) {
    .custom-logo {
        max-width: 250px;
    }

    .header-media {
        height: calc(28vh - var(--wp-admin--admin-bar--height) - var(--header-bottom));
    }

}

@media screen and (max-width: 600px) {

    .menu-toggle div {
        width: 5px;
        height: 5px;
        background: var(--white);
        margin: 6px 0;
    }

}

.site-footer {
    background: var(--secondary);
    color: var(--text-light);
    padding-top: 30px;
    border: 7px solid var(--grey-medium);
    border-radius: 20px 20px 0px 0px;
}

.site-footer-columns {
    display: flex;
    justify-content: space-around;
}

.site-footer-navigation ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    list-style-type: none;
    padding: 0;
}

.site-footer-navigation a {
    padding: 10px;
    margin: 7px;
    color: var(--white);
    text-decoration: none;
    background: var(--grey-dark);
    border-radius: 20px;
}

#footer-menu {
    margin-top: 12px;
    margin-bottom: 12px;
}

.site-copyright {
    padding-bottom: 10px;
}

.bfi-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
}

.bfi-social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
}

.bfi-social-links svg {
    width: 100%;
    height: 100%;
}


/*-----------------------------------
 *---------- Navigation ------------*
 *----------------------------------*/

.site-navigation ul {
    list-style-type: none;
    font-size: 1.4rem;
    line-height: 2;
    font-weight: bold;
}

.menu-close {
    display: flex;
    justify-content: flex-end;
}

.menu-close-button {
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    padding: 0 15px;

    transition: 0.2s ease-out;
}

.menu-close-button:hover {
    color: var(--grey-medium);
}

.site-navigation ul.menu > li {
    border-bottom: 5px dashed rgba(255, 255, 255, 0.7);
}

.site-navigation ul a,
.site-navigation ul a:visited {
    display: block;
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    padding: 16px 0;

    transition: 0.2s ease-out;
}

.site-navigation ul a:hover {
    padding-left: 30px;
}

.backdrop,
.search-backdrop {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.backdrop {
    background: var(--navigation-backdrop);
    backdrop-filter: blur(5px);

    transition: 0.5s;
}

.menu-container {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    overflow-y: auto;

    margin-top: var(--wp-admin--admin-bar--height);
    margin-bottom: 20px;
    padding: 16px 35px;
    width: var(--navigation-width);
    max-width: 100vw;

    background: var(--primary);

    transform: translateX(0);
    visibility: visible;
    transition: 0.5s;

    border: 7px solid var(--grey-medium);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

body:not(.nav-open) .menu-container {
    transform: translateX(-101%);
    visibility: hidden;
}

body:not(.nav-open) .backdrop,
body:not(.search-open) .search-backdrop {
    display: none;
}

/*----------------------------
 *--------- Content ---------*
 *---------------------------*/

#content { 
    background: rgba(0, 0, 0, 0.600);
    margin: 20px 10px 10px 10px;
    border-radius: 20px; 
}

/*----------------
  --- Diverses ---
  ---------------*/
.top-button {
    position: fixed;
    right: var(--header-padding);
    bottom: var(--header-padding);
    background: rgba(131, 49, 49, 0.5); /* Variante 1: Farbe hier wählen */
    background: var(--navigation-backdrop); /* Variante 2: Gleich wie Navigation */
    border-radius: 50%;
    
    width: 50px;
    height: 50px;
    padding: 10px;

    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease-out;
}

body.top-btn-visible .top-button {
    opacity: 1;
    visibility: visible;
}

.top-button svg {
    width: 100%;
    height: 100%;
    fill: var(--white);
}