html {
    background-color: #010101;
}

body {
    font-family: "Roboto", sans-serif;
    margin: auto;
    cursor: default;
    overflow-x: hidden;
}


hr {
    margin: 0.5em 4vw 0 4vw;
    border: none;
    border-top: 2px solid #FEFEFE;
    height: 0;
    opacity: 1;
}

span {
    color: #FAFAFA;
    font-size: 3em;
    margin: 0;
}

a {
    color: #FAFAFA;
    font-size: 3em;
    margin: 0;
    text-decoration: none;
}

footer {
    text-align: center;
    color: #989898;
    margin: 4vw auto;
}


/* --- Styly pro nadpis --- */

.name {
    font-size: inherit;
    font-family: inherit;
    transition: inherit;
    color: lightgray;
    position: absolute;
    opacity: 0;
    transition: .5s ease-out;
}

h1 {
    position: relative;
    display: block;
    font-size: 5em;
    text-align: center;
    transition: .5s linear;
    margin: 8vh 4vw 8vh 4vw;
    color: #FEFEFE;
    animation-delay: .5s;
    z-index: 1;
    text-shadow: 2px 2px 8px #111111;
    cursor: pointer;
}

h1 span {
    transition: inherit;
    color: inherit;
    font-size: inherit;
}

h1:hover {
    margin-left: -4vw;
    color: #FEFEFE;
}

h1:hover .name {
    opacity: 1;
    margin-right: 15px
}

h1:hover .name_fa:nth-child(2) {
    margin-left: 1.5em;
}

h1:hover .name_fa:nth-child(4) {
    margin-left: 3.6em;
}

.pre-expanded h1 {
    margin-left: -4vw;
    color: #FEFEFE;
}

.pre-expanded h1 .name {
    opacity: 1;
    margin-right: 15px;
}

.pre-expanded h1 .name_fa:nth-child(2) {
    margin-left: 1.5em;
}

.pre-expanded h1 .name_fa:nth-child(4) {
    margin-left: 3.6em;
}

.name_fa:nth-child(2) {
    margin-left: 0;
    opacity: 1;
}

.name_fa:nth-child(4) {
    margin-left: 0;
    opacity: 1;
}


/* --- Styly pro menu --- */

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2em;
    margin: 0 auto;
    opacity: 1;
    max-width: 92vw;
}


nav a {
    text-align: center;
    color: #FEFEFE;
    display: block;
    padding: 0.2em 0.8em;
    min-width: 140px;
    box-sizing: border-box;
    text-shadow: 2px 2px 8px #111111;
}


.menu_selected {
    font-weight: bold;
    animation: menuAppear 1.2s ease-out forwards;
}




/* --- Kontakt --- */

.content-section p.contact-alt {
    display: block;
    text-align: center;
    transition: opacity 420ms ease;
    font-weight: bold;
    font-size: 2.8em;
}

.contact__methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2em;
    margin: 4vh 0 4vh 0;
    width: 100%;
}

.contact__methods img {
    display: block;
    max-height: 3em;
    transition: opacity 420ms ease, transform 300ms cubic-bezier(.4, 0, .2, 1);
    justify-self: center;
    max-width: 92vw;
}




/* --- Breakpoint pro mobilní zobrazení --- */
@media (max-width: 820px) {
    h1 {
        font-size: 3em;
    }

    h1:hover {
        font-size: 3em;
    }
}

@media (max-width: 729px) {


    .content-section p.contact-alt {
        font-size: 2.5em;
    }

    span {
        font-size: 2.5em
    }

    h1 {
        font-size: 3.2em;
    }

    h1:hover {
        font-size: 3.2em;
    }


}

@media (max-width: 600px) {
    hr {
        margin-top: 2em !important;
        margin-bottom: 2em !important;
    }


    nav a {
        font-size: 2.6em !important;
        box-sizing: border-box;
        text-align: center;
        margin: 0 auto 0.05em auto;
        padding-top: 0.03em;
        padding-bottom: 0.03em;
        display: block;
    }

    nav {
        margin-top: 0.15em;
        gap: 0.05em;
        margin-bottom: 2.2em;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto;
    }

    h1 {
        margin-bottom: 1.2em !important;
    }

    span {
        font-size: 2em
    }

}


@media (max-width: 480px) {

    span {
        font-size: 1.5em
    }

    h1:hover {
        font-size: 2em;
    }

    h1:hover .name_fa:nth-child(4) {
        margin-left: 3.6em;
    }

}





@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes h1_animation {
    0% {}

    20% {
        margin-left: -4vw;
        color: #FEFEFE;
    }

    80% {
        margin-left: -4vw;
        color: #FEFEFE;
    }

    100% {}
}

@keyframes h1_small {
    0% {}

    20% {
        font-size: 2em;
        margin-left: -4vw;
        color: #FEFEFE;
    }

    80% {
        font-size: 2em;
        margin-left: -4vw;
        color: #FEFEFE;
    }

    100% {}
}


@keyframes name_animation {
    0% {}

    20% {
        opacity: 1;
        margin-right: 15px
    }

    80% {
        opacity: 1;
        margin-right: 15px
    }

    90% {
        opacity: 0;
    }
}

@keyframes name_fa_nth-child_2 {
    0% {
        margin-left: 0;
    }

    20% {
        margin-left: 1.5em;
    }

    80% {
        margin-left: 1.5em;
    }

    100% {
        margin-left: 0;
    }
}

@keyframes name_fa_nth-child_4 {
    0% {
        margin-left: 0;
    }

    20% {
        margin-left: 3.6em;
    }

    80% {
        margin-left: 3.6em;
    }

    100% {
        margin-left: 0;
    }
}

@keyframes menuAppear {
    0% {
        opacity: 0;

    }

    100% {
        opacity: 1;

    }
}

/* --- Pozadí --- */

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    background: #000 no-repeat center / cover;
    transition: opacity 0.8s ease-in-out;
    will-change: opacity;
    opacity: 0;
}


.background-layer.active {
    opacity: 1;
    z-index: -1;

}

.background-layer.last-active {
    opacity: 1;
    z-index: -2;

}

/* ID pro obrázky */
.bg-kontakt {
    background-image: url("img/backgroundLow.webp");
}

.bg-zvuk {
    background-image: url("img/img3.webp");
}

.bg-svetlo {
    background-image: url("img/img2.jpg");
}

.bg-projekce {
    background-image: url("img/img4.jpg");
}

.bg-foto {
    background-image: url("img/fotogalerie.webp");
}




/* --- Styl pro obsah --- */

.content-section {
    color: #FEFEFE;
    padding: 4vh 4vw;
    margin: 2vh 4vw 4vw;
    max-width: 92vw;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(2px);
    opacity: 0;
    will-change: opacity;
    animation: fadeIn 0.5s linear forwards;
    transition: opacity 420ms ease;
}

.content-section p {
    font-size: 1.6em;
    line-height: 1.6;
    margin: 1.5em 0;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
    opacity: 0;
    will-change: opacity;
    animation: fadeIn 1s linear 1s forwards;
    transition: opacity 420ms ease;
}

.content-section img {
    opacity: 0;
    will-change: opacity;
    animation: fadeIn 1s linear 1.5s forwards;
    transition: opacity 420ms ease;
}

.content-section img:nth-child(1) {
    animation-delay: 0s;
}

.content-section img:nth-child(2) {
    animation-delay: 0.15s;
}

.content-section img:nth-child(3) {
    animation-delay: 0.25s;
}

.content-section img:nth-child(4) {
    animation-delay: 0.4s;
}

.content-section img:nth-child(5) {
    animation-delay: 0.6s;
}

.content-section img:nth-child(6) {
    animation-delay: 0.75s;
}

.content-section img:nth-child(7) {
    animation-delay: 0.9s;
}

.content-section img:nth-child(8) {
    animation-delay: 1s;
}

.content-section img:nth-child(9) {
    animation-delay: 1.2s;
}

.content-section img:nth-child(10) {
    animation-delay: 1.35s;
}

.content-section p:nth-child(2) {
    animation-delay: .3s;
}

.content-section p:nth-child(3) {
    animation-delay: .6s;
}

.content-section p:nth-child(4) {
    animation-delay: .9s;
}


.content-section h2 {
    text-align: center;
    font-size: 2em;
    opacity: 0;
    will-change: opacity;
    animation: fadeIn 1s linear forwards;
    transition: opacity 420ms ease;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.inline-logo {
    display: inline-block;
    height: 2em;
    vertical-align: middle;
    margin: .45em 0.4em;
    opacity: 0;
    will-change: opacity;
    animation: fadeIn 0.5s linear 0.5s forwards;
    transition: opacity 420ms ease;
}

.bottom-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2em;
    font-size: 1.4em;
}



.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
}

.gallery_photo {
    display: block;
    height: 35vh;
    cursor: pointer;
    align-self: center;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (hover:hover) {
    .gallery_photo:hover {
        z-index: 1;
        transform: scale(1.2);
        transition: transform 300ms ease;
    }
}

.gallery_photo:active {
    z-index: 1;
    transform: scale(2);
    transition: transform 300ms ease;
}


/* --- INIT ANIMATIONS --- */
/* --- Aplikace animací na prvky --- */
/* Aktivuje se pouze, pokud má body třídu .animate-in */

.animate-in h1 {
    animation: h1_animation 5s;
}

.animate-in .name {
    animation: name_animation 5s;
    animation-delay: .5s;
}

.animate-in nav a {
    opacity: 0;
    animation: fadeIn linear 1s forwards;
}

.animate-in nav a:nth-child(1) {
    animation-delay: 1.4s;
}

.animate-in nav a:nth-child(2) {
    animation-delay: 1.7s;
}

.animate-in nav a:nth-child(3) {
    animation-delay: 2s;
}

.animate-in nav a:nth-child(4) {
    animation-delay: 2.3s;
}

.animate-in nav a:nth-child(5) {
    animation-delay: 2.6s;
}

.animate-in hr {
    opacity: 0;
    animation: fadeIn linear 1s forwards;
    animation-delay: 3s;
}

.animate-in .contact {
    opacity: 0;
    animation: fadeIn linear 1s forwards;
    animation-delay: 3.3s;
}

/* Animace obsahu (content-section) */
.animate-in .content-section {
    opacity: 0;
    animation-delay: 3s;
}

.animate-in .content-section p:nth-child(1) {
    animation-delay: 3.6s;
}

.animate-in .content-section p:nth-child(2) {
    animation-delay: 3.6s;
}

.animate-in .content-section p:nth-child(3) {
    animation-delay: 4.2s;
}

.animate-in .name_fa:nth-child(2) {
    animation: name_fa_nth-child_2 5s;
    animation-delay: 0.5s;
}

.animate-in .name_fa:nth-child(4) {
    animation: name_fa_nth-child_4 5s;
    animation-delay: 0.5s;
}

.animate-in .menu_selected {
    animation: menuAppear 1.2s ease-out forwards;
}