@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* Basic CSS Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: #efede6;
	font-family: Roboto, sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

input,
button,
textarea,
select {
	font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

h1 {
	margin: 10px;
}

.box-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.box {
	background-color: #4682b4;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 400px;
	height: 200px;
	margin: 10px;
	border-radius: 10px;
	box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.3);
	/* move the elements off screen, to the right */
	transform: translateX(400%);
	transition: transform 0.3s ease;
}

/* target every other/even elements of this class and move them off screen, to the left */
.box:nth-of-type(even) {
	transform: translateX(-400%);
}

.box.show {
	transform: translateX(0);
}

.box h2 {
	font-size: 45px;
}
