* {
  box-sizing: border-box;
}
body {
  overflow-x: hidden;
}
#scroll_container_comic {
  width: 100vw;
  height: 100vh;
  padding: 50px;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #dce1e6;
}
#comic_container {
  position: relative;
  overflow: hidden;
  max-height: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(250px, 400px) minmax(250px, 400px) minmax(
      250px,
      400px
    );
  grid-template-rows: 1fr 1fr;
  place-content: center;
  gap: 50px;
}
.comic_card {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comic_card img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.container_texts_abs {
  position: absolute;
  width: 50%;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  padding: 0 50px;
}
.container_texts {
  position: relative;
  height: 100%;
  width: 100%;
}
.container_text {
  position: absolute;
  bottom: 20%;
  margin: 0;
  padding: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.text_comic {
  position: relative;
  width: 90%;
  height: auto;
  padding: 20px;
  margin: 0;
  background: white;
  box-shadow: 1px 12px 33px rgba(0, 0, 0, 0.5);
}
.text_comic:before {
  border: 25px solid white;
  content: "";
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-right-color: transparent;
  position: absolute;
  bottom: calc(50% - (25px / 2));
  left: -46px;
  transform: rotate(90deg);
}

@media (max-width: 960px) {
  #scroll_container_comic {
    padding: 0;
  }
  #comic_container {
    grid-template-columns: minmax(100px, 300px) minmax(100px, 300px);
    grid-template-rows: 1fr 1fr 1fr;
    column-gap: 50px;
    row-gap: 30px;
  }
  .container_texts_abs {
    position: absolute;
    width: 100%;
    height: 50%;
    bottom: 50%;
    margin: auto;
    padding: 0 50px;
  }
  .text_comic {
    font-size: 12px;
    width: 100%;
    padding: 5px;
  }
  .text_comic:before {
    bottom: -46px;
    left: calc(50% - (25px));
    transform: rotate(0deg);
  }
}

@media (max-width: 576px) {
  #scroll_container_comic {
    padding: 15px;
  }
  #comic_container {
    grid-template-columns: minmax(100px, 248px) minmax(100px, 248px);
  }
}
