/* Global rules */
.topnav {
    margin: auto;
    background-color: #333333;
    overflow: hidden;
}

.topnav a {
    float: left;
    display: block;
    font-family: 'Bangers', cursive;
    color: whitesmoke;
    text-align: center;
    padding: 12px 12px;
    text-decoration: none;
    text-transform: capitalize;
    font-size: 3em;
}

.topnav a.hover, .active {
    background-color: black;
}

.topnav .icon {
    display: none;
}

/* Responsive rules - apply when screen width is less than 1000px */

@media screen and (max-width: 999px) {
    .topnav a{
        display: none;
    }
    
    .topnav a.icon {
        float: left;
        display: block;
    }
    
    .topnav.responsive {
        position: relative;
    }
    
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
    
    .topnav.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
    }
}


/* DESKTOP */
@media all and (min-width:1200px) {
    .topnav {
        width: 81%;
    }
}

/* TABLET */
@media all and (min-width:600px) and (max-width:1199px) {
    .topnav {
        width: 91%;
    }
}

/* PHONE */
@media all and (max-width:599px) {
    .topnav {
        width: 100%;
    }
}