.box {
	padding: 5px;
	border: 10px solid;
	background-color: #f0f0f0;
	text-align: center;
	margin: auto;
	}

.box-size {
	width: 800px;
	box-sizing: border-box;
}

.nav {
	font-size: 30px;
	text-decoration: none;
	border-color: black;
	color: black;
	flex-grow:1;
	flex-basis:100%;
}

.nav:hover, .nav:active {
	border-color: white;
	background-color: white;
	filter: invert(100%);
}

.flex-container {
	display: flex;
	justify-content: center;
	margin: auto;
}

.flex-gap {
	gap: 20px;
}

.centre {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 50%;
}

body {
	background-image: url("background.png");
	background-color: #f165c7;
	background-size: 245px 290px;
	font-family: "Chakra Petch", sans-serif;
	font-weight: 600;
	font-style: normal;
	font-size: 20px;
}

@keyframes bgSlideShow {
	0% {
		opacity: 1;
	}
	25% {
		opacity: 0;
	}
	75% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes scroll-text {
	0% {
		transform: translateY(0%); /* photographer */
	}
	25% {
		transform: translateY(-20%); /* artist */
	}
	50% {
		transform: translateY(-40%); /* maker */
	}
	75% {
		transform: translateY(-60%); /* dog in real life */
	}
	100% {
		transform: translateY(-80%); /* photographer */
	}
}


.welcome {
	width: 800px;
	height: 400px;
	padding: 0px;
	border-color: black;
	color: #f0f0f0;
	overflow: hidden;
	position: relative;

.slide {
	animation: bgSlideShow 40s ease-in-out infinite;
	background-size: 400px 400px;
	width: 400px;
	height: 400px;
	filter: brightness(50%);
	position: absolute;
	transform: translate(-10px, -10px);
}

.l-1 {
	animation-delay: 0s;
	background-image: url(./slides/l-1.jpg);
	z-index: 4;
}

.l-2 {
	animation-delay: 10s;
	background-image: url(./slides/l-2.png);
	z-index: 3;
}

.l-3 {
	animation-delay: 20s;
	background-image: url(./slides/l-3.jpg);
	z-index: 2;
}

.l-4 {
	animation-delay: 30s;
	background-image: url(./slides/l-4.png);
	z-index: 1;
}

.r-1 {
	animation-delay: 5s;
	background-image: url(./slides/r-1.png);
	z-index: 4;
}

.r-2 {
	animation-delay: 15s;
	background-image: url(./slides/r-2.jpg);
	z-index: 3;
}

.r-3 {
	animation-delay: 25s;
	background-image: url(./slides/r-3.png);
	z-index: 2;
}

.r-4 {
	animation-delay: 35s;
	background-image: url(./slides/r-4.jpg);
	z-index: 1;
}

.image-text {
	display: inline-block;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 50px;
	font-weight: 800;
	z-index: 5;
	overflow: hidden;
	height: 65px;

.text-inner {
	display: inline-block;
	animation: scroll-text 10s ease-in-out infinite;
}

h2 {
	font-weight: 800;
}
