/* Body Padding for Nav Include */
body {
    padding-top: 56px;
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background-color: #000000;
    border-bottom: 1px solid #2a2a2a;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left:0.5rem;
    padding-right: 0.5rem;
    height: 56px;
}
.nav-brand {
    text-decoration: none;
    align-items: center;
}
.nav-brand h1 {
    font-weight: 800;
    margin: 0 !important;
    font-family: 'Roboto Slab', monospace;
}
.nav-brand h1 sup {
    font-size: 0.4em;
    position: relative;
    top: -1.3em;
    vertical-align: baseline;
}
.nav-inner.no-brand {
    justify-content: flex-end;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #f5f5f5;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Slide-down Panel */
.nav-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #000000;
    border-top: 1px solid #2a2a2a;
    display: flex;
    justify-content: flex-end;
    position: fixed;
    right: 0;
    top: 56px;
    width: auto;
    z-index: 2001;
}
.nav-panel.open {
    max-height: 500px;
}

/* Nav icons */
.nav-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #f5f5f5;
    font-size: 0.75rem;
    padding: 0.4rem;
}
.nav-icon:hover {
    color: #FF0000;
}

/* Nav search */
.nav-search {
    display: none;
    position: fixed;
    top: 56px;
    right: 0;
    width: auto;
    min-width: 300px;
    padding: 0.75rem 1rem;
    background-color: #000000;
    border-bottom: 1px solid #2a2a2a;
    border-left: 1px solid #2a2a2a;
    z-index: 2001;
}
.nav-search.open {
    display: flex;
    flex-direction: column;
}

/* Nav Links */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-links li {
    border-bottom: 1px solid #2a2a2a;
}
.nav-links li a {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links li a:hover,
.nav-links li a.active {
    color: #f5f5f5;
    background-color: #111111;
}

/* Demo CTA */
.nav-demo-btn {
    display: inline-block;
    text-align: center;
    width: auto;
    white-space: nowrap;
    min-width: 50%;
    min-width: 3rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem 0.25rem 0.5rem;
}

/* Search results */
.nav-search input {
    flex: 1;
    background: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 5px;
    color: #f5f5f5;
    font-size: 12px;
    padding: 0.45rem 0.75rem;
    outline: none;
    width: 100%;
}
.nav-search input::placeholder {
    color: #555555;
}
.nav-search input:focus {
    border-color: #FF0000;
}
.nav-search-results {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.search-result-item {
    display: block;
    padding: 0.6rem 0.75rem;
    font-size: 12px;
    color: #f5f5f5;
    text-decoration: none;
    border-bottom: 1px solid #2a2a2a;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.search-result-item:hover {
    color: #f5f5f5;
    background-color: #111111;
}
.search-no-results {
    font-size: 12px;
    color: #555555;
    padding: 0.5rem 0.75rem;
    margin: 0;
}

/* Media Queries */
@media (max-width: 767px) {
    .home-page .nav-demo-btn {
        display: none;
    }
    .nav-inner {
        justify-content: space-between;
    }
    .nav-brand h1 {
    font-weight: 800;
    font-size: 1.75rem;
    }
}
@media (max-width: 393px) {
    .nav-brand h1 {
    font-size: 1.5rem;
    }
}
@media (max-width: 347px) {
    .nav-brand h1 {
    font-size: 1.35rem;
    }
}
@media (max-width: 334px) {
    .nav-inner {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    .nav-right {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .nav-brand h1 {
    font-size: 1.25rem;
    }
}