@font-face {
	font-family: digitalFont;
	src: url('/webfonts/neon_pixel-7.ttf');
}

:root {
    --gamehub-card-width: 400px;
    --gamehub-card-height: 400px;
    --bg-color: #192123;
}

* {
	box-sizing: border-box;
}

body {
	background-color: var(--bg-color);
	font-family: digitalFont, sans-serif, Arial, Helvetica;
	position: fixed;
	width: 100%;
	height: 100%;
	margin: 0;
}

a, a:visited {
	color: white;
	font-size: 2em;
	text-decoration: none;
	margin: 0.3em;
	display: inline-block;
}

.splide__arrows::before, .splide__arrows::after {
	content: '';
	display: block;
	position: absolute;
	height: 100%;
	width: 27%;
	z-index: 55;
    pointer-events: none;
}

.splide__arrow {
    z-index: 65;
}

.splide__arrows::before {
    left: -1px;
	background-image: linear-gradient(to right, var(--bg-color), transparent);
}

.splide__arrows::after {
    right: -1px;
	background-image: linear-gradient(to left, var(--bg-color), transparent);
}

.center-section {
	position: relative;
	transform: translate(-50%, -50%);
	top: 50%;
	left: 50%;
	max-width: 900px;
	cursor: grab;
}

.center-section:active {
	cursor: grabbing;
}

.game-server {
	width: var(--gamehub-card-width);
	height: var(--gamehub-card-height);
	position: relative;
	border-radius: 1em;
	overflow: hidden;
	transform: translateX(-50%);
	left: 50%;
}

.game-server:before{
    content: '';
    display: block;
	position: absolute;
	background-image: linear-gradient(0deg,#87de1d,#b4e900);
}

.game-server .title {
	font-size: 3em;
	margin: 0;
	position: relative;
	z-index: 5;
	padding: 0.1em 0.5em;
	font-weight: normal;
	color: black;
	text-shadow: 0 0 0.5em rgba(255, 255, 255, 0.31);
	backdrop-filter: blur(1em);
	background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent 100%);
}

.game-server .background {
	border-radius: inherit;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: calc(100% - 1px);
	object-fit: cover;
	z-index: -1;
}

.game-server .background img {
	border-radius: inherit;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.game-server.is-offline .background::before {
	content: '';
	display: block;
	background-color: rgba(0, 0, 0, 0.7);
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 5;
}

.game-server .detail {
	background-image: linear-gradient(to top, #151515, transparent);
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 0.6em 1em;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	color: white;
	font-family: courier;
	text-shadow: 0 0 1em black;
	backdrop-filter: blur(1em);
	align-items: center;
}

.game-server .address {
	user-select: all;
	padding: 0.5em 0;
	cursor: pointer;
}

.game-server .info {
	display: flex;
	flex-direction: column;
	align-items: end;
}

.game-server.is-online .status {
	color: #09bd09;
}

.game-server.is-offline .status {
	color: rgba(255, 255, 255, 0.5);
}

.game-server .players {
	font-size: 0.8em;
}

.footer {
	position: fixed;
	bottom: 0;
	width: 100%;
	text-align: center;
}

@media only screen and (max-width: 900px) {
    :root {
        --gamehub-card-width: 300px;
        --gamehub-card-height: 300px;
    }
}

@media only screen and (max-width: 650px) {
    :root {
        --gamehub-card-width: 245px;
        --gamehub-card-height: 245px;
    }
}

@media only screen and (max-width: 500px) {
    :root {
        --gamehub-card-width: 90vw;
        --gamehub-card-height: 90vw;
    }

	.splide__arrow {
		display: none;
	}

	.splide__arrows::before {
		top: -1px;
		width: 100%;
		height: 20%;
		background-image: linear-gradient(to bottom, var(--bg-color), transparent);
	}
	
	.splide__arrows::after {
		top: unset;
		bottom: -1px;
		width: 100%;
		height: 20%;
		background-image: linear-gradient(to top, var(--bg-color), transparent);
	}
}
