nav {
    display: flex;
    flex-direction: row;
    height: 65px;
    align-items: center;
    z-index: 1030;
    padding: 0 15px;
    justify-content: space-between
}
.fixed-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}
.fixed-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}
.navbar-brand {
    display: inline-block;
    padding-top: .3125rem;
    padding-bottom: .3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    line-height: inherit;
    white-space: nowrap;
    color: var(--main-text-colour);
    font-weight: 600
}

.navbar-brand .logo {
    width: 50px;
    fill: var(--main-text-colour)
}

.navbar-toggle {
    display: flex;
    flex-direction: column;
    height: fit-content;
    z-index: 1500
}

.navbar-toggle.toggle {
    width: auto;
    min-width: auto;
    height: auto;
    position: relative;
    -webkit-transform: rotate(0);
    -moz-transform: rotate(0);
    -o-transform: rotate(0);
    transform: rotate(0);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer
}

.navbar-toggle.toggle .icon-bar {
    display: block;
    height: 2px;
    width: 40px;
    background: var(--main-text-colour);
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0);
    -moz-transform: rotate(0);
    -o-transform: rotate(0);
    transform: rotate(0);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out
}

.navbar-toggle.toggle .icon-bar:not(:last-child) {
    margin-bottom: 10px
}

.navbar-toggle.toggle.open .icon-bar {
    background: var(--main-text-colour)
}

.navbar-toggle.toggle.open .icon-bar.top-bar {
    -webkit-transform: translateY(12px) rotate(135deg);
    -moz-transform: translateY(12px) rotate(135deg);
    -o-transform: translateY(12px) rotate(135deg);
    transform: translateY(12px) rotate(135deg)
}

.navbar-toggle.toggle.open .icon-bar.middle-bar {
    opacity: 0;
    left: -60px
}

.navbar-toggle.toggle.open .icon-bar.bottom-bar {
    -webkit-transform: translateY(-12px) rotate(-135deg);
    -moz-transform: translateY(-12px) rotate(-135deg);
    -o-transform: translateY(-12px) rotate(-135deg);
    transform: translateY(-12px) rotate(-135deg)
}

button.navbar-toggle.toggle.open::before {
    position: absolute;
    content: 'close';
    left: -100%;
    font-size: 1.25rem;
    color: var(--main-text-colour)
}

.navbar-surround.menu {
    display: none;
    position: fixed;
    flex-grow: 1;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background: var(--primary-colour);
    z-index: 1031;
}

.navbar-surround.menu.open {
    display: flex
}

.navbar-surround.menu .navbar-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding:var(--padding);
}

.navbar-surround.menu .navbar-links .navbar-item .navbar-link {
    color: var(--main-text-colour);
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: var(--bold-text);
    text-transform: capitalize;
    letter-spacing: 1.5px;
    display: flex;
    padding:var(--padding);
    justify-content:center;
    align-items:center;
}

.navbar-surround.menu .navbar-links .navbar-item {
    display:block;
    list-style-type:none;
    transform: scale(.5) translateX(-200%);
    opacity: 0;
    transition: transform .5s, opacity .6s;
}

.navbar-surround.menu.open .navbar-links .navbar-item {
    opacity: 1;
    transform: scale(1) translateX(0);
    border: var(--border);
    width: 100%;
    justify-content: center;
    align-items: center;
}

.navbar-surround.menu.open .navbar-links .navbar-item:not(:last-child) {
    margin-bottom: var(--padding);
}

.navbar-surround.menu.open .navbar-links .navbar-item:first-child {
    transition-delay: .35s
}

.navbar-surround.menu.open .navbar-links .navbar-item:nth-child(2) {
    transition-delay: .45s
}

.navbar-surround.menu.open .navbar-links .navbar-item:nth-child(3) {
    transition-delay: .55s
}

.navbar-surround.menu.open .navbar-links .navbar-item:nth-child(4) {
    transition-delay: .65s
}

@media (min-width:768px) {
    nav{
        padding:0 30px;
    }
    nav.fixed-nav {
        top: 0;
        bottom: auto;
        z-index: 1
    }
}

@media (min-width:992px) {
    nav {
        padding: 0 var(--padding);
    }
    .unhidden .navbar-toggle {
        display: none
    }
    .unhidden .navbar-surround {
        display: flex;
        width: 100%;
        height: inherit;
        background: unset;
        position: relative;
        overflow: hidden;
        z-index: 1030;
        top: unset;
        left: unset;
        margin: unset;
        opacity: 1
    }
    .unhidden .navbar-surround.menu .navbar-links {
        flex-direction: row;
        margin-left: auto;
        justify-content: flex-end;
        margin-bottom: 0
    }
    .unhidden .navbar-surround.menu .navbar-sub-links {
        margin-bottom: 0;
        padding:0;
    }
    .unhidden .navbar-surround.menu .navbar-links .navbar-item {
        transform: scale(1);
        opacity: 1
    }
    .unhidden .navbar-surround.menu .navbar-links .navbar-item:not(:last-child) {
        margin-right: 20px
    }
    .unhidden .navbar-surround.menu .navbar-links .navbar-item .navbar-link {
        font-size: 1rem;
        color: var(--primary-text-colour);
	padding:0;
    }
    .unhidden .navbar-surround.menu .navbar-links .navbar-item .navbar-link.button {
        border: var(--border);
        color: var(--primary-text-colour);
    }
}
@media (max-width:832px) and (orientation:landscape) {
    .navbar-surround.menu .navbar-links .navbar-item .navbar-link {
        font-size: 5vw
    }
}