:root {
  /* --bg-light: #F0EEE2; */
  /* --bg-dark: #DBD9CE; */
  /* --accent-light: #4C6C52; */
  /* --accent-dark: #253127; */

  --bg-light: #F4F8FB;
  --bg-dark: #DFE3E6;
  --accent-light: #533A7B;
  --accent-dark: #25171A;
}

h1,
h2 {
  color: var(--accent-dark);
  text-align: center;
}

.top-x-list {
  list-style-type: none;
  padding: 0 1em;
  max-height: 55em;
  overflow-y: scroll;
}

.new-artists-container {
  margin-top: 2rem;
}

.new-artists-container,
.top-x-list-container {
  position: relative;
  flex: 1 1 0px;
}

.new-artists-container::after,
.top-x-list-container::after {
  content: "";
  /* Required for pseudo-elements */
  position: absolute;
  bottom: 10;
  /* Position it at the bottom */
  left: 0;
  right: 5;
  height: 40px;
  /* Height of the shadow */
  background: linear-gradient(to bottom, rgba(83, 58, 123, 0) 0%, rgba(83, 58, 123, 0.25) 100%);
  /* Fade effect */
  pointer-events: none;
  /* Allow clicks to pass through */
  /* border-radius: 0 0 1em 1em; */
}

.new-artists-list {
  list-style-type: none;
  /* display: grid; */
  /* grid-template-columns: 1fr 1fr 1fr 1fr 1fr; */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-height: 55em;
  overflow: scroll;
}

.new-artists-list-item {
  padding: 0.25rem;
  /* text-align: center; */
}

.new-artists-list-item p {
  margin: 0;
}

.new-artists-list-item,
.top-tracks-list-item,
.top-artist-info {
  /* background-color: var(--bg-light); */
  /* border-radius: 1em; */
  /* overflow: hidden; */
  /* height: 5em; */
  /* margin: 0.75em 0; */
  /* transition: scale 300ms; */

  background-color: var(--bg-light);
  box-sizing: border-box;
  border: 2px solid var(--accent-dark);
  transition: background-color 100ms linear, scale 300ms;
}

.top-tracks-list-item,
.top-artists-info {
  height: 5em;
  margin: 0.75rem 0;
}

.top-artist-info,
.track-info-container {
  padding: 0.75em;
}

.top-tracks-list-item:hover,
.top-artist-info:hover {
  background-color: var(--bg-dark);
  scale: 1.05;
}

.top-tracks-list-item-container {
  display: grid;
  grid-template-columns: 2fr 3fr;
  padding: 0;
  margin: 0;
  max-height: fit-content;
  height: 100%;
  overflow: hidden;

  aspect-ratio: 3 / 1;
}

.blank-img-replacement {
  background-color: gray;
  width: 90%;
}

.album-img {
  padding: 0;
  margin: 0;
  max-height: 100%;
  max-width: 100%;
  width: 90%;
}

.top-track-info-container,
.track-info-container,
.top-artist-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: 100%;

  font-size: 18px;
}


.track-listens {
  font-weight: bold;
}

.track-info,
.top-artist-info p {
  margin: 0;
  padding: 0;
}

.random-tracks-container {
  margin: 2rem auto;
  max-width: 75%;
}

.statistics-container {
  margin: 1em auto;
  max-width: 65%;
}

.statistics {
  /* border-radius: 1em; */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border: 2px solid var(--accent-dark);
  padding: 0.5em;
  text-align: center;

  /* display: flex; */
  /* justify-content: space-evenly; */
}

.statistics p {
  padding: 0;
  margin: 0;
}

.wrap-up-container {
  display: flex;
  flex-direction: row;
}

.overview-container {
  max-width: 75%;
  margin: auto;
  text-align: center;
  border: 2px solid var(--accent-dark);
}

.overview {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
}

.top-x-lists-container {
  display: flex;
  flex-direction: row;

  /* max-width: 85%; */
  margin: auto;

  gap: 1em;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;900');

text {
  fill: var(--accent-light);
  font-family: Inter, sans-serif;
  font-weight: 900;
  flex: 1 1 0px;
}

.line {
  stroke: var(--accent-light);
}

.overview-main-rect {
  fill: var(--bg-light);
}

.branding {
  font-size: 20px;
  letter-spacing: 0em;
}

.heading,
.entity-count {
  font-size: 70px;
}

.listen-count,
.album-name,
.artist-name {
  font-size: 20px;
}

.album-name,
.artist-name {
  font-family: Inter, sans-serif;
  font-weight: 900;
  color: var(--bg-light);
}

.album-name {
  margin: 8px;
}

.artist-name {
  font-weight: 300;
  margin: 8px;
  margin-top: 0;
}

.entity {
  font-weight: 300;
  font-size: 70px;
}

.genre-count {
  /* font-size: 79px; */
  font-size: 52px;
}

.dark {
  fill: var(--accent-dark);
}

.overlay {
  isolation: isolate;
}

.overlay .genre-count {
  mix-blend-mode: overlay;
}

.value {
  font-weight: 300;
}

@media screen and (max-width:990px) {
  .overview-container {
    max-width: 100%;
  }

  .top-x-list {
    max-height: 100%;
  }

  .top-tracks-list-item-container {
    max-height: 100%;
  }

  .statistics-container {
    margin: 1em auto;
    max-width: 100%;
  }

  .top-x-lists-container {
    flex-direction: column;
    max-width: 100%;
    margin: auto;
  }

  .new-artists-list-item {
    flex: 1 1 40%;
  }

  .top-x-list-container::after {
    background: inherit;
  }

  .random-tracks-container {
    max-width: 100%;
  }

  .top-track-info-container {
    max-width: 65%;
  }

  .top-track-info-container>p {
    overflow-wrap: break-word;
    hyphens: auto;
    font-size: 14px;
  }

  .top-tracks-list-item-container>div {
    padding: 0;
  }
}