.phpdocumentor-topnav {
    display: flex;
    align-items: center;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    flex-basis: 100%;
}

.phpdocumentor-topnav__menu {
    text-align: right;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

.phpdocumentor-topnav__menu-item {
    margin: 0;
    width: 100%;
    display: inline-block;
    text-align: center;
    padding: var(--spacing-sm) 0
}

.phpdocumentor-topnav__menu-item.-social {
    width: auto;
    padding: var(--spacing-sm)
}

.phpdocumentor-topnav__menu-item a {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-size: var(--text-lg);
    transition: all .3s ease-out;
    border-bottom: 1px dotted transparent;
    line-height: 1;
}

.phpdocumentor-topnav__menu-item a:hover {
    transform: perspective(15rem) translateY(.1rem);
    border-bottom: 1px dotted var(--text-color);
}

@media (min-width: {{ breakpoints['menu'] }}) {
    .phpdocumentor-topnav {
        max-height: none;
        overflow: visible;
        flex-basis: auto;
    }

    .phpdocumentor-topnav__menu {
        display: flex;
        flex-flow: row wrap;
        justify-content: flex-end;
    }

    .phpdocumentor-topnav__menu-item,
    .phpdocumentor-topnav__menu-item.-social {
        width: auto;
        display: inline;
        text-align: right;
        padding: 0 0 0 var(--spacing-md)
    }
}
