.top-nav {
    position: relative;
    width: 100vw;
    display: flex;
    font-size: 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    color: #533;
    height: 3.5em;
    padding: 1em;
    z-index: 10;
}

.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu>li {
    display: block;
    margin: 0 1rem;
    overflow: hidden;
}

.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {

    &::before,
    &::after {
        content: '';
    }

    display: block;
    background-color: #fff;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    margin-top: -8px;
}

.menu-button::after {
    margin-top: 8px;
}

#menu-toggle:checked+.menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked+.menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked+.menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}


@media (max-width: 40rem) {
    .top-nav {
        justify-content: space-between;
    }

    .menu-button-container {
        display: flex;
    }

    .menu {
        position: absolute;
        top: 0;
        margin-top: 3.5em;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    #menu-toggle~.menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    #menu-toggle:checked~.menu li {
        border: 1px solid #333;
        height: 2.5em;
        padding: 0.5em;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    .menu>li {
        display: block;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: white;
        background-color: #222;
    }

    .menu>li a {
        display: block;
        text-align: center;
    }

    .menu>li:not(:last-child) {
        border-bottom: 1px solid #444;
    }
}

nav * {
    transition: all 0.2s;
}

nav a {
    text-decoration: none;
    color: inherit;
}

nav ul a::after {
    content: "";
    background-color: #78c0ff !important;
    position: relative;
    display: block;
    bottom: 2px;
    height: 2px;
    transition: transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scaleX(0);
}

nav ul a:hover {
    color: #78c0ff;
}

nav ul a:hover::after {
    transform: scaleX(1);
}

@keyframes slider {
    from {
        border-bottom-width: 0;
    }

    to {
        border-bottom-width: 100%;
    }
}

nav a:visited {
    color: inherit;
}

nav .logo {
    display: flex;
    align-items: center;
}

nav .logo .logo--image {
    width: 2em;
    height: 2em;
    background-color: #f15623;
    mask: url(paw-logo.svg) no-repeat center;
    margin: 0.5em 0.5em;
}