* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto Slab', serif;
}

canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
  z-index: -1;
}

.slide {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
  height: 100vh;
}

.counter {
  background-color: black;
  color: white;
  font-size: 2.5rem;
}

canvas.left {
  grid-area: 2/2/span 7/span 3;
}

canvas.right {
  grid-area: 2/6/span 7/span 3;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation-duration: 1s;
}

article p {
  text-align: justify;
}

article h2 {
  line-height: 0.89em;
}

article {
  display: grid;
  animation-duration: 1s;
}

article.left {
  grid-area: 3/2/span 5/span 3;
}

article.right {
  grid-area: 3/6/span 5/span 3;
}

figure {
  display: inline-flex;
  justify-content: center;
  grid-area: 1/3/span 2/span 5;
  align-items: center;
}

#logo {
  width: 90px;
  height: 90px;
}

#logtipo {
  background-color: black;
  color: white;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1em;
}

h1.title {
  grid-area: 3/3/span 4/span 3;
  display: grid;
  grid-template-rows: repeat(8, 1fr);
  grid-template-columns: repeat(6, 1fr);
}

b.how {
  grid-area: 2 / 1 /span 3/span 2;
}

b.to {
  grid-area: 5/1/span 2/ span 1;
  text-align: right;
  font-size: 80px;
  display: flex;
  align-items: center;
  justify-content: right;
}

b.draw {
  grid-area: 5 / 2 / span 3 /span 2;
  display: flex;
  align-items: center;
}

b.autor {
  grid-area: 8/2/span 2/span 5;
  font-size: 30px;
  font-weight: lighter;
}

h1 {
  font-size: 10em;
  animation-duration: 1s;
}

#mainImg {
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  grid-area: 1/4/span 9/span 6;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
}

.seta {
  grid-area: 8/5;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
}

.seta i {
  background-color: black;
  color: white;
  font-size: 35px;
  text-align: center;
  grid-area: 3/3/span 2/ span 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

a {
  color: black;
}

h2.title {
  font-size: 50px;
  z-index: 2;
}

.slide2 h2.title {
  grid-area: 2/4/span 7 / span 3;
  font-size: 6rem;
  text-align: center;
  padding: 0 calc(100vw / 18);
}

.slide2 h3 {
  font-size: 2rem;
  writing-mode: vertical-lr;
  text-transform: uppercase;
}

.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(8, 1fr);
  grid-row-end: span 4;
  grid-column-end: span 3;
}

.steps canvas {
  grid-row-end: span 7;
  grid-column-end: span 7;
}

.steps.p canvas,
.steps.s canvas {
  grid-row-start: 1;
  grid-column-start: 1;
}

.steps.t canvas,
.steps.q canvas {
  grid-row-start: 2;
  grid-column-start: 1;
}

.steps b {
  grid-row-end: span 1;
  grid-column-end: span 1;
  text-align: center;
}

.steps h3 {
  grid-row-end: span 4;
  grid-column-end: span 1;
}

.steps.p b,
.steps.s b {
  grid-row-start: 1;
}

.steps.p h3,
.steps.t h3,
.steps.p b,
.steps.t b {
  grid-column-start: 1;
}

.steps.p,
.steps.s,
.steps.p h3,
.steps.s h3 {
  grid-row-start: 2;
}

.steps.p,
.steps.t,
.steps.s h3 {
  grid-column-start: 2;
}

.steps.t,
.steps.q {
  grid-row-start: 5;
}

.steps.t h3,
.steps.q h3 {
  grid-row-start: 4;
}

.steps.s,
.steps.q,
.steps.s h3,
.steps.q h3,
.steps.s b,
.steps.q b {
  grid-column-start: 6;
}

.steps.t b,
.steps.q b {
  grid-row-start: 8;
}

.align_end {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.steps.p h3 {
  grid-area: 1/2/span 1 / span 4;
  writing-mode: inherit;
  text-align: left;
  padding: 0 10px;
}

.steps.s h3 {
  writing-mode: vertical-lr;
  justify-content: left;
  padding: 10px 0;
}

.steps.t h3 {
  writing-mode: sideways-lr;
  padding: 10px 0;
}

.steps.q h3 {
  grid-area: 8/2/span 1/ span 4;
  writing-mode: inherit;
  justify-content: flex-end;
  padding: 0 10px;
}

.guide.align_center {
  grid-area: 1/1/span 2/span 2;
}

.guide h4 {
  background: white;
  color: white;
  width: 100%;
  height: 50%;
  cursor: pointer;
}

.guide h4:hover {
  background: black;
}

.p10 {
  padding: 10px;
}

.ptb10 {
  padding: 10px 0;
}

.plr10 {
  padding: 0 10px;
}

@media screen and (max-height: 800px) {
  h1 {
    font-size: 7.5em;
  }

  b.to {
    font-size: 60px;
  }
}

@media screen and (max-height: 650px) {
  h1 {
    font-size: 7em;
  }
}


@media only screen and (max-width: 1300px) {
  article.left {
    grid-area: 2/2/span 7/span 3;
  }

  article.right {
    grid-area: 2/6/span 7/span 3;
  }
}

@media only screen and (max-width: 900px) {
  h1 {
    font-size: 4em;
  }

  b.how {
    grid-area: 2 / 1 /span 2/span 2;
  }

  b.to {
    grid-area: 3/1;
    font-size: 30px;
    display: block;
  }

  #mainImg {
    grid-area: 4/1/span 6/span 9;
  }

  b.draw {
    grid-area: 3 / 2 / span 2 /span 2;
    display: block;
  }

  b.autor {
    grid-area: 4/2/span 2/span 6;
    font-size: 25px;
  }

  h1.title {
    grid-area: 2/2/span 4/span 7;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: repeat(7, 1fr);
  }

  div.seta {
    grid-area: 8/8;
    display: flex;
    align-items: end;
    position: fixed;
    width: calc(100vw / 9);
    bottom: calc(100vh / 9);
    right: calc(100vw / 9);
  }

  div.seta i {
    width: 100%;
  }

  canvas.right,
  canvas.left {
    grid-area: 2/1/span 6/span 9;
  }

  article.right,
  article.left {
    grid-area: 2/2/span 7/span 7;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(7, 1fr);
  }

  article h2 {
    font-size: xx-large;
  }

  article p {
    display: none;
  }

  .square {
    grid-area: 5/2/span 6/ span 8;
  }

  .contour {
    grid-area: 5/10/span 6/ span 8;
  }

  .notext {
    grid-area: 11/2/span 6/ span 8;
  }

  .model {
    grid-area: 11/10/span 6/ span 8;
  }

  .slide2 h2.title {
    grid-area: 4/2/span 3 / span 7;
    font-size: 2.5rem;
    text-align: center;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .slide2 h3 {
    font-size: 1rem;
  }

  .steps {
    grid-template-columns: repeat(10, 1fr);
    grid-column-end: span 5;
  }

  .steps.s,
  .steps.q {
    grid-column-start: 5;
  }

  .steps canvas {
    grid-row-end: span 6;
    grid-column-end: span 9;
  }

  .steps.s canvas,
  .steps.q canvas {
    grid-column-start: 2;
  }

  .steps.t canvas,
  .steps.q canvas {
    grid-row-start: 3;
  }

  .steps.p,
  .steps.t {
    grid-column-start: 1;
  }

  .steps h3 {
    grid-row-end: span 1;
    grid-column-end: span 3;
    display: flex;
    writing-mode: inherit !important;
    padding: 0 5px !important;
  }

  .steps.p h3,
  .steps.s h3 {
    grid-row-start: 1;
    align-items: flex-start;
  }

  .steps.t h3,
  .steps.q h3 {
    grid-row-start: 8;
    align-items: flex-end;
  }

  .steps.p h3,
  .steps.t h3 {
    grid-column-start: 4;
  }

  .steps.s h3,
  .steps.q h3 {
    grid-column-start: 4;
  }

  .steps.p b,
  .steps.t b {
    grid-column-start: 3;
  }

  .steps.s b,
  .steps.q b {
    grid-column-start: 8;
  }

  .counter {
    font-size: 1rem;
  }

  .guide {
    display: none;
  }

  article h2.title {
    font-size: 50px;
    z-index: 2;
    grid-area: 1/1/span 1/ span 7;
  }

  article h3 {
    grid-area: 6/1/ span 1 / span 7;
    display: -webkit-box;
    --max-lines: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(var(--lh) * var(--max-lines));
    --lh: 1.4rem;
  }

}

@keyframes topBotton {
  0% {
    opacity: 0;
    transform: translate(0, -200px)
  }

  100% {
    opacity: 1;
    transform: translate(0, 0)
  }
}

@keyframes bottonTop {
  0% {
    opacity: 0;
    transform: translate(0, 200px)
  }

  100% {
    opacity: 1;
    transform: translate(0, 0)
  }
}

@keyframes topBottonBack {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(0, -200px)
  }
}

@keyframes bottonTopBack {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(0, 200px)
  }
}

@keyframes leftRight {
  0% {
    opacity: 0;
    transform: translate(-200px, 0)
  }

  100% {
    opacity: 1;
    transform: translate(0, 0)
  }
}

@keyframes rightLeft {
  0% {
    opacity: 0;
    transform: translate(200px, 0)
  }

  100% {
    opacity: 1;
    transform: translate(0, 0)
  }
}

@keyframes leftRightBack {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(-200px, 0)
  }
}

@keyframes rightLeftBack {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(200px, 0)
  }
}

.align_center {
  display: flex;
  align-items: center;
  justify-content: center;
}