
html, body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}
* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color: var(--textBlack);
    margin: 0;
}

 body {
    min-width: 1000px;
    overflow-x: auto;
 }

:root {
    
    /* colors */
    --primary: #111111;
    --primaryDark: #000000;
    --primaryLight: #222222;
    --secondary: #5152F9;
    
    /* typography */
    --text: #333;
    --textLight: #858585;
    --textBlack: #000;
    --textWhite: #fff;

    /* border */
    --border: #e5e7eb;
    --borderLight: #e8e8e8;

    /* shades */
    --black: #000;
    --white: #fff;
    --white0: #f0f0f0;
    --white1: #f1f1f1;
    --white2: #f2f2f2;
    --white3: #f3f3f3;
    --white4: #f4f4f4;
    --white5: #f5f5f5;
    --white6: #f6f6f6;
    --white7: #f7f7f7;
    --white8: #f8f8f8;
    --white9: #f9f9f9;

    /* */
    --h-padding: 80px;
}

@font-face {
    font-display: swap;
}

/* lib */
.flex {
    display: flex;
}
.a-center {
    align-items: center;
}
.a-baseline {
    align-items: baseline;
}

/* gap */
.gap-5 {
    gap: 5px;
}
.gap-10 {
    gap: 10px;
}
.gap-40 {
    gap: 40px;
}

/* width */
.w-50 {
    width: 50%;
}

/* utils */
.no-border {
    border: 0px !important;
}

/* margins */
.mt-10 {
    margin-top: 10px;
}
.mt-15 {
    margin-top: 15px;
}
.mt-20 {
    margin-top: 20px;
}
.mt-30 {
    margin-top: 30px;
}
.mt-40 {
    margin-top: 40px;
}
.mt-50 {
    margin-top: 50px;
}
.mt-60 {
    margin-top: 60px;
}
.m-auto {
    margin-left: auto;
    margin-right: auto;
}
.ml-auto {
    margin-left: auto;
}
h1, h2, h3 {
    margin: 0;
    padding: 0;
}

/* headline */
h1 {
    font-size: 50px;
    font-weight: 600;
    letter-spacing: -1.5px;
}

h1 > span {
    font-weight: 600;
}


/* */
h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 170%;
    letter-spacing: -0.3px;
}

/* text */
.text {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--text);
    padding: 0px;
}

/* text size */
.text-xs {
    font-size: 13px;
} 
.text-s {
    font-size: 14px;
} 
.text-m {
    font-size: 18px;
}
.text-l {
    font-size: 20px;
}
.text-xl {
    font-size: 22px;
}
.text-xxl {
    font-size: 24px;
}
.text-xxxl {
    font-size: 30px;
}

/* text color */
.text-primary {
    color: var(--primary);
}
.text-light {
    color: var(--textLight);
}
.text-white {
    color: var(--white);
}
.text-black {
    color: var(--textBlack);
}

/* text properties */
.text-500 {
    font-weight: 500;
}
.text-600 {
    font-weight: 600;
}
.text-center {
    text-align: center;
}
.text-underline {
    text-decoration: underline;
}
.text-wide {
    letter-spacing: 1px;
}
.text-uppercase {
    text-transform: uppercase;
}

/* other  */
code {
    background: var(--white7);
    padding: 2px 6px;
    border-radius: 9px;
    font-size: 14px;
    color: var(--secondary);
    font-weight: 600;
    font-family: monospace;
}
strong {
    font-weight: 600;
}
a {
    color: var(--secondary);
    font-weight: 600;
}

/* */
.text-request-method {
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 9px;
    font-size: 14px;
}
.text-post {
    border: 2px solid green;
    background: #fff;
    color: green;
}


/* pre stuff with highlight */
pre {
    display: block;
    background: var(--white7);
    padding: 5px 6px;
    font-size: 14px;
    border-radius: 15px;
    color: var(--secondary);
    font-family: monospace;
}
pre * {
    font-family: monospace;
    line-height: 170%;
}
pre > code {
    border: unset;
    color: unset;
    font-weight: unset;
    background-color: transparent;
    box-shadow: 0px 0px 6px 0px var(--textLight);
}
pre > code span {
    color: unset;
}

/*  
    Style: one, two, three
    Variant: a, b, c
*/


/* default styling */
button {
    position: relative;
    display: flex;
    align-items: center;
    background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
    font-weight: 600;
    border-radius: 9px;
    transition: background-color .2s;
}

/* async & disabled */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
button:not([disabled]):hover {
    background-color: var(--white1);
}   
button[async]:disabled {
    cursor: wait;
}
button[async="false"]:disabled {
    cursor: not-allowed;
}

/* icon inside wide buttons */
button > img {
    position: absolute;
    width: 20px;
    height: 20px;
    left: 10px;
}

/* tiny version */
.button-tiny {
    height: 32px !important;
    min-height: 32px !important;
}




/* variant: a */
.button-one-a,
.button-two-a,
.button-three-a {
    height: 39px;
    min-height: 39px;
    background-color: transparent;
    border-radius: 9px;
    padding: 0px 15px;
}   

/* variant: b */
.button-one-b,
.button-two-b,
.button-three-b {
    height: 39px;
    min-height: 39px;
    background-color: transparent;
    border-radius: 9px;
    padding: 0px 15px;
    width: 100%;
    justify-content: center;
}  

/* variant: c */
.button-one-c,
.button-two-c,
.button-three-c {
    height: 33px;
    min-height: 33px;
    background-color: transparent;
    border-radius: 9px;
    padding: 0px 15px;
    width: 100%;
    justify-content: center;
    font-size: 14px;
}  
.button-two-c p {
    color: var(--text);
    font-weight: 500;
}



/* style: one */
.button-one-a,
.button-one-b,
.button-one-c {
    background-color: var(--primary);
    color: var(--white);
}
.button-one-a:not([disabled]):hover,
.button-one-b:not([disabled]):hover,
.button-one-c:not([disabled]):hover {
    background-color: var(--primaryDark);
}


/* style: two */
.button-two-a,
.button-two-b,
.button-two-c {    
    background-color: var(--white1);
    color: var(--text);
}
.button-two-a:not([disabled]):hover,
.button-two-b:not([disabled]):hover,
.button-two-c:not([disabled]):hover {
    background-color: var(--white9);
    color: var(--text);
}


/* style: three */
.button-three-a,
.button-three-b,
.button-three-c {    
    background-color: transparent;
    color: var(--text);
}
.button-three-a:not([disabled]):hover,
.button-three-b:not([disabled]):hover,
.button-three-c:not([disabled]):hover {
    background-color: var(--white1);
    color: var(--text);
}

.author {
    display: flex;
    align-items: center;
    gap: 5px;
}
.author img {
    width: 25px;
    min-width: 25px;
    height: 25px;
    border-radius: 50%;
}
.answer {
    padding: 20px 0px;
}

/* answer text */
.answer p,
.answer li{
    font-size: 18px;
    color: var(--text);
    line-height: 200%;
}
.answer p {
    padding: 10px 0px;
}
.answer h2 {
    position: relative;
    padding-top: 50px;
}

/* answer images */
.answer img {
    max-width: 100%;
}
.answer img[full] {
    width: 100%;
}
.answer img[shadow] {
    box-shadow: 0px 0px 10px 0px var(--border);
    border-radius: 10px;
}
.answer img[setting] {
    max-width: 300px;
}


/* other */
.answer hr {
    margin: 20px 0px;
    width: 100%;
    height: 1px;
    border: unset;
    background-color: var(--border);
}

/* the first h2 after a paragraph should have less padding */
.answer p:nth-child(1) + h2 {
    padding-top: 20px;
}
.container {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1350px;
    margin: 30px auto;
}
.content {
    width: 100%;
    max-width: 850px;
    padding: 0px 40px;
}
footer {
    padding-top: 40px;
    margin-top: 60px;
    border-top: 1px solid var(--border);
}


footer .logo {
    max-width: 110px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li:nth-child(1) {
    color: var(--textBlack);
    font-weight: 700;
    font-size: 20px;
    margin-top: 0px;
}

footer li {
    font-weight: 400;
    font-size: 20px;
    margin-top: 10px;
}

footer a {
    text-decoration: none;
    font-size: 16px;
    color: var(--textLight);
}

footer a:hover {
    text-decoration: underline;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding: 32px 0;
}

.footer-info {
    display: flex;
    align-items: center;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-links a {
    font-weight: 500;
}

.footer-ico {
    width: 30px;
    height: 30px;
}

.footer-bottom {
    display: flex;
    padding: 20px 0;
    align-items: center;
    justify-content: space-between;
}

.nav {
    display: flex;
    align-items: center;
    gap: 50px;

    width: 1300px;
    height: 80px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);    

}

.nav .logo {
    max-width: 110px;
    cursor: pointer;
}

.nav-items {
    display: flex;
    align-items: center;
}


.nav-items a {
    color: var(--textLight);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: -0.5px;
}
.nav-items a svg {
    fill: var(--black);
    width: 12px;
    height: 12px;
    opacity: 0.15;
    margin-left: 5px;
}

.nav-items a:hover {
    text-decoration: underline;
}

.nav-mobile {
    display: none;
}

/* method */
.request-method {
    display: flex;
    align-self: center;
}
.request-method span {
    font-size: 16px;
    font-weight: 600;
    font-family: monospace;
    padding: 5px;
}
.request-method[method="post"] span:nth-child(1) {
    background-color: green;
    color: white;
    border-radius: 9px 0px 0px 9px;
}
.request-method span:nth-child(2) {
    position: relative;
    background-color: var(--secondary);
    color: white;
    border-radius: 0px 9px 9px 0px;
}

/* body */
.request-body {
    display: flex;
}
.request-body-left,
.request-body-right {
    display: flex;
    flex-direction: column;
    min-width: 50%;
}
.request-body-right {
    padding-left: 40px;
    min-width: 500px;
}
.request-body p:empty {
    display: none;
}

/* key */
.request-body-key {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    margin-bottom: 25px;
}
.request-body-key p:empty {
    display: none;
}
.request-body-key-data {
    display: flex;
    gap: 15px;
    align-items: center;
}
.request-body-key-data span:nth-child(1) {
    color: var(--textBlack);
    font-family: monospace;
    font-size: 14px;
}
.request-body-key-data span:nth-child(2) {
    font-size: 12px;
    color: var(--textLight);
}
.request-body-key-data span:nth-child(3) {
    font-size: 14px;
    color: red;
}
.request-body-key-description,
.request-body-key-description i {
        font-size: 14px;
    color: var(--textLight);
    padding: 10px 0px 25px 0px;
    line-height: 170%;
}
.request-body-info-red {
    font-size: 13px;
    color: red;
}
.search {
    display: flex;
    flex-direction: column;
}

/* input */
.search-input {
    width: 100%;
    height: 50px;
    border-radius: 9px;
    border: 3px solid var(--primary);
    padding: 0px 20px;
    font-size: 18px;
}
.search-input:focus {
    outline: 0px;
}

/* results */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

/* result */
.search-result-item {
    text-decoration: none;
}
.search-result-item:hover {
    text-decoration: underline;
}
.search-result-item-highlight {
    background: var(--primary);
    color: var(--white);
    border-radius: 6px;
    padding: 0px 6px;
    font-size: 15px;
}
.sidebar {
    position: sticky;
    display: flex;
    flex-direction: column;
    width: 320px;
    min-width: 320px;
    height: 100%;
    border-right: 1px solid var(--border);
    padding: 0px 20px;
    gap: 30px;
}

.sidebar-category {
    display: flex;
    flex-direction: column;
}

.sidebar-category-answers {
    display: flex;
    flex-direction: column;
}
.sidebar-category-answers a {
    font-size: 14px;
    font-weight: 500;
    line-height: 170%;
    
    color: var(--textLight);
    padding: 6px 15px;
    margin-left: 5px;
    border-left: 1px solid var(--border);
    text-decoration: none;
}
.sidebar-category:last-child {
    padding-bottom: 50px;
}
.sidebar-answer-active {
    position: relative;
    font-weight: 600 !important;
    color: var(--text) !important;
}
.sidebar-answer-active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 80%;
    width: 5px;
    transform: translateY(-50%);
    background-color: var(--primary);
    border-radius: 0px 5px 5px 0px;
}
@media screen and (max-width: 1023px) and (min-width: 768px) {

}
@media screen and (max-width: 765px) {

}
