@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');

:root {
	--correct-color: #21af29;
	--incorrect-color: #ff2129;
	--yellow-color: #df9f10;
	--blue-color: #0698ba;
	--purple-color: #54008a;
	--black-color: #19202c;
}

body {
	color: white;
	user-select: none;
	font-family: "Noto Sans", sans-serif;
}

.hidden {
	display: none;
}

.screen {
	width: 100%;
	height: 100%;
	text-align: center;
	position: absolute;
	top: 0;
	left: 0;
}

a {
	color: var(--blue-color);
	text-decoration: none;
	font-weight: bold;
	transition: 0.2s;
}

a:not([class]):hover {
	color: var(--incorrect-color);
}

.nomargin {
	margin: 0;
}

.correct, .answer-3 {
	background: var(--correct-color);
}

.incorrect, .answer-0 {
	background: var(--incorrect-color);
}

.blue, .answer-1 {
	background: var(--blue-color);
}

.yellow, .answer-2 {
	background: var(--yellow-color);
}

.purple {
	background: var(--purple-color);
}

@keyframes cyclecolors {
	0% {
		background: var(--blue-color);
	}
	25% {
		background: var(--correct-color);
	}
	50% {
		background: var(--yellow-color);
	}
	75% {
		background: var(--incorrect-color);
	}
	100% {
		background: var(--blue-color);
	}
}

.cyclecolors {
	animation: cyclecolors 5.5s infinite;
}

.alert_screen {
	font-size: 2.5em;
	font-size: max(min(10vw, 2.5em), 25px);
}

.screen > div:not([class]) {
	transform: translate(-50%, -50%);
	top: 50%;
	left: 50%;
	position: fixed;
}

#answer-container {
	width: calc(100% - 0.8em);
	height: calc(100% - 0.8em);
}

#answer-container, .answer_cont {
	padding: 10px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5em;
}

.answer_cont {
	height: 75%;
}

.ohidden {
	opacity: 0;
	pointer-events: none;
}

.answerbutton {
	transition: 0.3s;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
	cursor: pointer;
	font-size: 25px;
}

.answerbutton:hover, .button:hover {
	filter: brightness(1.15);
}

.form {
	background: white;
	border-radius: 6px;
	padding: 15px;
}

#screen-joingame > div {
	max-width: 88%;
}

input {
	color: var(--black-color);
	text-align: center;
	margin-bottom: 10px;
	font-size: 1.45em;
	outline: 0;
	transition: 0.2s;
	border: 0.125rem solid #69606c;
	border-radius: 4px;
	box-sizing: border-box;
	max-width: 100%;
}

input:focus {
	border: 0.125rem solid var(--black-color);
}


input[type=checkbox] {
	width: 25px;
	height: 25px;
	border: 0.125rem solid white;
	border-radius: 5px;
	display: inline-block;
	cursor: pointer;
}

label {
	color: var(--black-color);
	font-size: 1.4em;
}

.left-text {
	text-align: left;
}

.numberinput {
	width: 2em !important;
}

.answerinput, .answerinput:focus {
	width: 80%;
	background: transparent;
	color: white;
	border: none;
	border-radius: 0;
}

.answerinput:focus {
	border-bottom: 0.125rem solid white;
}

.blacktext {
	color: #21202c;
}

.button {
	font-size: 16px;
	display: block;
	outline: 0;
	color: white;
	text-decoration: none;
	border-radius: 4px;
	transition: 0.1s;
	text-align: center;
	background: #21202c;
	cursor: pointer;
	padding: 10px;
}

:not(#playernames) > .button:not(:last-child) {
	margin-bottom: 10px;
}

.controlbutton {
	position: fixed;
	top: 30px;
	right: 30px;
}

.smalltext {
	font-size: 23px;
}

.gamepin {
	background: white;
	color: var(--black-color);
	border-radius: 6px;
	padding: 5px;
}

#playernames {
	padding: 100px 200px;
	display: flex;
	flex-wrap: wrap;
	gap: 35px;
	justify-content: space-between;
}

#playernames > div {
	font-size: 25px;
	animation: popout 0.3s;
}

@keyframes popout {
	0% {
		transform: scale(0);
	}
	75% {
		transform: scale(1.3);
	}
	100% {
		transform: scale(1);
	}
}
