video {
	width: 100%;
}


.controls {
	overflow: hidden;
	background: transparent;
	width: 100%;
	/* position:relative; */
	display: inline-flex;
	align-items: center;
	column-gap: 1vw;
}

.controls>*:first-child {
	margin-left: 0;
}

.controls .progress {
	cursor: pointer;
	/* width:75.390625%; */
	display: flex;
	align-items: center;
	flex-grow: 1;
}

.controls button {
	flex: none;
	text-align: center;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	border: none;
	cursor: pointer;
	text-indent: -99999px;
	background: transparent;
	background-size: contain;
	background-repeat: no-repeat;
}

.controls button:hover {
	opacity: 0.5;
}

#video-controls {
	background-color: #808080;
	padding: .3vw 2.4vw;
}

.controls button {
	background-position: center;
	width: 3vw;
	height: 3vw;
}

.controls button[data-state="play"] {
	background-image: url('../src/course_detail/play_icon.svg');
}

.controls button[data-state="pause"] {
	background-image: url('../src/course_detail/pause_icon.svg');
}

.controls button[data-state="setting"] {
	background-image: url('../src/course_detail/setting_icon.svg');
}

button[data-state="mute"] {
	background-image: url('../src/course_detail/volume.svg');
	text-indent: -99999px;
	width: 3vw;
	height: 3vw;
}

button[data-state="volume_ios"] {
	background-image: url('../src/course_detail/volume.svg');
	text-indent: -99999px;
	width: 3vw;
	height: 3vw;
}

button[data-state="volume_ios_mute"] {
	background-image: url('../src/course_detail/volume_mute.svg');
	text-indent: -99999px;
	width: 3vw;
	height: 3vw;
}

.controls button[data-state="go-fullscreen"] {
	background-image: url('../src/course_detail/fullscreen_icon.svg');
}

.controls button[data-state="cancel-fullscreen"] {
	background-image: url('../src/course_detail/fullscreen_icon.svg');
}

.controls progress {
	display: block;
	width: 100%;
	height: 8px;
	border: none;
	overflow: hidden;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	color: #0095dd;
	/* Internet Explorer uses this value as the progress bar's value colour */

}

.controls progress[data-state="fake"] {
	background: #8b6262;
	height: 65%;
}

.controls progress #progress-bar {
	width: 0%;
	height: 100%;
	display: inline-block;
	background: linear-gradient(to right, rgb(42, 127, 255), rgb(42, 223, 170), rgb(85, 223, 85));
}

.controls progress::-moz-progress-bar {
	background: #a5a5a5;
}

.controls progress::-webkit-progress-bar {
	background: #a5a5a5;
}

/* Chrome requires its own rule for this, otherwise it ignores it */
.controls progress::-webkit-progress-value {
	background: linear-gradient(to right, rgb(42, 127, 255), rgb(42, 223, 170), rgb(85, 223, 85));
	border-radius: 5px;
}
.controls progress::-moz-range-progress {
    background: linear-gradient(to right, rgb(42, 127, 255), rgb(42, 223, 170), rgb(85, 223, 85));
    border-radius: 5px;
}



/* fullscreen */
html:-ms-fullscreen {
	width: 100%;
}

:-webkit-full-screen {
	background-color: transparent;
}

video:-webkit-full-screen+.controls {
	background: #ccc;
	/* required for Chrome which doesn't heed the transparent value set above */
}

video:-webkit-full-screen+.controls progress {
	margin-top: 0.5rem;
}

/* hide controls on fullscreen with WebKit */

/* figure[data-fullscreen=true] .wrapper {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	width: 100%;
	height: 100vh;
	justify-content: center;
}
figure[data-fullscreen=true] #video_block.pc_version {
	flex-grow: 1;
} */












.video_current_time,
#video_duration {
	color: white;
}

/* Media Queries */
@media screen and (max-width:1024px) {
	figure {
		padding-left: 0;
		padding-right: 0;
		height: auto;
	}
}


/*volumn control*/

#vol_ctrl::-webkit-slider-thumb {
	border: none;
	height: 1vw;
	width: 1vw;
	border-radius: 50%;
	background: #00438f;
	border: .3vw solid rgb(255, 255, 255);
}


.vol_ctrl {
	background: linear-gradient(to right, #00438f 0%, #00438f 50%, #e5e4ed 50%, #e5e4ed 100%);
	border: solid .2vw #f0f0f2;
	border-radius: 8px;
	height: .7vw;
	width: 6.5vw;
	outline: none;
	transition: background 450ms ease-in;
	-webkit-appearance: none;
	transform: rotate(270deg);
	position: absolute;
	right: .1vw;
	top: 7vw;
}

.vol_ctrl::-webkit-slider-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	-webkit-appearance: none;
	cursor: ew-resize;
	background: #434343;
}

/*progress control*/
#progress {
	background: rgba(255, 255, 255, .6);
	border-radius: 8px;
	height: .24vw;
	outline: none;
	transition: background 450ms ease-in;
	-webkit-appearance: none;
}
#progress::-webkit-slider-thumb {
	-webkit-appearance: none;
	border: none;
	height: 1.2vw;
	width: 1.2vw;
	border-radius: 50%;
	background: #ffffff;
	filter: drop-shadow(0 .1vw .1vw rgb(0 0 0 / 0.05));
}
#progress::-moz-range-thumb {
    border: none;
    height: 1.2vw;
	width: 1.2vw;
    border-radius: 50%;
    background: #ffffff;
    filter: drop-shadow(0 .1vw .1vw rgb(0 0 0 / 0.05));
}





/* speed */
#speed_selector {
	scrollbar-width: thin;
}

#speed_selector label {
	padding-right: 1.75vw;
	padding-left: .75vw;
	display: block;
}

#speed_selector .active,
#speed_selector .first {
	color: #00438f;
	font-weight: bold;
	font-size: 2rem;
}

.fullscreen {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 333;
	width: 100vw;
	height: 100dvh;
	background: #000;
	display: flex;
	justify-content: center;
	align-items: center;
}


figure[data-fullscreen=true] .wrapper {
	display: flex;
	flex-wrap: nowrap;
	flex-direction: column;
	width: 100%;
	height: 100%;
	justify-content: center;
}

@media(orientation: landscape) {
	figure[data-fullscreen=true] #video_block video{
		aspect-ratio: 16/8.5;
	}
	figure[data-fullscreen=true] .controls{
		margin-top: auto;
		margin-bottom: 2vw;
	}
}

@media(orientation: landscape) and (min-width: 1536px) {
	figure[data-fullscreen=true] #video_block video{
		aspect-ratio: 16/7.5;
	}

	figure[data-fullscreen=true] .controls{
		margin-bottom: 0vw;
	}
}


@media(min-width:1536px) {
	.controls {
		column-gap: 1vw;
	}

	#video-controls {
		padding: .25vw 2vw;
	}

	.controls button {
		width: 2.5vw;
		height: 2.5vw;
	}

	button[data-state="mute"] {
		width: 2.5vw;
		height: 2.5vw;
	}

	button[data-state="volume_ios"] {
		width: 2.5vw;
		height: 2.5vw;
	}

	button[data-state="volume_ios_mute"] {
		width: 2.5vw;
		height: 2.5vw;
	}

	#progress::-webkit-slider-thumb {
		height: 1vw;
		width: 1vw;
	}

	#progress {
		height: .2vw;
	}

}



@media(orientation: portrait) {
	.controls {
		column-gap: 2vw;
	}

	#video-controls {
		padding: .5vw 4vw;
	}

	button[data-state="mute"],
	button[data-state="volume_ios"],
	button[data-state="volume_ios_mute"] {
		width: 5vw;
		height: 5vw;
	}

	.controls button {
		width: 5vw;
		height: 5vw;
	}

	#vol_ctrl::-webkit-slider-thumb {
		height: 2vw;
		width: 2vw;
		border: .6vw solid rgb(255, 255, 255);
	}


	.vol_ctrl {
		background: linear-gradient(to right, #00438f 0%, #00438f 50%, #e5e4ed 50%, #e5e4ed 100%);
		border: solid .4vw #f0f0f2;
		border-radius: 8px;
		height: 1.4vw;
		width: 13vw;
		right: .2vw;
		top: 14vw;
	}

	#progress::-webkit-slider-thumb {
		height: 2vw;
		width: 2vw;
	}

	#progress {
		height: .4vw;
	}



}