#header {
    width: 100%;
    height: 100px;
    background: url("images/train-full.svg");
    background-color: #eee;
    background-repeat: repeat;
    background-position: 0 0;
    background-size: auto 100%;
    /*adjust s value for speed*/
    /*animation: rollon 40s alternate infinite cubic-bezier(1, -0.5, 0, 1.6);*/
    animation: animatedBackground 500s linear infinite;

    filter: grayscale(100%); /* Current draft standard */
    -webkit-filter: grayscale(100%); /* New WebKit */
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%); /* Not yet supported in Gecko, Opera or IE */
    filter: url(resources.svg#desaturate); /* Gecko */
    filter: gray; /* IE */
    -webkit-filter: grayscale(1); /* Old WebKit */
    opacity: 0.5;
}

@keyframes rollon {
    to {
        /*transform: translateX(200%);*/
        background-position: -10000px 0;
    }
}

@keyframes animatedBackground {
    from {
        background-position: 0 0;
    }
    /*use negative width if you want it to flow right to left else and positive for left to right*/
    to {
        background-position: -10000px 0;
    }
}

/* Add a black background color to the top navigation */
.topnav {
    background-color: #eee;
    overflow: hidden;
    z-index: 9999;
    /*border-bottom: 1px solid #bbb;*/
    border-bottom: 2px solid #aa225588;
    /*box-shadow: 0px 5px 15px #aa225522;*/
    box-shadow: 0px 0px 15px #c5cdd0;
}

/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    display: block;
    color: #222;
    text-align: center;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 17px;
    /*
    border-radius: 10px 10px 0 0;
    margin-top: 2px;
    */
}

#topnav-logo {
    float: left;
    display: block;
    color: #aa2255aa;
    text-align: center;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 17px;
    font-family: Arial, Helvetica, sans-serif;
    /*
    border-radius: 10px 10px 0 0;
    margin-top: 2px;
    */
}

/* Change the color of links on hover */
.topnav a:hover {
    background-color: #ddd;
    color: black;
}

/* Add an active class to highlight the current page */
.topnav a.active {
    /*background-color: #aa225588; /* Farbe des Hintergrunds */
    background: linear-gradient(#aa2255aa, #aa225588);
    color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
    display: none;
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {
        display: none;
    }
    .topnav a.icon {
        float: right;
        display: block;
    }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
    .topnav.responsive {
        position: relative;
    }
    .topnav.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}
