@import url("https://fonts.googleapis.com/css2?family=Play&display=swap");

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--bkg: #242429;
	--card-bkg: #540880;
	--white: #dfdfdf;
}


header2 {
	margin: 3em auto;
	padding: 1em;
	text-align: center;
	color: var(--white);
}
header2 p {
	margin: 1em 0;
	color: #545454;
   font-size: larger;
   line-height: 25px;
}

.container2 {
	width: 100%;
	max-width: 100%;
	grid-auto-rows: min-content;
	margin-bottom: 50px;
}

ul {
	list-style: none;
	margin: 5em 0;
}



/* Left side cards */
.card:nth-child(odd) .card--title {
	grid-template-columns: 1fr 6ch;
	grid-column: 1/2;
	grid-row: 1/2;
	justify-self: end;
	transform-origin: 100% 0%;
	transition: 1s cubic-bezier(0.39, 0, 0.26, 1.37);
}
.card:nth-child(odd) .card--title::after {
	content: "";
	position: absolute;
	display: block;
	width: 0;
	z-index: 1;
	border-style: solid;
	border-color:transparent #0091c7;
	border-width: 15px 0 15px 15px;
	top: 50%;
	right: -15px;
	margin-top: -15px;
}

/* Right side cards */
.card:nth-child(even) .card--title {
	grid-template-columns: 6ch 1fr;
	grid-column: 2/3;
	grid-row: 1/2;
	padding: 0.5em 1em 0.5em 0.5em;
	transform-origin: 0% 0%;
	transition: 1s cubic-bezier(0.39, 0, 0.26, 1.37);
}
.card:nth-child(even) .card--title time {
	justify-self: start;
}
.card:nth-child(even) .card--title p {
	text-align: right;
}
.card:nth-child(even) .card--title::after {
	content: "";
	position: absolute;
	display: block;
	width: 0;
	z-index: 1;
	border-style: solid;
	border-color: transparent #0091c7;
	border-width: 15px 15px 15px 0;
	top: 50%;
	left: -15px;
	margin-top: -15px;
}

.card--title {
	width: 75%;
	background-color: #0091c7;
	display: grid;
	place-items: center;
	padding: 0.5em 0.5em 0.5em 1em;
	margin: 2em 20px 2em;
	position: relative;
}

.card--title time {
	display: block;
	text-align: center;
	padding: 0.5em;
	justify-self: end;
	font-weight: 600;
}
.card--title span {
	display: block;
	text-transform: uppercase;
	font-size: 1.8rem;
}
.card--title p {
	font-size: 1rem;
width: 80%;
line-height: 23px;
}

/* Intersection Observer classes */
.before-enter {
	opacity: 0.1;
	transform: translateY(-30px) rotateY(-40deg);
}
.enter {
	opacity: 1;
	transform: translateY(0px) rotateY(0deg);
}

@media screen and (max-width: 600px) {
	.card--title {
		width: 70%;
	}
	.card--title p {
		font-size: 0.8rem;
	}
	.card--title span {
		font-size: 0.9rem;
	}
}
