* {
	box-sizing: border-box;
}
body {
	margin: 0;
	font-family: system-ui, sans-serif;
	background: #f1f3f6;
	color: #333;
}
a {
	color: #333;
	text-decoration: none;
}
p {
	line-height: 1.4;
}
nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	background: #fff;
/*	border-bottom: 3px solid deepskyblue;*/
/*	box-shadow: 0 2px 10px deepskyblue;*/
/*    animation: shadowAnimation 50s infinite;*/
}
nav::after {
	content: "";
	display: block;
	width: 100%;
	height: 5px;
	background: linear-gradient(to right, hsl(350, 90%, 50%), hsl(300, 80%, 55%), hsl(270, 90%, 60%), hsl(180, 90%, 60%), hsl(123, 85%, 50%));
}
#nav-toggle {
	display: flex;
	flex-direction: column;
	gap: 3px;
	transition: gap 0.08s;
	position: relative;
	z-index: 2;
	position: absolute;
	top: 5px;
	right: 5px;
}
#nav-toggle .bar {
	width: 22px;
	height: 2px;
	background: #000;
	border-radius: 2px;
	transition: opacity 0.2s, transform 0.2s;
}
#nav-toggle:hover {
	gap: 5px;
}
#nav-toggle.x {
	gap: 4px;
}
#nav-toggle.x .bar:first-child {
	transform: translateY(6px) rotate(45deg);
}
#nav-toggle.x .bar:nth-child(2) {
	opacity: 0;
}
#nav-toggle.x .bar:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}
@keyframes shadowAnimation {
    0% {
        box-shadow: 0 0 10px hsla(150, 100%, 50%, 50%);
        border-bottom: 2px solid hsla(150, 100%, 50%, 50%);
    }
    25% {
        box-shadow: 0 0 10px hsla(210, 100%, 50%, 50%);
        border-bottom: 2px solid hsla(210, 100%, 50%, 50%);
    }
    50% {
        box-shadow: 0 0 10px hsla(270, 100%, 50%, 50%);
        border-bottom: 2px solid hsla(270, 100%, 50%, 50%);
    }
    75% {
        box-shadow: 0 0 10px hsla(330, 100%, 50%, 50%);
        border-bottom: 2px solid hsla(330, 100%, 50%, 50%);
    }
    100% {
        box-shadow: 0 0 10px hsla(150, 100%, 50%, 50%);
        border-bottom: 2px solid hsla(150, 100%, 50%, 50%);
    }
}
#nav-links {
	padding-right: 10px;
}
nav a,
nav .dropdown button {
	background: #fff;
	color: #333;
	text-decoration: none;
	display: inline-block;
	padding: 12px;
	margin: 8px 0;
	border-radius: 5px;
	font-weight: 700;
	line-height: 1.4;
}
nav #nav-links a:hover {
	background: #f3f5f7;
}
#brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 12px;
	font-weight: 500;
	font-size: 18px;
	margin-right: auto;
}
.dropdown button {
  border: none;
  cursor: pointer;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 250px;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
  z-index: 1;
  right: 0;
}
.dropdown-content a {
  display: block;
  color: #333;
  margin: 0;
  padding: 12px 16px;
  text-decoration: none;
}
.dropdown-content a:hover {
  background-color: #f1f3f5;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown:hover button {
  background-color: #f1f3f5;
}
.grid-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	padding: 20px;
}
.grid-links a {
	background: #fff;
	padding: 20px;
	border: 2px solid transparent;
	border-radius: 10px;
	transition: box-shadow 0.2s;
}
.grid-links b {
	font-size: 18px;
}
.grid-links a p {
	opacity: 0.8;
	line-height: 1.4;
	margin: 10px 0 0;
}
.grid-links a:hover {
    animation: shadowAnimation 2s infinite;
}
.tag {
	display: inline-block;
	background: #555;
	color: #fff;
	padding: 2px 6px;
	border-radius: 4px;
	margin-top: 10px;
}
.tag.js {
	background: yellow;
	color: #000;
	font-weight: 700;
}
.tag.css {
	background: royalblue;
}
.tag.html {
	background: orange;
}
#yep {
	margin: 20px;
	display: grid;
	grid-template-columns: 1fr 1fr;
}
textarea {
	display: block;
	padding: 20px;
	width: 900px;
	max-width: 100%;
	margin-bottom: 10px;
	background: #f1f3f5;
	color: #333;
	border-radius: 10px;
	border: none;
}
ul {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #333;
	border-radius: 0;
}
ul li {
	font-size: 18px;
	border-bottom: 1px solid #000;
}
ul li span {
	display: inline-block;
	padding: 15px 20px;
}
.check {
	background: green;
	color: #fff;
}
.unit {
	padding: 30px 0 10px;
}
.unit .wide {
	background: #e1e3e5;
	margin: 0 auto;
	width: 800px;
	max-width: 100%;
	height: 200px;
}
.page {
	margin: 20px auto 100px;
	padding: 40px;
	background: #fff;
	border-radius: 10px;
	width: 900px;
	max-width: 100%;
}
@media (min-width: 801px) {
	#nav-toggle,
	#nav-dropdown-back-btn {
		display: none;
	}
}
@keyframes slideUp {
	0% {
		opacity: 0;
		transform: translateY(10px);
	}
	100% {
		opacity: 1;
		transform: translateY(0px);
	}
}
@media (max-width: 800px) {
	#nav-links {
		display: none;
/*		display: flex;*/
		flex-direction: column;
		justify-content: center;
		align-items: center;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		text-align: center;
		background: #fff;
		z-index: 1;
	}
	#nav-links.show {
		display: flex;
		animation: 0.2s slideUp;
	}
	.dropdown {
		display: block;
	}
	/*nav .dropdown button {
		background: transparent;
	}
	nav .dropdown button:hover {
		background: transparent;
	}*/
	.dropdown:hover .dropdown-content {
	  display: none;
	}
	.dropdown .dropdown-content.show {
		display: flex;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		animation: 0.2s slideUp;
	}
	#nav-dropdown-back-btn.show {
		position: fixed;
		top: 5px;
		left: 5px;
		background: #fff;
		z-index: 2;
		height: 40px;
	}
	#nav-dropdown-back-btn.show .back-chevron::before,
	#nav-dropdown-back-btn.show .back-chevron::after {
		content: "";
		display: block;
		width: 15px;
		height: 2px;
		background: #333;
	}
	#nav-dropdown-back-btn.show .back-chevron::before {
		transform: rotate(-45deg);
	}
	#nav-dropdown-back-btn.show .back-chevron::after {
		transform: translateY(8px) rotate(45deg);
	}
}
