* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Source Code Pro", monospace;
	background-image: linear-gradient(to right, #ffecd291 0%, #fcb69f76 100%);
	padding: 2rem;
}

.container {
	max-width: 1500px;
	margin: auto;
	padding: 4rem;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	background-color: #fdfcfa;
	position: relative;
}

.grid-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(to right, rgba(64, 64, 64, 0.05) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(64, 64, 64, 0.05) 1px, transparent 1px);
	background-size: 50px 50px;
	pointer-events: none;
	z-index: 0;
}

header {
	display: flex;
	align-items: center;
	gap: 1rem;
}

header h1 {
	font-size: 1.6rem;
	margin-bottom: 1rem;
}

header h2 {
	font-size: 1.2rem;
}

main {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 2rem 0;
	gap: 3rem;
}

main div p,
main div p {
	margin-top: 1rem;
	line-height: 1.6rem;
}

main div:nth-child(2) h2 {
	font-size: 2rem;
	text-align: center;
}

main div:nth-child(2) img {
	width: 150px;
	height: auto;
	display: flex;
	margin: 0 auto 20px auto;
}

main div:nth-child(2) p {
	font-size: 1.2rem;
	text-align: center;
	width: 60ch;
	line-height: 1.9rem;
}

.grid-container {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 100px 1fr;
	grid-template-rows: auto auto auto auto auto auto auto auto;
}

.item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.5rem;
	padding: 4rem;
	height: 550px;
	line-height: 1.6rem;
}

a {
	text-decoration: none;
	color: #e25024;
	font-weight: bold;
}

.b {
	grid-column: 3;
	grid-row: 2;
}

.c {
	grid-column: 1;
	grid-row: 3;
}

.d {
	grid-column: 3;
	grid-row: 4;
}

.e {
	grid-column: 1;
	grid-row: 5;
}

.f {
	grid-column: 3;
	grid-row: 6;
}

.g {
	grid-column: 1;
	grid-row: 7;
}

.h {
	grid-column: 3;
	grid-row: 8;
}

.item img {
	width: 350px;
	height: auto;
	position: absolute;
	transition: all ease-in-out 0.5s;
}

.item img:hover {
	transform: scale(1.3);
}

.a img,
.c img,
.e img,
.g img {
	right: 10%;
}

.a img {
	box-shadow: 20px 0px 2px 1px #c8e3fc;
}

.c img {
	box-shadow: 20px 0px 2px 1px #86f0f0;
}

.e img {
	box-shadow: 20px 0px 2px 1px #e8e252;
}

.g img {
	box-shadow: 20px 0px 2px 1px #ffa678;
}

.b img,
.d img,
.f img,
.h img {
	left: 10%;
}

.b img {
	box-shadow: -20px 0px 2px 1px #a086f0;
}

.d img {
	box-shadow: -20px 0px 2px 1px #a086f0;
}

.f img {
	box-shadow: -20px 0px 2px 1px #ffd308;
}

.h img {
	box-shadow: -20px 0px 2px 1px lightcoral;
}

.sa,
.sb,
.sc,
.sd,
.se,
.sf,
.sg,
.sh {
	grid-column: 2;
	width: 100%;
	height: 550px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.sa {
	grid-row: 1;
	background-color: #c8e3fc;
}

.sb {
	grid-row: 2;
	background-color: #a086f0;
}

.sc {
	grid-row: 3;
	background-color: #86f0f0;
}

.sd {
	grid-row: 4;
	background-color: #d2edaf;
}

.se {
	grid-row: 5;
	background-color: #e8e252;
}

.sf {
	grid-row: 6;
	background-color: #ffd308;
}

.sg {
	grid-row: 7;
	background-color: #ffa678;
}

.sh {
	grid-row: 8;
	background-color: lightcoral;
}

.sa h2,
.sb h2,
.sc h2,
.sd h2,
.se h2,
.sf h2,
.sg h2,
.sh h2 {
	transform: rotate(90deg);
}

.sa::after,
.sb::after,
.sc::after,
.sd::after,
.se::after,
.sf::after,
.sg::after,
.sh::after {
	content: "";
	position: absolute;
	bottom: 0;
	width: 700px;
	height: 5px;
}

.sa::after {
	right: 0;
	background-color: #c8e3fc;
}

.sb::after {
	left: 0;
	background-color: #a086f0;
}

.sc::after {
	right: 0;
	background-color: #86f0f0;
}

.sd::after {
	left: 0;
	background-color: #d2edaf;
}

.se::after {
	right: 0;
	background-color: #e8e252;
}

.sf::after {
	left: 0;
	background-color: #ffd308;
}

.sg::after {
	right: 0;
	background-color: #ffa678;
}

.sh::after {
	left: 0;
	background-color: lightcoral;
}

.sa::before,
.sb::before,
.sc::before,
.sd::before,
.se::before,
.sf::before,
.sg::before,
.sh::before {
	content: "";
	position: absolute;
	bottom: -10px;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	z-index: 9999;
}

.sa::before {
	right: 700px;
	background-color: #c8e3fc;
}

.sb::before {
	left: 700px;
	background-color: #a086f0;
}

.sc::before {
	right: 700px;
	background-color: #86f0f0;
}

.sc::before {
	right: 700px;
	background-color: #86f0f0;
}

.sd::before {
	left: 700px;
	background-color: #d2edaf;
}

.se::before {
	right: 700px;
	background-color: #e8e252;
}

.sf::before {
	left: 700px;
	background-color: #ffd308;
}

.sg::before {
	right: 700px;
	background-color: #ffa678;
}

.sh::before {
	left: 700px;
	background-color: lightcoral;
}

table {
	margin-top: 2rem;
	border-collapse: collapse;
	border-spacing: 0;
	border: 2px solid rgb(140 140 140);
	font-size: 0.8rem;
}

caption {
	font-size: 2rem;
	font-weight: bold;
	margin-bottom: 3rem;
}

td {
	padding: 0.5rem;
}