@import url(components.css);

body {
	margin: 0;
	color: var(--black);
	background-color: var(--white);
	max-width: 100%;
}

html {
	font-size: 87.5%; /* font size is 14px */
}

code {
	font-size: 1rem;
}

.code-example > code.tag,
.code-example > code.html {
	border-radius: 1em;
	line-height: 1.5em;
	margin-bottom: 2rem;
	padding: 0rem 3rem;
}

pre code.hljs {
	max-width: 100%;
	padding: 0;
	white-space: pre-wrap;
	overflow-x: auto;
}

.documentation-content .blocktext {
	max-width: 100vw;
	margin-bottom: 2.5rem;
}

.navbar {
	background-color: var(--white);
	min-height: 4rem;
	box-shadow: rgba(0, 0, 0, 0.45) 0px 1rem 1.25rem -1.25rem;
	width: 100%;
	z-index: 6;
	position: fixed;
	top: 0;
}

.navbar a {
	text-decoration: none;
	color: var(--black);
	font-weight: 500;
	flex-basis: 8rem;
	padding: 0.5rem 1rem;
}

.navbar > :first-child {
	flex-grow: 1;
	padding-left: 3rem;
}

a.active-navbar {
	color: var(--tealgreen);
	font-weight: 600;
}

.landing-page {
	display: grid;
	grid-template-rows: 300px 1fr;
	max-width: 100%;
}

.landing-page-content .material-icons-round {
	font-size: 3rem;
}

.documentation-page,
.landing-page {
	margin-top: 4rem;
}

.documentation-content {
	position: relative;
}

.drawernew {
	transform: translateX(0%);
	height: 100vh;
	position: fixed;
	bottom: 0;
	top: 0;
	overflow: auto;
	background-color: var(--white);
	z-index: 5;
	box-shadow: 5px 0 10px -2px var(--grey);
	margin-top: 4rem;
	transition: transform 1s;
	width: 250px;
}

.drawernew > :last-child {
	margin-bottom: 5rem;
}

.drawernew[data-visible="true"] {
	transform: translateX(-100%);
	box-shadow: none;
}

.drawer-link.active {
	font-weight: 600;
	color: var(--tealgreen);
}

.drawer-link:hover {
	background-color: var(--tealgreen-light);
	color: var(--black);
}

.components-menu-hamburger {
	position: fixed;
	top: 5rem;
	right: 1rem;
}

.page-navigation-wrapper a {
	color: black;
}

.page-navigation-wrapper {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

.code-highlight {
	background-color: var(--grey-light);
	border-radius: 5px;
	padding: 2px 5px;
	color: var(--tealgreen-dark);
}

.colors-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, 150px);
}

.colors-grid-child {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.color-box {
	width: 80px;
	aspect-ratio: 1;
}

.font-wrapper > p {
	margin: 4px;
}

.boxshadow-wrapper > div {
	display: inline-block;
	width: 150px;
	padding: 1rem;
	margin: 1rem;
}

.flexwrap {
	flex-wrap: wrap;
}

@media only screen and (min-width: 500px) {
	.landing-page-img > img {
		width: max(500px, 40rem);
		margin-top: 8rem;
	}
}

@media only screen and (min-width: 850px) {
	html {
		font-size: 100%; /* font size is 16px */
	}
	.landing-page {
		display: grid;
		grid-template-columns: 1fr 1fr;
		margin-top: 5rem;
	}
	.components-menu-hamburger {
		visibility: hidden;
	}
	.drawernew {
		overflow: auto;
		box-shadow: none;
		width: 300px;
	}
	.drawernew[data-visible="true"] {
		transform: translateX(0%);
		transition: transform 1s;
	}
	.documentation-page {
		display: grid;
		grid-template-columns: auto auto;
		width: 100%;
	}
	.documentation-content {
		margin-left: 300px;
	}
}
