body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(230, 230, 230, 0.8);
	z-index: -1;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	background: #e6e6e6 url("images/kubecon-london.png") right center/cover
		no-repeat;
}

.caption-area {
	display: flex;
	flex-wrap: wrap;

	width: 640px;
	height: 4em; /* Adjust to twice your line-height */
	line-height: 1.5em; /* Adjust as needed */
	overflow: hidden; /* Hide content that overflows */
	font-family: sans-serif; /* Example font */
	/* padding: 5px; Add some padding */
	border: inset; /* Optional border */
	border-color: #0c62fb;
	white-space: pre-wrap; /* Preserve whitespace and wrap text */
	background-color: white;
}

#hanging-letters {
	height: 1.5em;
}

#caption-area {
	height: 1.5em;
	margin-right: 3em;
	font-size: 2em;
}

.active {
	background-color: #0c62fb;
	color: white;
}

button {
	color: #0c62fb;
	margin: 2px;
	/* Add these properties to maintain consistent shape */
	border: 1px solid #0c62fb;
	border-radius: 0; /* Prevents rounded corners if that's happening */
	outline: none; /* Removes the focus outline */
	padding: 6px 12px; /* Consistent padding */
	background: none;
	transition: all 0.2s ease; /* Smooth transitions between states */
}

/* Style for hover state */
button:hover {
	background-color: #002faf;
	color: #deff4d;
}

/* Style for active (pressed) state */
button:active {
	background-color: #002faf;
	color: white;
	/* background-color: rgba(12, 98, 251, 0.2); Slightly darker when pressed */
	transform: translateY(1px); /* Optional: slight push down effect */
}

/* Style for focus state - for accessibility */
button:focus {
	outline: 2px solid #0c62fb;
	outline-offset: 1px;
}

#canvas {
	border: 4px solid transparent;
	border-image: linear-gradient(
		to right,
		#0c62fb 0%,
		#002faf 20%,
		#1be1f2 40%,
		#ff4d5f 60%,
		#c7b9ff 80%,
		#deff4d 100%
	);
	border-image-slice: 1;
	border-image-repeat: stretch;
	margin-bottom: 4px;
	background-color: darkgrey;
}
