* {
	box-sizing: border-box;
}

body {
	font-family: Lato, sans-serif;
	margin: 0;
	padding: 1rem;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(33, 4, 69, 0.89);
}

img {
	width: 100%;
	display: block;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 1000ms;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
	max-width: 100%;
	width: 70rem;
}

figure {
	margin: 0;
	position: relative;
	overflow: hidden;
}

figure::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 200%;
	height: 200%;
	background: rgba(0, 0, 0, 0.5);
	transform-origin: center;
	opacity: 0;
	transform: scale(2);
	transition: opacity 300ms;
}

figcaption {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	place-items: center;
	text-align: center;
	padding: 1rem;
	color: white;
	font-size: 1.2rem;
	z-index: 1;
	opacity: 0;
	transition: opacity 600ms, transform 600ms;
}

a:is(:hover, :focus) figure::after {
	opacity: 1;
}

a:is(:hover, :focus) figcaption {
	opacity: 1;
	transition: opacity 600ms;
}

@media (prefers-reduced-motion: no-preference) {
	figcaption {
		transform: translate3d(0, 2rem, 0);
	}
	
	figure::after {
		border-radius: 50%;
		opacity: 1;
		transform: scale(0);
		transition: transform 900ms;
	}
	
	a:is(:hover, :focus) figure::after {
		transform: scale(2.5);
	}

	a:is(:hover, :focus) figcaption {
		opacity: 1;
		transform: translate3d(0, 0, 0);
		transition: opacity 600ms 400ms, transform 600ms 400ms;
	}

	a:is(:hover, :focus) img {
		transform: scale(1.2);
	}
}

@media (max-width: 600px) {
	ul {
		grid-template-columns: 1fr;
		/* zoom out */
		transform: scale(0.8);
	}
}

sep {
	display: block;
	width: 50%;
	/* center */
	margin: 0 auto;
	height: 2px;
	background: linear-gradient(to right, #ec069f, #a71717, #412270);
	background-size: 200% 100%;
	background-position: 100% 50%;
	animation: slide 5s linear infinite;
	margin-top: 25px;
	margin-bottom: 25px	;
  }
  
  @keyframes slide {
	0% {
	  background-position: 100% 50%;
	}
	100% {
	  background-position: 0 50%;
	}
  }

  .btn-danger {
	color: white
  }

  .color-shift {
	cursor: pointer;
	color: #ffffff;
	animation: color-shift-anim 10s ease-in-out infinite;
  }

  @keyframes color-shift-anim {
	0% {
	  color: #ffffff;
	}
	50% {
	  color: #ff00ff;
	}
	100% {
	  color: #ffffff;
	}
  }