.modal {
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  animation: modalShow 200ms ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes modalShow {
  from {
    opacity: 0
  }

  to {
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  z-index: 12;
  right: 0;
  top: 0;
}

.modal-content {
  height: calc(100vh - var(--main-diff) * 2);
  width: 100%;
}

#modal-about .modal-content {
  height: auto;
  width: 100%;
}

#modal-graph .modal-content {
  top: 5vh;
  height: calc(90vh - var(--main-diff) * 2);
  width: 100%;
}

/* INITIAL GRAPH ABOUT  */
#modal-about,
#modal-date,
#modal-graph {
  display: none;
}

#modal-date {
  background-color: var(--bg-black-color)
}

.modal-data {
  transition: opacity 450ms ease-in-out;
}


/* ATACH GRAPHICS TO THIS PART */
#modal-graph-grfc {
  position: absolute;
  z-index: 11;
  bottom: 0;
  width: 100%;
  height: 85%;
}

#modal-graph-grfc canvas {
  position: absolute;
  bottom: 0;
}

/* DATE */
.modal-content-date {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content-date-time {
  display: flex;
  justify-content: space-around;
  width: 60%;
}

.modal-content-date-time * {
  display: flex;
  margin: 0 0.5em;
}

/* DATA */
/* data */
.modal-graph-data-info {
  position: absolute;
  z-index: 12;
  margin-left: calc(var(--main-diff) * 2);
  display: grid;
  width: 50%;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: var(--main-diff);
}

/*  */

/* ABOUT */
.modal-content-about {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  top: 220px;
  padding-bottom: 220px;
  width: 100%;
  overflow: hidden;
}


.modal-about-grfc {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding: 0 0 175px 0;
}

.modal-about-title {
  padding: 140px 0 80px 0;
}

.modal-about-grfc img {
  width: 15%;
}

.modal-about-grfc div h4:first-child {
  margin-right: 1em;
}

.modal-about-grfc div {
  text-align: left;
  display: flex;
  width: 8em;
}

.modal-about-data-info {
  width: 60%;
}

.modal-about-line {
  width: 80%;
  border: 0.5px solid var(--light-gray-color);
}

.modal-about {
  background: var(--white-color);
}

.modal-about * {
  color: var(--black-color);
}

/* SHARE */
.modal-about-share h3 {
  padding: 85px 0 40px 0;
}

.modal-about-share a {
  padding: 0 1em;
}

/* PRELOADER */
.modal-preloader {
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: var(--blue-color);
  z-index: 10;
}

.modal-preloader .logo {
  top: var(--main-diff);
  left: var(--main-diff);
}

.modal-preloader .center-intro {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.5em;
  display: flex;
  align-items: center;
}

.modal-preloader #dataLoading {
  bottom: 20%;
  left: 50%;
  transform: translate(-50%, 0%);
  position: absolute;
  opacity: 0;
}