@font-face {
    font-family: 'Liberation Sans';
    src: url('LiberationSans-Regular.ttf') format('truetype'); /* Adjust the URL as needed */
    font-weight: normal;
    font-style: normal;
}

html, body{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
body{
    display: flex;
    flex-direction: column;
    box-shadow: 0px 0px 0px 6px inset rgba(255, 255, 255, 0.443);
    background: url("hintergrund.svg"), linear-gradient(180deg, #537fbc, #26436b);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    font-family: "Liberation Sans";
    font-size: 20px;
}

#main{
    flex: 1;
    display: flex;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    gap: 15px;
}

#header{
    display: flex;
    justify-content: center;
    position: relative;
    width: 1300px;
}

#banner{
    max-width: 700px;
    background-color: #5278ad;
}
#banner-container{
    flex: 1;
}

#menu-link{
    position: absolute;
    right: 0;
}
#menu-link, #menu-icon{
    width: 70px;
}

#content{
    display: flex;
    justify-content: row;
    gap: 15px;
}
#image{
    height: 480px;
}
#text{
    display: flex;
    flex-direction: column;
}
#text p{
    /* Remove the top margin so the text looks centered to the image*/
    margin-top: 0;
}
span.h3{
    margin: 24px 0px;
    font-weight: bold;
}
#links{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}
#links a{
    font-size: 44px;
}
a{
    text-decoration: none;
    color: white;
}
a:hover{
    color: rgb(225, 225, 225);
}
a:active{
    color: rgb(183, 183, 183);
}

@keyframes slidein {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0%);
    }
}
@keyframes slideout {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(100%);
    }
}
#menu-overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: right;
}
#menu-overlay.hidden{
    display: none;
}
#menu{
    display: flex;
    flex-direction: column;
    z-index: 20;
    background: linear-gradient(145deg, #33507a, #294264);
    width: 400px;
    font-size: 30px;
    padding: 25px;
    gap: 20px;
}
#menu a{
    text-decoration: none;
}
#menu-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
#menu-header span{
    color: rgba(255, 255, 255, 0.642);
}
#menu.slidein{
    animation: 0.8s slidein;
}
#menu.slideout{
    animation: 0.8s slideout;
}

#contact-box{
    width: 370px;
    height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    background: url("titelbilder/kontakt.png");
    background-size: cover;
    color: rgb(0, 0, 0);
    box-sizing: border-box;
    text-align: right;
}
#contact-bottom{
    display: flex;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    padding: 10px;
    border-top: 2px solid gray;
    background-color: white;
    flex-direction: column;
}
#contact-box a, #gallery a{
    color: black;
}
#contact-top{
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
}
#contact-title{
    font-size: 25px;
}
#contact-links{
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.contact-link{
    display: flex;
    gap: 40px;
}
#gallery{
    display: flex;
    flex-wrap: wrap;
    height: 420px;
    width: 470px;
    background-color: white;
    align-content: flex-start;
    overflow-y: auto;
}
.file, .file-content{
    width: 110px;
    height: 100px;
}
#gallery .file{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: black;
    font-size: 13px;
    font-family: 'Segoe UI', 'Arial';
    text-align: center;
}
.file:hover{
    background-color: rgb(228, 228, 228);
}
.file:active{
    background-color: rgb(209, 209, 209);
}
#gallery > .file > a{
    text-decoration: none;
}
.file-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.file img{
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.192);
}
/* Mobile */
@media screen and (max-width: 1000px) {
    #content{
        flex-direction: column;
        align-items: center;
    }
    #image{
        height: unset;
        width: 300px;
    }
    #text, #links{
        width: 100% !important;
        word-break: break-all;
    }
    #menu{
        width: 100%;
    }
    #header{
        width: 100%;
        flex: 1;
        position: static;
        gap: 20px;
        justify-content: space-between;
    }
    #banner{
        width: 50%;
        flex: 1;
    }
    #menu-link{
        position: static;
    }
    #menu-link, #menu-icon{
        width: 50px;
    }
    #gallery{
        width: 100%;
    }
    #contact-box{
        width: unset !important;
    }
}

#buch-overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.493);
    z-index: 9999999999;
}
#buch-overlay.hidden{
    display: none;
}
#buch-menu{
    display: flex;
    flex-direction: column;
    z-index: 20;
    background: linear-gradient(145deg, #33507a, #294264);
    width: 400px;
    font-size: 30px;
    padding: 25px;
    gap: 20px;
    
}

#buch-menu-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
#buch-menu-header span{
    color: rgba(255, 255, 255, 0.642);
}
@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
@keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

#buch-overlay.fadein{
    animation: 0.4s fadein;
}
#buch-overlay.fadeout{
    animation: 0.4s fadeout;
}