* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html,
body {
	height: 100%;
	width: 100%;
}
body {
	direction: rtl;
}
header ul {
	display: flex;
	justify-content: space-around;

	width: 50%;

	margin: 1rem auto;

	list-style-type: none;

	font-size: 2rem;
}
.main {
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;

	width: 95%;
	margin: 1rem auto;
}
.home-page-posts {
	width: 72%;
	margin-left: auto;

	display: flex;
	flex-direction: column;
	align-items: center;
}
.latest-posts {
	height: 700px;
	min-height: 500px;
	width: 100%;

	border: 2px solid purple;
	border-bottom: none;

	overflow: auto;

	position: relative;
}
.post-container {
	width: 800px;
	min-height: fit-content;
	position: relative;

	padding: 0.3rem;
	padding-top: 0;
	margin: 2rem auto;

	background-color: lightgray;
	box-shadow: 1px 1px 0 black;

	overflow: auto;
}
.post-container h2 {
	font-size: 2rem;
	margin: 1rem 0;
}
.post-container p {
	margin: 1rem 0;
}
.post-header {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}
.post-excerpt {
	border-bottom: 1px solid black;
}
.post-read-more-button {
	padding: 0.5rem;
}
.header-lower {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}
.header-lower:first-child {
	margin: 1rem 0;
}
.header-lower .post-tags {
	border-top: 1px solid black;
	padding: 1rem 0;
}
.post-body,
.post-footer {
	margin: 1rem 0;

	overflow-y: auto;
}
.post-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.post--hidden {
	height: 0;
	visibility: hidden;
	display: none;
}

.load-more-button {
	background-color: lightgray;
	padding: 0.5rem;
	margin-left: 1rem;

	opacity: 0;

	transition: all 800ms ease;
}
.show-hidden-button {
	opacity: 1;
}

/*  */

.categories {
	width: 25%;
	height: 700px;
	overflow: auto;
}

.categories .sub-category {
	margin-inline-start: 1rem;
	margin-block-start: 0.5rem;
}
.categories .in-sub-category-list-item {
	margin: 0.5rem 0;
}
.in-sub-category-list-item:hover {
	cursor: pointer;
}
/*  */

.popup-read-more--wrapper {
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	z-index: 11;

	background-color: white;

	width: 100%;
	height: 100%;
	margin: 0 auto;
}
.popup-read-more {
	display: flex;
	justify-content: center;
	align-content: center;
}
.visibile-popup {
	position: fixed;
	overflow: auto;
}

.close-popup-button {
	position: absolute;
	top: 5px;
	left: 5px;

	padding: 1rem;
}

.hidden-button {
	display: none;
}
.go-back-to-latests-posts-button {
	padding: 0.5rem;
}

/* search */

.search {
	text-align: center;
}
