@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);

/* General styles */
[hidden] {
  display: none !important;
}
html {
  --theme-highlight-color: #0087ff;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: rgba(20, 20, 20, 0.95);
  color: white;
  font-family: Montserrat, Roboto, Arial, sans-serif;
  user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

:fullscreen .light {
  background: transparent;
}
:-webkit-full-screen .light {
  background: transparent;
}

.light {
  filter: invert(1);
  background-color: rgba(244, 244, 244, 0.9);
}

* {
  outline: none;
}

/* Make everything responsive */
@media (max-width: 560px) {
  #volume-control:not(:hover) {
    width: 50px;
  }
  #volume-control:not(:hover) #volume-range {
    transform: scale(0)
  }
  #volume-control:hover + #main-controls {
    flex: 0;
    opacity: 0;
  }
  #sidebar {
    max-width: 200px;
  }
}

@media (max-width: 800px) {
  .header {
    font-size: 1em !important;
  }
}
@media (max-width: 650px) {
  body .media-control {
    padding: 0;
    width: 45px;
  }
  body .media-control::after {
    transform: scale(0.8);
  }
}
@media (max-width: 500px) {
  .header {
    font-size: .9em !important;
  }
  .main-content {
    flex-direction: column;
  }
  #sidebar {
    max-width: none;
    width: 100% !important;
    transition: max-height 0.3s;
  }
  #sidebar:not(:hover) {
    max-height: 38px;
    overflow: hidden;
  }
  .osx #sidebar-header {
    text-align: center;
  }
  #sidebar-header {
    font-size: .9em !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
  }
  #sidebar:not(:hover) #sidebar-header {
    background-image: url(../img/expand.svg);
  }
  #volume-control:not(:hover) {
    width: 50px;
  }
  #volume-icon {
    margin: 0 5px;
  }
}

@media (max-width: 410px) {
  #secondary-controls {
    width: 60px;
  }
  #secondary-controls .media-control {
    display: inline-block;
    height: 30px;
    width: 30px;
  }
  #secondary-controls .media-control::after {
    width: 20px;
    height: 20px;
  }
  #speed-menu,
  #speed-menu::after{
    left: auto !important;
    right: 16px;
  }
}