
* {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
}

/* html { overflow: hidden } */

body {
  font: normal 400 20px/36px "futura-pt", sans-serif;
  color: #1e2136;
  background: #f7f7f7;
}

section {
  display: grid;
  grid-template-columns: 2.25fr 3fr;
}

h1 {
font: normal 600 40px/40px "futura-pt", sans-serif;
margin-bottom: 40px;
}

h2 {
font: normal 400 28px/40px "futura-pt", sans-serif;
margin-bottom: 40px;
}

p {
font: normal 400 18px/32px "futura-pt", sans-serif;
margin-bottom: 40px;
}

a {
  text-decoration: none;
  font-weight: 500;
  color: #1e2136;
}

.button {
  font: normal 500 18px/60px "futura-pt", sans-serif;
  margin-bottom: -40px;
  background: #00fbcf;
  display: inline-block;
  height: 60px;
  border-radius: 8px;
  text-decoration: none;
  color: #1e2136;
  width: 200px;
  text-align: center;
}

main {
  padding: 50px;
  position: relative;
  height: calc(100vh - 100px);
}

main img {
  max-width: 280px;
}

/*
aside {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 0;
}
*/

div {
  display: flex;
  justify-content: center;
  max-width: 600px;
  flex-direction: column;
  top: 0;
  bottom: 0;
  left: 50px;
  right: 50px;
  position: absolute;
}

aside {
  position: fixed;
  width: 55%;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

aside img {
  display: block;
}

footer {
  font-size: 16px;
  position: absolute;
  bottom: 50px;
  display: block;
}





/* Tablet */

@media (max-width: 1199px) {
  main {
    padding: 20px;
    height: calc(100vh - 40px);
  }

  footer {
    bottom: 20px;
  }
  div{
  left: 20px;
  right: 20px;
}
}


/* Mobile layout */

@media (max-width: 1023px) {
  section {
    display: block;
  }

  aside {
    display: none;
  }

  div {
    margin: 0;
  }
}


/* Small mobile */

@media (max-width: 767px) {
  h1 {
    font: normal 600 30px/30px "futura-pt", sans-serif;
    margin-bottom: 40px;
  }

  h2 {
    font: normal 400 24px/32px "futura-pt", sans-serif;
    margin-bottom: 40px;
  }
}



/* Height breakpoint */

@media (max-height: 750px) {
  main {
    padding: 20px;
    height: calc(100vh - 40px);
  }

  footer {
    bottom: 20px;
    display: none;
  }

  div {
    position: relative;
    left: 0;
    right: 0;
    top: 50px;
  }
}


@media (max-width: 499px) {
    main {
    height: calc(100vh - 140px);
  }
  footer{display: block}
}