/* =======  Header Animation  ======= */

header {
    display: block;
    transition: display 0.2s;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
}

.flex-row-md {
    display: flex;
    flex-wrap: wrap;
}

#linkbar {
    height: 3rem;
    transition: height 0.2s;
    background-color: var(--custom1-color) !important;
}

/* Scale Image if sticky */
nav .navbar-brand img {
    max-width: 5rem;
    max-height: 5rem;
    -webkit-transition: max-width 0.5s, max-height 0.5s, border-radius 0.5s;
    transition: max-width 0.5s, max-height 0.5s, border-radius 0.5s;
    border-radius: 20px;
}

/* Scale Image if sticky */
nav.sticky .navbar-brand img {
    max-width: 4rem;
    max-height: 4rem;
    border-radius: 15px;
}

main {
    display: block;
    overflow: hidden;
}

#linkbar.show {
    height: 0;
    padding: 0;
    transition: all 0.2s;
}

#navbar {
    height: 7rem;
    transition: all 0.2s linear;
    transition-property: padding-top, height;
    display: flex;
    overflow-y: hidden;
}

#navbar.sticky {
    height: 5rem;
    transition: height 0.2s;
    padding-top: 8px !important;
}

nav.navbar.sticky .navbar-nav .nav-link {
    line-height: 1.3rem;
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.1);
}

.icon {
    width: 80px;
    height: 80px;
    border: 0px solid var(--darkmode-font-color) !important;
}

nav div div ul li a {
    text-decoration: none;
}

.nav-channel li {
    margin-right: 1.1rem;
    margin-top: auto;
    margin-bottom: auto;
    padding: 10px 15px;
    border: 1px solid var(--darkmode-border-color);
    border-radius: 30px;
    display: inline-table;
    transition: opacity 0.3s ease;
    box-shadow: var(--box-shadow-default);
}

.nav-channel li.active {
    color: var(--custom2-text-color);
    background-color: var(--custom2-color);
    transition: opacity 0.3s ease;
}

.nav-channel li.active:hover {
    color: var(--custom2-text-color);
    background-color: var(--custom2-color);
    opacity: var(--opacity-default);
}

/* ======= navigation ======= */
/* === navbar light === */

.navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.5);
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

.navbar-light .navbar-nav .active>.nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show>.nav-link {
    color: #fff;
    text-decoration: underline;
}

.navbar-light .nav-top.app {
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-light .nav-top.app:hover {
    color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    cursor: pointer;
}

.navbar-light .navbar-brand img {
    border: 0.2rem solid rgba(255, 255, 255, 0.2);
}

/* === navbar dark === */

.navbar-dark .navbar-nav .nav-link {
    color: rgba(0, 0, 0, 0.5);
}

.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(0, 0, 0, 1);
}

.navbar-dark .navbar-nav .active>.nav-link,
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link.show,
.navbar-dark .navbar-nav .show>.nav-link {
    color: #000;
    text-decoration: underline;
}

.navbar-dark .nav-top.app {
    color: rgba(0, 0, 0, 0.6);
    border-color: rgba(0, 0, 0, 0.5);
}

.navbar-dark .nav-top.app:hover {
    color: rgba(0, 0, 0, 1);
    border-color: rgba(0, 0, 0, 1);
    cursor: pointer;
}

.navbar-dark .navbar-brand img {
    border: 0.2rem solid rgba(0, 0, 0, 0.2);
}

/* === navigation === */

nav.navbar.nav-small {
    height: 60px;
}

.navbar-top {
    padding: 0.2rem 1rem;
}

.nav-top.app {
    margin-top: auto;
    margin-bottom: auto;
    border: 1px solid;
    padding: 2px 8px;
    border-radius: var(--border-radius-default);
    /* background: white; */
    /* color: orange; */
    font-size: 0.95rem;
}

.navbar-nav.nav-links {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
}

/* === navigation channels === */

.nav-channel {
    background-color: var(--darkmode-background-color2);
    border-bottom: 1px solid var(--darkmode-border-color);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-channel ul {
    overflow-y: hidden;
    overflow-x: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.nav-channel li.active {
    padding: 10px 15px;
    border-radius: 30px;
}

.nav-channel li.active:hover {
    opacity: var(--opacity-default);
    color: #fff;
}

.nav-channel li:hover {
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 30px;
    opacity: var(--opacity-default);
}

/* =======  small  ======= */

@media (max-width: 576px) {
    body.tops .col-lg-6 {
        padding-right: 0;
        padding-left: 0;
    }

    .navbar .container {
        margin-left: 16px;
        margin-right: 16px;
    }

    #navbar.sticky {
        padding-top: 2px !important;
    }
}

/* =======  medium  ======= */

@media (min-width: 577px) and (max-width: 991px) {
    body.tops .col-lg-6 {
        padding-right: 0;
        padding-left: 0;
    }

    #navbar.sticky {
        padding-top: 2px !important;
    }
}

/* =======  large  ======= */

@media (min-width: 992px) {
    body.tops .col-lg-6 {
        padding-right: 7.5px;
        padding-left: 7.5px;
    }

    .nav-link {
        padding: 0 1rem;
    }

    .navbar-brand {
        padding: 0;
    }
}