@charset "utf-8";

/* set up the fonts */
body {
	font-family: Verdana, sans-serif;
}

h1,
h2,
h3,
h4 {
	font-family: Georgia, serif;
}

/*style a few links */
.box a {
	color: #212020;
	text-decoration: none;
}

.box a:hover {
	text-decoration: underline;
}

/* position the content */
.wrapper {
	margin: 0 auto;
	width: 960px;
}

/* style the header and footer */
#footer,
#header {
	float: left;
	clear: both;
	padding: 10px 0;
	text-align: center;
	width: 100%;
}

#header {
	background: linear-gradient(135deg, #a1b3ff 0%, #d0a4ff 100%);
	color: white;
}

#header h1 {
	margin: 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#header h4 {
	margin: 10px 0 0 0;
	opacity: 0.9;
}

#footer {
	background-color: #343a40;
	color: white;
}

#footer a {
	color: #007bff;
	transition: color 0.3s ease;
}

#footer a:hover {
	color: #0056b3;
}

#content {
	float: left;
	width: 100%;
	background-color: #F0ECEC;
}

/* create the floating boxes */
.box {
	float: left;
	margin: 6px;
	padding: 10px;
	width: 285px;
	height: 480px;
	border: 1px solid #e0e0e0;
	background-color: white;
	transition: all 0.3s ease;
	cursor: pointer;
	border-radius: 8px;
	animation: popUp 0.6s ease forwards;
	transform: scale(0);
}

.box:nth-child(1) {
	animation-delay: 0.1s;
}

.box:nth-child(2) {
	animation-delay: 0.2s;
}

.box:nth-child(3) {
	animation-delay: 0.3s;
}

.box:nth-child(4) {
	animation-delay: 0.4s;
}

.box:nth-child(5) {
	animation-delay: 0.5s;
}

.box:nth-child(6) {
	animation-delay: 0.6s;
}

@keyframes popUp {
	0% {
		transform: scale(0);
		opacity: 0;
	}

	50% {
		transform: scale(1.05);
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.box:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	border-color: #667eea;
}

/* style the box content */
.box img {
	width: 280px;
	/* alternatively set the image width in your HTML */
}

.box h3,
.box p {
	text-align: center;
}

/* Media queries for responsive design */
@media screen and (max-width: 960px) {
	.wrapper {
		width: 640px;
	}
}

@media screen and (max-width: 640px) {
	.wrapper {
		width: 320px;
	}

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

	#header {
		padding: 0;
	}
}