@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

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

body {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #deefff;
	min-height: 100vh;
	padding: 2em;
}

main {
	border: 1px solid #0369a1;
	background-color: #f0f9ff;
	border-radius: 3em;
	max-width: 80em;
	width: 100%;
	height: 30em;
	display: flex;
	flex-direction: row;
	background-color: #f0f9ff;
	padding: 2em;
}

.cards {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	flex: 1;
	position: relative;

	&:hover .card {
		&:last-child {
			transform: rotate(20deg) translate(1em, -2em);
		}

		&:first-child {
			transform: rotate(-20deg) translate(-3em, 2em);
		}
	}
}

.card {
	box-sizing: content-box;
	width: 16em;
	height: 16em;
	object-fit: cover;
	object-position: center;
	padding: 1em 1em 3em 1em;
	background-color: white;
	box-shadow: 0px 10px 10px 0px #0000001a;
	transition: transform .5s ease-in-out;
	position: absolute;
	top: 1em;
	transform-origin: left bottom;

	&:first-child {
		transform: rotate(-10deg) translate(-3em, 1em);
	}

	&:last-child {
		transform: rotate(5deg) translate(2em, 1em);
	}
}

.text {
	font-family: "Inter", Arial, Helvetica, sans-serif;
	font-size: 1.25em;
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;

	h1 {
		font-size: 2em;
		color: #0369a1;
	}

	p {
		color: #0c4a6e;
		margin-bottom: 6em;
	}

	a {
		text-decoration: none;
		color: black;
		font-weight: 700;
		background-color: white;
		padding: 0.75em 1.5em;
		border-radius: 3em;
		width: fit-content;
	}
}
