@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: rgb(20, 20, 20);
    --secondary-color: rgb(40, 40, 40);
    --tertiary-color: rgb(90, 90, 90);
    --text-color: rgb(240, 240, 240);
    --text-color-light: rgb(255, 255, 255);
    --text-color-dark: rgb(225, 225, 225);
    --theme-color: rgb(0, 140, 255);
    --theme-color-light: rgb(0, 160, 255);
    --theme-color-dark: rgb(0, 120, 255);
    --transition: 0.2s ease-out;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: "Poppins";
    background-color: var(--primary-color);
    color: var(--text-color);
    overflow: hidden;
}

header {
    position: fixed;
    width: 100%;
    height: 70px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--tertiary-color);
    z-index: 10;
}

header h1 {
    height: 50px;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

header h1 span {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0.8;
    height: 100%;
    padding-top: 14px;
}

header div {
    display: flex;
    align-items: center;
    gap: 10px;
}

header div:hover p {
    opacity: 0.8;
}

header div:hover img {
    filter: brightness(1);
}

header p {
    font-size: 16px;
    color: var(--text-color);
    opacity: 0.5;
    transition: opacity var(--transition);
}

header a {
    height: 50px;
    display: grid;
    place-items: center;
}

header img {
    height: 50px;
    filter: brightness(0.7);
    transition: filter var(--transition);
}

.fake-header {
    width: 100%;
    height: 70px;
}





.content {
    width: calc(100%);
    height: calc(100% - 70px);
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    position: relative;
    overflow-y: auto;
    scroll-behavior: smooth;
}

aside {
    position: sticky;
    top: 0;
    left: 0;
    width: min(25%, 250px);
    height: fit-content;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--secondary-color);
    border: 1px solid var(--tertiary-color);
    border-radius: 10px;
}

aside .reference-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 5px 7px;
    border-radius: 5px;
    background: var(--primary-color);
    width: fit-content;
    font-family: "Inconsolata";
    font-size: 18px;
    transition: color var(--transition);
}

aside .reference-link:hover {
    color: var(--theme-color);
}

main {
    /* margin-left: calc(min(25%, 250px) + 40px); */
    width: calc(100% - min(25%, 250px) - 40px);
    height: fit-content;
    display: flex;
    flex-direction: column;
}

h2 {
    font-size: 28px;
    border-bottom: 1px solid var(--tertiary-color);
    margin: 80px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 code {
    font-weight: 400;
}

h3 {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 22px;
    margin: 20px 0 10px 0;
    padding: 0 0 0 10px;
}

h3::before {
    content: "";
    position: absolute;
    left: 0;
    width: 3px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 100px;
}

.property {
    margin: 10px 0 10px 0;
}

.property .code {
    padding: 10px 10px;
    background: color-mix(in srgb, var(--secondary-color) 50%, var(--primary-color) 50%);
    border-radius: 5px;
    font-size: 16px;
    font-family: "Inconsolata";
    margin: 10px 0;
}

.property name {
    color: var(--theme-color);
}

.property type {
    border-bottom: 1px dashed ;
    cursor: pointer;
}

.property type[v] {
    cursor: default;
    opacity: 0.7;
    border: none;
}

code {
    padding: 5px 7px;
    background: color-mix(in srgb, var(--secondary-color) 50%, var(--primary-color) 50%);
    border-radius: 5px;
    font-size: 16px;
    font-family: "Inconsolata";
}

note {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: color-mix(in srgb, var(--theme-color-dark) 20%, var(--primary-color) 80%);
    border-radius: 10px;
}

note::first-line {
    font-weight: 700;
}

.no-content {
    font-style: italic;
    opacity: 0.8;
}

sep {
    display: block;
    margin: 40px auto 40px auto;
    width: 80%;
    height: 1px;
    background: var(--tertiary-color);
}

.code-link {
    color: var(--text-color);
    text-decoration: underline;
    padding: 0;
    width: fit-content;
    transition: color var(--transition);
}

.code-link:hover {
    color: var(--theme-color);
}





footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to top, var(--tertiary-color), transparent);
    opacity: 0.7;
    transition: opacity var(--transition);
}

footer:hover {
    opacity: 1;
}