/* Nav */
.nav_item:after {
    background: transparent;
    content: '';
    display: block;
    height: 3px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
    transition: width .3s ease, background-color .3s ease;
    width: 0px;
}

.nav_item:hover:after {
    background: #000;
    width: 80%;
}

html .nav_item:hover:after {
    background: #e2e8f0;
}

.nav_item.active:after {
    background: #e2e8f0;  /* or #000 */
    width: 80%;           /* same as hover effect */
}


/* Shiki */
html .shiki,
html .shiki span {
    background-color: var(--shiki-dark-bg) !important;
    color: var(--shiki-dark) !important;
    font-style: var(--shiki-dark-font-style) !important;
    font-weight: var(--shiki-dark-font-weight) !important;
    text-decoration: var(--shiki-dark-text-decoration) !important;
}

/* Hamburger menu  */
.hamburger {
    display: inline-block;
    cursor: pointer;
  }

.bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #5da7d8;
    margin: 6px 0;
    transition: 0.4s;
}

.change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
}

/* Random */
html img[src$=".svg"], .dark svg {
    filter: invert(80%);
}


/* Copy button */
.copy {
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    transform: scale(1);
    width: 12px;
    height: 16px;
    border: 2px solid;
    border-radius: 2px;
    border-right: 0;
    border-bottom: 0;
}

.copy::after {
    content: "";
    display: inline-block;
    box-sizing: border-box;
    position: absolute;
    width: 11px;
    height: 15px;
    border: 2px solid;
    left: 1px;
    top: 1px;
    border-radius: 0 0 2px 0;
}

/* Tooltip */
.hover-tooltip:hover + .tooltip-content {
    opacity: 1;
}
