/* ? -------  Trouble shoot checking section --------- */

/* * {
  background-color: rgb(0 100 0 / 0.1);
} */

/* *--------------------- Reset ---------------------* */

*,
*::after,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

.container {
  margin: 0rem 2rem;
  padding: 1rem 1rem;
}

@media screen and (min-width: 1500px) {
  .container {
    max-width: 1500px;
    margin: 0rem auto;
  }
}

body {
  background-color: var(--color-background);
  color: var(--color-fonts);
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input {
  color: var(--color-fonts);
}

.disableScroll {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

/* *--------------------- Root ---------------------* */

:root {
  --color-background: #fff;
  --color-fonts: #000000;
  --color-playIcon-background: #f3f5f8;
  --color-primary-color: #c83c3c;
}

/* *------------------ Typography -------------------* */

body {
  font-size: 62.5%;
  /* 1rem = 10px */
}

h1 {
  font-size: 2rem;
  font-weight: 500;
}

h2 {
  font-size: 1.2rem;
  font-weight: 500;
}

p {
  font-size: 1rem;
  font-weight: 300;
}

input,
a,
button {
  font-size: 1rem;
}

@media screen and (min-width: 1000px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.4rem;
    font-weight: 500;
  }

  p {
    font-size: 1.2rem;
    font-weight: 300;
  }
}

/* *--------------------------- Header ----------------------------* */
.header {
  margin-top: 10px;
  height: 175px;
  margin-bottom: 80px;
}

.header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.header__top .icon {
  padding-left: 8px;
  width: 25px;
  height: 38px;
  background-color: var(--color-playIcon-background);
  border-radius: 30px 0px 0px 30px;
  border: 0;
}

.header__top form {
  width: 100%;
}

.header__top input {
  width: 100%;
  background-color: var(--color-playIcon-background);

  border-radius: 0px 30px 30px 0px;
  border: 0;
  outline: none;
  padding: 10px;
}

.header__top__search-bar-container {
  display: flex;
  align-items: center;
}

.header__main {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__main__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.header__main__text {
  position: relative;
  top: 12px;
  margin-left: 40px;
}

.hero-image {
  width: 173px;
  height: 185px;
}

.header__main__text p {
  display: none;
}

.header__main__text :first-child {
  display: block;
}

.header__main__background {
  background-color: var(--color-primary-color);
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 140px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  border-bottom-left-radius: 30px;
  z-index: -1;
}

@media screen and (min-width: 392px) {
  .header__main__text {
    position: relative;
    top: 25px;
  }
  .header__main__text :last-child {
    display: block;
  }

  .header__main__background {
    border-radius: 30px;
    height: 120px;
  }
}

@media screen and (min-width: 470px) {
  .header__main__text p {
    display: block;
  }
}

@media screen and (min-width: 360px) {
  .header__main__text {
    margin-right: 1rem;
  }
}

/* *--------------------------- Selection  ---------------------------* */
.selection {
  display: flex;
  justify-content: center;
}

.selection__items {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.selection__items p {
  width: 80px;
  text-align: center;
  cursor: pointer;

  transition: all 50ms;
}

.--selected-Filter {
  text-decoration: underline solid var(--color-primary-color);
  text-decoration-thickness: 0.2rem;
  text-underline-offset: 8px;
}

.selection__items :nth-child(2) {
  margin: 0rem 0.75rem;
}

/* *--------------------------- Songs Cover Section -------------------------* */

.songs-cover {
  display: flex;
  overflow: auto;
}

.song-cover__self {
  cursor: pointer;
  margin-right: 40px;
  transition: all 0.2s;
}

.song-cover__self:hover {
  transform: scale(1.1);
}

.song-cover__self__cover-image {
  position: relative;
  pointer-events: none;
}

.song-cover__self__cover-image img {
  width: 148px;
  height: 185px;
  object-fit: cover;
  object-position: center center;
  border-radius: 30px;
  /* filter: grayscale(100%); */
}
/* ! TEMP */
/* .--red-filter{
  filter: grayscale(100%) sepia(100%) hue-rotate(-50deg) saturate(200%)
  brightness(80%);
} */

.song-cover__self__cover-image svg {
  width: 30px;
  height: 30px;
  position: absolute;
  background-color: var(--color-playIcon-background);
  padding: 7px;
  border-radius: 100%;
  bottom: -5px;
  right: 10px;
}

.song-cover__self__text {
  pointer-events: none;
}

.song-cover__self__text h2 {
  font-size: 1.2rem;
}

.song-cover__self__text p {
  font-size: 1rem;
}

@media screen and (min-width: 1000px) {
  .song-cover__self__text h2 {
    font-size: 1.3rem;
  }

  .song-cover__self__text p {
    font-size: 1.1rem;
  }
}

/* *------------------------------- Tracks Section ------------------------------------* */

.tracks-section__title {
  margin-bottom: 20px;
}

.tracks__self {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-playIcon-background);
  border-radius: 30px;
  padding: 8px 18px;
  margin-bottom: 20px;
  transition: all 0.2s;
  cursor: pointer;
}

.tracks__self:hover {
  transform: scale(1.02);
  background-color: #ebeff4;

  /* box-shadow: 0 0 10px rgba(51, 51, 51, 0.434); */
}

.tracks__self__left {
  pointer-events: none;
  display: flex;
  align-items: center;
}

.tracks__self__left__play-icon svg {
  width: 20px;
  height: 20px;
  background-color: var(--color-playIcon-background);
  /* padding: 10px; */
  border-radius: 100%;
  margin-right: 15px;
}

.tracks__self__left__text h2 {
  font-size: 1rem;
}

.tracks__self__left__text p {
  font-size: 0.8rem;
}

.tracks__self__right {
  display: flex;
  align-items: center;
  padding: 10px;
  margin: 10px;
}

.tracks__self__right__icon {
  width: 20px;
  height: 20px;
  border-radius: 100%;
  pointer-events: none;
}

.tracks__self__right__icon__self {
  pointer-events: none;
}

@media screen and (min-width: 1000px) {
  .tracks__self__left__text h2 {
    font-size: 1.3rem;
  }

  .tracks__self__left__text p {
    font-size: 1.1rem;
  }
}

/* *------------------------ Playing Song Section -------------------------* */

.song-playing-section__main {
  /* position: absolute; */
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 250px;
}

/* - - - Top - - - */
.song-playing-section__top {
  position: relative;
  width: 100%;
  overflow-y: hidden;
  background-color: rgba(37, 37, 37, 0.694);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container-modal {
  margin-top: 25px;
  position: relative;
  z-index: 3;
  color: white;
  max-width: 1500px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
}

.container-modal :first-child {
  justify-self: start;
  /* position: relative; */
  /* right: 15px; */
}

.song-playing-section__top__songTitle {
  font-weight: 600;
}

.song-playing-section__top__lyric {
  text-align: center;
  z-index: 3;
  line-height: 35px;
  color: white;
  display: flex;
  justify-content: center;
  margin: 30px;
  height: 80%;
  overflow-y: auto;
  font-weight: 500;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.song-playing-section__top__lyric::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.song-playing-section__top__lyric {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.modal-back-image {
  filter: blur(2px);
  position: absolute;
  top: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.makeItDarker {
  background-color: rgba(0, 0, 0, 0.522);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: 1;
}

@media screen and (min-width: 700px) {
  .modal-back-image {
    display: none;
    object-position: bottom;
  }
}

/*  - - - Bottom - - -  */
.song-playing-section__bottom {
  background-color: rgb(255, 255, 255);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
  /* padding-bottom: 30px; */
}

.song-playing-section__bottom__controls {
  max-width: 380px;
  width: 70%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  /* 40-100 */
}

.song-playing-section__main .icon,
.song-playing-section__main .close-btn {
  cursor: pointer;
  width: 25px;
  height: 25px;
}

.song-playing-section__main .close-btn {
  margin-left: 15px;
  margin-right: 45px;
}

.song-playing-section__bottom__progress {
  max-width: 380px;
  margin: 20px 0px 30px 0px;
  width: 70%;
  background-color: var(--color-playIcon-background);
  border-radius: 30px;
}

.song-playing-section__bottom__progress__self {
  position: relative;
  height: 5px;
  width: 0%;
  background-color: var(--color-primary-color);
  border-radius: 30px;
}

.circle-progress {
  position: absolute;
  right: 0;
  bottom: -5px;
  width: 14px;
  height: 14px;
  border-radius: 100%;
  background-color: var(--color-primary-color);
}

.song-playing-section__bottom__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 70%;
  max-width: 380px;
}

.song-playing-section__main .playbutton {
  width: 30px;
  height: 30px;
}

.toggle-play-pause {
  /* box-shadow: 0 0  10px var(--color-primary-color); */
  cursor: pointer;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-primary-color);
  border-radius: 100%;
}

.toggle-play-pause .playbutton {
  position: relative;
  right: 2px;
  bottom: 2px;
  width: 25px;
  height: 25px;
}

.modalLeftTitle {
  margin-top: 0px;
}

.repeatBtn,
.randomBtn {
  opacity: 0.3;
}

@media screen and (min-width: 1024px) {
  .repeatBtn:hover {
    opacity: 1;
  }

  .favIconModal:hover {
    filter: invert(56%) sepia(66%) saturate(4529%) hue-rotate(331deg)
      brightness(79%) contrast(98%);
  }

  .tracks__self__right:hover {
    filter: invert(56%) sepia(66%) saturate(4529%) hue-rotate(331deg)
      brightness(79%) contrast(98%);
  }

  .allBtn:hover,
  .FavouriteBtn:hover {
    text-decoration: underline solid var(--color-primary-color);
    text-decoration-thickness: 0.2rem;
    text-underline-offset: 8px;
  }
}

/* todo: add to top ------------------------------ */

.--display-none {
  display: none;
}

.--selected {
  opacity: 1;
}

.--fav-selected {
  filter: invert(56%) sepia(66%) saturate(4529%) hue-rotate(331deg)
    brightness(79%) contrast(98%);
}

.--disable-click {
  pointer-events: none;
}

.song-playing-section__bottom__controls,
.song-playing-section__bottom {
  overflow-y: auto;
}
