html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  background: #7A419B;
  min-height: 100vh;
  /*background: linear-gradient(135deg, #7c1599 0%,#921099 48%,#7e4ae8 100%);*/
  background-image: linear-gradient(to right top, #1b1e1b, #2c3730, #3a5349, #477068, #528e8b);
  background-size: cover;
  align-items: center;
  justify-content: center;
}
.title {
  flex: none;
  position: absolute;
  top: 20%;
  color: white;
}
.title.active {
   opacity: 1;
  transition: 0.3s ease-in-out;
}
.title.disappear {
  opacity: 0;
  transition: 5s;
}
@media screen and (max-width: 550px) and (min-width: 390px){
  .title {
    top: 20%;
  }
}
@media screen and (max-width: 390px) {
  .title {
    top: 32%;
  }
  
}

.player {
  max-width: 750px;
  border: 5px solid rgba(0,0,0,0.2);
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  position: relative;
  font-size: 0;
  overflow: hidden;
}

/* This css is only applied when fullscreen is active. */
.player:fullscreen {
  max-width: none;
  width: 100%;
}

.player:-webkit-full-screen {
  max-width: none;
  width: 100%;
}

.player__video {
  width: 100%;
}

.player__button {
  background: none;
  border: 0;
  line-height: 1;
  color: white;
  text-align: center;
  outline: 0;
  padding: 0;
  cursor: pointer;
  font-size: 30px;
}

.player__button:focus {
  border-color: #ffc600;
}

.player__slider {
  width: 10px;
  height: 30px;
}

.player__controls {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  width: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all .6s;
  flex-wrap: wrap;
  background: rgba(0,0,0,0);
  font-size: 100px;
}
.volume-playbackRate {
  position: absolute;
  bottom: 3%;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.volume-playbackRate.active {
   opacity: 1;
  transition: 0.3s ease-in-out;
}
.volume-playbackRate.disappear {
  opacity: 0;
  transition: 5s;
}
.player__controls.active {
  opacity: 1;
  transition: 0.3s ease-in-out;
}
.player__controls.disappear {
  opacity: 0;
  transition: 5s;
}
.player:hover .volume-playbackRate {
  transform: translateY(0);
}

.player:hover .progress {
  height: 15px;
}

.player__controls > * {
  flex: 1;
}

.progress{
  flex: 10;
  position: relative;
  top: 40%;
  display: flex;
  flex-basis: 100%;
  height: 5px;
  transition: height 0.3s;
  background: rgba(0,0,0,0.5);
  cursor: ew-resize;
}

.progress__filled {
  width: 50%;
  background: #ffc600;
  flex: 0;
  flex-basis: 0%;
}

/* unholy css to style input type="range" */

input[type=range] {
  -webkit-appearance: none;
  background: transparent;
  width: 50%;
  margin: 0 5px;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
  background: rgba(255,255,255,0.8);
  border-radius: 1.3px;
  border: 0.2px solid rgba(1, 1, 1, 0);
}

input[type=range]::-webkit-slider-thumb {
  height: 15px;
  width: 15px;
  border-radius: 50px;
  background: #ffc600;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -3.5px;
  box-shadow:0 0 2px rgba(0,0,0,0.2);
}

input[type=range]:focus::-webkit-slider-runnable-track {
  background: #bada55;
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
  background: #ffffff;
  border-radius: 1.3px;
  border: 0.2px solid rgba(1, 1, 1, 0);
}

input[type=range]::-moz-range-thumb {
  box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(13, 13, 13, 0);
  height: 15px;
  width: 15px;
  border-radius: 50px;
  background: #ffc600;
  cursor: pointer;
}

.full-screen {
  max-width: 35px !important;
  border: none;
  outline: none;
  color: white;
  background-color: transparent;
  cursor: pointer;
}
.twitter {
  flex: none;
  position: absolute;
  top: 80%;
  color: white;
}

.twitter.active {
  opacity: 1;
  transition: 0.3s;
}

.twitter.disappear {
  opacity: 0;
  transition: 5s ease-in-out;
}