* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif
}

ul {
  list-style-type: none;
}

li {
  padding: 10px 0px;
}

.down-bar hr {
  margin: 15px auto;
}

h2,
h3 {
  color: white;
}

h4 {
  color: rgb(125, 127, 132);
  margin-top: 10px;
}

.card h3 {
  margin-top: 15px;
}

.card h3,
.card h4 {
  text-align: center;
}

a {
  text-decoration: none;
  color: rgb(125, 127, 132);
}

/*************MAIN and FOOTER Layout****************/
main {
  display: flex;
  height: calc(100vh - 100px);
}

#main-content a {
  text-transform: uppercase;
  color: rgb(125, 127, 132);
}

footer {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 0px 10px;
  background-color: rgb(40, 40, 40);
  color: white;
  gap: 5px;
}

/*****************SIDE BARS*****************/

#side-bar {
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 15px;
  background-color: black;
  color: rgb(125, 127, 132);
  overflow-y: auto;
}


.big-screen {
  display: flex;
  width: 250px;
}


.small-screen {
  display: none;
  width: 60px;
}


#content {
  height: 100%;
  width: calc(100vw - 250px);
  background-color: rgb(20, 25, 34);
  overflow-y: auto;
}

#main-content {
  padding: 20px;
}

.categories {
  margin: 30px 0px;
}


/***************UTILITIES********************/

.d-flex {
  display: flex;
}


.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: end;
}

.text-center {
  text-align: center;
}

.p-relative {
  position: relative;
}

.mt-20 {
  margin-top: 20px;
}

.mr-25 {
  margin-right: 25px;
}

.w-100 {
  width: 100px;
}

.p-w-100 {
  width: 100%;
}

.fs-2em {
  font-size: 2.5em;
}

.fs-4em {
  font-size: 4em;
}

.gap-10 {
  gap: 10px;
}

.c-lightgrey {
  color: rgb(125, 127, 132);
}

.c-white {
  color: white;
}

.b-radius-50 {
  border-radius: 50%;
}


/**************************************/
/******top-bar******/
#topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100px;
  background-color: rgb(8, 11, 18);
  padding: 15px;
}

.cta {
  color: white;
  height: 40px;
  padding: 0px 15px;
  text-transform: uppercase;
  border: 1px solid white;
  border-radius: 50px;
  line-height: 40px;
  cursor: pointer;
}

/***********POINTER LINES***********************/
.vertical-pointer {
  position: absolute;
  background-color: rgb(131, 188, 65);
  border-radius: 50px;
  top: 10px;
  left: -15px;
  width: 3px;
  height: 30px;
}

.pointer::after {
  content: "";
  display: block;
  width: 35px;
  height: 3px;
  background-color: rgb(131, 188, 65);
  border-radius: 50px;
  margin: 5px auto;
}

/**************Side bar content********************/

.logo {
  width: 150px;
  margin: 25px 0px;
}


#side-bar img {
  height: 30px;
  vertical-align: middle;
}


#side-bar span {
  line-height: 30px;
  vertical-align: middle;
  cursor: pointer;
}

i {
  font-size: 30px;
  vertical-align: middle;
  margin-right: 5px;
}

.playlist-names ul {
  height: 40vh;
  overflow-y: auto;
}


/*************MAIN-CONTENT*************/
/******6 columns******/
#main-content li {
  font-size: 14px;
  margin: 10px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.col {
  width: calc(100% / 6 - 10px);
}

#main-content img {
  display: block;
  width: 100%;
}

.cover {
  position: relative;
}

/***************OVERLAY********************/

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  z-index: 1;
  opacity: 0;
  transition: 1s;
}

.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.artists img {
  border-radius: 50%;
}

/****************FOOTER content******************/
footer img {
  width: 40px;
}

footer i {
  font-size: 20px;
}

.player-console {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.player-console .icons {
  display: flex;
  align-items: center;
}
  

.tune,
.settings {
  display: flex;
  align-items: center;
}

.song-lenght {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
  min-width: 290px;
}

.player-console i {
  margin: 0px 15px;
}

.s-icons i {
  margin: 0px 5px;
}

/* content player console*/
/*******music bar********/
.music-bar {
  height: 4px;
  background-color: rgb(90, 90, 90);
  margin: 15px;
  border-radius: 50px;
}

.colored-bar {
  height: 100%;
  width: 20%;
  background-color: white;
  border-radius: 50px;
  cursor: pointer;
}

.player-indicator {
  display: none;
  position: absolute;
  left: 90%;
  top: -5px;
  height: 15px;
  width: 15px;
  background-color: silver;
  border: 1px solid grey;
  border-radius: 50%;
  cursor: pointer;
}

/*********HOVER***HOVER****HOVER*********/

.cover:hover .overlay {
  opacity: 1;
}

#side-bar span:hover,
#main-content a:hover,
.tune .s-icons i:hover,
.playlist-creator:hover {
  color: white;
}

.cta:hover {
  height: 50px;
  line-height: 50px;
  padding: 0px 20px;
  font-size: 1.1em;
}

.colored-bar:hover {
  background-color: rgb(131, 188, 65);
}

.colored-bar:hover .player-indicator {
  display: block;
}

h6:hover {
  cursor: pointer;
  color: white;
  text-decoration: underline;
}

#side-bar i:hover {
  color: white;
}

.play-btn:hover {
  scale: 1.2;
}


/*****MEDIA QUERY*****MEDIA QUERY*****MEDIA QUERY*****/
/*TABLET*/

@media screen and (max-width:992px) {
  .col {
    width: calc(100% / 4 - 10px);
  }

  .menu ul {
    flex-wrap: wrap;
  }

  #main-content li {
    font-size: 14px;
    margin: 10px;
    width: calc(100% / 5 - 20px);
  }

}

/********************************/
@media screen and (max-width:768px) {
  .col {
    width: calc(100% / 2 - 10px);
  }

  .menu ul {
    flex-wrap: wrap;
  }


  #main-content li {
    width: calc(100% / 3 - 20px);
  }

  .settings {
    flex-direction: column;
    gap: 5px;
  }

  .name {
    margin-right: 0px;
  }
}

/********************************/
@media screen and (max-width:596px) {
  .big-screen {
    display: none;
    width: 250px;
  }

  .small-screen {
    display: flex;
    width: 60px;
  }

  #content {
    height: 100%;
    width: calc(100vw - 60px);
    background-color: rgb(20, 25, 34);
    overflow-y: auto;
  }

  #main-content li {
    width: calc(100% / 4 - 20px);
  }

  .song-name {
    display: none;
  }

  .player-console i {
    margin: 0px 5px;
  }
}

/********** NUOVE REGOLE PER SCHERMI SOTTO 510PX **********/
@media screen and (max-width:510px) {
  /* Footer più compatto */
  footer {
    padding: 0px 5px;
    gap: 3px;
  }

  /* Tune section più piccola */
  .tune {
    gap: 5px;
    min-width: 80px;
  }

  .tune img {
    width: 30px;
  }

  .tune .s-icons {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .tune .s-icons i {
    font-size: 14px;
    margin: 0;
  }

  /* Player console compatto */
  .player-console {
    flex: 1;
    min-width: 0;
  }

  .player-console .icons {
    display: flex;
    gap: 5px;
  }

  .player-console i {
    margin: 0px 3px;
    font-size: 16px;
  }

  .play-btn {
    font-size: 1.5em !important;
    vertical-align: middle;
  }

  .player-console .icons {
    align-items: center;
  }

  .song-lenght {
    min-width: 0;
    width: 100%;
  }

  .song-lenght span {
    font-size: 10px;
  }

  .music-bar {
    margin: 10px 5px;
  }

  /* Settings trasformato in icona hamburger */
  .settings .s-icons {
    display: none;
  }

  .settings .music-bar {
    display: none;
  }

  .settings {
    min-width: 40px;
    justify-content: center;
  }

  .settings::after {
    content: "\f0c9";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 20px;
    color: white;
    cursor: pointer;
  }

  /* Colonne cards */
  .col {
    width: calc(100% / 2 - 10px);
  }

  /* Menu navigazione */
  #main-content li {
    font-size: 12px;
    margin: 5px;
    width: calc(100% / 3 - 10px);
  }

  #main-content {
    padding: 15px 10px;
  }

  
  .categories h2 {
    font-size: 18px;
  }

  .categories h4 {
    font-size: 12px;
  }

  .card h3 {
    font-size: 14px;
  }

  .card h4 {
    font-size: 11px;
  }

  
  .cta {
    font-size: 12px;
    padding: 0px 10px;
    height: 35px;
    line-height: 35px;
  }

  .cta:hover {
    height: 38px;
    line-height: 38px;
    padding: 0px 12px;
    font-size: 13px;
  }
}

/********** SCHERMI EXTRA SMALL (sotto 400px) **********/
@media screen and (max-width:400px) {
  /* Una sola colonna per le card */
  .col {
    width: 100%;
  }

  
  #main-content li {
    font-size: 11px;
    margin: 3px;
    width: calc(50% - 6px);
  }

  /* Footer icon size */
  footer i {
    font-size: 16px;
  }

  .player-console i {
    margin: 0px 2px;
    font-size: 14px;
  }

  
  .small-screen {
    width: 50px;
    padding: 10px;
  }

  #content {
    width: calc(100vw - 50px);
  }

  #side-bar img {
    height: 25px;
  }
}
