@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;400;600;700&display=swap");
*,
*::after,
*::before {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	list-style: none;
}
body {
	font-family: "Poppins", sans-serif;
	overflow-x: hidden;
}

h1 {
	width: 100%;
	padding: 1rem 0;
	display: flex;
	justify-content: center;
	gap: 1rem;
	font-size: calc(1rem + 2vw);
	text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5),
		2px 2px 2px rgba(0, 0, 0, 0.5), 3px 3px 2px rgba(255, 255, 255, 0.7),
		4px 4px 2px rgba(0, 0, 0, 0.7);
	justify-content: center;
	align-items: center;
	background: #1c55d5;
	color: white;
}

h1 span {
	text-transform: uppercase;
	font-size: calc(4rem + 2vw);
	font-weight: 700;
	background: url("https://c.tenor.com/AaPeZRxwOuQAAAAC/fire-flames.gif");
	color: transparent;
	text-shadow: 2px 2px 3px rgba(255, 255, 255, 0.2);
	-webkit-background-clip: text;
	-moz-background-clip: text;
	background-clip: text;
	background-size: cover;
}

.menu {
	position: sticky;
	top: 0;
}

.menu > ul {
	position: relative;
	display: inline-flex;
	width: 100%;
	background-color: #1c55d5;
	color: white;
	font-weight: 600;
	justify-content: center;
	flex-wrap: wrap;
}
.menu > ul > li {
	cursor: pointer;
	padding: 1rem 2rem;
	transition: ease-in 300ms;
}
.menu > ul > li:hover {
	background-color: #3f3f3f;
}
.menu ul li:hover .sub-menu {
	opacity: 1;
	transform: translatex(0);
	pointer-events: auto;
}
.sub-menu {
	position: absolute;
	background: #3f3f3f;
	width: 100%;
	padding: 1rem 2rem;
	pointer-events: none;
	left: 0;
	right: 0;
	top: 100%;
	opacity: 0;
	transform: translatex(-100%);
	transition: cubic-bezier(0.5, -0.15, 0.56, 1.51) 700ms;
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 1rem;
}
.sub-menu > li,
.sub-menu > li > ul > li {
	cursor: pointer;
	position: relative;
}
.sub-menu > li {
	padding: 0.5rem 0;
}
.sub-menu > li > ul > li {
	padding: 0.2rem 0;
	margin: 0 0.5rem;
}
.sub-menu > li::after,
.sub-menu > li > ul > li::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: #1c55d5;
	width: 50px;
	transform: scalex(0);
	transition: ease-in 100ms;
}
.sub-menu > li:hover::after,
.sub-menu > li > ul > li:hover::after {
	transform: scalex(1);
}

.grid-2 {
	display: grid;
	grid-template:
		"a a" auto
		"b b" auto;
	justify-content: space-evenly;
	justify-items: start;
	align-items: start;
	align-content: center;
}
.grid-2 > li {
	position: static !important;
	color: #1c55d5;
	font-weight: 700;
}
.grid-2 > li > ul > li {
	color: white;
	font-weight: 400;
}
.grid-2 > li::after {
	position: static;
}
.article {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 2rem 2rem 2rem;
}
img {
	border-radius: 1rem;
	box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
	margin: 2rem auto;
	width: 100%;
	height: 400px;
	object-fit: cover;
}
#close,
#menu-icon {
	display: none;
}
@media screen and (max-width: 600px) {
	h1 {
		display: flex;
		gap: 0;
		flex-direction: column;
		background: #1c55d5;
		color: white;
	}
	.menu {
		position: fixed;
		transform: translatex(100%);
		transition: ease-in-out 300ms;
		background: #1c55d5;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		padding: 1rem;
		height: 100%;
		overflow-y: auto;
	}
	.menu > ul {
		display: flex;
		justify-content: strech;
		align-items: strecht;
		flex-direction: column;
		gap: 1rem;
		margin-top: 2rem;
	}

	.sub-menu {
		position: static;
		opacity: 1;
		transform: translatex(0);
		display: flex;
		flex-direction: column;
	}

	.sub-menu > ul > li {
		padding: 0.5rem;
		border-radius: 0.5rem;
		background: #1c55d5;
	}
	.grid-2 {
		display: flex;
		flex-direction: column;
		align-content: flex-start;
	}
	#close {
		display: flex;
		justify-content: center;
		position: absolute;
		top: 0.5rem;
		left: 0.5rem;
		z-index: 1;
		background: #3f3f3f;
		color: white;
		font-weight: 700;
		height: 25px;
		width: 25px;
		border-radius: 50%;
		cursor: pointer;
		transition: ease-in-out 300ms;
	}
	.menu.active {
		transform: translatex(0);
	}

	#menu-icon {
		display: flex;
		justify-content: center;
		cursor: pointer;
		position: fixed;
		top: 0;
		right: 0;
		z-index: 99;
		background: #3f3f3f;
		color: white;
		padding: 0.5rem 1rem;
		border-radius: 0 0 0 0.5rem;
	}
	#menu-icon.active {
		display: none;
	}
	.menu > ul > li {
		background-color: #3f3f3f;
		border-radius: 0.3rem;
	}
}