* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  display: flex;
  background: 333;
  background: linear-gradient(135deg, #000 0%, #333 48%, #686868 100%);
  background-size: cover;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.video_container {
  width: 100%;
  max-width: 800px;
  position: relative;
}

video {
  width: 100%;
  background-color: #000;
}

#prev_img {
  position: absolute;
  left: 5%;
  bottom: 10%;
  opacity: 1;
  display: none;
  width: 30%;
  height: 30%;
}

#next_img {
  position: absolute;
  right: 5%;
  bottom: 10%;
  opacity: 1;
  display: none;
  width: 30%;
  height: 30%;
}

#prev_img:hover,
#next_img:hover {
  cursor: pointer;
  opacity: 0.8;
}

.ad_container {
  position: absolute;
  bottom: 12%;
  left: 5%;
  right: 5%;
  width: 80%;
  height: 30%;
  margin: 0 auto;
  display: none;
  background-color: #fff;
}

#ad_banner {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

#ad_banner:hover {
  cursor: pointer;
}

.close_ad_btn {
  position: absolute;
  top: 0;
  right: 0;
  color: #000;
}

.controls {
  display: flex;
  position: absolute;
  bottom: 0;
  width: 100%;
  flex-wrap: wrap;
  background-color: rgba(0, 0, 0, 0.3);
  transition: 1s;
  transform: translateY(-5px);
  /* visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 300ms, opacity 1000ms; */
}

.video_container:hover .controls {
  transform: translateY(-5px);
  visibility: visible;
  opacity: 1;
  transition: visibility 0s linear 0s, opacity 300ms;
}

.buttons {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-around;
  height: 30px;
}

i {
  color: #ddd;
  cursor: pointer;
}

i:hover {
  transform: scale(1.1);
  transition: all 0.5s;
}

.buttons span {
  color: #ddd;
}

/* Seek Bar */

.seek_bar {
  background-color: rgba(255, 255, 255, 0.4);
  height: 5px;
  top: 10px;
  left: 0;
  width: 100%;
  cursor: pointer;
}

.colored_bar {
  height: 5px;
  width: 100px;
  background-color: #f00;
}

/* After video finished */

.after_finish {
  z-index: 1;
  position: absolute;
  display: flex;
  align-items: center;
  top: 30%;
  left: 25%;
  width: 50%;
  justify-content: space-around;
}

.after_finish img {
  cursor: pointer;
}

/* Settings Menu */

#settings {
  position: absolute;
  text-align: center;
  bottom: 35px;
  right: 20px;
  background: rgb(28 28 28 / 90%);
  width: 200px;
  height: 120px;
  display: none;
  overflow-y: scroll;
  padding: 12px 33px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#settings::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
#settings {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

#settings .sub_menu {
  margin: 17px 0;
}

#settings span {
  font-size: large;
}

#speed_menu:hover,
#quality_menu:hover {
  cursor: pointer;
}

.settings_btn {
  transition: 0.3s;
  transform: rotate(-45deg);
}

.sub_menu_content ul {
  position: relative;
}

.sub_menu_content ul li {
  position: relative;
  width: 100%;
  cursor: pointer;
  text-align: center;
  padding: 12px 33px;
  display: block;
  color: #ddd;
}

.sub_menu_content ul li:hover {
  background: rgba(28, 28, 28, 0.9);
}

.sub_menu_content ul li.active::before {
  content: "\e876";
  font-family: "Material Icons";
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  padding-right: 10px;
  font-size: 18px;
}

.sub_menu::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}

.sub_menu::-webkit-scrollbar-thumb {
  height: 20px;
  border: 2px solid transparent;
  background: rgba(83, 83, 83, 0.9);
  border-radius: 20px;
}

#quality_sub_menu,
#speed_sub_menu {
  display: none;
}

/* Volume Icon & Volume Range */

.volume_icons #vol_range {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 3px;
  background: #fff;
  color: #fff;
  cursor: pointer;
  outline: none;
  border: none;
  transition: 0.4s;
}

.volume_icons #vol_range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  outline: none;
  background: #ddd;
  opacity: 0;
  transition: 0.3s;
}

.volume_icons:hover #vol_range {
  display: inline-block;
  width: 60px;
}

.volume_icons:hover #vol_range::-webkit-slider-thumb {
  opacity: 1;
  pointer-events: auto;
  transition: 0.5s;
}

.volume_icons {
  display: flex;
  align-items: center;
}
