.nav {
    height: 58px;
    width: 100%;
    background-color: #e5e5e5;
    position: fixed;
    z-index: 1000;
    border-bottom: 2px solid #000;
}

.nav>.nav-header {
    display: inline;
}

.nav>.nav-header>.nav-title {
    display: inline-block;
    font-size: 22px;
    color: #fff;
    padding: 8px 10px 0px 30px;
}

.nav>.nav-header>.nav-title img {
    height: 42px;
}

.nav>.nav-btn {
    display: none;
}

.nav>.nav-links {
    display: inline;
    float: right;
    font-size: 16px;
    z-index: 1;
}

.nav>.nav-links>a {
    display: inline-block;
    padding: 24px 10px 18px 10px;
    text-decoration: none;
    color: #333;
}

.nav>.nav-links>a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.nav>.nav-links>a.active {
    background: #ccc;
    border-bottom: 8px solid #e31937;
    padding-bottom: 10px;
}

.nav>#nav-check {
    display: none;
}

@media (max-width:600px) {
    .nav>.nav-header>.nav-title {
        padding: 8px 10px 0px 10px;
        margin-left: calc(50% - 50px);
    }
    .nav>.nav-btn {
        display: inline-block;
        position: absolute;
        right: 0px;
        top: 0px;
    }
    .nav>.nav-btn>label {
        display: inline-block;
        width: 24px;
        height: 24px;
        padding: 20px 16px 14px 16px;
    }
    .nav>.nav-btn>label:hover,
    .nav #nav-check:checked~.nav-btn>label {
        background-color: rgba(0, 0, 0, 0.3);
    }
    .nav>.nav-btn>label>span {
        display: block;
        width: 25px;
        height: 6px;
        border-top: 3px solid #333;
    }
    .nav>.nav-links {
        position: absolute;
        display: block;
        width: 100%;
        background-color: #333;
        height: 0px;
        transition: all 0.3s ease-in;
        overflow-y: hidden;
        top: 60px;
        left: 0px;
    }
    .nav>.nav-links>a {
        display: block;
        width: 100%;
        color: #eee;
    }
    .nav>.nav-links>a.active {
        color: #e31937;
        border-bottom: none;
        padding-bottom: 18px;
    }
    .nav>#nav-check:not(:checked)~.nav-links {
        height: 0px;
    }
    .nav>#nav-check:checked~.nav-links {
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
}