.topnav{overflow:hidden;background-color:#fff;z-index:9999;width:100%;height:50px;margin-bottom:0;box-shadow:2px 2px 3px rgba(0,0,0,.05);padding-top:0;border-top:1px solid #eee;background:#fff} .topnav a{float:left;display:block;color:#303030;text-align:center;padding:14px 16px;text-decoration:none;font-size:16px} .topnav a:hover{background-color:#ddd;color:black} .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}}