body {
	display: flex;
}

.block {
	width: calc(100% - 25.5em);
	margin: 0.5em;
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 2em - 80px);
}

.switch-block-main {
	height: calc(100vh - 2em - 80px);
}

.block-container {
	overflow-y: auto;
}

#sidebar-block {
	display: flex;
	flex-direction: column;
}

#sidebar {
	height: 100%;
}

.block[data-role="fixed"] .block-container {
	height: 100%;
}

#news-bg::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;

	background: url("../res/img/bg/news.png") no-repeat;
	background-size: cover;
	background-attachment: fixed;
	background-position: bottom;

	filter: hue-rotate(20deg) brightness(32%) blur(2px);
}

.news-item {
	position: relative;

	margin: 1em;
	border-radius: 4px;
	color: var(--blue-text); 
	border: 1px solid rgba(221, 223, 248, 0.2);
}

.news-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

.news-item:nth-last-child(odd)::before {
	background: url("../res/img/bg/item1.png") no-repeat;
	background-size: cover;
	background-attachment: fixed;
	background-position: bottom;
}

.news-item:nth-last-child(even)::before {
	background: url("../res/img/bg/item2.png") no-repeat;
	background-size: cover;
	background-attachment: fixed;
	background-position: bottom;
}

.news-item-header,
.news-item-date {
	font-family: "Bold";
	font-weight: normal;
	font-size: 32px;

	color: rgba(209, 217, 241, 0.8);
	background-color: rgba(3, 4, 15, 0.6);
	border-bottom: 1px solid rgba(221, 223, 248, 0.2);
}

.news-item-date {
	font-size: 16px;
}

.desc-line {
	display: inline-block;
	width: 5em;
	vertical-align: bottom;
	font-size: 16px;

	color: rgba(221, 223, 248, 0.5);
}

.date-life {
	color: rgba(221, 223, 248, 0.5);
}

.news-item-content {
	padding: 0.5em 0.5em 0.5em 5em;
	background-color: rgba(3, 4, 15, 0.5);
}

.news-items {
	margin-top: 0.4em;
}

.news-items h4 {
	font-family: "Bold";
	font-weight: normal;
}

.mitem {
	font-family: "Bold";
	font-size: 1em;
	cursor: pointer;

	width: calc(100% - 0.6em);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;

	margin: 0.35em 0 0 0.5em;

	text-shadow: 0px 0px 6px #04070E;
}

.mtitle {
	transition: 0.3s text-shadow;
}

.mdate {
	color: rgba(164, 180, 227, 0.5);
}

.mitem:hover .mtitle {
	text-shadow: 0px 0px 3px var(--blue-text-dark);
}

.notified {
	animation: 2s brightnotify;
}
