body  {
  background-color: #212121;
  padding:0;
  margin:0;
}
* {
  box-sizing: border-box;
}
#player {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 0;
}

.logo {
  position: absolute;
  top: 6px;
  left: 30px;
  background-image: url(icons/logo-192.png);
  background-size: 48px 48px;
  height: 48px;
  background-repeat: no-repeat;
  text-decoration: none;
}
.logo::after  {
  color: white;
  content: "The Toasty Jam";
  font-family: 'Unica One', cursive;
  margin-left: 65px;
  vertical-align: bottom;
  font-size: 2em;
  line-height: 48px;
  letter-spacing: 5px;
}
.navbar {
  position: fixed;
  top: 0px;
  left:0px;
  width:100%;
  height: 60px;
  background-color: #212121;
  z-index: 20;
}
.controller {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 575px;
  height: 50px;
}
.timeslider {
  position: absolute;
  bottom:-10px;
  left:0px;
  right:0px;
  z-index: 25;
  overflow: visible;
}
.handle {
  position: absolute;
  left:0px;
  bottom:-2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #888;
  z-index: 30;
  cursor: pointer;
}
.handle:hover {
  height: 10px;
  width: 10px;
}
.time {
  user-select: none;
  color: white;
  position: absolute;
  top: -12px;
  font-size: 12px;
  font-family: 'Nanum Gothic Coding', monospace;
}
.since  {
  left: -30px;
}
.until  {
  right: -33px;
}
.progress {
  position: absolute;
  top: -2px;
  bottom:0px;
  left:0px;
  width: 0px;
  background-color: #888;
}
#seek {
  width:100%;
}
.current-song {
  position: absolute;
  top:0px;
  left:0px;
  display: block;
  width: 50%;
  height: 100%;
  padding-top: 4px;
}
.current-song * {
  color: white;
  font-family: 'Nanum Gothic Coding',monospace;
  text-align: left;
  float: left;
  padding-left: 10px;
}
.track  {
  font-weight: bold;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.artist {
  width: 100%;
}

.buttons  {
  position: absolute;
  top:0px;
  left:50%;
  right:0px;
  display: block;
  width:50%;
  height: 40px;
  position: relative;
}
.icon {
  background-size: contain;
  width: 25px;
  height: 25px;
  filter: invert(80%);
  display: block;
  cursor: pointer;
  position: absolute;
}
.icon.play,
.icon.pause {
  right:50px;
  top: 9px;
}
.prev {
  background-image: url(icons/previous.png);
  width: 12px;
  height: 12px;
  top: 14px;
  right: 96px;
  padding:8px;
  border: 1px solid white;
  border-radius: 50%;
}
.next {
  background-image: url(icons/next.png);
  width: 12px;
  height: 12px;
  top: 14px;
  right: 20px;
  padding:8px;
  border: 1px solid white;
  border-radius: 50%;
}
.volume {
  background-image: url(icons/volume.png);
  left:-10px;
  top: 10px;
  width: 18px;
  height: 18px;
  padding:12px;
  border: 1px solid white;
  border-radius: 50%;
}
.volume.low {
  background-image: url(icons/volumelow.png);
}
.volume.mute  {
  background-image: url(icons/mute.png);
}
.play {
  background-image: url(icons/play.png);
}
.pause  {
  background-image: url(icons/pause.png);
}
.volpercent {
  background-color: #212121;
  position: absolute;
  top:40px;
  left:15px;
  z-index: 40;
  width: 30px;
  height: 100px;
  border-radius: 3px;
  box-shadow: 0px 0px 5px black;
}
.volpercent input {
  width: 80px;
  transform-origin: 45px 41px;
  transform: rotate(-90deg);
}


.main {
  margin-top: 60px;
  width:100%;
  min-height: calc(100vh - 60px);
  display: grid;
  gap:3px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: repeat(19,calc(33.3vh - 20px));
  position: relative;
  z-index: 10;
  overflow-y: auto;
  background-color: #212121;
}

.song-content {
  position: relative;
  background-color: green;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 33%;
  overflow: hidden;
}
.song-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: inherit;
  background-size: cover;
  transform-origin: center;
  transition: transform .4s ease-in-out;
}
.song-content:hover::before, .song-content:focus::before  {
  transform: scale(1.02);
}

@keyframes transparency {
  0%  { opacity: 1; }
  100%  { opacity: .2; }
}
@keyframes transparency-out {
  0%  { opacity: .2; }
  100%  { opacity: 1; }
}
.grad {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation-name: transparency-out;
  animation-duration: .5s;
}
.song-content:focus .grad,
.grad:hover, .grad:focus {
  animation-name: transparency;
  animation-duration: .75s;
  opacity: .2;
}
.track-links  {
  position: absolute;
  top: 10px;
  right:10px;
  display: none;
  width:150px;
  height: 45px;
}
.song-content:focus .track-links,
.song-content:hover .track-links  {
  display: block;
}
.track-links.invert {
  filter: invert(100%);
}
.track-links .link  {
  height: 40px;
  width: 40px;
  position: absolute;
  background-repeat: no-repeat;
  opacity: .7;
  top:0px;
}
.spotify  {
  background-size: 40px 40px;
  background-image: url(icons/spotify.svg);
  left:0px;
  background-position: center center;
}
.spotify:hover  {
  background-size: 43px 43px;
}

.youtube-music  {
  background-size: 35px 35px;
  background-position: center center;
  background-image: url(icons/youtube-music.svg);
  left: 48px;
}
.youtube-music:hover  {
  background-size: 38px 38px;
}
.youtube  {
  background-size: cover;
  background-image: url(icons/youtube.svg);
  left: 100px;
}
.youtube:hover  {
  width: 43px;
  height: 43px;
  top: -1.5px;
  left: 98.5px;
}
.content-launcher {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  right: 20px;
  bottom: 100px;
  background-color: rgba(128,128,128,.5);
  background-size: 20px 20px;
  background-position: center;
  background-repeat: no-repeat;
  filter: invert(100%);
  display: none;
  cursor: pointer;
}
.content-launcher:hover, .content-launcher:focus {
  background-color: rgba(128,128,128,.8);
}
.loading {
  border: 8px solid #424242; /* Light grey */
  border-top: 8px solid orange; /* Blue */
  border-radius: 50%;
  animation: spin 2s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.song-content:hover .content-launcher, .song-content:focus .content-launcher {
  display: block;
}
.artist-name  {
  display: block;
  position: absolute;
  bottom: 0px;
  right: 25px;
  font-family: 'Unica One', cursive;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: calc(100% - 50px);
  opacity: .87;
}
.track-name {
  display: block;
  position: absolute;
  bottom: 40px;
  right: 25px;
  font-family: 'Unica One', cursive;
  opacity: .87;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: calc(100% - 50px);
}
.rank {
  user-select: none;
  position: absolute;
  top:0px;
  left:0px;
  background-color: rgba(0,0,0,.5);
  color:#ffffff;
  padding: 5px;
  border-radius: 0 0 4px 0;
  font-family: 'Unica One', cursive;
}
.song-content:nth-child(1) .track-name,
.song-content:nth-child(20) .track-name {
  font-size: 4em;
  bottom: 90px;
}
.song-content:nth-child(1) .artist-name,
.song-content:nth-child(20) .artist-name {
  font-size: 5em;
}
.song-content:nth-child(6) .track-name,
.song-content:nth-child(15) .track-name,
.song-content:nth-child(25) .track-name,
.song-content:nth-child(32) .track-name {
  font-size: 4em;
  bottom: 90px;
}
.song-content:nth-child(6) .artist-name,
.song-content:nth-child(15) .artist-name,
.song-content:nth-child(25) .artist-name,
.song-content:nth-child(32) .artist-name {
  font-size: 5em;
}
.song-content:nth-child(1) .content-launcher,
.song-content:nth-child(20) .content-launcher,
.song-content:nth-child(6) .content-launcher,
.song-content:nth-child(15) .content-launcher,
.song-content:nth-child(25) .content-launcher,
.song-content:nth-child(32) .content-launcher {
  bottom: 225px;
  right: 40px;
}


.song-content:nth-child(1)  {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
}
.song-content:nth-child(6)  {
  grid-row: 4 / 6;
  grid-column: 1 / 3;
}

.song-content:nth-child(15) {
  grid-row: 6 / 8;
  grid-column: 3 / 5;
}
.song-content:nth-child(20) {
  grid-row: 9 / 11;
  grid-column: 1 / 5;
}
.song-content:nth-child(25) {
  grid-column: 1 / 3;
  grid-row: 12 / 14;
}
.song-content:nth-child(32) {
  grid-column: 3 / 5;
  grid-row: 14 / 16;
}

.footer {
  width:100%;
  height: 30px;
  color: white;
  font-family: 'Nanum Gothic Coding', monospace;
  padding: 6px;
  text-align: center;
}

.footer a{
  color:white;
}
@media only screen and (max-width: 1350px){
  .logo::after  {
    letter-spacing: normal;
  }
}
@media only screen and (max-width: 1200px){
  .logo {
    left: 15px;
  }
  .logo::after  {
    content: "TTJ";
    margin-left: 55px;
  }
  .main {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: repeat(24,calc(33.3vh - 20px));
  }
  .song-content:nth-child(1),
  .song-content:nth-child(20)  {
    grid-column: 1 / 4;
  }
  .song-content:nth-child(15) {
    grid-column: 2 / 4 ;
    grid-row: 8 / 10;
  }
  .song-content:nth-child(20) {
    grid-row: 11 / 13;
  }
  .song-content:nth-child(25) {
    grid-row: 14 / 16;
  }
  .song-content:nth-child(32) {
    grid-column: 2 / 4;
    grid-row: 17 / 19;
  }
}
@media only screen and (max-width: 770px){
  .logo {
    background-image: url(icons/logo2-512.png);
    position: fixed;
    top: 66px;
    left: 5px;
    height: 66px;
    width: 66px;
    background-size: 66px 66px;
  }
  .logo::after  {
    content: "";
  }
  .main {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(34,calc(33.3vh - 20px));
  }
  .song-content:nth-child(6)  {
    grid-row: 5 / 7;
  }
  .song-content:nth-child(1),
  .song-content:nth-child(20)  {
    grid-column: 1 / 3;
  }
  .song-content:nth-child(15) {
    grid-column: 1 / 3 ;
    grid-row: 11 / 13;
  }
  .song-content:nth-child(20) {
    grid-row: 15 / 17;
  }
  .song-content:nth-child(25) {
    grid-row: 19 / 21;
  }
  .song-content:nth-child(32) {
    grid-column: 1 / 3;
    grid-row: 24 / 26;
  }
  .song-content:nth-child(1) .track-name,
  .song-content:nth-child(20) .track-name,
  .song-content:nth-child(6) .track-name,
  .song-content:nth-child(15) .track-name,
  .song-content:nth-child(25) .track-name,
  .song-content:nth-child(32) .track-name {
    font-size: 3em;
    bottom: 70px;
  }
  .song-content:nth-child(1) .artist-name,
  .song-content:nth-child(20) .artist-name,
  .song-content:nth-child(6) .artist-name,
  .song-content:nth-child(15) .artist-name,
  .song-content:nth-child(25) .artist-name,
  .song-content:nth-child(32) .artist-name {
    font-size: 3.5em;
  }

}
@media only screen and (max-width: 600px) {
  .controller {
    width: 100%;
  }
  .timeslider {
    width: calc(100% - 70px);
    left: 35px;
  }
  .controller {
    padding-right: 25px;
  }
  .current-song {
    padding-left: 35px;
  }
  .track-name {
    right: 15px;
    font-size: 1em;
    max-width: calc(100% - 30px);
  }
  .artist-name  {
    right: 15px;
    font-size: 1.5em;
    max-width: calc(100% - 30px);
  }
  .song-content:nth-child(1) .track-name,
  .song-content:nth-child(20) .track-name,
  .song-content:nth-child(6) .track-name,
  .song-content:nth-child(15) .track-name,
  .song-content:nth-child(25) .track-name,
  .song-content:nth-child(32) .track-name {
    font-size: 2em;
    bottom: 50px;
  }
  .song-content:nth-child(1) .artist-name,
  .song-content:nth-child(20) .artist-name,
  .song-content:nth-child(6) .artist-name,
  .song-content:nth-child(15) .artist-name,
  .song-content:nth-child(25) .artist-name,
  .song-content:nth-child(32) .artist-name {
    font-size: 2.5em;
  }
}
