/*====================*/
/* Top Navigation Bar */
/*====================*/


.topnav {
    background-color: var(--accent-dark);
    overflow: hidden;
    font-family: var(--font-topnav);
}

.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: var(--accent-hover);
    color: black;
}

.topnav a.active {
    background-color: var(--accent-light);
    color: white;
}

.topnav .icon {
    display: none;
}

/* Make it responsive */

@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) { display: none; }
    .topnav a.icon {
        float: right;
        display: block;
        background-image: url(/icon/burger-menu.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 70%;
    }
    .topnav a.icon:hover {
        background-image: url(/icon/burger-menu-dark.svg);
    }
}

@media screen and (max-width: 600px) {
    .topnav.responsive { position: relative; }
    .topnav.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
        background-image: url(/icon/close.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 70%;
    }
    .topnav.responsive a.icon:hover {
        background-image: url(/icon/close-dark.svg);
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}

/*====================*/
