﻿h1 {
	text-align: center;
	margin: 20px 0;
}

/*#region Filter */
#Filter {
	display: grid;
	grid-template-columns: 1fr 1fr;
	row-gap: 10px;
	column-gap: 20px;
	align-items: center;
	background: rgba(0, 0, 0, 0.7);
	padding: 14px;
}

	#Filter > *:nth-child(odd) {
		justify-items: start;
	}

	#Filter > *:nth-child(even) {
		justify-items: end;
	}

	#Filter > #ServerType {
		justify-content: start;
	}

	#Filter > .rust-input {
		width: 250px;
		margin-left: auto;
	}

/*#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: #827d78;
	}

.active > .total, .active.total {
	background: #485e28;
}

	.active > .total > .icon,
	.active.total > .icon {
		background-color: white;
	}

	.active > .total > span,
	.active.total > span {
		color: white;
	}

/*#endregion */

/*#region Table */

table .tags {
	margin-top: 10px;
	display: flex;
	gap: 5px;
}

	table .tags > li {
		background: #222222;
		color: #827d78;
		padding: 2px 5px;
		font-weight: 900;
		font-size: 11px;
		white-space: nowrap;
	}

table > :is(thead, tbody) > tr > :is(th,td):first-of-type {
	width: 161px;
}

table > :is(thead, tbody) > tr > :is(th,td):nth-of-type(2) {
	/*vertical-align: baseline;*/
}

table > :is(thead, tbody) > tr > :is(th,td):nth-of-type(4) {
	white-space: nowrap;
}

table > :is(thead, tbody) > tr > :is(th,td):nth-of-type(5) {
	white-space: nowrap;
}

	table > :is(thead, tbody) > tr > :is(th,td):nth-of-type(5) > div {
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		gap: 5px;
	}

table > :is(thead, tbody) > tr > :is(th,td):nth-of-type(6) {
	white-space: nowrap;
}


table {
	width: 100%;
	border-collapse: collapse;
}


	table > thead > tr > th {
		background-color: rgba(0, 0, 0, 0.8);
		text-align: left;
		padding: 14px 18px;
		font-size: 12px;
		border-bottom: 1px solid transparent;
	}

	table > tbody > tr {
		cursor: pointer;
		transition: background-color 200ms;
	}

		table > tbody > tr:nth-child(odd) {
			background-color: rgba(0, 0, 0, 0.3);
		}

		table > tbody > tr:nth-child(even) {
			background-color: rgba(0, 0, 0, 0.15);
		}

		table > tbody > tr:hover {
			background-color: rgba(228, 218, 209, .1);
		}

		table > tbody > tr > td {
			padding: 14px 18px;
			font-size: 13px;
			border-bottom: 1px solid transparent;
		}

			table > tbody > tr > td > img {
				border-radius: 4px;
				object-fit: cover;
				box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
				font-size: 0;
				color: transparent;
			}

			table > tbody > tr > td > ul {
				display: grid;
				grid-template-columns: repeat(auto-fit, 16px);
				gap: 10px;
				list-style-type: none;
			}

				table > tbody > tr > td > ul > li > a > img {
					width: 16px;
					height: 16px;
					object-fit: cover;
					border-radius: 2px;
					display: flex;
					justify-content: center;
					align-items: center;
					transition: filter 200ms;
				}

					table > tbody > tr > td > ul > li > a > img:hover {
						filter: brightness(1.2);
						transition: filter 0.2s;
					}

/*#endregion */

/*#region Pagination */

#Pagination {
	display: flex;
	justify-content: space-between;
}

	#Pagination > :is(ul, div) {
		display: flex;
		justify-content: center;
		gap: 4px;
		margin-block: 1rem;
		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 */
