html,
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding: 0;
	margin: 0;
	font-family: "Nunito Sans", sans-serif;
	background-color: white;
}

/* css variables*/
:root {
	--primary-color: #272727;
	--primary-color-light: #888888;
	--accent-color: #6ab6fe;
	--accent-color-light: #ffe4e4;
	--accent-color-dark: #312eca;
	--white-color: #fafbfc;
	--red-color: #bd1616;
	--black: #000;
	--light-gray-color: #c6cbd1;
	--medium-gray-color: #959da5;
	--dark-gray-color: #444d56;
	--bg-color: #f8f8fa;
	--code-bg-color: #f0e8e8;
}

p {
	font-weight: 300;
	color: #4a4a4a;
}

p img {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

a,
a:hover {
	text-decoration: underline;
	text-decoration-style: dotted;
	color: var(--black);
}

hr {
	padding: 1rem 0;
	border: 0;
	border-bottom: 1px solid var(--bg-color);
}

* {
	box-sizing: border-box;
}

/* global components */

/* typography */
.section__title {
	color: var(--primary-color);
}

/* tabs */
.tab__container {
	position: relative;
}

.tab__container > ul {
	position: absolute;
	list-style: none;
	margin: 0;
	right: 1rem;
	top: -2rem;
	padding-left: 0;
}

.tab__container .code {
	white-space: normal;
	padding: 1rem 1.5rem;
}

.tab {
	display: inline-block;
	padding: 0.3rem 0.5rem;
	font-weight: 200;
	cursor: pointer;
}

.tab.active {
	border-bottom: 1px solid var(--primary-color);
	font-weight: 700;
	display: inline-block;
}

.tab__pane {
	display: none;
}

.tab__pane.active {
	display: block;
}

/* code */
.code {
	border-radius: 3px;
	font-family: Space Mono, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
	background: var(--bg-color);
	border: 1px solid var(--code-bg-color);
	color: var(--primary-color-light);
}

.code--block {
	white-space: pre-line;
	padding: 0 1.5rem;
}

.code--inline {
	padding: 3px 6px;
	font-size: 80%;
}

/* List */
.list {
	font-weight: 300;
	color: #4a4a4a;
}

.table-list {
	font-weight: 300;
	color: #4a4a4a;
	list-style: none;
	padding-left: 0;
}

.table-list li {
	padding-top: 5px;
	padding-bottom: 5px;
}

/* buttons */
.button--primary {
	padding: 10px 22px;
	background-color: var(--accent-color);
	color: white;
	position: relative;
	text-decoration: none;
	border: 0;
	transition: all 0.3s ease-out;
}

.button--primary:after {
	position: absolute;
	content: "";
	width: 1rem;
	height: 1rem;
	background-color: var(--accent-color-light);
	right: -0.4rem;
	top: -0.4rem;
	transition: all 0.3s ease-out;
}

.button--primary:hover {
	text-shadow: 0px 1px 1px var(--accent-color-dark);
	color: white;
	transform: translate3D(0, -3px, 0);
}

.button--primary:hover::after {
	transform: rotate(90deg);
}

.button--secondary {
	padding: 10px 22px;
	border: 2px solid var(--primary-color);
	transition: all 0.5s ease-out;
}

.button--secondary:hover {
	border-color: var(--accent-color);
	color: var(--accent-color);
}

/* links */
.link {
	text-decoration: none;
	transition: all 0.3s ease-out;
}

.link:hover {
	color: var(--accent-color);
}

.link--dark {
	color: var(--primary-color);
}

.link--light {
	color: var(--accent-color);
}

/* menu */
nav {
	display: grid;
	grid-template-columns: 70px auto;
}

/* img */
img {
	max-width: 100%;
}

/* table */
table {
	border-collapse: collapse;
	width: 100%;
	transition: color 0.3s ease-out;
	margin-bottom: 2rem;
}

table td,
table th {
	border: 1px solid var(--code-bg-color);
	padding: 0.8rem;
	font-weight: 300;
}

table th {
	text-align: left;
	background-color: white;
	border-color: white;
	border-bottom-color: var(--code-bg-color);
}

table td:first-child {
	background-color: var(--bg-color);
	font-weight: 600;
}

@media screen and (max-width: 600px) {
	nav {
		grid-template-columns: 70px auto;
	}

	.menu__item {
		display: none;
	}

	.menu__item.toggle {
		display: inline-block;
	}

	.menu {
		text-align: right;
		padding: 0.5rem 1rem;
	}

	.toggle {
		display: block;
	}

	.menu.responsive .menu__item:not(:first-child) {
		display: block;
		padding: 0 0 0.5rem 0;
	}
}

/* layout */
.header {
	border-bottom: 1px solid var(--code-bg-color);
	grid-template-columns: 1fr 150px 50% 1fr;
}

.wrapper {
	display: flex;
	flex-grow: 1;
	margin: 0 auto;
	width: 60%;
}

/* logo */
.logo {
	font-weight: 900;
	color: var(--primary-color);
	font-size: 1.4em;
	grid-column: 2;
}

.logo__thin {
	font-weight: 300;
}

/* menu */
.menu {
	grid-template-columns: 1fr 180px 60% 1fr;
}

.menu__item {
	padding: 1.5rem 1rem;
}

/* doc */
.doc__bg {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 28%;
	background-color: var(--bg-color);
	z-index: -1;
}

.doc__nav {
	flex-basis: 30%;
	font-weight: 200;
}

.doc__nav ul {
	list-style: none;
	padding-left: 0;
	line-height: 1.8;
}

.doc__nav ul.fixed {
	position: fixed;
	top: 2rem;
}

.doc__nav li:hover {
	color: var(--primary-color-light);
	cursor: pointer;
	transition: color 0.3s ease-in-out;
}

.doc__nav .selected {
	color: var(--accent-color);
	position: relative;
}

.doc__content {
	flex-basis: 80%;
	padding: 0 0 5rem 1rem;
}

.doc__sub_items {
	padding-left: 20px !important;
}

@media (max-width: 750px) {
	.wrapper {
		flex-direction: column;
	}
	.doc__content {
		padding-left: 0;
	}
	.doc__nav ul {
		border-bottom: 1px solid var(--code-bg-color);
		padding-bottom: 0.5rem;
	}
	.doc__nav ul.fixed {
		/* nutralized the fixed menu for mobile*/
		position: relative;
		top: 0;
	}
	.doc__nav li {
		display: inline-block;
		padding-right: 1rem;
	}
	.doc__nav .selected:after {
		display: none;
	}
}
