/*#region Basics*/
*{
    font-family: Arial, Helvetica, sans-serif;
}

.italic{
    font-style: italic;
}

.italic>*{
    font-style: italic;
}

.palatino{
    font-family: Palatino, serif;
}

.palatino>*{
    font-family: Palatino, serif;
}

body {
    margin: 0;
    padding: 0;
    padding-bottom: 240px;
    box-sizing: border-box;

    position: relative;
    min-height: 100vh;

    background-color: rgb(241, 251, 255);
}
/*#endregion*/

/*#region Header*/
#Header{
    position: fixed;
    top: 0;
    z-index: 100;

    display: flex;
    justify-content: space-evenly;

    height: 120px;
    width: 100%;
    transition: height .5s ease-in-out;

    font-size: 18px;
    letter-spacing: 2px;

    background-color: rgba(154, 190, 212, 0.5);
}

html:not([data-scroll="0"]) #Header{
    height: 65px;
}

.HeaderLink{
    display: inline-flex;
    align-items: center;

    height: 100%;

    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;

    transition: all .2s ease-in-out;
}

.HeaderLink.active, #SidebarMenu li a.active{
    color: white;
}

.HeaderLink:hover{
    color: white;
    text-shadow: 1px -1px 2px rgba(0, 0, 0, 0.2);
}

#MenuImgContainer{
    display: none;
}

#MenuImg{
    display: none;
}

#SidebarMenu{
    display: none;

    position: fixed;
    top: 65px;
    right: 0;
    z-index: -10;
    width: 30vw;

    margin: 0;

    background-color: rgb(154, 190, 212);

    border: 1px solid rgb(145, 180, 200);

    list-style: none;

    line-height: 50px;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

#SidebarMenu li{
    width: 85%;

    border-bottom: 1.5px solid rgb(145, 180, 200);
}

#SidebarMenu li a{
    padding-top: 3px;
    padding-bottom: 3px;

    color: rgba(255, 255, 255, 0.7 );
    font-family: palatino, serif;
    font-size: 20px;
    text-decoration: none;
}

#SidebarMenu li a:hover{
    color: white;
    text-shadow: 1px -1px 2px rgba(0, 0, 0, 0.2);
}

#SidebarMenu.closed{
    display: none;
}

#Heading{
    line-height: 34px;
    font-weight: bold;
    font-size: 26px;
    color: white;
}

.HeadImg{
    width: 100%;
    border-bottom: 5px solid rgb(154, 190, 212)
}
/*#endregion*/

/*#region Body*/
#Body{
    position: relative;

    width: 100%;
}

.PartImg, .sliderContainer{
    width: 100%;
}

.PartImg, .sliderImg{
    box-shadow: 0 0 10px rgba(78, 78, 78, 0.2);
}

.PartImg{
    cursor: zoom-in;
}

.PartImg:focus{
    transform: scale(1.2, 1.2);
}

.BodyPart{
    position: relative;
    display: flex;
    justify-content: space-evenly;
    align-items: center;

    width: 100%;

    padding: 80px 0;
}

.BodyPart.top{
    padding: 40px 0;
}

.BodyPart.white{
    background-color: rgb(241, 251, 255);
}

.BodyPart.blue{
    background-color: rgb(154, 190, 212);
}

.Part{
    width: 40%;
    height: 90%;

    padding: 10px;

    color: rgb(78, 78, 78);
    line-height: 26px;
}

.BodyPart.wide>.Part{
    width: 45%;
}

.BodyPart.head{
    flex-direction: row;
}

.BodyPart.head>.Part{
    width: 90%;
}

.PartSpan{
    display: block;

    text-align: justify;
}

.PartSpan>a {
    color: inherit;
    font-style: italic;
}

.PartSpan.head{
    text-align: left;

    font-size: 24px;
    font-style: italic;
    font-weight: bold;
    margin: 0;
}

.MoreInfo{
    padding: 12px;

    color: rgb(78, 78, 78);
    text-decoration: none;

    background-color: white;
    border: 1.5px solid lightgrey;
    border-radius: 3px;

    box-shadow: inset 1px -1px 2px 1px rgba(0, 0, 0, 0.1);
    transition: box-shadow .3s ease-in-out;
}

.MoreInfo:hover{
    box-shadow: inset 1px -1px 10px 1px rgba(77, 77, 77, 0.2);
}
/*#endregion*/

/*#region Footer*/
#Footer{
    width: calc(100% - 36px);

    position: absolute;
    bottom: 136px;
    padding: 10px;
    padding-left: 26px;

    border-bottom: 5px solid rgb(154, 190, 212);
}

.PartSpan.footer{
    font-size: 16px;
    line-height: 26px;
    color: rgb(78, 78, 78);
    font-family: Palatino, serif;
}

#FooterImg{
    display: flex;
    position: absolute;
    bottom: 0;
    padding: 10px;

    width: calc(100% - 40px);
    height: 116px; 
    overflow: hidden;

    padding-left: 20px;
    padding-right: 20px;
    flex-direction: column;

    box-shadow: inset 0 0 0 1000px rgba(0,0,0,.3);

    background-image: url("../img/FooterRopeImg.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#FooterImg>*{
    font-family: Palatino, serif;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px;
}
/*#endregion*/

/*#region MediaSizes*/
@media screen and (max-width: 1024px) {
    /* tablet styles */
    #Header{
        justify-content: flex-start;

        background-color: rgb(154, 190, 212);

        border-bottom: 1px solid rgb(145, 180, 200);

        height: 65px;
    }

    .HeaderLink{
        display: none;
    }

    #Heading{
        display: inline-flex;

        margin-left: 20px;

        font-size: 24px;
    }

    @keyframes open {
        from {
            right: -45vw;
        }
        to {
            right: 0;
        }
    }
    
    @keyframes close {
        from {
            right: 0;
        }
        to {
            right: -45vw;
        }
    }

    #MenuImgContainer{
        display: inline-flex;

        margin: 0 20px 0 auto;

        justify-content: center;
        align-items: center;
    }

    #MenuImg{
        display: inline-flex;

        width: 40px;
        height: 33px;

        flex-direction: column;
        justify-content: space-between;

        cursor: pointer;
    }

    .BurgerLine{
        height: 15%;
        width: 100%;

        border-radius: 4px;

        background-color: white;
        opacity: 100%;

        transform-origin: left center;
        transition: all 0.5s ease-in-out;

        box-shadow: 1px -1px 1px rgba(0, 0, 0, 0.1);
    }

    .BurgerLine.first{
        align-self: flex-start;
    }

    .BurgerLine.middle{
        align-self: center;
    }
    .BurgerLine.last{
        align-self: flex-end;
    }

    #MenuImg.closed .BurgerLine.first{
        transform: rotate(45deg);
    }

    #MenuImg.closed .BurgerLine.last{
        transform: rotate(-45deg);
    }

    #MenuImg.closed .BurgerLine.middle{
        opacity: 0;
    }

    #SidebarMenu.closed{
        right: -30vw;
    }

    #SidebarMenu.open {
        display: flex;
        animation-name: open;
        animation-duration: 0.5s;
    }

    #SidebarMenu.closing{
        display: flex;
        animation-name: close;
        animation-duration: 0.5s;  
    }

    #BackToHome{
        display: none;
    }
}

@media screen and (max-width: 750px){
    @keyframes open {
        from {
            right: -105vw;
        }
        to {
            right: 0;
        }
    }
    
    @keyframes close {
        from {
            right: 0;
        }
        to {
            right: -105vw;
        }
    }

    .PartSpan {
        text-align: left;
    }

    .hideable{
        display: none;
    }

    .BodyPart{
        flex-direction: column;
    }

    .BodyPart.reverse{
        flex-direction: column-reverse;
    }

    .Part{
        width: 80%;
    }

    #SidebarMenu{
        width: 100vw;

        align-items: center;
    }

    #SidebarMenu.closed{
        right: -100vw;
    }
}
/*#endregion*/