/* ==========================================================================
   TABLE OF CONTENTS:
   1. Variables & Base Styles
   2. Layout & Container Components
   3. Score Display & Controls
   4. Timer Display & Controls
   5. Card System
   6. Button Styles
   7. Modal & Overlay System
   8. Accordion Components
   9. Toggle Switches
   10. Team Game Components
   11. State-Based Styling
   12. Media Queries
   ========================================================================== */

/* ==========================================================================
   1. Variables & Base Styles
   ========================================================================== */
:root {
	/* Color palette */
	--score-left-active: #FF0000;
	--score-right-active: #00BB00;
	--score-left-inactive: #3C0000;
	--score-right-inactive: #002200;
	--score-initial: #000000;
	/* Modal colors */
	--modal-bg-gradient-start: #ebf8ff;
	--modal-bg-gradient-end: #bee3f8;
	--modal-border-color: #3182ce;
	--button-primary-start: #2c5282;
	--button-primary-end: #3182ce;
	--button-hover-start: #3182ce;
	--button-hover-end: #4299e1;
}

html {
	font-family: Arial, sans-serif;
	display: inline-block;
	text-align: center;
}

body {
	margin-top: 0;
	user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
}

.force-hide {
	display: none !important;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   2. Layout & Container Components
   ========================================================================== */
.content {
	width: 100%;
}

.button-row {
	display: flex;
}

/* Top navigation / DUEL title */
.topnav {
	border: 5px solid black;
	font-weight: bold;
	text-align: center;
	margin: 3px;
	border-radius: 10px;
}

#duelTitle {
	color: red; /* Default color, changes based on connection status */
}

.content-padding {
	height: 130px;
}

.button-spacer {
	height: 5px !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}

/* Status bar styling */
.status-bar {
	border: 5px solid black;
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	margin: 3px;
	border-radius: 10px;
	background-color: black;
	color: white;
}

/* ==========================================================================
   3. Score Display & Controls
   ========================================================================== */
/* Score containers */
.score-container {
	display: flex;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

.score-side {
	width: 50%;
	padding: 3px;
	margin: 0 !important;
}

/* Score display */
.score {
	font-size: 55px;
	font-weight: bold;
	color: white;
	background-color: var(--score-initial);
	border-radius: 10px;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.score_green {
	border: 7px solid green;
	background-color: var(--score-right-inactive);
}

.score_red {
	border: 7px solid red;
	background-color: var(--score-left-inactive);
}

/* Sci-Fi Score Control Buttons */
.sci-fi-buttons-row {
	display: flex;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

.sci-fi-btn {
	flex: 1;
	height: 40px;
	color: #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: bold;
	cursor: pointer;
	border: none;
	background-color: transparent;
	margin: 0;
	padding: 0;
}

.sci-fi-btn-plus {
	border-radius: 7px 0 0 7px;
	margin-right: 1px;
}

.sci-fi-btn-minus {
	border-radius: 0 7px 7px 0;
	margin-left: 1px;
}

.plus-symbol, .minus-symbol {
	font-size: 28px;
	line-height: 1;
}

/* Button styling */
.sci-fi-btn:not(.active) {
	box-shadow: inset 0 1px 1px rgba(100, 100, 100, 0.8), inset 0 -1px 0px rgba(80, 80, 80, 0.2), 0 9px 16px 0 rgba(0, 0, 0, 0.3), 0 4px 3px 0 rgba(0, 0, 0, 0.3), 0 0 0 1px #1a1a1a;
	background-image: linear-gradient(#444, #333);
	text-shadow: 0 0 21px rgba(220, 220, 220, 0.5), 0 -1px 0 #222;
}

	.sci-fi-btn:not(.active):active,
	.sci-fi-btn.active {
		box-shadow: 0 9px 16px 0 rgba(0, 0, 0, 0.1), 0 0 0 1px #222, 0 2px 1px 0 rgba(135, 135, 135, 0.5), inset 0 0 4px 3px rgba(22, 22, 22, 0.2);
		background-image: linear-gradient(#2e2e2e, #444444);
		text-shadow: 0 0 21px rgba(220, 220, 220, 0.5), 0 0 10px rgba(220, 220, 220, 0.4), 0 0 2px #3c3c3c;
		color: #ffffff;
	}

/* ==========================================================================
   4. Timer Display & Controls
   ========================================================================== */
/* Canvas & Timer Display */
.canvas_body {
	margin: 0;
	padding-bottom: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: black;
}

.timer-display {
	border: 5px solid black;
	font-size: 30px;
	font-weight: bold;
	text-align: center;
	margin: 3px;
	border-radius: 10px;
}

.ledtimer {
	height: 100%;
	background-color: black;
	color: white;
	padding: 10px;
	border: none;
	border-radius: 10px;
	margin: 3px;
	justify-content: center;
}

	.ledtimer table {
		width: auto;
		margin: 0 auto;
	}

/* Timer Control Buttons */
.timer-button {
	flex-grow: 1;
	background-color: black;
	color: white;
	font-size: 15px;
	padding: 10px;
	border: none;
	cursor: pointer;
	border-radius: 10px;
	margin: 0 3px;
}

/* Start/Stop Button */
.startStopButton {
	width: 100%;
	height: 80px;
	background-color: black;
	color: white;
	font-size: 40px;
	padding: 10px;
	border: none;
	cursor: pointer;
	border-radius: 10px;
	transition: font-size 0.3s ease, height 0.3s ease;
}

/* Timer adjustment UI */
.timer-adjust-container {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 20px 0;
}

.digit-column {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 5px;
}

.timer-digit {
	font-size: 36px;
	font-weight: bold;
	width: 50px;
	height: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #f0f0f0;
	border-radius: 5px;
	margin: 5px 0;
	border: 2px solid black;
}

.timer-colon {
	font-size: 36px;
	font-weight: bold;
	margin: 0 5px;
	display: flex;
	align-items: center;
	height: 60px;
	padding-bottom: 10px;
}

.digit-btn {
	width: 50px;
	height: 40px;
	font-size: 24px;
	font-weight: bold;
	border-radius: 5px;
	border: none;
	background-color: #6c757d;
	color: white;
	cursor: pointer;
}

	.digit-btn:active {
		background-color: #5a6268;
	}

/* Timer adjustment modal size adjustments */
#timerAdjustModal .digit-btn {
	width: 40px;
	height: 32px;
	font-size: 19px;
}

#timerAdjustModal .timer-digit {
	width: 40px;
	height: 48px;
	font-size: 29px;
	margin: 4px 0;
}

#timerAdjustModal .digit-btn,
#timerAdjustModal .timer-digit {
	box-sizing: border-box;
}

/* Timer adjustment action buttons */
.timer-adjust-buttons {
	display: flex;
	justify-content: center;
	margin-top: 20px;
	gap: 30px;
}

#updateTimerBtn, #cancelTimerBtn {
	padding: 10px 20px;
	font-size: 16px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
	width: 160px;
	background: linear-gradient(to bottom, #8a9196 0%, #7a8188 50%, #637381 100%);
	color: white;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

	#updateTimerBtn:hover, #cancelTimerBtn:hover {
		background: linear-gradient(to bottom, #7d8489 0%, #6c747a 50%, #576573 100%);
	}

	#updateTimerBtn:active, #cancelTimerBtn:active {
		background: linear-gradient(to bottom, #637381 0%, #7a8188 50%, #8a9196 100%);
		box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
	}

/* ==========================================================================
   5. Card System
   ========================================================================== */
/* Card buttons */
.card-buttons {
	display: flex;
	width: 100%;
}

.card-button {
	flex: 1;
	color: black;
	padding: 8px;
	border: 3px solid black;
	cursor: pointer;
	font-size: 15px;
	font-weight: bold;
	border-radius: 10px;
	margin: 3px;
}

.yellow-card {
	background: linear-gradient(white, yellow);
}

.red-card {
	background: linear-gradient(white, red);
}

.black-card {
	background: linear-gradient(white, black);
}

/* Small Card Display Styles */
.small-card,
.small-p-card,
.small-priority-card {
	width: 27px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	display: inline-block;
	font-size: 20px;
	border-radius: 8px;
	vertical-align: middle;
	border: 2px solid black;
}

.small-priority-card {
	background-color: blue;
	color: white;
}

/* Card color variation classes */
.yellow-normal {
	background-color: yellow;
	color: black;
}

.red-normal {
	background-color: red;
	color: black;
}

.black-normal {
	background-color: black;
	color: white;
}

.yellow-p {
	background-color: yellow !important;
	color: black;
}

.red-p {
	background-color: red !important;
	color: black;
}

.black-p {
	background-color: black !important;
	color: white;
}

/* Card Assignment Styles */
.assignment-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 20px;
}

	.assignment-buttons button {
		flex: 1;
		min-width: 0;
		padding: 15px;
		font-size: 24px;
	}

#assignRedButton {
	background: linear-gradient(145deg, #c53030, #e53e3e);
}

	#assignRedButton:hover {
		background: linear-gradient(145deg, #e53e3e, #f56565);
	}

#assignGreenButton {
	background: linear-gradient(145deg, #2f855a, #38a169);
}

	#assignGreenButton:hover {
		background: linear-gradient(145deg, #38a169, #48bb78);
	}

.cancel-container {
	display: flex;
	justify-content: center;
	margin-top: 15px;
	width: 100%;
}

#cancelAssignButton {
	background: linear-gradient(145deg, #718096, #4a5568);
	margin-top: 15px;
	width: 80%;
}

	#cancelAssignButton:hover {
		background: linear-gradient(145deg, #4a5568, #2d3748);
	}

/* ==========================================================================
   6. Button Styles
   ========================================================================== */
/* Reset Button */
.reset_button {
	background-color: #000;
	color: #fff;
	font-size: 23px;
	padding: 10px;
	cursor: pointer;
	border-radius: 10px;
	margin: 0;
	width: 100%;
	height: 60px;
	display: block;
	box-sizing: border-box;
	transition: height 0.3s ease, font-size 0.3s ease;
}

/* ==========================================================================
   7. Modal & Overlay System
   ========================================================================== */
/* Unified Modal Styling */
.modal {
	display: none;
	position: fixed;
	z-index: 100;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.7);
	padding-top: 60px;
	text-align: center;
	animation: fadeIn 0.3s;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.modal-content {
	background: linear-gradient(145deg, var(--modal-bg-gradient-start), var(--modal-bg-gradient-end));
	margin: 5% auto;
	padding: 30px;
	padding-bottom: 20px;
	border: none;
	width: 80% !important;
	max-width: 600px;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	animation: slideDown 0.4s;
	position: relative;
	color: #1a1a1a;
	border-top: 8px solid var(--modal-border-color);
}

#changeLogModal .modal-content,
#boutProgressModal .modal-content {
	overflow: visible; /* Allows child elements like the content container to scroll */
}

/* This is the container that will actually scroll */
#changeLogContent, .bout-content-container {
	max-height: 60vh; /* Set a max height relative to the viewport */
	overflow-y: auto; /* Enable vertical scrolling when content exceeds max-height */
	/* This improves scrolling on touch devices */
	-webkit-overflow-scrolling: touch;
}

@keyframes slideDown {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.modal-content h2,
.modal-content h3 {
	margin-top: 0;
	color: #1a1a1a;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-weight: 600;
	font-size: 32px;
	margin-bottom: 20px;
}

.modal-content p {
	font-size: 24px;
	color: #333;
	margin-bottom: 30px;
	line-height: 1.4;
}

.modal-button {
	background: linear-gradient(145deg, var(--button-primary-start), var(--button-primary-end));
	color: white;
	border: none;
	padding: 12px 25px;
	margin: 10px;
	font-size: 20px;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s;
	font-weight: 600;
	min-width: 120px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

	.modal-button:hover {
		background: linear-gradient(145deg, var(--button-hover-start), var(--button-hover-end));
		transform: translateY(-2px);
		box-shadow: 0 6px 8px rgba(0,0,0,0.15);
	}

	.modal-button:active {
		transform: translateY(0);
		box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	}

.modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: 28px;
	font-weight: bold;
	color: #777;
	cursor: pointer;
	transition: color 0.2s;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	border-radius: 50%;
}

	.modal-close:hover {
		color: #333;
		background-color: rgba(0,0,0,0.05);
	}

/* Config Modal Styling */
#configModal {
	padding-top: 20px;
}

	#configModal .modal-content {
		max-height: 85vh;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		position: relative;
		padding-bottom: 0;
	}

		#configModal .modal-content h2 {
			margin-top: 0;
			padding-bottom: 15px;
			border-bottom: 1px solid rgba(0,0,0,0.1);
			flex-shrink: 0;
		}

/* Full-Screen Overlays */
.full-screen-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: transparent;
	z-index: 1000;
	border: 10px solid white;
	border-radius: 30px;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
}

.nc-overlay {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

/* Color-specific overlays */
#yellowOverlay {
	background-color: yellow;
}

#redOverlay {
	background-color: red;
}

#blackOverlay {
	background-color: black;
}

/* ==========================================================================
   8. Accordion Components
   ========================================================================== */
.accordion-container {
	flex: 1;
	overflow-y: auto;
	padding-right: 5px;
	margin-bottom: 0;
	padding-bottom: 80px;
}

.accordion-section {
	margin-bottom: 10px;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 10px;
	overflow: hidden;
}

.accordion-header {
	padding: 15px;
	background-color: rgba(0,0,0,0.03);
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background-color 0.3s;
}

	.accordion-header:hover {
		background-color: rgba(0,0,0,0.06);
	}

	.accordion-header.active {
		background-color: rgba(49, 130, 206, 0.1);
		border-bottom: 1px solid rgba(0,0,0,0.1);
	}

	.accordion-header h3 {
		margin: 0;
		font-size: 18px;
		font-weight: 600;
	}

.accordion-icon {
	font-size: 12px;
	transition: transform 0.3s;
}

.accordion-content {
	padding: 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s ease, padding 0.3s ease;
}

.accordion-header.active + .accordion-content {
	padding: 15px;
	max-height: 1000px;
}

/* ==========================================================================
   9. Toggle Switches
   ========================================================================== */
.toggle-container {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 15px 0;
	width: 100%;
}

.toggle-switch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	user-select: none;
	padding: 8px 15px;
	border-radius: 8px;
	transition: background-color 0.2s;
	position: relative;
	margin-bottom: 2px;
}

	.toggle-switch:hover {
		background-color: rgba(0,0,0,0.05);
	}

.toggle-label {
	font-size: 16px;
	flex: 2;
	text-align: left;
	margin-right: 10px;
}

.toggle-control {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

/* Slide toggle style */
input[role=switch] {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	display: inline-block;
	width: 2.4em;
	height: 1.4em;
	margin: 0;
	box-sizing: content-box;
	padding: 0;
	border: none;
	border-radius: .7em;
	background: rgba(160,160,160,0.7);
	box-shadow: 0 .15em .25em rgba(0,0,0,0.5) inset, 0 -.5px 0 rgba(255,255,255,0.2) inset;
	transition: background-color 250ms ease, box-shadow 250ms ease;
	font-size: 100%;
	user-select: none;
	outline: none;
}

	input[role=switch]::before {
		content: '';
		display: flex;
		align-content: center;
		justify-content: center;
		position: absolute;
		width: 1em;
		height: 1em;
		left: 0;
		top: 0;
		background: rgba(240,240,240,0.9);
		box-shadow: 0 1px 1px #fff inset, 0 .2em .5em rgba(255,255,255,0.7) inset, 0 -.2em .3em rgba(0,0,0,0.2) inset, 0 .05em .25em rgba(0,0,0,0.7);
		border-radius: 50%;
		transform: translate(20%, 20%);
		transition: transform 250ms ease;
		color: rgba(0,0,0,0.3);
		line-height: 1;
	}

	input[role=switch]:focus::before {
		background: rgba(255,255,255,0.9);
	}

	input[role=switch]:checked {
		background-color: #3c82fa;
	}

	input[role=switch]:focus-visible {
		box-shadow: 0 .15em .25em rgba(0,0,0,0.5) inset, 0 -.5px 0 rgba(255,255,255,0.2) inset, 0 0 0 2px rgba(255,255,255,0.8), 0 0 0 4px #3c82fa;
	}

	input[role=switch]:checked::before {
		transform: translate(120%, 20%);
	}

	input[role=switch]:disabled:before {
		opacity: 0.4;
	}

	input[role=switch]::before {
		background: radial-gradient(#3c82fa 10%, rgb(240,240,240) 20%);
	}

	input[role=switch]:focus::before {
		background: radial-gradient(#3c82fa 10%, rgb(255,255,255) 20%);
	}

/* ==========================================================================
   10. Team Game Components
   ========================================================================== */
/* Bout Progress Modal */
#boutProgressModal {
	padding-top: 20px;
}

	#boutProgressModal .modal-content {
		max-height: 85vh;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		position: relative;
		padding-bottom: 20px;
	}

		#boutProgressModal .modal-content h2,
		#boutProgressModal .modal-content #boutProgressScore {
			margin-top: 0;
			padding-bottom: 2px; /* Reduced padding */
			flex-shrink: 0;
			margin-bottom: 4px; /* Reduced bottom margin */
		}

		#boutProgressModal .modal-content h2 {
			margin-bottom: 4px; /* Reduced from 8px */
		}

	#boutProgressModal #boutProgressScore {
		margin-bottom: 2px; /* Very small bottom margin */
	}

.bout-content-container {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 5px;
	margin-bottom: 0;
	padding-top: 0; /* No top padding */
	padding-bottom: 80px;
	width: 100%;
	box-sizing: border-box;
}

/* Bout table styling */
.bout-table {
	width: 100%;
	margin: 2px 0 20px 0; /* Reduced top margin from 8px to 2px */
	border: 2px solid #3182ce;
	border-radius: 8px;
	overflow: hidden;
}

.bout-table-header {
	display: flex;
	background-color: #3182ce;
	color: white;
	font-weight: bold;
	padding: 10px 0;
	font-size: 12px;
}

.bout-row {
	display: flex;
	border-bottom: 1px solid #e2e8f0;
	padding: 8px 0;
}

	.bout-row:nth-child(odd) {
		background-color: #f0f5ff;
	}

	.bout-row:nth-child(even) {
		background-color: white;
	}

.bout-column {
	padding: 0 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	box-sizing: border-box;
	word-break: break-word;
}

.bout-number {
	width: 15%; /* Reduced from 25% */
}

.bout-matchup {
	width: 45%; /* Increased from 25% */
}

.bout-score {
	width: 20%; /* Reduced from 25% */
}

.bout-running {
	width: 20%; /* Reduced from 25% */
}

/* Default horizontal layout for matchups */
.bout-matchup {
	flex-direction: row;
	justify-content: center;
	align-items: center;
	height: 100%;
}

	/* Stacked layout for custom/longer player names */
	.bout-matchup.stacked {
		flex-direction: column;
		justify-content: space-between;
		min-height: 60px;
	}

.player-left, .player-right {
	display: inline;
	font-weight: bold;
	text-transform: uppercase; /* Capitalize player names in side-by-side layout */
}

.vs-center {
	margin: 0 4px;
	font-style: italic;
	color: #666;
}

/* Stacked format components */
.player-top {
	border-bottom: 1px solid #ccc;
	width: 100%;
	padding: 4px 0;
	font-weight: bold;
	text-transform: uppercase; /* Capitalize player names in stacked layout - top */
}

.vs-middle {
	font-style: italic;
	padding: 4px 0;
	color: #666;
}

.player-bottom {
	border-top: 1px solid #ccc;
	width: 100%;
	padding: 4px 0;
	font-weight: bold;
	text-transform: uppercase; /* Capitalize player names in stacked layout - bottom */
}

/* Next bout container */
.next-bout-container {
	background-color: #e6f0ff;
	border: 2px solid #3182ce;
	border-radius: 8px;
	padding: 10px;
	margin: 20px 0;
	width: 100%;
	box-sizing: border-box;
}

#nextBoutText {
	font-weight: bold;
	font-size: 18px;
	margin: 0;
	color: #333;
}

#boutProgressScore {
	font-size: 20px;
	margin-top: 0;
}

/* Team Setup Styling */
.team-setup-container {
	margin-bottom: 20px;
	padding: 10px;
	border-radius: 8px;
	background-color: rgba(0, 0, 0, 0.05);
}

	.team-setup-container h4 {
		margin-top: 0;
		margin-bottom: 10px;
		font-size: 18px;
		font-weight: bold;
	}

.player-input-container {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
}

	.player-input-container label {
		flex: 0 0 80px;
		text-align: right;
		margin-right: 10px;
		font-weight: bold;
	}

	.player-input-container input {
		flex: 1;
		padding: 8px;
		border: 1px solid #ccc;
		border-radius: 4px;
		font-size: 16px;
	}

/* ==========================================================================
   11. State-Based Styling
   ========================================================================== */
/* Timer running state */
.timer-running-mode .sci-fi-buttons-row {
	display: none !important;
}

.timer-running-mode .button-spacer {
	display: none !important;
}

.timer-running-mode .ledtimer {
	margin-top: 0 !important;
}

/* Empty container handling */
.timer-running-mode .score-container:empty,
.timer-running-mode .score-side:empty {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 5px !important;
}

/* Game over mode */
.game-over-mode .reset_button {
	height: 200px;
	font-size: 40px;
}

/* Hide buttons in team game mode */
body.team-game-mode .rest-button,
body.team-game-mode .priority-button {
	display: none !important;
}

/* ==========================================================================
   12. Media Queries
   ========================================================================== */
/* Adjust height based on viewport size */
@media screen and (min-height: 700px) {
	.startStopButton {
		height: 150px;
	}

	.button-spacer {
		height: 170px;
	}
}

@media screen and (min-height: 900px) {
	.startStopButton {
		height: 200px;
	}

	.button-spacer {
		height: 220px;
	}
}

/* Mobile optimization */
@media (max-width: 768px) {
	.modal-content {
		width: 90%;
		padding: 20px;
	}

		.modal-content h2,
		.modal-content h3 {
			font-size: 24px;
		}

		.modal-content p {
			font-size: 18px;
		}

	.modal-button {
		font-size: 18px;
		padding: 10px 20px;
	}

	.assignment-buttons button {
		font-size: 20px;
		padding: 12px;
	}

	/* Adjust table column sizes for smaller screens */
	.bout-column {
		padding: 0 5px;
		font-size: 14px;
	}
}

.contact-info {
	font-size: 16px; /* Makes the text a bit smaller */
	color: #4a5568; /* A slightly muted color */
	margin-top: 25px; /* Adds some space above it */
	margin-bottom: 25px; /* Adds space between it and the button */
}

	.contact-info a {
		color: #3182ce; /* Makes the link color match your theme */
		text-decoration: none; /* Removes the underline */
	}

		.contact-info a:hover {
			text-decoration: underline; /* Adds underline on hover for better UX */
		}

#cancelGameType {
	background: linear-gradient(145deg, #718096, #4a5568);
	width: 80%;
}

	#cancelGameType:hover {
		background: linear-gradient(145deg, #4a5568, #2d3748);
	}

/* Styling for the "Change log" link in the Welcome Modal */
.change-log-link {
	margin-top: -10px; /* Pull it a bit closer to the version number */
	margin-bottom: 25px;
}

#showChangeLog {
	font-size: 16px;
	color: #3182ce;
	text-decoration: none;
}

	#showChangeLog:hover {
		text-decoration: underline;
	}


/* Styling for the content area inside the new Change Log modal */
#changeLogContent {
	text-align: left; /* Align list items to the left */
	margin: 20px 0;
	max-height: 50vh; /* Make the content scrollable if it's too long */
	overflow-y: auto;
	padding-right: 15px; /* Add some padding for the scrollbar */
}

	#changeLogContent h3 {
		text-align: center;
		margin-top: 0;
	}

	#changeLogContent ul {
		padding-left: 25px; /* Indent the list */
	}

	#changeLogContent li {
		margin-bottom: 12px; /* Add space between list items */
		line-height: 1.4;
	}

/* ==========================================================================
   Styles for Quick Select Sliding Buttons
   ========================================================================== */
.quick-select-container {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgba(0,0,0,0.1);
	border-radius: 12px;
	padding: 5px;
	margin: 20px 0;
}

	.quick-select-container input[type="radio"] {
		display: none; /* Hide the actual radio button */
	}

	.quick-select-container label {
		flex: 1; /* Make all buttons take equal space */
		padding: 15px 10px;
		margin: 0;
		text-align: center;
		font-size: 18px;
		font-weight: 600;
		color: #333;
		background-color: transparent;
		border-radius: 8px;
		cursor: pointer;
		transition: all 0.3s ease;
		user-select: none;
	}

	/* Style for the selected ("checked") button */
	.quick-select-container input[type="radio"]:checked + label {
		background-color: #3182ce; /* Use your theme's primary color */
		color: white;
		box-shadow: 0 2px 10px rgba(49, 130, 206, 0.5);
		transform: translateY(-2px);
	}

/* Styling for the new confirmation buttons */
.modal-button.yes-button {
	background: linear-gradient(145deg, #2f855a, #38a169); /* Green */
}

	.modal-button.yes-button:hover {
		background: linear-gradient(145deg, #38a169, #48bb78);
	}

.modal-button.no-button {
	background: linear-gradient(145deg, #c53030, #e53e3e); /* Red */
}

	.modal-button.no-button:hover {
		background: linear-gradient(145deg, #e53e3e, #f56565);
	}