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

.controls {
    overflow: hidden;
    background-repeat: no-repeat;
}

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

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

.controls button[data-state="rewind"] {
    background-image: url('../src/course_detail/rewind.svg');
    width: 9vw;
    height: 9vw;
}

.controls button[data-state="forward"] {
    background-image: url('../src/course_detail/forward.svg');
    width: 9vw;
    height: 9vw;
}

.controls button[data-state="speed"] {
    background-image: url('../src/course_detail/speed.svg');
    width: 5.3vw;
    height: 5.3vw;
}

.controls button[data-state="volume"] {
    background-image: url('../src/course_detail/volume.svg');
    width: 5.3vw;
    height: 5.3vw;
}

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

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

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

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

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

/*volumn control*/

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

.vol_ctrl {
    background: linear-gradient(to right, #00438f 0%, #00438f 50%, #e5e4ed 50%, #e5e4ed 100%);
    border: .2vw solid #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;
}


/* speed */
#speed_selector {
    scrollbar-width: thin;
    font-size: 3vw;
}

#speed_selector label {
    padding: 0 6vw;
    display: block;
}

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


@media(orientation: landscape) {
    #videoContainer.fullscreen video {
        max-height: 100vh;
    }

    .controls button[data-state="play"] {
        width: 11.2vw;
        height: 11.2vw;
    }

    .controls button[data-state="pause"] {
        width: 11.2vw;
        height: 11.2vw;
    }

    .controls button[data-state="rewind"] {
        width: 7.2vw;
        height: 7.2vw;
    }

    .controls button[data-state="forward"] {
        width: 7.2vw;
        height: 7.2vw;
    }

    .controls button[data-state="speed"] {
        width: 4.24vw;
        height: 4.24vw;
    }

    .controls button[data-state="volume"] {
        width: 4.24vw;
        height: 4.24vw;
    }

    .controls button[data-state="volume_ios"],
    .controls button[data-state="volume_ios_mute"] {
        width: 4.24vw;
        height: 4.24vw;
    }

    .controls button[data-state="go-fullscreen"] {
        width: 4.4vw;
        height: 4.4vw;
    }

    .controls button[data-state="cancel-fullscreen"] {
        width: 4.4vw;
        height: 4.4vw;
    }

    #speed_selector {
        scrollbar-width: thin;
        font-size: 1.5vw;
    }

    #speed_selector label {
        padding: 0 3vw;
    }

    #speed_selector .active,
    #speed_selector .first {
        font-size: 3vw;
    }

    #progress::-webkit-slider-thumb {
        height: 2vw;
        width: 2vw;
        filter: drop-shadow(0 .08vw .08vw rgb(0 0 0 / 0.05));
    }
    
    
    #progress {
        height: .8vw;
    }
}

@media(orientation: portrait) {
    #videoContainer.fullscreen video {
        width: 100%;
    }
}


/* progress */
.controls progress {
    display: block;
    width: 100%;
    height: .5vw;
    border: none;
    overflow: hidden;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    color: #0095dd;
}

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

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

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

.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;
}

/*volumn control*/
#volume_block::-webkit-slider-thumb {
    border: none;
    border-radius: 50%;
    background: #00438f;
    border: .4vw solid rgb(255, 255, 255);
    height: 2vw;
    width: 2vw;
}

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

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

/*progress control*/
#progress::-webkit-slider-thumb {
	border: none;
	height: 2.5vw;
	width: 2.5vw;
	border-radius: 50%;
	background: #ffffff;
	filter: drop-shadow(0 .1vw .1vw rgb(0 0 0 / 0.05));
}

#progress::-moz-range-thumb {
    border: none;
    height: 2.5vw;
    width: 2.5vw;
    border-radius: 50%;
    background: #ffffff;
    filter: drop-shadow(0 .1vw .1vw rgb(0 0 0 / 0.05));
}


#progress {
	background: rgba(255,255,255,.6);
	border-radius: 8px;
	height: 1vw;
	outline: none;
	transition: background 450ms ease-in;
	-webkit-appearance: none;
}