@keyframes bg {
	100% {
		background-position: 0 -1024px;
	}
}

body {
	animation: bg 15s linear infinite;
	background-image: url("/img/bg/post.png");
}

.commented {
	padding: 10px;
	text-align: center;
	background-image: linear-gradient(to left, #00BF00, #FFBF00, #00BF00);
}

.body {
	display: flex;
}

.content {
	flex: 1;
}

.title {
	margin: .5rem;
	padding: .5rem;
	text-align: center;
	border-radius: 2rem 2rem 0 0;
	background-color: #FFFFFFDF;
}

main {
	margin: 0 1rem 0 1rem;
	padding: 1rem;
	background-color: #FFFFFFDF;
}

main .footer {
	width: 100%;
	margin-top: 1rem;
	padding-top: .5rem;
	text-align: center;
	border-top: #00003F 4px solid;
	border-radius: .25rem;
}

.user {
	overflow: auto;
	margin: 1rem 2rem 1rem 2rem;
	padding: 10px;
	border-radius: 0 0 2rem 2rem;
	background-color: #FFFFFF;
}

.user img {
	float: right;
	width: 128px;
	height: 128px;
	margin: .5rem;
	vertical-align: middle;
}

.comments {
	padding: 0 1rem 0 1rem;
}

.comments h2 {
	text-align: center;
	color: #000000;
	text-shadow: 0 0 .5rem #FFFFFF;
}

.comments hr {
	border: #000000 2px solid;
	border-radius: 2px;
}

.comments .add {
	margin: .5rem;
	padding: 1rem;
	color: #FFFFFF;
	border-radius: 2rem 0 2rem 0;
	background-color: #003F00DF;
}

.comments .add h3 {
	margin: .5rem;
}

.comments .add textarea {
	display: block;
	overflow: auto;
	width: 100%;
	resize: vertical;
}

input,
textarea {
	font-family: Vazir;
	font-size: 1rem;
	box-sizing: border-box;
	padding: .25rempx;
	outline: none;
}

input,
textarea {
	transition: all .3s;
	border: #7F7F7F 2px solid;
	border-radius: .25rem;
}


input:hover,
textarea:hover {
	border: #3F3F3F 2px solid;
}

input:focus,
textarea:focus {
	border: #000000 2px solid;
	border-radius: .25rem;
}

input[type=submit] {
	margin: .5rem;
}

.comment {
	margin: .5rem;
	padding: 1rem;
	border-radius: 2rem 2rem 2rem 0;
	background-color: #BFFFFFDF;
}

.comment .date {
	font-size: 1rem;
	color: #3F3F3F;
	direction: ltr;
}

.sidebar {
	position: sticky;
	top: 1rem;
	display: flex;
	align-self: flex-start;
	flex-direction: column;
	width: 20rem;
	margin: .5rem;
	gap: 1rem;
}

.widget {
	padding: 1rem;
	transition: .5s;
	border-radius: 1rem;
	background: #FFFFFFDF;
	box-shadow: 0 0 2rem #FFFFFF7F;
	backdrop-filter: blur(.75rem);
}

.widget:hover {
	transform: translateY(-.25rem);
	box-shadow: 0 1rem 2rem #0000007F;
}

.widget h3 {
	font-weight: bold;
	position: relative;
	margin: 0 0 1rem;
	padding-bottom: .75rem;
	color: #3F7F3F;
}

.widget h3::after {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 4rem;
	height: .25rem;
	content: "";
	border-radius: 4rem;
	background: #007F00;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li {
	margin-bottom: .5rem;
}

.widget li:last-child {
	margin-bottom: 0;
}

.widget a {
	display: block;
	padding: .75rem .75rem;
	transition: .3s;
	text-decoration: none;
	color: #3F7F3F;
	border-radius: .75rem;
	background: #FFFFFFBF;
}

.widget a:hover {
	padding-right: 1.25rem;
	color: #FFFFFF;
	background: #3F7F3F;
}

@media only screen and (max-width: 768px) {
	input[type=text] {
		width: 100%;
	}

	.body {
		display: block;
	}

	.sidebar {
		position: static;
		width: calc(100% - 1rem);
		margin-top: 1.25rem;
	}
}