@font-face {
	font-family: 'PhillBckExCndMediumBackslanted';
	src: url('fonts/PhillBckExCndMediumBackslanted-930909558.otf') format('opentype');
	font-style: normal;
	font-weight: normal;
	text-rendering: optimizeLegibility;
}

@font-face {
	font-family: 'Inter';
	src: url('fonts/Inter.ttf') format('truetype');
	font-style: normal;
	font-weight: 100 900;
	font-stretch: normal;
	text-rendering: optimizeLegibility;
}

@font-face {
	font-family: 'PhillExtraCondensedMedium';
	src: url('fonts/PhillExtraCondensedMedium-930909652.otf') format('opentype');
	font-style: normal;
	font-weight: normal;
	text-rendering: optimizeLegibility;
}

/* Allgemeine Styles */
body {
	font-family: 'Inter', sans-serif;
	margin: 0;
	padding: 0;
	background-color: black;
	color: white;
	overflow-x: hidden;
}

.countdown-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 10px;
	z-index: 9999;
	background-color: #333;
	transition: width 23s linear;
}

#flashOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9998;
	pointer-events: none;
	transition: opacity 0.3s ease;
	display: none;
}

h1,
h2,
h3 {
	font-family: 'PhillBckExCndMediumBackslanted', sans-serif;
	font-weight: normal;
}

/* Button Container für Einstellungen */
.button-container {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 100;
	display: flex;
	gap: 10px;
}

.settings-button {
	background-color: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.3);
	padding: 8px 12px;
	cursor: pointer;
	font-size: 11px;
	border-radius: 5px;
	font-family: 'Inter', sans-serif;
	transition: all 0.3s ease;
}

.settings-button:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

/* Container für Kategorien */
.container {
	display: flex;
	justify-content: space-between;
	flex-wrap: nowrap;
	padding: 30px;
	gap: 20px;
	overflow-x: auto;
}

/* Kategorien und Buttons */
.category {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	flex: 1;
	min-width: 150px;
}

.category h2 {
	font-family: 'PhillBckExCndMediumBackslanted', sans-serif;
	font-size: 64px;
	letter-spacing: 1px;
	font-weight: normal;
	margin-bottom: 10px;
	color: white;
	text-align: center;
}

.box {
	font-family: 'PhillBckExCndMediumBackslanted', sans-serif;
	font-size: 64px;
	letter-spacing: 1px;
	width: 100%;
	height: 12vh;
	min-height: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: all 0.3s ease;
	border-radius: 5px;
	position: relative;
	transform-style: preserve-3d;
	backface-visibility: hidden;
}

.box:hover:not(.clicked) {
	transform: scale(1.05);
	opacity: 0.9;
}

.box.clicked {
	background-color: #333 !important;
	opacity: 0.25;
	cursor: not-allowed;
}

.box.flipping {
	animation: flipBox 0.6s ease-in-out;
}

@keyframes flipBox {
	0% {
		transform: rotateY(0deg) scale(1);
	}

	50% {
		transform: rotateY(90deg) scale(1.1);
	}

	100% {
		transform: rotateY(0deg) scale(1);
	}
}

/* Frage-Modal */
.question-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	z-index: 1000;
	display: none;
	justify-content: center;
	align-items: center;
	animation: fadeIn 0.3s ease;
}

.question-modal.active {
	display: flex;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.question-content {
	/* background-color: #1a1a1a; */
	/* border: 2px solid white; */
	/* border-radius: 10px;
	padding: 40px; */
	max-width: 900px;
	width: 90%;
	text-align: left;
	position: relative;
	animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
	from {
		transform: scale(0.8);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

.question-header {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	margin-bottom: 15px;
	color: white;
	opacity: 0.7;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: center;
}

.question-text {
	font-family: 'Inter', sans-serif;
	font-size: 40px;
	font-weight: 280;
	margin-bottom: 40px;
	color: white;
	line-height: 1.4;
	text-align: center;
}

.answers-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 30px;
}

.answer-row {
	display: flex;
	gap: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
	align-items: stretch;
}

.answer-row:hover {
	opacity: 0.8;
	transform: translateX(10px);
}

.answer-letter-box {
	font-family: 'PhillExtraCondensedMedium', sans-serif;
	font-size: 60px;
	width: 80px;
	min-height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	border-radius: 5px;
	flex-shrink: 0;
	/* Hintergrundfarbe wird per JavaScript gesetzt (Kategorienfarbe) */
}

.answer-box {
	font-family: 'Inter', sans-serif;
	font-size: 38px;
	font-weight: 280;
	padding: 20px;
	color: white;
	border-radius: 5px;
	flex: 1;
	display: flex;
	align-items: center;
	min-height: 80px;
	box-sizing: border-box;
	background-color: #333;
}

.answer-row.incorrect .answer-letter-box,
.answer-row.incorrect .answer-box {
	background-color: #333 !important;
}

.question-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	margin-top: 30px;
}

.action-buttons-row {
	display: flex;
	justify-content: center;
	gap: 20px;
}

.action-buttons-row[style*="display: none"] {
	display: none !important;
}

.action-button {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 260;
	padding: 10px 20px;
	background-color: #333;
	color: #ddd;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.3s ease;
	outline: none;
	box-shadow: none;
}

.action-button:hover {
	background-color: #444;
	transform: scale(1.05);
}

.action-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.start-button {
	background-color: #333;
	color: #ddd;
}

.start-button:hover {
	background-color: #444;
}

.cancel-button {
	background-color: #333;
	color: #ddd;
}

.cancel-button:hover {
	background-color: #444;
}

/* Spieleranzeige */
.player-container {
	display: flex;
	justify-content: space-around;
	padding: 20px 40px;
	gap: 20px;
	flex-wrap: wrap;
}

.player {
	text-align: center;
	min-width: 200px;
}

.player-name {
	font-family: 'PhillBckExCndMediumBackslanted', sans-serif;
	font-size: 64px;
	letter-spacing: 1px;
	font-weight: normal;
	/* margin-bottom: 15px; */
	cursor: pointer;
	transition: all 0.3s ease;
	/* padding: 10px; */
	border-radius: 5px;
}

.player-name:hover {
	background-color: rgba(255, 255, 255, 0.1);
	transform: scale(1.05);
}

.score-box {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

.score-button {
	background-color: black;
	color: white;
	border: 1px solid white;
	font-size: 20px;
	cursor: pointer;
	border-radius: 50px;
	height: 50px;
	width: 50px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	font-family: 'Inter', sans-serif;
}

.score-button:hover {
	background-color: #333;
	transform: scale(1.1);
}

.score-display {
	font-family: 'PhillBckExCndMediumBackslanted', sans-serif;
	font-size: 64px;
	letter-spacing: 1px;
	font-weight: normal;
	min-width: 60px;
	text-align: center;
}

/* Backend Styles */
.backend-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px;
}

.backend-container h1 {
	font-family: 'PhillBckExCndMediumBackslanted', sans-serif;
	font-size: 48px;
	margin-bottom: 30px;
}

.form-section {
	margin-bottom: 40px;
	padding: 30px;
	background-color: #1a1a1a;
	border-radius: 10px;
	border: 1px solid #333;
}

.form-section h2 {
	font-family: 'PhillBckExCndMediumBackslanted', sans-serif;
	font-size: 32px;
	margin-bottom: 20px;
	color: white;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	display: block;
	margin-bottom: 8px;
	color: white;
}

.form-group input[type="text"],
.form-group textarea {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	width: 100%;
	padding: 10px;
	background-color: #333;
	color: white;
	border: 1px solid #555;
	border-radius: 5px;
	box-sizing: border-box;
}

.form-group textarea {
	min-height: 100px;
	resize: vertical;
}

.form-group input[type="color"] {
	width: 60px;
	height: 40px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

.color-input-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.color-input-group input[type="text"] {
	width: 100px;
}

.question-group {
	background-color: #0a0a0a;
	padding: 20px;
	border-radius: 5px;
	margin-bottom: 15px;
	border: 1px solid #333;
}

.question-group h3 {
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	margin-bottom: 15px;
	color: #aaa;
}

.answer-options {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 10px;
	margin-top: 10px;
}

.answer-option {
	display: flex;
	flex-direction: column;
}

.answer-option label {
	font-size: 12px;
	margin-bottom: 5px;
}

.answer-option input[type="radio"] {
	margin-right: 5px;
}

.save-button {
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	padding: 15px 40px;
	background-color: white;
	color: black;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-right: 10px;
}

.save-button:hover {
	background-color: #ddd;
	transform: scale(1.05);
}

.reset-button {
	background-color: #f44336;
	color: white;
}

.reset-button:hover {
	background-color: #d32f2f;
}

.back-button {
	background-color: #666;
	color: white;
}

.back-button:hover {
	background-color: #555;
}

/* Responsive */
@media (max-width: 768px) {
	.container {
		padding: 60px 20px 20px 20px;
		gap: 10px;
	}

	.category h2 {
		font-size: 20px;
	}

	.box {
		font-size: 20px;
		height: 10vh;
		min-height: 80px;
	}

	.question-text {
		font-size: 24px;
	}

	.answer-button {
		font-size: 18px;
		padding: 15px;
	}
}