@font-face {
  font-family: "Play";
  src: url("font/Play.ttf") format("truetype");
}

@font-face {
  font-family: "minecraft";
  src: url("font/MinecraftStandard.otf") format("truetype");
}

a {
  text-decoration: none;
}

html {
  width: 100%;
}

body {
  font-family: "Play", sans-serif;
  background: url("img/bg.jpg") no-repeat;
  background-size: cover;
  color: #333;
  overflow-x: hidden;
  background-attachment: fixed;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
}

.header {
  width: 100%;
  height: 60px;
  background-color: #fff;
  box-shadow: 0px 3px 6px 0px rgb(0, 0, 0, 0.26);
}

button {
  border: 0px;
  margin-right: 10px;
  display: flex;
  color: #fff;
  align-items: center;
  padding: 3px 10px;
  gap: 6px;
  text-align: left;
  background: #000000;
  cursor: pointer;
  transition: transform 0.3s ease;
}

button img {
  width: 28px;
}

button:hover {
  transform: scale(1.1);
}

.header-int {
  width: 100%;
  height: 100%;
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-int img {
  height: 40px;
}

.header-int div {
  display: flex;
  align-items: center;
}

.header-int a {
  align-items: center;
  display: flex;
  padding: 0 20px 0 0;
  transition: transform 0.3s ease;
}

.header-int a:hover {
  transform: scale(1.1);
}

.header-int a:nth-child(1) {
  color: #fff;
  margin-left: 12px;
  font-size: 18px;
  background: #000;
  font-family: "Play";
}

.header-int a:nth-child(2) {
  color: #fff;
  margin-left: 12px;
  font-size: 12px;
  background: #fece00;
  font-family: "minecraft";
}

.style2 {
  color: #222;
  font-size: 11px;
}

.main {
  max-width: 740px;
  padding: 40px;
  margin: 0 auto;
}

.audio-player-container {
  border: 2px solid #333;
  background: url("img/bg2.jpg");
  background-size: cover;
  background-position: center center;
  border-radius: 30px;
  color: #fff;
  padding: 40px;
  padding-top: 0px;
  box-shadow: 0px 4px 6px 0px rgb(0, 0, 0, 0.26);
}

.audio-player {
  width: 100%;
  border-radius: 0px;
  padding: 5px;
  font-family: "Play", sans-serif;
}

.audio-player {
  width: 400px;
  margin: 20px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.controls img {
  cursor: pointer;
  width: 52px;
  transition: transform 0.3s ease;
}

.controls img:hover {
  transform: scale(1.1);
}

.controls-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.controls-buttons img {
  width: 35px;
}

.progress {
  height: 8px;
  background-color: #868686;
  margin-top: 10px;
  border-radius: 6px;
}

.progress-bar {
  width: 0;
  height: 100%;
  background-color: #fff;
}

#current-time,
#total-time {
  margin-top: 10px;
  width: 120px;
  overflow: hidden;
  font-size: 25px;
}

#total-time {
  text-align: right;
}

#volume-control {
  width: 300px;
  margin: 20px;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 7px;
  background: #665;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #fff;
  cursor: pointer;
  border-radius: 50%;

  margin-top: -1px;
  border: 2px solid #111;
}

input[type="range"]::-moz-range-thumb {
  border-radius: 50%;

  width: 18px;
  height: 18px;
  background: #fff;
  cursor: pointer;
}

.time-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  font-size: 34px;
  margin-top: 40px;
  user-select: none;
}

#volume-control-container {
  margin-left: -10px;
  display: none;
}

.overlay {
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  display: none;
}

.modal {
  width: 70%;
  height: 70%;
  background: #fff;
  z-index: 20;
  position: fixed;
  padding: 40px;
  font-size: 18px;
  line-height: 30px;
}

.modal b {
  font-size: 18px;
}

.modal a {
  color: #c1a316;
}

#close-button {
  cursor: pointer;
  width: 45px;
  float: right;
}

img {
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

img:hover {
  opacity: 0.9;
  transform: scale(1.1);
}

#playlist {
  display: grid;
  column-gap: 80px;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  list-style: none;
  counter-reset: list-counter;
  padding: 0;
  font-size: 18px;
  padding: 0;
  margin: 0;
  margin-top: 50px;
}

#playlist li {
  margin-bottom: 10px;
  cursor: pointer;
}

#playlist li:nth-child(odd) {
  grid-column: 1;
}

#playlist li:nth-child(even) {
  grid-column: 2;
}

#playlist li:hover {
  color: #0a8eb3;
}

.playlist-row {
  display: flex;
  justify-content: space-between;
}

.playlist-content {
  display: flex;
  gap: 8px;
}

#playlist-container,
#cover-container,
#lyrics-container {
  border: 1px solid #ddd;
  padding: 30px;
  padding-top: 0px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  box-shadow: 0px 3px 5px 0px rgb(0, 0, 0, 0.16);
  min-height: 300px;
}

#current-track {
  font-size: 25px;
  text-align: center;
  margin-bottom: 40px;
}

#github-button {
  margin-top: 8px;
}

.buttons-spacer {
  display: none;
}

#tab-container {
  display: flex;
  margin-top: 30px;
  padding: 10px 30px;
  overflow: hidden;
  background-color: #000;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

#cover-container {
  display: none;
  flex-direction: row;
  gap: 30px;
  margin: 0 auto;
  padding: 30px 0;
  align-items: center;
  justify-content: center;
}

#cover-container img {
  max-width: 65px;
  cursor: pointer;
}

#cover-image-container img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  transition: transform 0.3s ease;
  pointer-events: none;
}

#lyrics-container {
  display: none;
  padding-top: 50px;
  font-size: 16px;
  line-height: 26px;
}

.track-cover {
  min-height: 282px;
}

#prev-track {
  width: 35%;
  text-align: right;
  cursor: pointer;
}

#prev-track img,
#next-track img {
  width: 28px;
}

#cover-image-container {
  width: 40%;
  text-align: center;
}

#cover-title {
  font-size: 18px;
  height: 70px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #222;
  color: #fff;
  border-radius: 8px;
}

#next-track {
  width: 35%;
  text-align: left;
  cursor: pointer;
}

#play-track {
  background: #fff;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#play-track:hover {
  background: #e1e1e1;
}

#play-track:hover img {
  transform: scale(1.1);
}

#cover-play {
  width: 40%;
  pointer-events: none;
}

#volume-button {
  width: 22px;
  margin-top: 2px;
}

@media screen and (max-width: 999px) {
  body {
    margin: 0 auto;
    height: 100%;
  }

  .main {
    width: 80% !important;
    padding: 10px;
  }

  .time-container {
    font-size: 28px;
    gap: 14px;
  }

  .controls-buttons {
    gap: 4px;
  }

  #github-button {
    margin-top: 8px;
  }

  #current-track {
    font-size: 18px;
    margin-bottom: 30px;
    margin-top: 12px;
  }

  .modal {
    width: 80%;
    height: 80%;
    padding: 30px;
    font-size: 13px;
    line-height: 22px;
  }

  .modal b {
    font-size: 16px;
  }

  #playlist {
    list-style: none;
    padding: 0;
    font-size: 18px;
    padding: 0;
    margin: 0;
    margin-top: 30px;
    display: block !important;
  }

  #playlist li {
    margin-bottom: 10px;
    cursor: pointer;
    grid-column: auto !important;
  }

  #playlist li:nth-child(odd) {
    grid-column: 1 !important;
  }

  #playlist li:nth-child(even) {
    grid-column: 1;
  }

  .playlist-row {
    display: flex;
    justify-content: space-between;
  }

  #playlist li {
    display: block !important;
    grid-column: 1 !important;
  }

  #volume-control {
    width: 200%;
    margin: 20px;
  }

  #volume-control-container {
    margin-left: -10px;
    width: 60%;
    margin-top: 4px;
    float: left;
  }

  .controls-buttons {
    display: block;
    align-items: center;
    gap: 10px;
    clear: both;
  }

  .controls {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
  }

  .progress {
    max-width: 100%;
  }

  .controls-buttons-right {
    width: 130px !important;
    text-align: right;
  }

  .buttons-spacer {
    clear: both;
    display: block;
    height: 22px;
  }

  #cover-image-container img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
  }

  .track-cover {
    min-height: 100px;
  }

  #prev-track {
    width: 10%;
    text-align: right;
  }

  #prev-track img,
  #next-track img {
    width: 24px;
  }

  #play-track {
    width: 50px;
    height: 50px;
  }

  #cover-image-container {
    width: 60%;
    text-align: center;
  }

  #cover-title {
    margin-top: 2px;
    font-size: 15px;
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #665;
    color: #fff;
    border-radius: 8px;
  }

  #next-track {
    width: 10%;
    text-align: left;
  }

  #volume-button {
    width: 24px;
    margin-top: 14px;
  }

  .controls img {
    width: 42px;
  }

  .header-int img {
    height: 30px;
  }

  #cover-container {
    gap: 0px;
    padding: 30px 0;
  }

  #cover-container img {
    width: 100% !important;
    max-width: 40px !important;
  }

  #cover-image-container img {
    width: 100% !important;
    max-width: 100% !important;
  }

  #cover-container #cover-play {
    width: 100% !important;
    max-width: 40px !important;
  }

  .controls-buttons-right {
    width: 92px !important;
  }

  .audio-player-container {
    margin-top: 20px;
  }

  #current-time,
  #total-time {
    display: none;
  }

  #tab-container {
    padding-left: 16px;
  }
}
