/*Fonts*/

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

h2, h3, p, li, a {
    font-family: 'Outfit', sans-serif;
}

body {
    margin: auto;
    color: white;
    background-image: url('images/2022-01-08_18.41.45.jpg');
    background-size: 3338px 1876px;
    background-position: -709px -398px;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* NAV BAR*/

nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    align-items: center;
    filter: drop-shadow(0px 10px 10px rgba(0, 0, 0, 0.5));
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 50%;
    z-index: 2;
}

a {
    color: white;
    text-decoration: none;
}

nav ul{
    padding: 0;
    text-align: left;
    position: relative;
    left: 100px;
    animation: 3s slide-right;
}

li {
    list-style-type: none;
}

nav li {
    display: block;
    margin-bottom: 50px;
    margin-top: 50px;
    font-size: 30px;
}

#lienlogo {
    width: 250px;
    position: relative;
    right: 200px;
    animation: 3s slide-left;
}

#logo {
    width: 250px;
}

#barre {
    position: absolute;
    width: 250px;
    margin: auto;
    background-color: white;
    border: 3px solid #FFFFFF;
    transform: rotate(90deg);
}

@keyframes slide-left {
    from {
        right: 50px;
        opacity: 0%;
    }

    to {
        opacity: 100%;
        right: 200px;
    }
}

@keyframes slide-right {
    from {
        left: -50px;
        opacity: 0%;
    }

    to {
        opacity: 100%;
        left: 100px;
    }
}

@media screen and (max-width: 790px){
    nav {
        flex-direction: column;
    }
    
    #lienlogo {
        left: 0;
        animation: 3s slide-top;
    }

    #logo {
        padding-bottom: 50px;
    }

    nav ul {
        animation: 0;
        text-align: center;
        left: 0;
        top: 25px;
        animation: 3s slide-bottom;
    }

    #barre {
        transform: rotate(180deg);
    }

    @keyframes slide-top {
        from {
            top: 50px;
            opacity: 0%;
        }
    
        to {
            opacity: 100%;
            top: 0;;
        }
    }
    
    @keyframes slide-bottom {
        from {
            top: -25px;
            opacity: 0%;
        }
    
        to {
            opacity: 100%;
            top: 25px;
        }
    }
}