@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root {
    --bg-color: #33333a;
    --main-color: #44444a;
    --text-color: #aaa;
    --dark-text-color: #55555a;
    --link-color: #63ADF2;
    --code-color: #aaa;
    --accent-color: #b68515;
    --nav-color:  #55555ae0;
}

body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    margin: 0;
    height: 100vh;
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Lexend", sans-serif;
}

.main {
    background-color: var(--main-color);
    min-height: 100%;
    width: 60%;
    position: relative;
    left: 20%;
    padding: 150px 100px 30px 100px;
    box-sizing: border-box;
}

.main h1 {
    color: var(--accent-color);
    position: relative;
    margin: 40px 0;
}

.main h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 2px;
    right: 50px;
    height: 2px;
    background-color: var(--accent-color);
    box-shadow: 0 4px var(--dark-text-color);
}

.main h1 a {
    text-shadow: none;
    text-decoration: none;
    color: var(--dark-text-color);
    font-weight: 300;
    font-size: .8em;
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.main a:not(h1 a),
.footer a {
    color: var(--link-color);
    text-decoration: none;
    position: relative;
}

.main a:not(h1 a)::after,
.footer a:not(.cc-link)::after {
    content: '';
    background-color: var(--link-color);
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 100%;
    height: 1px;
    transition: .2s;
}

.main a:not(h1 a):hover::after,
.footer a:not(.cc-link):hover::after {
    right: 0;
}

.main img {
    display: block;
    margin: 20px auto 10px auto;
    border-radius: 20px;
    max-width: 100%;
}

.main label {
    margin-top: 0px;
    display: block;
    text-align: center;
    font-style: italic
}

.main code {
    color: var(--code-color);
}

pre code.hljs {
    /* border: 2px solid #575757; */
    border-radius: 10px;
    padding: 20px !important;
    /* background-color: #4d4d4f;
    margin: 0 30px;
    position: relative; */
}

/* .hjls {
    background: transparent !important;
}

.main pre:has(code) button {
    top: 20px;
    right: 20px;
    position: absolute;
    cursor: pointer;
    background-color: #0000;
    border: 0;
    font-weight: 600;
    color: #aaa;
} */

.nav {
    font-weight: 500;
    background-color: var(--nav-color);
    backdrop-filter: blur(3px);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100vw;
    box-sizing: border-box;
    z-index: 2;
    height: 60px;
    transition: .2s;
    transition-property: height, font-size;
}

.nav.expanded {
    height: 150px;
    font-size: 1.5rem;
}

.nav .tagline {
    line-height: 1em;
    transition: .2s;
    transition-property: opacity, line-height;
}

.nav:not(.expanded) .tagline {
    line-height: 0;
    opacity: 0;
}

.nav h1 {
    color: var(--accent-color);;
    text-shadow: 3px 2px #0002;
    font-weight: 800;
    margin: 0;
    display: grid;
    gap: 5px;
    align-items: center;
}

.nav h1 img {
    grid-row: 1;
    height: 1.75em;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: drop-shadow(3px 2px #0002);
}

.nav h1 div {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav h1 .name {
    display: block;
    margin: 0;
    font-size: 1em;
}

.nav h1 .tagline {
    font-size: 0.5em;
}

.nav-links {
    text-transform: uppercase;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 5px;
    transition: none;
    font-size: 1rem;
}

.ham {
    display: none;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    padding: 0;
    margin: 20px;
    flex-direction: column;
    justify-content: space-between;
    transform: scale(75%);
    filter: drop-shadow(3px 3px #0002);
    cursor: pointer;
}

.ham i {
    display: block;
    background-color: #757679;
    width: 100%;
    height: 5px;
    transform-origin: 2.5px 50%;
    transition: .3s;
}

.ham.open i:nth-child(1) {
    width: 135%;
    transform: rotate(45deg);
}

.ham.open i:nth-child(2) {
    background-color: #0000;
}

.ham.open i:nth-child(3) {
    width: 135%;
    transform: rotate(-45deg);
}

@media screen and (max-width: 650px) {
    .main {
        left: 0;
        width: 100%;
        padding: 150px 30px 30px 30px;
    }

    .main pre:has(code) {
        margin: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        background-color: var(--nav-color);
        padding: 20px;
        box-sizing: border-box;
        width: 100vw;
        position: fixed;
        left: 120vw;
        top: 60px;
        transition: .2s;
        transition-property: top, left;
    }

    .nav:has(.ham.open) .nav-links {
        left: 0;
    }

    .nav.expanded .nav-links {
        top: 150px;
    }

    .ham {
        display: flex;
    }
}

.nav a {
    color: #eeeeef;
    font-weight: 600;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 1000px;
    transition: .3s;
}

.nav a:hover {
    background-color: var(--accent-color);
}

.footer {
    background-color: var(--nav-color);
    padding: 15px 20px;
    width: 100vw;
    box-sizing: border-box;
    transition: none;
}
