/* Importing other CSS files */
@import url("./reset.css");
@import url("./theme.css");
@import url("./components/buttons.css");
@import url("./components/header.css");
@import url("./components/footer.css");

@font-face {
  font-family: 'GFFLatinW05-Bold';
  src: url('./assets/fonts/GFFLatinW05-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'GFFLatinW05-Medium';
  src: url('./assets/fonts/GFFLatinW05-Medium.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

/* Global styling for the body */
body {
  font-family: "Montserrat", sans-serif;
  background: var(--background-color);
  color: var(--text-color-primary);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* Global styling for SVG elements */
svg {
  width: 24px;
  height: 24px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1;
  stroke: #1f1f1f;
  fill: none;
}

/* Container styling for the content */
.container {
  background: var(--border-color);
  height: auto;
  max-width: 512px;
  border-radius: 0.5rem;
  padding: 0.2rem;
  clip-path: polygon(
    25px 0%,
    100% 0,
    100% calc(100% - 25px),
    calc(100% - 25px) 100%,
    0 100%,
    0% 25px
  );
}

/* Container styling for the music content */
.music-container {
  height: auto;
  width: 100%;
  border-radius: 0.5rem;
  padding: 2.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--secondary-color);
  clip-path: polygon(
    25px 0%,
    100% 0,
    100% calc(100% - 25px),
    calc(100% - 25px) 100%,
    0 100%,
    0% 25px
  );
  background: var(--card-background);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(px);
}

/* Styling for the cover box */
#cover-box {
  border-radius: 0.5rem;
  padding: 0.25rem;
  background: var(--card-background);
  background-image: var(--gradient-primary);
  width: 25rem;
  min-height: 25em;
  clip-path: polygon(
    25px 0%,
    100% 0,
    100% calc(100% - 25px),
    calc(100% - 25px) 100%,
    0 100%,
    0% 25px
  );
}

/* Styling for the cover image */
#cover {
  display: block;
  height: 100%;
  border-radius: 0.5rem;
  width: 100%;
  object-fit: cover;
  object-position: center center;
  clip-path: polygon(
    25px 0%,
    100% 0,
    100% calc(100% - 25px),
    calc(100% - 25px) 100%,
    0 100%,
    0% 25px
  );
}

/* Styling for the music box */
#music-box {
  width: 100%;
}

/* Styling for the music information */
#music-info,
#control-box {
  font-family: 'GFFLatinW05-Bold', sans-serif;
  text-align: center;
  width: 100%;
  position: relative;
  background: var(--primary-color);
  box-shadow: var(--box-shadow-dark);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#music-info {
  clip-path: polygon(
    20px 0%,
    100% 0,
    100% calc(100% - 0px),
    calc(100% - 0px) 100%,
    0 100%,
    0% 20px
  );
  padding: 1rem 0.5rem;
  bottom: 2rem;
  border-radius: 0px 4px 0px 0px;
}

/* Styling for the title */
#title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2rem;
}

/* Styling for the artist */
#artist {
  font-size: 1.5rem;
  font-weight: 400;
}

/* Styling for the progress container */
#progress-container {
  height: 1rem;
  width: 100%;
  background-color: var(--player-bg);
  border: 1px solid var(--player-thumb-color);
  cursor: pointer;
  border-radius: 0.1rem;
}

/* Styling for the timer bar */
#timer-bar {
  margin: 2rem 0 0.5rem;
  display: flex;
  color: var(--text-color-secondary);
  justify-content: space-between;
  font-size: 1.4rem;
}

/* Styling for the progress bar */
#progress {
  background-color: var(--player-track-color);
  width: 0%;
  height: 0.8rem;
  border-radius: inherit;
  transition: width 100ms ease-in;
}

/* Styling for the control box */
#control-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  clip-path: polygon(
    0px 0%,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%,
    0% 0px
  );
  padding: 1rem;
  top: 2em;
  border-radius: 0px 0px 0px 4px;
}
