body {
	font-family: "Roboto", serif;
	margin: 0;
	padding: 0;
	line-height: 1.6;
	background-color:#0e1215;
}

.top-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	top: 0;
	width: 100%;
	padding: 1rem 0;
	margin: 0;
	list-style: none;
	background: none;
}

.top-nav .dots {
	border-radius: 25px;
	background-color:white;
	height:10px;
	width:10px;
}

.top-nav img {
	filter: invert(1);
	width:48px;
}

.top-nav li a {
	color: white;
	text-decoration: none;
	padding: 0 1rem;
}

.hero {
	height: 700px;
	position: relative;
	text-align: center;
	color: white;
	max-height: 600px;
	overflow: hidden;
}

#hero-scene {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	pointer-events: none;
	padding: 2rem;
}

.hero-overlay h1 {
	font-family: "Audiowide", serif;
	font-size: 48px;
	margin-top: 55px;
	margin-bottom: 1rem;
	text-align: center;
}

.hero-links {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	align-items: center;
}

.hero-links a {
	padding: 0.5rem 1rem;
	background: #555;
	color: white;
	text-decoration: none;
	border-radius: 5px;
	width: 80%;
	max-width: 200px;
	text-align: center;
}

.category-hardware {
	background-color: #9BC4CA;
}

.category-software {
	background-color: #566F85;
}

.category-art {
	background-color: #60C0EA;
}

#intro {
	margin: 10px auto;
	color: white;
	border: 1px solid aliceblue;
	max-width: 900px;
	text-align: center;
	font-size: 22px;
	background: linear-gradient(to bottom, #66CEFC, #356C84);
}

/*  --------------------------------
	Filter Bar
	------------------------------- */

#filterBar {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
	gap: 1rem;
	align-content: center;
	margin: 5px auto;
	border: 1px solid aliceblue;
	width: 900px;
	padding: 7px 0;
}

.filter-icon {
	width: 32px;
	filter: invert(1);
	margin-left:20px;
}

.filter-categories {
	display: flex;
	gap: 0.5rem;
	margin-left: 5px;
}

.filter-categories button {
	cursor: pointer;
}

.filter-search {
	background-color: #9BC4CA;
	padding: 8px;
	border-bottom: 1px solid aliceblue;
}

.filter-search img {
	filter: invert(1) sepia(1) saturate(3) hue-rotate(114deg);
}

.filter-search input:focus, textarea:focus, select:focus {
	outline: none; /* Removes default blue outline */
	border-color: #DAA520; /* Changes the border color */
	box-shadow: 0 0 5px #DAA520; /* Adds a glow effect */
}

.filter-search img {
	width: 32px;
	margin-right: 8px;
	float: left;
}

.filter-search input {
	width: 150px;
	padding: 4px 8px;
}

.filter-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.filter-tag {
	background: #E2E2E2;
	padding: 4px 8px;
	display: inline-flex;
	align-items: center;
	clip-path: polygon(10px 0%, 100% 0%, 100% 100%, 10px 100%, 0% 85%, 0% 15%)
}

.no-tags-selected {
	color: rgb(3, 88, 70);
}

.remove-btn {
	margin-left: 8px;
	cursor: pointer;
	color: #666;
	font-weight: bold;
}

.category-selector {
	cursor: pointer;
	border: none;
	padding: 5px;
	color: black;
	width:66px;
	background-color: #2D5F75;
	color: #b9bbc1;
	width: 66px;
	border-bottom: 1px solid aliceblue;
}

.category-selector:hover {
	color: rgb(168, 166, 166);
	background-color: #193541;
	border-bottom: 1px solid rgb(61, 93, 121);
}

.category-selector img {
	width: 20px;
}

.cat-selected {
	background-color: #4790B0;
	color: white;
}


/* -------------------------------
   Masonry-style columns
   ------------------------------- */
.posts-container {
	max-width: 904px;
	margin: 12px auto 0 auto;
	padding: 7px 0;
}

/* Each "card" must avoid breaking across columns */
.posts-container > * {
	/* display: inline-block;  /* needed for column layout items */
	/* width: 99.5%;
	/* margin-bottom: 1rem;
	/* break-inside: avoid; /* modern name */
	/* -webkit-column-break-inside: avoid; /* older Safari/Chrome */
	/* -moz-column-break-inside: avoid;    /* older Firefox */
}


.post-link {
	display: block;
	text-decoration: none;
}

@keyframes gradientAnimation {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.matched {
	background: linear-gradient(270deg, #8B6508, #B8860B, #DAA520, #A67C00);
	background-size: 400% 400%;
	animation: gradientAnimation 4s ease infinite;
	padding: 4px 0;
}

.post-item {
	position: relative;
	z-index: 1;
	border: 1px solid #cadde3;
	overflow: hidden;
	color: #E2E2E2;
	text-align: center;
	min-width: 280px;
	padding: 5px;
}

.post-item::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 200px;
	height: 900px;
	margin-top: -450px;
	margin-left: -100px;
	background: conic-gradient(from 0deg, #022f63, #0ba4b8, #20c4da, #007fa6, #022f63);
	border-radius: inherit;
	filter: blur(4px);
	z-index: -1;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
	animation: rotateAnimation 4s linear infinite;
}

.post-item:hover::before {
	opacity: 1;
}

@keyframes rotateAnimation {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}


.post-item .featured-container {
	margin: 0;
}

.post-item h3 {
	border-bottom: 1px solid white;
	margin: 8px;
}

.post-item .cicon {
	position: absolute;
	bottom: 0;
	right:8px;
	width:32px;
	height:32px;
}

.post-item .date {
	font-size: 43px;
	position: absolute;
	bottom: -20px;
	left: 4px;
}

.post-item .featured {
	width: 100%;
	display: block;
	object-fit: cover;
	background-color: #1c1c1c;
}

.post-meta {
	background: linear-gradient(to bottom, #566F85, #394859);
	/* background-color: #566F85; */
	padding: 0.5rem;
	color: #cadde3;
	margin: 0;
}

.post-meta .meta-data {
	margin: 5px;
}

.post-meta .meta-data img {
	width: 32px;
	height: 32px;
}

.post-tag {
	font-size: 11px;
	border: 1px solid aliceblue;
	padding: 3px;
	transition: border-color 0.3s;
}

.post-tag:hover {
	animation: pulseBorder 1s infinite;
}

@keyframes pulseBorder {
	0% {
		border-color: aliceblue;
	}
	50% {
		border-color: #272727; /* change to any intermediate color you prefer */
	}
	100% {
		border-color: aliceblue;
	}
}

.meta-date {
	margin-top: 7px;
	font-size: 16px;
}

footer {
	text-align: center;
	padding: 1rem;
	background: #566F85;
	color: white;
}

/* media query for hero */

@media (max-width: 900px) {
	#filterBar {
		display: none;
	}
}

@media (max-width: 600px) {
	.hero {
		height: 300px;
	}

	#intro {
		font-size: 16px;
	}

	.top-nav {
		font-size: 12px;
	}

	.top-nav img, .top-nav .dots {
		display: none;
	}

	.hero-overlay h1 {
		font-size: 24px;
		margin-top: 20px;
	}
}