﻿main {
	padding-block: 0;
}

h1 {
	text-align: center;
	margin: 20px 0;
}

#ServerList {
	min-height: calc(20 * 92px + 45px);
}

/*#region ForceWipe */

#ForceWipe {
	position: relative;
	height: 240px;
	background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/targeting_computer.webp');
	background-position: bottom;
	background-repeat: no-repeat;
	background-size: cover;
}

	#ForceWipe > div {
		position: absolute;
		top: 25px;
		left: 50%;
		transform: translateX(-50%);
		width: 240px;
		height: 150px;
		display: flex;
		flex-direction: column;
		padding: 10px 5px;
	}

		#ForceWipe > div > :is(time, p) {
			font-family: "VGA8";
			color: #4ed449;
		}

		#ForceWipe > div > p {
			white-space: pre-line;
			font-size: 11px;
		}

		#ForceWipe > div > time {
			margin-top: 10px;
			font-size: 13px;
		}

/*#endregion */

/*#region Filter */
#TopFilter {
	grid-column: 1/-1;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

	#TopFilter > .rust-input {
		width: 250px;
		margin-left: auto;
	}

	#TopFilter > #ServerType > li {
		width: 100%;
	}

#Filter {
	display: grid;
	grid-template-columns: 1fr 1fr;
	row-gap: 10px;
	column-gap: 20px;
	align-items: center;
	background: rgba(0, 0, 0, 0.65);
	padding: 14px;
}

@media (max-width: 768px) {
	.rust-btn > .icon {
		display: none;
	}
}

/*#endregion */

/*#region switch > .total */

.total {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	background: #191919;
	padding: 5px 8px;
}

	.total > .icon {
		width: 10px;
		height: 10px;
		background-color: #827d78;
	}

	.total > span {
		color: #9d9892;
	}

.active > .total, .active.total {
	background: #485e28;
	margin-top: 3px;
}

	.active > .total > .icon,
	.active.total > .icon {
		background-color: white;
	}

	.active > .total > span,
	.active.total > span {
		color: white;
	}

/*#endregion */

/*#region Pagination */

#Pagination {
	display: flex;
	justify-content: space-between;
	margin-block: 1rem;
	min-height: 40px;
}

	#Pagination > ul {
		min-height: 40px;
	}

	#Pagination > :is(ul, div) {
		display: flex;
		justify-content: center;
		gap: 4px;
		list-style-type: none;
	}

.page {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	background-color: rgba(0, 0, 0, 0.4);
	color: #bab1a8;
	transition: all .15s ease;
	cursor: pointer;
}

	.page:not(.disabled):hover {
		background-color: rgba(228, 218, 209, .1);
	}

	.page.active {
		background-color: var(--rust-red) !important;
		color: white !important;
	}

	.page.disabled {
		opacity: 0.5;
		pointer-events: none;
	}
/*#endregion */

@media (max-width: 1010px) {
	#Filter {
		grid-template-columns: 1fr;
	}

		#Filter > .rust-input {
			width: 100%;
		}

	#TopFilter {
		flex-direction: column;
	}

		#TopFilter > .rust-input {
			width: 100%;
		}
}

@media (max-width: 768px) {
	#Filter .total {
		display: none;
	}
}

@media (max-width: 576px) {
	#Filter > #ServerType > li > i {
		display: none;
	}
}
