nav {
    font-family: 'Roboto Slab', serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(31 41 45);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    border-bottom: 1px solid #00000029;
}

.nav-links li:last-child {
    padding-right: 15px;
}

.quiz-title {
    margin-top: revert;
}

.nav-links {
    height: 53px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links li a {
    color: #ccd3cf;
    font-size: 15px;
    text-shadow: 2px 2px 2px #000000b3;
    text-decoration: none;
}

.nav-links li a {
    position: relative;
    display: inline-block;
    transition: 0.3s ease-in-out;
    padding: 5px;
}

.nav-links li a::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 1px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    transition: 0.3s ease-in-out;
}

.nav-links li a:hover::before {
    width: 100%;
}

/* Burger menu styles */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 53px;
        left: 0;
        background: rgb(33 40 42);
        height: auto;
        max-height: calc(100vh - 80px);
        width: 100%;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        opacity: 0;
        transition: all 0.5s ease;
        pointer-events: none;
        overflow-y: auto;
    }

    .nav-links li {
        margin: 8px 0;
        padding: 8px;
    }

    .nav-links li a {
        font-size: 17px;
    }

    .burger {
        display: block;
        padding-right: 7px;
    }

    .dark-bg {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: rgb(0 0 0 / 50%);
        opacity: 0;
        visibility: hidden;
        z-index: 9;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }

    /* Show dark background when burger menu is active */
    .nav-active+.dark-bg {
        display: block;
    }
}

.nav-active {
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0px 5px 18px #00000066;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.dark-bg-active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.logo-wrapper {
    padding-left: 8px;
    display: flex;
    align-items: center;
}

.logo-wrapper img {
    width: 40px;
    height: auto;
    margin: 0 5px;
}

.logo-wrapper p {
    text-shadow: 2px 2px 2px #000000b3;
    padding-left: 10px;
    text-decoration: underline;
}