/* Sikrer at headeren holder sin plassering */
.header {
	position: fixed;
	top: 0;
	width: 100%;
	background-color: var(--bg-filter);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
}

/* Plasserer søkefeltet riktig */
#searchBox {
	width: 10vw;
	height: 30px;
}
.header input {
	padding: 0.5em;
	border-radius: 5px;
	border: none;
	flex-shrink: 0; /* Hindrer søkefeltet fra å krympe */
	margin-right: 5em;
}

.header input#searchBox {
	margin-right: 5em;
}

.header input.progress-bar {
	position: relative;
	width: 100%;
	left: 2em;
}

/* Plasserer og styler audio-container */
#audio-container {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-grow: 1;
	flex-direction: row;
	width: 30vw;
}

/* Stil for selve audio-player */
.audio-player {
	width: 25vw; /* Juster dette etter behov */
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #f1f1f1;
	padding: 10px;
	border-radius: 8px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Stil for frem/tilbake-knapper */
.audio-controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Stil for tekstscroller */
#current-text {
	position: relative;
	overflow: hidden;
	white-space: nowrap;
	width: 65vw;
	text-align: center;
}

/* Sikrer at teksten scroller innenfor H1 */
.scrolling-text {
	position: relative;
	display: inline-block;
	white-space: nowrap;
}
.active-posisjon {
	background-color: #4caf50 !important; /* Grønn farge */
	color: white !important;
	font-weight: bold;
	border-radius: 5px;
}
.volume-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: absolute;
	right: -20px; /* Juster for riktig plassering */
	top: 50%;
	transform: translateY(-50%);
	gap: 5px;
}
