To change the color of the navigation box @media all and (max-width: 980px) { #mobile_menu { background-color: rgba(0, 0, 0, 1) !important;} }