@import url("vars.css");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    width: 100%;
    height: fit-content;
    min-height: 100vh;
    display: flex;
}

#side-column {
    width: var(--g-side-column-width);
    height: auto;
    display: flex;
    flex-direction: column;
    background: var(--g-side-column-bg);
}

#main-column {
    width: 100%;
    min-width: 0; /* don't touch */
    height: fit-content;
    min-height: 100vh;
    display: flex;
    flex: 1; /* also don't touch */
    flex-direction: column;
    background: var(--g-main-column-bg);
}

header {
    position: fixed;
    width: 100%;
    height: var(--g-header-height);
    padding: 0 26px 0 0;
    display: flex;
    align-items: center;
    background-color: color-mix(in srgb, var(--g-main-column-bg), transparent 78%);
    backdrop-filter: blur(11px);
    background-image: linear-gradient(to right, var(--g-line-color), var(--g-line-color));
    background-size: 100% var(--g-line-thickness);
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index: 100;
}

header > nav {
    width: fit-content;
    height: 100%;
    display: flex;
    padding: 0 var(--g-header-nav-padding);
}

header > nav > div {
    width: fit-content;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

header > nav > div > a {
    width: fit-content;
    height: 100%;
    padding: 0 var(--g-header-nav-padding);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-image: linear-gradient(to top, var(--g-theme-color-1), var(--g-theme-color-1));
    background-size: 0 var(--g-line-thickness);
    background-repeat: no-repeat;
    background-position: center bottom;
    transition: 0.21s;
}

header > nav > div > a:hover {
    background-size: 100% var(--g-line-thickness);
    color: var(--g-theme-color-1);
    /*text-shadow: 0 0 40px currentColor;*/
    cursor: pointer;
    transition: 0.38s;
}

footer {
    width: 100%;
    height: var(--g-footer-height);
    display: flex;
    align-items: center;
    padding-left: 90px; /* value from #main-content padding */
}

main {
    width: 100%;
    margin-top: var(--g-header-height);
    display: flex;
}

#main-content-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

#main-content {
    padding: 32px 90px 40px 90px;
}

#subsidary-content {
    width: var(--g-subsidary-content-width);
    display: flex;
    flex-direction: column;
}

h1 {
    color: var(--g-text-color-1);
    font-family: var(--g-h1-font-family);
    font-size: var(--g-h1-font-size);
}

h2 {
    color: var(--g-text-color-1);
    font-family: var(--g-h2-font-family);
    font-size: var(--g-h2-font-size);
    margin-top: 42px;
}

h3 {
    color: var(--g-text-color-1);
    font-family: var(--g-h3-font-family);
    font-size: var(--g-h3-font-size);
}

p {
    color: var(--g-text-color-1);
    font-family: var(--g-text-font-family);
    font-size: var(--g-text-font-size);
    line-height: var(--g-text-line-height);
}

a {
    font-family: var(--g-text-font-family);
    font-size: var(--g-text-font-size);
    color: var(--g-text-color-1);
    text-decoration: none;
}

a:not(nav a) {
    color: var(--g-link-color);
}

a:not(nav a):hover {
    filter: brightness(1.2);
    text-decoration: underline;
}

ul {
    margin-left: 26px;
}

li {
    color: var(--g-text-color-1);
    font-family: var(--g-text-font-family);
    font-size: var(--g-text-font-size);
    line-height: var(--g-list-line-height);
}

.line-break-horizontal {
    width: 100%;
    height: var(--g-line-thickness);
    background: var(--g-line-color);
    margin-top: 1px;
    margin-bottom: 6px;
}

.line-break-vertical {
    width: var(--g-line-thickness);
    height: 100%;
    background: var(--g-line-color);
}

pre:has(code) {
    width: 100%;
    height: fit-content;
    padding: 12px;
    overflow-x: auto;
    background: var(--g-code-block-bg);
    border-radius: 0 20px 0 0;
}

pre > code {
    width: 100%;
    height: fit-content;
}

code {
    font-family: var(--g-code-font-family);
    font-size: var(--g-code-font-size);
    color: var(--g-theme-color-1);
}

code:not(pre > code) {
    background: var(--g-theme-color-1-shade);
    border-radius: 5px;
    padding: 0 4px;
}
