*,
*:after,
*:before {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    transition: all .2s;
    font-size: 16px;
    font-family: Verdana, sans-serif;
}

:root {
    --main-color: #1A222C;
    --main-color-clear: #10141Fdd;
    --secundary-color: #222C37;
}

*::selection {
    background: var(--secundary-color);
    color: #fff;
}

a,
a:link,
a:visited {
    text-decoration: none;
}

header {
    text-transform: capitalize;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

header.sticky {
    background-color: var(--main-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
}

header .logo {
    font-weight: bold;
    font-size: 28px;
    color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
}

header .logo img {
    height: 28px;
    margin-right: 4px;
}

header .navbar ul {
    list-style: none;
}

header .navbar ul li {
    position: relative;
    float: left;
}

header .navbar ul li a {
    font-size: 20px;
    padding: 16px 15px;
    color: #eee;
    display: block;
}

header .navbar ul li a i {
    margin-left: 4px;
}

header .navbar ul li a:hover {
    background-color: #eee;
    color: var(--secundary-color);
}

header .navbar ul li ul {
    position: absolute;
    left: 0;
    background-color: var(--secundary-color);
    display: none;
}

header .navbar ul li ul li {
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

header .navbar ul li:hover>ul {
    display: initial;
}

header .navbar ul li:focus-within>ul {
    display: initial;
}

#menu-bar {
    display: none;
}

header label {
    font-size: 20px;
    color: #eee;
    cursor: pointer;
    display: none;
    transition: all .5s;
}

@media(max-width: 991px) {
    header {
        padding: 20px 30px;
    }
    header label {
        display: initial;
    }
    header .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        text-align: center;
        transition: all 0.2s;
    }
    header.sticky .navbar {
        background-color: var(--secundary-color);
    }
    header .navbar ul li {
        width: 100%;
    }
    header .navbar ul li ul {
        position: relative;
        width: 100%;
    }
    #menu-bar:checked~.navbar {
        display: initial;
    }
}