*{
    font-family: Calibri;
    --background-color: white;
    --blue: #005587;
}

html{
    background-color: rgb(230, 230, 230);
    width: 100%;
}

body{
    background-color: var(--background-color);
    box-shadow: 0px 0px 22px -2px rgba(0,0,0,0.75);
    display: flex;
    flex-direction: column;
    max-width: 70rem;
    margin: 0 auto 0 auto;
}

/*
    Header
*/

header{
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    max-height: fit-content;
}

#header-left{
    display: flex;
    justify-content: center; /*space-between*/
    align-items: end;
    padding: 1rem;
}

#header-left img{
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-width: max-content;
    max-height: 10rem;
}

#header-right{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    height: max-content;
    font-size: x-large;
    font-weight: bold;
}

#header-right p{
    color: silver;
    margin: 0;
}


#header-right span{
    background-color: silver;
    border-radius: 2rem;
    padding: 0.5rem;
    color: white;
    height: max-content;
    width: max-content;
}

/*
    Header navigation
*/

nav{    
    display: flex;
    box-sizing: border-box;
    justify-content: center;
    width: 100%;
    height: 3rem;
    padding: 0 1rem 0 1rem;
    background-color: rgb(200, 200, 200);
}

nav a{
    font-size: large;
    text-decoration: none;
    color: black;
    height: 100%;
    line-height: 3rem;
    padding: 0 1.5rem 0 1.5rem;
    transition: 0.2s;
}

nav a:hover{
    background-color: white;
    color: var(--blue);
}

nav a:hover .nav-dropdown{
    display: flex;
}

.nav-dropdown{
    display: none;
    background-color: red;
    flex-direction: column;
    position: absolute;
    width: 1rem;

}

.nav-dropdown-drop{
    display: none;
}


/*
    Body
*/

#showcase{
    overflow: hidden;
    position: relative;
    height: 24rem;
    padding: 0;
    font-size: 1.3rem;
}

#showcase img{
    position: absolute;
    object-fit: cover;
    width: 100%;
    max-width: 70rem;
    height: 24rem;
}

#showcase div{
    background-color: rgba(0, 0, 0, 0.715);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: white;
}

#showcase h1{
    font-size: 2em;
}

.slideshow-img{
    display: none;
}

.slideshow-img-show{
    animation: slide-in 0.5s;
    display: block;
}

.slideshow-img-hide{
    animation: slide-out 0.5s;
}

section{
    padding: 2rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section p{
    max-width: 50rem;
    text-align: center;
    font-size: larger;
}

.services h1{
    background-color: #005587;
    position: relative;
    color: white;
    padding: 0.5rem;
    box-sizing: border-box;
    border: white solid 0.6rem;
    border-style: double;
    transition: 0.2s;
}

/*
    Footer
*/

footer{
    background-color: silver;
}

#footer{
    display: flex;
    justify-content: space-between;
    padding:1rem;
}

#footer-left{
    align-self: center;
}

#footer-right{
    display: flex;
    gap: 1rem;
}

#footer-right a{
    color: black;
    text-decoration: none;
    transition: 0.2s;
}

#footer-right a:hover{
    color:#005587;
}

.footer-item h1{
    background: linear-gradient(transparent, transparent 50%, #005587 50%, #005587);
    background-size: 100% 200%;
    border-bottom: 0.15rem solid #005587;
    margin: 0.5rem 0 1.5rem 0;
    width: fit-content;
    transition: 0.3s ease-in-out;
}

.footer-item h1:hover{
    background-position: 100% 100%;
    color: white;
    cursor: default;
}


/*
    Components
*/

h1{
    font-size: xx-large;
    margin-top: 0;
}

/*  
    Services
*/

main{
    display: flex;
    max-width: 100%;
}

#main{
    max-width: 100%;
    padding: 2rem;
    text-align: justify;
}

#main-img{
    box-shadow: 0px 0px 22px -2px rgba(0,0,0,0.75);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
    box-sizing: border-box;
    height: 20rem;
    transition: all 1s ease-in-out;
}

#main-img:hover{
    background-position: 50% 47%;
}

#main-img:hover>
#main-img-shadow h1{
    background-position: 100% 100%;
    cursor: default;
}

#main-img-shadow{
    background: linear-gradient(203deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.7288165266106443) 84%, rgba(0,0,0,1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: end;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 2rem;
    color: white;
}

#main-img-shadow h1{
    background: linear-gradient(transparent, transparent 50%, #005587 50%, #005587);
    background-size: 100% 200%;
    border-bottom: 0.15rem solid #005587;
    width: fit-content;
    margin: 0;
    transition: 0.3s ease-in-out;
}

#main-img-shadow h2{
    color: rgb(211, 211, 211);
    margin: 0;
}

#main img{
    max-width: 100%;
}

#side-nav{
    background-color: rgb(233, 233, 233);
    display: flex;
    flex-direction: column;
}

#side-nav div{
    background-color: rgb(209, 209, 209);
    display: flex;
    flex-direction: column;
}

#side-nav p{
    font-weight: bold;
    font-size:larger;
    padding: 2rem 0 0.5rem 1rem;
    margin: 0;
}

#side-nav a{
    color: black;
    text-decoration: none;
    padding: 1rem 1rem 1rem 3rem;
    transition: 0.5s;
    background: linear-gradient(to left, transparent 50%, white 50%) right;
    background-size: 200% 100%;
    border-bottom: 0.01rem gray dashed;
}

#side-nav a:hover{
    color: var(--blue);
    background-position: left;
}

.active{
    color: var(--blue) !important;
    background-color: white !important;
}

@keyframes slide-in{
    0% {
        transform: translateY(-100%);
        display: none;
    }
    100% {
        transform: translateY(0%);
        display: block;
    }
}

@keyframes slide-out{
    0% {
        transform: translateY(0%);
        display: block;
    }
    100% {
        transform: translateY(100%);
        display: none;
    }
}

@media only screen and (max-width: 570px) {
    main {
      flex-direction: column;
    }
    #main{
        padding: 1rem;
    } 
    #main-img-shadow h2{
        font-size: medium;
    }
}

@media only screen and (max-width: 800px) {
    #showcase h1{
        font-size: 1.5rem;
        text-align: center;
    }
    #showcase p{
        font-size: medium;
    }
    h1{
        font-size: 1.5rem;
        text-align: center;
    }

    #footer-right{
        flex-direction: column;
    }

    .com-char-item{
        -webkit-user-select: none; /* Safari */
        -ms-user-select: none; /* IE 10 and IE 11 */
        user-select: none; /* Standard syntax */
    }
}

/*
    This site was made by Jakub Golias & Erik Zelinsky from school SPSTBJ.
             We created this site as Erasmus+ participants.
                            ©2023 Vienna
*/