html {
	
	scrollbar-gutter: stable;
}

body {
	font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    min-block-size: 100svh;
    background-color: var(--bg);
    color: var(--txt);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
}

a {
	text-decoration: none;
}

header {
    background-color: var(--bg-2);
    border-top: 1px solid var(--bg-line);
    border-bottom: 1px solid var(--bg-line);
}

footer {
    background-color: var(--bg-2);
    border-top: 1px solid var(--bg-line);
}

.hidden {
	display: none;
}

:root {
  --bg: #f3f4f6;
  --bg-2: hsl(10, 25%, 98%);
  --txt: #000;
  --bg-line: #000;
  --headings: red;
}

@media (prefers-color-scheme: dark) {
  :root {
  --bg: #111827;
  --bg-2: #374151;
  --txt: #e5e7eb;
  --bg-line: #fff;
  --headings: brown;
  }
}

html {
  color-scheme: dark light;
}
:root:has(#theme [value="light"]:checked) {
  --bg: #f3f4f6;
  --bg-2: hsl(10, 25%, 98%);
  --txt: #000;
  --bg-line: #000;
  --headings: red;
}

:root:has(#theme [value="dark"]:checked) {
  color-scheme: dark;
  --bg: #111827;
  --bg-2: #374151;
  --txt: #e5e7eb;
  --bg-line: #fff;
  --headings: brown;
}

:root:has(#theme [value="🙃"]:checked) {
  --base: hotpink;
  --text: dodgerblue;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--headings);
}

.main1 {
	max-width: 72rem;
	margin-left: auto;
	margin-right: auto;
	padding: 1rem;
}

.box {
	max-width: 72rem;
	margin-left: auto;
	margin-right: auto;
	padding: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.box1 {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.box2 {
	display: none;
	align-items: center;
	margin-left: 0.25rem;
}

.box3 {
	flex-direction: row;
	gap: 0.25rem;
	justify-content: center;
	position: absolute;
	top: 0;
	left: 100%;
	width: 150px;
	padding: 0;
	background: var(--bg-2);
	border: solid 1px;
	border-color: white;
	border-radius: 15px;
	display: grid;
	z-index: 100;	
}

.checkbtn {
	display: block;
}
	
#check {
	display: none;
}

#check:checked ~ div {
	left: 0;
}

.box3 a {
	padding-left: auto;
	padding-right: auto;
}

.box3 .submenu a {
	padding-left: auto;
	padding-right: auto;
}

.box3 .submenu {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0;
}

.icon {
	margin-right: 1rem;
}

.icon a {
	display: flex;
	align-items: center;
	padding: 0.5rem;
	color: #059669;
}

.icon svg {
	height: 1.5rem;
	width: 1.5rem;
	margin-right: 0.25rem;
}

.icon span {
	font-weight: bold;
}

.title {
	font-size: 1.25rem;
	line-height: 1.5rem;
	color: var(--headings);
}

.navbar-brand:hover {
  color: blue;
}

nav a, header a {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
}

.menu {
	display: block;
}

@media screen and (min-width: 700px) {

	.title {
		font-size: 2.25rem;
		line-height: 2.5rem;
	}

	.box2 , .box3 {
		display: flex;
		align-items: center;
		margin-left: 0.25rem;
	}
	
	.box3 {
	position: relative;		
	display: flex;
	align-items: center;
	background: transparent;
	border: none;
	z-index: 0;	
	}

	.box3 .submenu {
		display: none;
	}
	
	#checkbtn {
		display: none;
	}
	
	.box .menu {
		display: none;
	}
	
	.menu {
		display: none;
	}
	
}
