@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300..700&display=swap');
/* Reset default browser styles */
body,
html {
	margin: 0;
	padding: 0;
	height: 100%;
	font-family: 'Oswald';
	overflow-x: hidden;
	background-color: black;
	color: white;
}

body {
	display: flex;
	flex-direction: column;
}

a {
	text-decoration: none;
	color: white;
}

.main-view {
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	background: linear-gradient(
		-130deg,
		#ff2400,
		#e81d1d,
		#e8b71d,
		#e3e81d,
		#1de840,
		#1ddde8,
		#2b1de8,
		#dd00f3,
		#dd00f3
	);
	background-size: 1000% 1000%;
	-webkit-animation: rainbow 60s linear infinite;
	-z-animation: rainbow 60s linear infinite;
	-o-animation: rainbow 60s linear infinite;
	animation: rainbow 60s linear infinite;
	color: white;
}

.main-view-page {
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: start;
	align-items: center;
	text-align: center;
	background: linear-gradient(30deg, #04f3ff, #08ffc6, #ddf730, #ffbd19, #ff1fe0, #c418ff, #04f3ff);
	background-size: 500% 500%;
	animation: rainbowBackground 30s linear infinite;
	color: white;
}

.main-view-glass {
	position: fixed;
	left: 0;
	top: 0;
	height: 0;
	width: 100vw;
	backdrop-filter: blur(1000px);
	-webkit-backdrop-filter: blur(1000px);
	content: '';
}

.titlebox {
	position: absolute;
	left: 4rem;
	top: calc(25vh - 5rem);
	margin: 0;
	padding: 0;
	text-align-last: left;
	color: #000000aa;
	height: 10rem;
	line-height: 4rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.title {
	font-size: 6rem;
	font-weight: bold;
	text-transform: uppercase;
	margin: 0;
}

.subtitle {
	font-size: 2rem;
	margin: 0.5rem 0;
}

.promptbox {
	border-radius: 10rem;
	font-size: 2rem;
	padding: 1rem;
	border: none;
	background-color: #ffffff80;
	width: 50vw;
	text-align: center;
	font-family: 'Oswald';
}

.promptbox:focus {
	outline: 10px solid #ffffff80;
}

::placeholder {
	color: #00000080;
}

.content {
	padding: 2rem;
	background: white;
	color: #333;
	line-height: 1.6;
}

.menu-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	background-color: #000000dd;
	top: 0;
	width: 100vw;
	backdrop-filter: blur(100px);
	-webkit-backdrop-filter: blur(100px);
	z-index: 100;
	box-shadow: 0 0 20px black;
}

.menu-item {
	font-family: 'Oswald';
	width: 6rem;
	border-radius: 10rem;
	border: 1px solid transparent;
	background-color: #ffffff20;
	margin: 1rem;
	text-transform: uppercase;
	padding: 0.5rem 1rem;
	text-align: center;
	opacity: 0.75;
	text-shadow: 0 0 10px black;
}

.menu-item-account {
	position: fixed;
	right: 0;
	width: 1.5rem;
}
.menu-item-home {
	position: fixed;
	left: 0;
	width: 1.5rem;
}

.menu-item:hover {
	cursor: pointer;
	border: 1px solid #ffffff40;
	transition: ease-in-out all 0.125s;
	scale: 1.1;
}

.active {
	font-weight: bold;
	border: 1px solid white;
	background: linear-gradient(
		-130deg,
		#ff2400,
		#e81d1d,
		#e8b71d,
		#e3e81d,
		#1de840,
		#1ddde8,
		#2b1de8,
		#dd00f3,
		#dd00f3
	);
	background-size: 500% 50%;
	-webkit-animation: rainbow 16s linear infinite;
	-z-animation: rainbow 16s linear infinite;
	-o-animation: rainbow 16s linear infinite;
	animation: rainbow 16s linear infinite;
	opacity: 1;
}

.icon {
	width: 1.5rem;
	height: 1.5rem;
	filter: invert(1);
	padding: 0;
	margin: 0;
}

.posts {
	display: flex;
	position: relative;
	flex-direction: column;
	align-items: start;
	overflow: auto;
	margin-top: 4rem;
	padding: 1rem;
}

.post {
	top: 0;
	width: 80vw;
	height: 4rem;
	border-radius: 10rem;
	display: flex;
	align-items: center;
	background-color: #00000040;
	margin: 0.5rem;
	padding: 1rem;
	padding-left: 0.5rem;
	backdrop-filter: blur(1000px);
	-webkit-backdrop-filter: blur(1000px);
}

.post-img {
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background-color: #ffffffaa;
	padding: 0.5rem;
	margin: 0;
}

.post-title {
	font-size: 2rem;
	margin-left: 1rem;
	margin-right: auto;
}

.post-title:hover {
	text-decoration: underline;
	cursor: pointer;
}

.post-counter {
	margin-left: auto;
	font-size: 2rem;
	margin-right: 1rem;
	height: 100%;
	margin: 0;
	border-radius: 10rem;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 8rem;
}

.post-counter-icon {
	margin-left: auto;
	font-size: 2rem;
	margin-right: 1rem;
	height: 2rem;
	margin: 0;
	padding: 1rem;
	border-radius: 10rem;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
}

.post-counter:hover,
.post-counter-icon:hover {
	background-color: #00000040;
	cursor: pointer;
}

.post-counter .icon {
	margin-right: 1rem;
}

/* Animation for the background gradient */
@keyframes rainbowBackground {
	0% {
		background-position: 0% 50%;
	}
	100% {
		background-position: 100% 50%;
	}
}

@media only screen and (max-width: 600px) {
	.menu-item {
		min-width: 4rem;
		margin: 0.25rem;
	}

	.menu-item-home,
	.menu-item-account {
		min-width: 1rem;
	}

	.titlebox {
		position: absolute;
		left: 0;
		top: calc(25vh - 5rem);
		margin: 0;
		padding: 1rem;
		text-align-last: left;
		color: black;
		height: 10rem;
		line-height: 4rem;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.title {
		font-size: 4rem;
		font-weight: bold;
		text-transform: uppercase;
		margin: 0;
	}

	.subtitle {
		font-size: 2rem;
		margin: 0.5rem 0;
	}

	.post {
		width: calc(100vw - 2rem);
		height: 3rem;
	}

	.post-counter {
		width: 4rem;
		min-width: 4rem;
		font-size: 1.25rem;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.post-title {
		font-size: 1.5rem;
		padding: 0;
	}

	.post-counter .icon {
		padding: 0;
		margin: 0;
		margin-right: 0;
	}

	.post-img {
		width: 3rem;
		height: 3rem;
	}

	.promptbox {
		width: 90vw;
	}
}

@-webkit-keyframes rainbow {
	0% {
		background-position: 0% 82%;
	}
	50% {
		background-position: 100% 19%;
	}
	100% {
		background-position: 0% 82%;
	}
}
@-moz-keyframes rainbow {
	0% {
		background-position: 0% 82%;
	}
	50% {
		background-position: 100% 19%;
	}
	100% {
		background-position: 0% 82%;
	}
}
@-o-keyframes rainbow {
	0% {
		background-position: 0% 82%;
	}
	50% {
		background-position: 100% 19%;
	}
	100% {
		background-position: 0% 82%;
	}
}
@keyframes rainbow {
	0% {
		background-position: 0% 82%;
	}
	50% {
		background-position: 100% 19%;
	}
	100% {
		background-position: 0% 82%;
	}
}
