/*-----------------------------------------------------------------------------
 * Styles for the index.html page
 *---------------------------------------------------------------------------*/

/* make sure that there is no vertical scrolling with flex layout */
body {
    display: flex;
    flex-direction: column;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    
    padding: 0.1rem;
    font-size: 0.8rem;
    color: white;
    text-align: center;
}

/* styling of the picture */
#picture {
    /* background */
    background: url("images/home.jpg") no-repeat;
    background-size: cover;
    background-position: top;
    
    /* align content to center */
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    
    /* fill up remaining space */
    width: 100%;
    flex-grow: 1;
}

/* styling for the text in the picture */
#picture-text {
    /* sizing */
    width: 100%;
    padding: 1rem;

    background-color: rgba(0, 0, 0, 0.5);
    
    /* text sizing */
    font-family: regular;
    font-size: 5vw;
    text-align: center;
    color: white;
}

/* keyframes for the text animation */
@keyframes fade-and-slide-in { 
    0% { 
        opacity:0;
        transform: translateY(100%);
    } 
    100% { 
        opacity:1;
        transform: translateX(0%);
    }
}

/* class for items animated with the fade-and-slide-in animation */
.animation-fade-and-slide-in {
    opacity: 0;
    display: inline-block;
}