@font-face {
    font-family: BodoniModa;
    src: url("assets/BodoniModa-VariableFont_opsz,wght.ttf");
}

@font-face {
    font-family: LibreBodoni;
    src: url("assets/LibreBodoni-Regular.ttf");
}

@font-face {
    font-family: MuktaLight;
    src: url("assets/Mukta-Light.ttf");
}


@font-face {
    font-family: MuktaExtraLight;
    src: url("assets/Mukta-ExtraLight.ttf");
}


body {
    background-color: rgb(0,0,0);
    margin:0;
    color:#FDF0C8;
    font-family: 'BodoniModa';
    font-size: 16px;
    font-display: swap;
}

#navigation {
    background: linear-gradient(to left, rgba(10, 8, 2, 0.9) 0%, rgba(10, 8, 2, 0.4) 95%, rgba(0,0,0,0) 100%);
    float: right;
    padding-top: 1em;
    padding-bottom: 0.5em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    border-bottom: 8px solid;
    border-image: linear-gradient(to top, #5ac3b0 49%, #5ac3b0 50%, #de5935 51%, #de5935 100%);
    border-image-slice: 0% 0% 100% 0%;
}

#navbar {
    display: none;
}

#hamburger-icon {
    display:none;
}

.menu-item {
    color: inherit;
    text-decoration: none;
    margin-left: 0.5em;
    margin-right: 0.5em;
    font-size: 1.8em;
    font-variation-settings: 'opsz' 8;
}

#menu-toggle
{
    display: none;
}


@media screen and (max-device-width: 615px) {
    #navigation {
        position: sticky;
        width: 100%;
        padding: 0;
        margin:0;
        height: 8dvh;
        display: grid;
        grid-column: auto;
        border-bottom: none;
        grid-template-rows: 100%;
    }

    #hamburger-icon {
        display:block;
        width: fit-content;
        position: fixed;
        left: 50%;
        transform: translate(-50%, 0);
        z-index: 2;
    
    }
    
    #hamburger-icon > svg {
        height: 7vh;
        width: auto;
        transition: 150ms;
    }

    .menu-item {
        display: none;
    }

    #menu-toggle:checked + #hamburger-icon > svg
    {
        transform: rotate(90deg);
    }

    #navbar
    {
        display: block;
        box-shadow: none;
        background-color: #f7cd46;
        border-bottom: 8px solid black;
        border-image: linear-gradient(to top, #5ac3b0 49%, #5ac3b0 50%, #de5935 51%, #de5935 100%);
        border-image-slice: 0% 0% 100% 0%;
        box-sizing: border-box;
    }

    #menu-toggle:checked ~ #navigation
    {
        grid-template-rows: 8% 23% 23% 23% 23%;
        height: 100dvh;
    }

    #menu-toggle:checked ~ #navigation > span
    {
        margin: 0;
        width: 100%;
        padding: 0;
        
        display: flex;
        justify-content: center;
        align-items: center;
      
        box-shadow: 0px -6px 10px 0px rgba(0,0,0,0.65) inset;
    }

    #menu-toggle:checked ~ #navigation > span > .menu-item
    {
        display: inline-block;
        margin: auto;
        font-size: 3em;
        text-shadow: 0px 0px 10px black;
    }

    #menu-toggle:checked ~ #footer {
        display: none;
    }

    #menu-toggle:checked ~ #mobile-menu-background
    {
        height: 100dvh;
        z-index: -1;
        width: 100vw;
        position: absolute;
        top: 0;
        left: 0;
        background: rgb(0,0,0);
        background: linear-gradient(180deg, rgba(19, 52, 46, 0.5) 0%, rgba(59, 20, 10, 0.5) 100%);
    }
}
  

#footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    height:fit-content;
}

#name-container {
    padding: 2em;
    padding-top: 0.75em;
    background: linear-gradient(to right, rgba(10, 8, 2, 0.9) 0%, rgba(10, 8, 2, 0.4) 95%, rgba(0,0,0,0) 100%);
    
    box-shadow: none;
    border-top: 8px solid black;
    border-image: linear-gradient(to bottom, #5ac3b0 49%, #5ac3b0 50%, #de5935 51%, #de5935 100%);
    border-image-slice: 100% 0% 0% 0%;
    box-sizing: border-box;
}

#name-container > h1 {
    font-size: 3.75em;
    margin:0;
}

#name-container > h2 {
    font-size: 2.25em;
    margin:0;
}

#social-media-container {
    color:#f7cd46;
    display: inline-flex;
    margin-left: auto;
    margin-right: 2em;
    margin-bottom: 2em;
    align-self: flex-end;
}

#social-media-container > a {
    color: #f7cd46;
    text-decoration: none;
    margin-left: 0.5em;

}

#social-media-container > a:hover > .social-media-icon {
    color: rgb(9,9,9);
    border-color: transparent;
    background-color: #f7cd46;
}

.social-media-icon {
    display: flex;
    justify-content: center; 
    border: 2.5px solid #f7cd46;
    border-radius: 50%;
    width: fit-content;
    padding: 0.5em;
}

.social-media-icon > svg {
    width: 1.5em;
    height: auto;
}

@media screen and (max-device-width: 615px) {
    #footer {
        flex-direction: column;
        padding-top: 2em;
        background: linear-gradient(to top, rgba(10, 8, 2, 0.9) 0%, rgba(10, 8, 2, 0.4) 95%, rgba(0,0,0,0) 100%);
    }
    
    #name-container {
        padding: 0em;
        padding-top: 1em;
        padding-bottom: 1em;
        text-align: center;
        justify-self: center;
        background: none;
        border-top:none;
    }

    #name-container > h1 {
        font-size: 3.3em;
    }
    
    #name-container > h2 {
        font-size: 1.5em;
    }

    #social-media-container {
        margin: auto;
        margin-bottom: 1.5em;
    }

    .social-media-icon {
        padding: 0.5em;
        margin-left: 0.4em;
        margin-right: 0.4em;
    }

    .social-media-icon > svg {
        width: 2em;
        height: auto;
    } 
}


#slideshow{
    top:0;
    left:0;
    position: absolute;
    overflow:hidden;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  
#slideshow > .bgi {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: imageAnimation 63s infinite 0s;
    z-index: -1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-blend-mode: darken;
    opacity: 0;
}

#slideshow > .bgi:nth-child(1)
{
    background-image: url(assets/placeholder1.jpg);
    animation-delay: 0s;
}

#slideshow > .bgi:nth-child(2)
{
    background-image: url(assets/EugenOnegin1.jpg);
    animation-delay: 7s;
    visibility: hidden;
}

#slideshow > .bgi:nth-child(3)
{
    background-image: url(assets/fledermaus3.jpg);
    animation-delay: 14s;
    visibility: hidden;
}

#slideshow > .bgi:nth-child(4)
{
    background-image: url(assets/sweeney5.jpg);
    animation-delay: 21s;
    visibility: hidden;
}

#slideshow > .bgi:nth-child(5)
{
    background-image: url(assets/stummeserenade2.jpg);
    animation-delay: 28s;
    visibility: hidden;
}

#slideshow > .bgi:nth-child(6)
{
    background-image: url(assets/fledermaus4.jpg);
    animation-delay: 35s;
    visibility: hidden;
}

#slideshow > .bgi:nth-child(7)
{
    background-image: url(assets/sweeney4.jpg);
    animation-delay: 42s;
    visibility: hidden;
}

#slideshow > .bgi:nth-child(8)
{
    background-image: url(assets/dschungelbuch1.jpg);
    animation-delay: 49s;
    visibility: hidden;
}

#slideshow > .bgi:nth-child(9)
{
    background-image: url(assets/EugenOnegin2.jpg);
    animation-delay: 56s;
    visibility: hidden;
}
  
@keyframes imageAnimation { 
    0% { opacity: 0; animation-timing-function: ease-in; visibility: visible; }
    1% { opacity: 0.9; animation-timing-function: ease-out; }
    11% { opacity: 0.9; }
    12% { opacity: 0; visibility: hidden; }
    100% { opacity: 0; }
}

@media screen and (max-device-width: 615px) {
    #slideshow > .bgi:nth-child(2)
    {
        background-position: -200px 0px;
    }

    #slideshow > .bgi:nth-child(3)
    {
        background-position: -550px 0px;
    }

    #slideshow > .bgi:nth-child(6)
    {
        background-position: -600px 0px;
    }

    #slideshow > .bgi:nth-child(8)
    {
        background-position: -500px 0px;
    }

    #slideshow > .bgi:nth-child(9)
    {
        background-position: -00px 0px;
    }    
}