* {
  box-sizing: border-box;
  margin: 0;
  outline: none;
  padding: 0;
  text-align: center;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

body {
  background: rgb(0, 0, 0);
  overflow-y: hidden;
  overflow-x: hidden;
}

button {
  cursor: pointer;
}

input[type=range] {
  -webkit-appearance: none;
  align-self: center;
  background: rgb(231, 231, 231);
  height: 20px;
  opacity: .7;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: rgb(0, 174, 255);
  cursor: pointer;
  height: 20px;
  width: 20px;
}

input[type=range]::-moz-range-thumb {
  background: rgb(0, 174, 255);
  border: none;
  border-radius: 0;
  cursor: pointer;
  height: 20px;
  width: 20px;
}

input[type=range]::-moz-range-track {
  background: rgb(231, 231, 231);
  border: none;
  width: 100%;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: white;
  border: none;
  cursor: pointer;
  color: black;
  font-weight: 600;
  outline: none;
  text-align: center;
  text-align-last: center;
  width: 2.5rem;
}

option {
  background: rgb(78, 78, 78);
  color: white;
  outline: none;
  text-align: center;
  text-align-last: center;
}

.player {
  margin: 0 auto;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  height: 100%;
}

.player:fullscreen .video-screen {
  background: rgb(38, 38, 39);
  box-shadow: rgb(0, 0, 0) 0px 0.66rem 2.4rem;
}

.player:fullscreen .file-chooser {
  transform: translateY(500%);
}

.file-chooser {
  color: white;
  cursor: pointer;
  height: 50px;
  transform: translateY(-50%);
  text-align: center;
}

.video-screen {
  background: rgb(0, 0, 0);
  display: block;
  object-fit: cover;
  margin: 0 auto;
  transition: opacity .5s;
  width: 100%;
  box-shadow: rgb(13 71 161) 0px 1px 23px 8px;
  text-align: center;
  border-radius: 23px;
  cursor: none;
}

.controls {
  background: rgba(0, 0, 0, 0.5);
  border-top: 5px solid rgba(0, 0, 0, 0.02);
  border-bottom: 5px solid rgba(0, 0, 0, 0);
  display: flex;
  height: 70px;
  justify-content: space-around;
  opacity: 0;
  margin: 0;
  transition: .5s;
  transition-property: opacity, visibility;
  transform: translateY(-69px);
  visibility: hidden;
  width: 100%;
  border-radius: 45px;
}

.controls * {
  opacity: .7;
  transition: opacity .3s;
}

.controls.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-button {
  align-self: center;
  border: 7px dashed white;
  background: transparent;
  height: 35px;
  margin: 0 15px;
  transition: scale .1s;
  width: 40px;
}

.play {
  align-self: center;
  height: 40px;
  margin: 0 20px;
  width: 20px;
}

.play.start {
  background: none;
  border: 20px solid transparent;
  border-right: none;
  border-left: 35px solid white;
  margin: 0;
  margin-left: 25px;
}

.play.pause {
  background: none;
  border: none;
  border-left: 15px solid white;
  border-right: 15px solid white;
  padding: 6px;
  margin: 0;
  margin-left: 15px;
  margin-right: 3px;
}

.volume-bar {
  margin: 0 20px;
  width: 80px;
}

.time-bar {
  width: 70%;
}

.time {
  align-self: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 24px;
  min-width: 135px;
  opacity: .9;
}

.speed {
  align-self: center;
  color: white;
  font-weight: bold;
  opacity: .9;
  margin-right: 5px;
  width: 50px;
}

::-webkit-media-controls {
  display: none;
}

@media (hover: hover) {
  .controls *:hover {
    opacity: .9;
  }

  .fullscreen-button:active {
    transform: scale(1.2);
  }
}

/* Media query for landscape orientation on phones */
@media only screen and (max-width: 900px) and (orientation: landscape) {
  .player {
    margin: 0;
    max-width: 100vw;
    max-height: 100vh;
  }

  .video-screen {
    width: 100%;
    height: auto;
  }

  .controls {
    justify-content: space-evenly;
  }

  .controls * {
    margin: 0;
    margin-left: 8px;
  }

  .controls {
    margin: 0;
  }

  .play {
    display: none;
  }

  .time {
    font-size: 18px;
    font-weight: 400;
    max-width: 14%;
    min-width: 10%;
    width: 10%;
  }

  .time-bar {
    width: 100%;
  }

  .volume-bar {
    max-width: 10%;
  }

  .speed {
    display: none;
  }

  .fullscreen-button {
    border-width: 3px;
    height: 25px;
    margin-right: 8px;
    min-width: 25px;
    width: 40px;
  }

  .file-chooser {
    display: none;
  }
}

@keyframes animate1 {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate2 {
  0% {
    animation-timing-function: ease-out;
    transform: scale(1);
    transform-origin: center center;
  }

  10% {
    animation-timing-function: ease-in;
    transform: scale(0.91);
  }

  17% {
    animation-timing-function: ease-out;
    transform: scale(0.98);
  }

  33% {
    animation-timing-function: ease-in;
    transform: scale(0.87);
  }

  45% {
    animation-timing-function: ease-out;
    transform: scale(1);
  }
}

@keyframes animate3 {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
