 /* Remove margins and padding from the list, and add a black background color */
ul.topnav2 {
  position:fixed;
  width:100%;
  z-index:1;
  background: rgba(41,184,229,1);
  background: -moz-linear-gradient(top, rgba(41,184,229,1) 9%, rgba(38,174,220,1) 11%, rgba(0,65,118,1) 33%, rgba(0,54,100,1) 38%, rgba(0,17,44,1) 54%);
  background: -webkit-gradient(left top, left bottom, color-stop(9%, rgba(41,184,229,1)), color-stop(11%, rgba(38,174,220,1)), color-stop(33%, rgba(0,65,118,1)), color-stop(38%, rgba(0,54,100,1)), color-stop(54%, rgba(0,17,44,1)));
  background: -webkit-linear-gradient(top, rgba(41,184,229,1) 9%, rgba(38,174,220,1) 11%, rgba(0,65,118,1) 33%, rgba(0,54,100,1) 38%, rgba(0,17,44,1) 54%);
  background: -o-linear-gradient(top, rgba(41,184,229,1) 9%, rgba(38,174,220,1) 11%, rgba(0,65,118,1) 33%, rgba(0,54,100,1) 38%, rgba(0,17,44,1) 54%);
  background: -ms-linear-gradient(top, rgba(41,184,229,1) 9%, rgba(38,174,220,1) 11%, rgba(0,65,118,1) 33%, rgba(0,54,100,1) 38%, rgba(0,17,44,1) 54%);
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
}

/* Float the list items side by side */
ul.topnav2 li {float: left;}

/* Style the links inside the list items */

ul.topnav2 li a {
    display: inline-block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 17px;
    cursor:pointer;
    z-index:1;
}

/* Change background color of links on hover */
ul.topnav2 li a:hover {background-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.3);
    color:#fffff;


  }

/* Hide the list item that contains the link that should open and close the topnav on small screens */
ul.topnav2 li.icon {display: none;}


/* When the screen is less than 680 pixels wide, hide all list items, except for the first one ("Home"). Show the list item that contains the link to open and close the topnav (li.icon) */
@media screen and (max-width:950px) {
  ul.topnav2 li:not(:first-child) {display: none;}
  ul.topnav2 li.icon {
    float: right;
    display: inline-block;
  }
}

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