/* vibur-regular - latin */
@font-face {
	font-family: 'Vibur';
	font-style: normal;
	font-weight: 400;
	font-display: auto;
	src: url('/fonts/vibur/vibur-v21-latin-regular.eot');
	src: local(''),
		url('/fonts/vibur/vibur-v21-latin-regular.eot?#iefix') format('embedded-opentype'),
		url('/fonts/vibur/vibur-v21-latin-regular.woff2') format('woff2'),
		url('/fonts/vibur/vibur-v21-latin-regular.woff') format('woff'),
		url('/fonts/vibur/vibur-v21-latin-regular.ttf') format('truetype'),
		url('/fonts/vibur/vibur-v21-latin-regular.svg#Vibur') format('svg');
}

:root {
	--color: #444;
}

* {
	margin: 0;
	padding: 0;
	outline: none;
	resize: none;
}
*, *::before, *::after {
	box-sizing: border-box;
}

::-moz-selection {
	color: #fff;
	background: #a50064;
}
::selection {
	color: #fff;
	background: #a50064;
}

::-webkit-scrollbar {
	width: 12px;
}
::-webkit-scrollbar-track {
	background: #090909;
}
::-webkit-scrollbar-thumb {
	border: 3px solid #090909;
	background: #a50064;
	border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
	background: #83004e;
}

html {
	width: 100%;
	height: 100%;
}
body {
	width: 100%;
	min-height: 100%;
	background-color: #090909;
	font-family: Arial, sans-serif;
}


label {
	display: block;
	position: relative;
	margin-bottom: 24px;
	font-weight: bold;
}
label:last-child {
	margin-bottom: 0;
}
label input:not([type="checkbox"]):not([type="radio"]), label select, label textarea {
	display: block;
	margin: 8px 0;
	padding: 8px;
	width: 100%;
	border-radius: 4px;
	border: none;
}
label input:not([type="checkbox"]):not([type="radio"]):last-child, label select:last-child, label textarea:last-child {
	margin-bottom: 0;
}
label input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	width: 16px;
	height: 16px;
	background-color: #a50064;
}
label input[type="checkbox"]:checked::after {
	content: "✔";
	position: absolute;
	top: -1px;
	left: 2.5px;
	color: #fff !important;
}
.btn {
	padding: 12px 16px;
	border: none;
	border-radius: 4px;
	background-color: #a50064;
	font-size: 1.25rem;
	line-height: 1.25rem;
	color: #fff;
	cursor: pointer;
	text-transform: uppercase;
}
.btn#gameNext, .btn#gameNextPlayer {
	display: none;
}
.btn#gameDone {
	display: none;
	background-color: #00a558;
}
.grid {
	display: grid;
}


header {
	padding: 48px;
}
#text-logo {
	margin: auto;
	padding: 12px 0;
	width: fit-content;
	font-family: "Vibur", sans-serif;
	font-size: 4.2rem;
	line-height: 4.2rem;
	letter-spacing: 8px;
	color: #fff;
	text-shadow:
		0 0 4px #fff,
		0 0 6px #fff,
		0 0 42px #a50064,
		0 0 82px #a50064,
		0 0 92px #a50064,
		0 0 102px #a50064,
		0 0 151px #a50064;
	/* animation: pulsate 0.5s ease-in-out infinite alternate; */
}
@media (min-width: 600px) {
	#text-logo {
		padding: 56px 0;
		font-size: 5rem;
		line-height: 5rem;
	}
}
@keyframes pulsate {
	100% {
		text-shadow:
			0 0 4px #fff,
			0 0 11px #fff,
			0 0 40px #a50064,
			0 0 80px #a50064,
			0 0 90px #a50064,
			0 0 100px #a50064,
			0 0 150px #a50064;
	}
	0% {
		text-shadow:
			0 0 4px #fff,
			0 0 10px #fff,
			0 0 30px #a50064,
			0 0 65px #a50064,
			0 0 72px #a50064,
			0 0 86px #a50064,
			0 0 132px #a50064;
	}
}
main {
	margin: auto;
	padding: 0 24px 48px 24px;
	max-width: 648px;
	color: #fff;
}


#hosting, #room, #players, #cards, #settings, #waitingForPlayers, #startOnlineGame {
	display: none;
}
#players #playersCard #playersAdd {
	position: absolute;
	left: 50%;
	bottom: -16px;
	transform: translateX(-50%);
	width: 32px;
	height: 32px;
	line-height: 28px;
	font-size: 2rem;
	cursor: pointer;
	border-radius: 50%;
	background-color: #090909;
	border: 2px solid #fff;
	text-align: center;
}
#network button, #hosting button, #room button, #waitingForPlayers button, #players button {
	margin-top: 48px;
}

.setupChooser {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
.setupChooser label {
	margin: 0;
	padding: 24px;
	text-align: center;
	cursor: pointer;
	border: 2px solid #1e1e1e;
	border-radius: 12px;
	transition: background-color .3s ease-in-out, border-color .3s ease-in-out;
}
.setupChooser label:hover {
	background-color: #090909;
	border-color: #333333;
}
.setupChooser label.active {
	border-color: #666666;
}

#room #roomCode {
	display: block;
	margin-bottom: 12px;
	padding: 8px 12px;
	width: 100%;
	border-radius: 4px;
}

#settings .grid {
	grid-template-columns: 1fr;
}
@media (min-width: 420px) {
	#settings .grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
#settings button {
	margin-top: 48px;
}

#onlinePlayersList {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
#onlinePlayersList div {
	display: flex;
    align-items: center;
    justify-content: center;
	padding: 12px;
	text-align: center;
	background-color: #a50064;
	border-radius: 50%;
	aspect-ratio: 1;
}


#countdown {
	margin-bottom: 24px;
	font-size: 3rem;
	line-height: 3rem;
	font-weight: bold;
}
#countdown.paused {
	transition: opacity .25s;
	animation: blink-animation 1s infinite;
	-webkit-animation: blink-animation 1s infinite;
}
@keyframes blink-animation {
	0% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
@-webkit-keyframes blink-animation {
	0% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}


.cardBox {
	position: relative;
	padding: 48px;
	border-radius: 24px;
	background-color: #1e1e1e;
	box-shadow: 0 4px 8px 0 rgba(50,50,50,0.2);
}
.cardBoxHeadline {
	margin-bottom: 24px;
	font-size: 2.5rem;
	line-height: 2.5rem;
	text-align: center;
}
.cardBoxSubHeadline {
	margin-bottom: 24px;
	font-size: 2rem;
	line-height: 2.5rem;
}
.cardBoxSubHeadline #playerName {
	font-weight: bold;
}
.card-animation {
	margin: 2rem auto;
	aspect-ratio: 2 / 1;
	background-color: transparent;
	perspective: 1000px;
}
.card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	box-shadow: 0 4px 8px 0 rgba(50,50,50,0.2);
	border-radius: 24px;
	transform-style: preserve-3d;
	transition: transform 0.5s;
}
.card-animation.active .card-inner {
	transform: rotateY(180deg);
}
.card {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	width: 100%;
	height: 100%;
	background-color: #1e1e1e;
	border-radius: 24px;
	color: #fff;
	perspective: 0;
	-webkit-perspective: 0;
	-webkit-backface-visibility: hidden;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
	visibility: visible;
	backface-visibility: hidden;
	transform: rotateY(180deg);
}
.card-back {
	position: relative;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #a50064;
	border-radius: 24px;
	cursor: pointer;
	perspective: 0;
	-webkit-perspective: 0;
	-webkit-backface-visibility: hidden;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
	visibility: visible;
	backface-visibility: hidden;
}
.card-back::before {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	width: 96px;
	height: 96px;
	border-radius: 50%;
	border: 6px solid #fff;
	background-image: url(/favicon/android-chrome-512x512.png);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	pointer-events: none;
}
.card-category {
	margin-bottom: 24px;
	font-size: 1rem;
	line-height: 1rem;
	color: #aaa;
}
.card-word {
	font-size: 1.5rem;
	line-height: 2rem;
	text-transform: uppercase;
	word-wrap: break-word;
}
.card-word.small {
	font-size: 1.25rem;
	line-height: 1.6rem;
	text-transform: none;
}
@media (min-width: 600px) {
	.card-category {
		font-size: 1.5rem;
		line-height: 1.5rem;
	}
	.card-word {
		font-size: 2.5rem;
		line-height: 3rem;
	}
}