@import "fichas.css";
@import "fonts.css";

canvas {
  border: 1px solid black;
  border-radius: 30px;
}

#modalBox {
  width: 40%;
  height: 15.5rem;
  border: 3px solid black;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  position: absolute;
  margin: 0;
  top: 20%;
  left: 30%;
  background-color: #c4ddf5d7;
  font-family: "Poppins";
}

.modal-back {
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.title {
  font-weight: 700;
}

.slogan-subtitle {
  margin-top: 0.2rem;
  font-style: italic;
}

.title-box {
  padding: 2rem;
  padding-bottom: 0.5rem;
}

.legend {
  border: 1px black solid;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0.5rem;
  left: 3rem;
  z-index: 10;
  padding: 0.3rem;
  border-radius: 0.8rem;
}

.legend-entry {
  display: flex;
  flex-direction: row;
  font-style: italic;
}

.graph-parent {
  position: relative;
}

#graph {
  margin: auto;
  margin-left: 1.5vw;
  margin-right: 1.5vw;
  width: 96vw;
}

.cancion-cancion {
  background-color: #81b1e2;
  height: 1rem;
  width: 1rem;
  margin-right: 3px;
}

.cancion-artista {
  background-color: #ffcfcf;
  height: 1rem;
  width: 1rem;
  margin-right: 3px;
}

.artista-cancion {
  background-color: #fd3c2e;
  height: 1rem;
  width: 1rem;
  margin-right: 3px;
}

.legend-title {
  margin: 0.5rem !important;
}

.main-container {
  position: relative;
}

.modal-button {
  border: 3px solid black;
  background-color: #81b1e2;
  border-radius: 0.8rem;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 0.5rem;
  max-width: 50%;
  width: 40%;
  cursor: pointer;
  box-shadow: 2px 4px rgb(71, 71, 71);
  margin: auto;
  position: absolute;
  top: 90%;
  left: 30%;
}

.modal-button:hover {
  background-color: #597b9e;
}

@media screen and (max-width: 1200px) {
  #modalBox {
    width: 40%;
    height: auto;
    border: 3px solid black;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    position: absolute;
    margin: 0;
    top: 20%;
    background-color: #c4ddf5d7;
    font-family: "Poppins";
    padding-bottom: 0.8rem;
    margin-right: 15%;
  }

  .modal-button {
    border: 3px solid black;
    background-color: #81b1e2;
    border-radius: 0.8rem;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    box-shadow: 2px 4px rgb(71, 71, 71);
    margin: auto;
    top: 92.5%;
  }
}

@media screen and (max-width: 800px) {
  .modal-button {
    top: 94%;
  }

  #modalBox {
    width: auto;
    left: 15%;
  }
}

@media screen and (max-width: 450px) {
  #modalBox {
    width: auto;
  }

  .modal-button {
    top: 97%;
    width: auto;
  }
}
