body {
    background-color: #fffc9b;
}

#menu {
    list-style: none;
    width: 90%;
    height: 40px;
    background-color: #0c589e;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

    #menu li {
        margin-left: auto;
        margin-right: auto;
        width: 18%;
        float: left;
        padding-left: 5px;
        padding-right: 5px;
        height: 30px;
        padding-top: 10px;
        font-size: 120%;
        list-style: none;
        color: #ffffff;
        text-align: center;
    }

        #menu li a {
            text-decoration: none;
            color: #ffd800;
        }

            #menu li a:hover {
                color: #f00;
                background-color: #ffd800;
                font-size: 122%;
            }
/*-------------Responsive menu--------------------------*/

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.topnav {
    overflow: hidden;
    background-color: #0c589e;
    width: 90%;
}

    .topnav a {
        float: left;
        display: block;
        color: #ffffff;
        text-align: center;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 17px;
        width: 15vw;
    }

        .topnav a:hover {
            background-color: #0ff;
            color: black;
        }

        .topnav a.active {
            background-color: #0026ff;
            color: white;
        }

    .topnav .icon {
        display: none;
    }

@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
    }
}

@media screen and (max-width: 600px) {
    .topnav.responsive {
        position: relative;
    }

        .topnav.responsive .icon {
            position: absolute;
            right: 0;
            top: 0;
        }

        .topnav.responsive a {
            float: none;
            display: block;
            text-align: left;
        }
}
