@font-face {
	font-family: roboto-regular;
	src: url(fonts/Roboto-Regular.ttf);
}

body {
	line-height: 1.5;
	font-size: 1.15em;
	text-align: center;
	color: #000000;
	background-color: #FEFAE0;
	font-family: roboto-regular, sans-serif;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

main {
	max-width: 800px;
	margin: 20px auto;
	padding: 20px;
	background-color: #444;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

h1, h2, h3, h4, h5 {
	font-weight: bold;
	font-size: 1.25em;
	color: #DDA15E;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 2px;
}

h2 {
	color: limegreen;
}

h3 {
	text-decoration: underline;
}

ul {
	line-height: 1.6;
	padding: 10px;
	list-style-image: url('imgs/tux.gif');
	list-style-position: inside;
	background-color: #DDA15E;
	border-radius: 5px;
	box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.8);
	text-align: center;
	max-width: 60%;
	margin: 25px auto;
}

li {
	margin: 0 10px;
}

p {
	line-height: 1.6;
	padding: 10px;
	margin: 25px auto;
	background-color: #DDA15E;
	border-radius: 5px;
	box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.8);
	text-align: center;
	max-width: 60%;
}

img {
	max-width: 250px;
	width: 100%;
	height: auto;
	display: block;
	margin: 25px auto;
	transition: transform 0.3s ease-in-out;
}

img:hover {
	transform: scale(1.1);
}

a {
	color: lightgreen;
}

iframe {
	width: 600px;
	height: 400px;
}

header {
	background-image: url("imgs/green.jpg");
	background-size: cover;
	padding: 30px;
	background-position: center center;
}

footer {
	background-image: url("imgs/green.jpg");
	background-size: cover;
	padding: 50px;
	background-position: center;
}

#dashboard {
	max-width: 600px;
	height: auto;
}

#cat {
	max-width: 500px;
	height: auto;
}

.ads-b {
	max-width: 300px;
	height: auto;
}
.carousel-container {
	overflow-x: scroll;
	width: 100%;
	scroll-snap-type: x mandatory;
	position: relative;
	margin: 20px 0;
	padding: 20px 0;
}

.carousel {
	display: flex;
	width: 100%;
	}

.carousel-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
}

.carousel-container::before,
.carousel-container::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.carousel-container::before {
	left: 10px;
}

.carousel-container::after {
	right: 10px;
}

/* change theme if system has dark mode on */
@media (prefers-color-scheme: dark) {
	body {
		background-color: #282D37;
		color: #FFFFFF;
	}

	h2 {
		color: #F5853F;
	}

	h3, h4, h5 {
		color: #1098F7;
	}

	a {
		color: orange;
	}

	img {
		filter: brightness(.8) contrast(1.2);
	}

	ul {
		background-color: #1098F7;
		box-shadow: 5px 5px 2px rgba(48, 176, 255, .3)
	}

	p {
		background-color: #1098f7;
		box-shadow: 5px 5px 2px rgba(48, 176, 255, .3)
	}

	header {
		background-image: url("imgs/blue-pattern.jpg");
	}

	footer {
		background-image: url("imgs/blue-pattern.jpg");
	}
}

/* Media query for smaller screens */
@media only screen and (max-width: 900px) {

	* {
		overflow-x: hidden;
	}

	footer {
		padding: 60px;
	}

	iframe {
		width: 90%;
		height: auto;
	}

	.carousel {
		flex-direction: column;
	}

	.carousel-slide {
		flex: 0 0 100%;
		margin-bottom: 100px;
	}
}