@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Poppins", sans-serif;
}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	overflow: hidden;
	background: url(0.jpg) no-repeat;
	background-position: center;
	background-size: cover;
}

section {
	display: flex;
	justify-content: center;
}

.head {
	position: absolute;
	top: 20px;
	left: 50px;
	font-size: 1.5rem;
	color: transparent;
	-webkit-text-stroke: 1px #fff;
}

p {
	position: absolute;
	top: 35px;
	left: 90px;
	font-size: 1.5rem;
	color: #fff;
}

ul {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

ul li {
	list-style: none;
	text-align: center;
	color: #333;
	font-size: 3em;
	font-weight: 700;
	cursor: pointer;
	transition: 0.5s;
	padding: 5px 20px;
	border-radius: 10px;
}

ul:hover li {
	color: transparent;
	-webkit-text-stroke: 1px #000;
}

ul li:hover {
	color: #333;
	background: #fff;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.075);
}

ul li:before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100vw;
	height: 100vh;
	background: red;
	z-index: -1;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: 0.5s;
	color: rgba(0, 0, 0, 0.08);
	font-size: 12vw;
	-webkit-text-stroke: 0px #000;
	letter-spacing: 200px;
}

ul li:hover::before {
	content: attr(data-text);
	opacity: 1;
	letter-spacing: 10px;
}

ul li:nth-child(1):before {
	background-image: linear-gradient(90deg, #001d6e 0%, #001d6e 33%, #fff 33%, #fff 66%, #e6001f 66%, #e6001f 100%);
}

ul li:nth-child(2):before {
	background: linear-gradient(#005bbc 0%, #005bbc 50%, #ffd600 50%, #ffd600 100%);
}

ul li:nth-child(3):before {
	background: linear-gradient(#fff 0%, #fff 33%, #0039a6 33%, #0039a6 66%, #d52b1e 66%, #d52b1e 100%);
}

ul li:nth-child(4):before {
	background: linear-gradient(90deg, #000000 0%, #000000 33%, #ffe936 33%, #ffe936 66%, #ff0f21 66%, #ff0f21 100%);
}

ul li:nth-child(5):before {
	background-image: linear-gradient(90deg, #009246 0%, #009246 33%, #f1f2f1 33%, #f1f2f1 66%, #ce2b37 66%, #ce2b37 100%);
}

ul li:nth-child(6):before {
	background: url(3.png), linear-gradient(#c1272d 0%, #c1272d 33%, #c1272d 33%, #c1272d 66%, #c1272d 66%, #c1272d 100%);
	background-repeat: no-repeat;
	background-position: center;
}

ul li:nth-child(7):before {
	background: url(4.png), linear-gradient(90deg, #e6001f 0%, #e6001f 30%, #fff 30%, #fff 70%, #e6001f 70%, #e6001f 100%);
	background-repeat: no-repeat;
	background-position: center;
}
