/* ADDED TO PREVIOUS RULES*/

.audio-offset-control {
	text-align: center;
	margin-bottom: 15px;
	margin-top: 25px;
	display: none;
}

.audio-offset-control label {
	display: inline-block;
	color: #ccc;
	margin-right: 10px;
}

.audio-offset-control input {
	background-color: #333;
	color: #ccc;
	padding: 5px;
	border: 1px solid #444;
	border-radius: 4px;
	max-width: 75px;
	margin-bottom: 15px;
	text-align: center;
}

/* existing rules unchanged */

body {
	font-family: 'Roboto Mono', monospace;
	background-color: #3f505a;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100vh;
	color: #fff;
	overflow-x: hidden;
	background-image: url('background_image.jpg');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
}
.container {
	width: 80%;
	max-width: 1200px;
	padding: 20px;
	/* background-color: rgba(255, 255, 255, 0.1); */
	border-radius: 10px;
	margin-top: 100px;
	margin-bottom: 50px;
	/* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); */
	backdrop-filter: blur(8px);
	position: relative;
	z-index: 1;
}

.title-container {
	text-align: center;
	margin-bottom: 30px;
}
.title-container h1 {
	font-size: 2.5em;
	font-weight: 700;
	margin-bottom: 10px;
	color: #fff;
}
.title-container p {
	font-size: 1.1em;
	color: #aaa;
	font-style: italic;
}
.history-container {
	display: flex;
	flex-direction: column;
	margin-bottom: 30px;
	align-items: center;
}
.historical-call {
	display: flex;
	align-items: center;
	gap: 20px;
}
.image-container {
	display: inline-block;
	position: relative;
}
.historical-image {
	max-width: 300px;
	max-height: 300px;
	filter: sepia(100%);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
	display: block;
	object-fit: contain;
	border-radius: 50%;
}
.historical-image:hover {
	transform: scale(1.1);
	filter: sepia(100%) brightness(1.2) contrast(1.1);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Added hover for transform with movement*/
.historical-image {
	transform: scale(1);
	transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.audio-controls {
	position: absolute;
	bottom: -0px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	display: flex;
	gap: 16px;
	z-index: 2;
}
.audio-controls button {
	padding: 8px 12px;
	background-color: rgba(255, 255, 207, 0.8);
	/* color: #fff; */
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s ease;
	backdrop-filter: blur(5px);
}
.audio-controls button:hover {
	background-color: rgba(255, 255, 255, 0.3);
}
.text-box-bell {
	border: 2px solid #666;
	padding: 15px;
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.05);
	width: 450px;
	backdrop-filter: blur(5px);
	position: relative;
	z-index: 1;
}
.historical-note {
	font-size: 1.1em;
	line-height: 1.6;
	color: #ccc;
	text-align: center;
	font-style: italic;
}
.modern-call-container {
	display: flex;
	justify-content: center;
	flex-direction: column;
	padding: 20px;
	box-sizing: border-box;
}
.modern-call-transcript {
	display: flex;
	flex-direction: column;
	gap: 15px;
	max-width: 100%;
}
.speech-bubble {
	padding: 15px;
	border-radius: 20px;
	max-width: 80%;
	position: relative;
	background-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(5px);
	color: #fff;
	transition: transform 0.3s ease-in-out;
	cursor: pointer;
}
.speech-bubble:hover {
	transform: translateX(5px);
}
.speech-bubble.playing {
	background-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
	transform: translateX(5px) scale(1.02);
}

.speech-bubble.speaker-1 {
	align-self: flex-start;
	background-color: rgba(173, 216, 230, 0.1);
}
.speech-bubble.speaker-1::before {
	content: '';
	position: absolute;
	left: -10px;
	top: 10px;
	border-top: 10px solid transparent;
	border-right: 10px solid rgba(173, 216, 230, 0.1);
	border-bottom: 10px solid transparent;
}

.speech-bubble.speaker-2 {
	align-self: flex-end;
	background-color: rgba(255, 182, 193, 0.1);
}
.speech-bubble.speaker-2::before {
	content: '';
	position: absolute;
	right: -10px;
	top: 10px;
	border-top: 10px solid transparent;
	border-left: 10px solid rgba(255, 182, 193, 0.1);
	border-bottom: 10px solid transparent;
}
.speech-bubble p {
	font-size: 1em;
	line-height: 1.6;
	margin: 0;
}
.footer {
	text-align: center;
	padding: 10px 0;
	background-color: #111;
	color: white;
	width: 100%;
	margin-top: auto;
	position: relative;
	z-index: 2;
}
.footer p {
	margin: 0;
	font-size: 0.9em;
}
/* Responsive adjustments */
@media (max-width: 768px) {
	.container {
		width: 95%;
		padding: 10px;
		margin-top: 30px;
		margin-bottom: 20px;
	}

	.historical-call {
		flex-direction: column;
	}
	.historical-image {
		max-width: 200px;
		max-height: 200px;
	}
	.text-box-bell {
		width: auto;
	}
	.title-container h1 {
		font-size: 2em;
	}
	.title-container p {
		font-size: 1em;
	}
	.speech-bubble {
		max-width: 95%;
		padding: 10px;
	}
}
.audio-progress-bar {
	position: absolute;
	bottom: 0px;
	left: 0;
	width: 100%;
	height: 6px;
	background-color: rgba(
		255,
		255,
		255,
		0.05
	); /* A subtle background track color */
	overflow: hidden;
	z-index: 1;
	border-radius: 3px;
}
.audio-progress {
	height: 100%;
	background-color: #ffffcf; 
	width: 0;
	transition: width 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
	border-radius: 3px;
}
