/****************/
/* Compositions */
/****************/
.compositions {
  position: relative;
  background-color: var(--background-color-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--text-color-light);
  height: 100vh;
  max-width: 100vw;
  overflow: visible;
}
#compositions {
  text-align: right;
  padding-right: 7%;
  width: 100%;
}
.compositions__list {
  display: flex;
  flex-flow: column;
  max-height: 65vh;
  list-style: none;
  text-align: center;
}
.compositions__list-item {
  display: flex;
  flex-flow: column;
  color: var(--text-color-dark);
  justify-content: center;
  align-items: center;
  font-size: clamp(10px, 40px, 80px);
  font-weight: bold;
  text-align: center;
  margin: 15px 9vw;
  background: rgb(254, 247, 236);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 2px 5px 1px rgb(29, 29, 29);
  transform: scale(1);
  transition: all 100ms;
  z-index: 1;
  cursor: pointer;
}
.compositions__list-item:hover {
  transform: scale(1.02);
}
.compositions__list-item:active {
  transform: scale(0.99);
}
.compositions__list-item a {
  color: var(--text-color-dark);
  text-decoration: none;
  cursor: pointer;
}
.modal-container {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.507);
  z-index: 1;
}
.compositionDiv {
  position: absolute;
  width: 80%;
  height: 90%;
  background: url(../images/stars.jpg) no-repeat;
  background-size: cover;
  border-radius: 10px;
  padding: 5%;
  display: flex;
  flex-flow: row;
  z-index: 3;
  box-shadow: 0 2px 5px 1px rgb(0, 0, 0);
}
.piece-infopage {
  display: flex;
  min-width: 200px;
  padding: 3%;
}
.piece-infopage__info {
  background: #4034714b;
  text-align: center;
  height: fit-content;
  margin: auto;
}
.piece-information-div {
  display: flex;
  flex-flow: column;
  gap: 10px;
  align-items: center;
  padding-top: 5%;
}
.piece-name {
  font-size: clamp(55px, 6vw, 110px);
  text-align: center;
}
.close-button {
  background: transparent;
  position: absolute;
  right: 10px;
  top: 10px;
  border: 1px solid white;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-content: center;
  cursor: pointer;
  color: black;
  font-size: 200%;
  & p {
    position: relative;
    top: -1px;
    color: white;
  }
}
.piece-image {
  margin: auto;
  margin-right: 3%;
  width: 25vw;
  height: calc(25vw * 1.414);
  aspect-ratio: 1 / 1.414;
  opacity: 0.9;
}
.piece-instrumentation-text {
  pointer-events: none;
  font-size: small;
  color: var(--text-color-dark);
  padding: 0;
  width: 100px;
  font-weight: normal;
}
.purchase-information {
  max-width: 950%;
  text-align: center;
  padding-top: 20px;
}
.purchase-information a {
  color: inherit;
}
.svg-page-decoration {
  background: transparent;
}

.bassclef {
  min-width: 90px;
  width: 20%;
  top: 40%;
}
.downquavers {
  min-width: 100px;
  width: 23%;
  max-width: 450px;
  left: 10%;
}
.fermata {
  min-width: 220px;
  right: 5%;
  width: 20%;
}
.minimrest {
  min-width: 220px;
  max-width: 600px;
  width: 27%;
  top: 27%;
  right: 0%;
}
.upquavers {
  min-width: 90px;
  max-width: 450px;
  width: 20%;
  bottom: -3%;
  right: 10%;
}
.contactminimrest {
  min-width: 170px;
  width: 25%;
  bottom: 0%;
  right: 10%;
}

@media only screen and (max-width: 1100px) {
  .compositions {
    position: relative;
    background-color: var(--background-color-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color-light);
    overflow: visible;
    padding: 0 0;
  }
  .compositions__list {
    max-height: unset;
    display: flex;
    justify-content: center;
    margin: 0;
    list-style: none;
    text-align: left;
  }

  .compositions__list-item {
    font-weight: bold;
    font-size: clamp(10px, 40px, 80px);
    transform-origin: top left;
    transition: 300ms;
  }
  .compositions__list-item a {
    color: var(--text-color-dark);
    text-decoration: none;
    font-size: clamp(20px, 4vw, 80px);
  }
  .compositions__list-item.show {
    opacity: 1;
    transform: translateX(0);
  }
  .compositions__list-item__details {
    display: flex;
    flex-flow: column;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    opacity: 1;
    transition: 300ms;
    line-height: normal;
  }
  .compositions__list-item:hover {
    & .compositions-list__details {
      opacity: 1;
    }
  }
  .piece-image {
    display: none;
  }
}
@media only screen and (min-width: 1100px) {
  #piece1,
  #piece2,
  #piece3,
  #piece4,
  #piece5 {
    position: absolute;
    width: 260px;
    height: 120px;
    font-size: 30px;
  }
  .compositions__list-item:hover a,
  .compositions__list-item:hover p {
    filter: brightness(0) saturate(100%) invert(95%) sepia(72%) saturate(7491%)
      hue-rotate(304deg) brightness(81%) contrast(83%);
  }
  .compositions__list-item:hover {
    box-shadow: 0 1px 5px 1px rgba(255, 217, 0, 0.419);
  }
  #piece1 {
    top: 45%;
    left: 0%;
  }
  #piece2 {
    top: 27%;
    right: 6%;
  }
  #piece3 {
    top: 29%;
    left: 20%;
  }
  #piece4 {
    top: 53%;
    right: 20%;
  }
  #piece5 {
    top: 70%;
    left: 25%;
  }
  .purchase-information {
    position: absolute;
    bottom: 5%;
  }
  #compositions {
    position: absolute;
    top: 5%;
  }
  .constellation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: visible;
  }

  .constellation svg {
    position: absolute;
    width: 100%;
    height: 100%;
    /* preserveaspectratio: none; */
  }
}
