html {
	font-size: 16px;
}

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

.iframe {
	border: none;
}

a {
	text-decoration: none;
}

body {
	background-color: hsl(0deg 0% 5%);
	display: grid;
	font-family: Poppins, sans-serif;
	grid-template-areas:
		"header header"
		"nav main"
		"footer footer";
	grid-template-columns: 16rem 1fr;
	grid-template-rows: auto 1fr auto;
	height: 100dvh;
}

section {
	display: flex;
	flex-direction: column;
	align-items: start;
	gap: 0.5rem;
}

.card {
	padding: 2rem;
	border: 1px solid hsl(0deg 0% 100% / 10%);
	background-color: hsl(0deg 0% 100% / 5%);
	border-radius: 2rem;
}

main {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 2rem;
	overflow-y: auto;
}

main h1 {
	display: inline-block;
	color: hsl(0, 0%, 100%);
	font-size: 2rem;
}

main h2,
main h3 {
	display: inline-block;
	color: hsl(0deg 0% 90%);
	font-size: 0.8rem;
	padding: 0.25rem 0.5rem;
	border: 1px solid hsl(0deg 0% 100% / 10%);
	background-color: hsl(0deg 0% 100% / 5%);
	border-radius: 0.5rem;
	text-transform: capitalize;
}

main ol,
main ul {
	list-style: none;
}

main ul {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

main ol {
	display: flex;
	flex-direction: row;
	gap: 2rem;
}

main ul ul {
	border-radius: 1.5rem;
}

main ul ul ul {
	border-radius: 1rem;
}

main li {
	display: flex;
	flex-direction: column;
	align-items: start;
	gap: 0.5rem;
}

main header {
	display: grid;
	gap: 0.5rem;
}

header nav {
	background-color: hsl(0deg 0% 0% / 20%);
	padding: 0.5rem;
	border-radius: 4rem;
	display: inline-flex;
	flex-direction: row;
	gap: 1rem;
	overflow-y: auto;
}

main header span a {
	color: hsl(0deg 0% 100% / 80%);

	&:hover {
		color: hsl(0deg 0% 100%);
	}

	svg {
		margin-left: 0.5rem;
		vertical-align: middle;
	}
}

form {
	background-color: hsl(0deg 0% 100% / 5%);
	border-radius: 2rem;
	padding-inline: 1rem;
	display: flex;
	flex-direction: row;
	gap: 0.25rem;
}

menu {
	background-color: hsl(0deg 0% 100% / 5%);
	border-radius: 2rem;
	display: flex;
	flex-direction: row;
	gap: 0.25rem;
}

menu a {
	color: #fff;
	padding: 0.5rem 1rem;
	border-radius: 2rem;
	text-decoration: none;
	transition-property: background-color;
	transition-duration: 0.25s;
	transition-timing-function: ease;
}

menu a:hover {
	background-color: hsl(0deg 0% 100% / 10%);
	color: hsl(0deg 0% 100% / 90%);
	padding: 0.5rem 1rem;
	border-radius: 2rem;
	text-decoration: none;
}

menu a.active {
	background-color: hsl(0deg 0% 100% / 10%);
}

.breadcrumbs {
	display: flex;
	align-items: center;
	flex-direction: row;
	gap: 0.5rem;
	color: hsl(0deg 0% 50%);
}

.breadcrumbs li {
	display: inline;
}

.breadcrumbs a {
	color: hsl(0deg 0% 90%);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: hsl(0deg 0% 100%);
	text-decoration: none;
}

/* Code Dialog Styles */
.code-dialog {
	position: fixed;
	top: 0;
	right: -40%;
	width: 40%;
	height: 100vh;
	border: none;
	background: hsl(0deg 0% 0%);
	border-left: 1px solid hsl(0deg 0% 100% / 20%);
	box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	z-index: 1000;
	transition: right 0.2s ease-in-out;
	padding: 0;
	margin: 0;
}

.code-dialog.open {
	right: 0;
}

.dialog-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid hsl(0deg 0% 100% / 10%);
	background: hsl(0deg 0% 5%);
}

.dialog-header h2 {
	margin: 0;
	color: hsl(0deg 0% 100%);
	font-size: 1.2rem;
	font-weight: 600;
}

.close-button {
	background: none;
	border: none;
	color: hsl(0deg 0% 100% / 70%);
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	transition: background-color 0.2s ease;
}

.close-button:hover {
	background: hsl(0deg 0% 100% / 10%);
	color: hsl(0deg 0% 100%);
}

.dialog-content {
	flex: 1;
	padding: 0;
	overflow: hidden;
}

.dialog-content iframe {
	width: 100%;
	height: 100%;
	border: none;
	background: hsl(0deg 0% 0%);
}

body > header {
	grid-area: header;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 1rem;
	border-bottom: 1px solid hsl(0deg 0% 100% / 10%);
	background-color: hsl(0deg 0% 100% / 5%);
}

body > main {
	grid-area: main;
	background-color: hsl(0deg 0% 0% / 20%);
	overflow-y: scroll;
}

body > nav {
	grid-area: nav;
	background-color: hsl(0deg 0% 100% / 5%);
	padding: 1rem;
	border-right: 1px solid hsl(0deg 0% 100% / 10%);
	overflow-y: scroll;
}

body > nav li {
	padding-inline-start: 1rem;
	display: grid;
}

body > nav a {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	color: hsl(0deg 0% 100% / 90%);
	border-radius: 1rem;
	padding: 0.25rem 0.5rem;
}

body > nav a svg {
	color: hsl(0deg 0% 100% / 50%);
}

body > nav a:hover {
	color: hsl(0deg 0% 100%);
}

body > aside {
	grid-area: aside;
}

body > footer {
	align-items: center;
	background-color: hsl(0deg 0% 100% / 5%);
	border-top: 1px solid hsl(0deg 0% 100% / 10%);
	color: hsl(0deg 0% 50%);
	display: flex;
	flex-direction: row;
	font-size: 1rem;
	grid-area: footer;
	justify-content: start;
	padding: 1rem;
}

aside > iframe {
	width: 100%;
	height: 100%;
	border: none;
}
