:root {
  --background-color: rgb(250, 250, 250);
  --button1: rgb(77, 150, 168);
  --button1-hover: rgb(143, 227, 249);
  --button1-hover2: rgb(113, 192, 212);
  --button2: rgb(133, 95, 177);
  --button2-hover: rgb(177, 139, 221);
  --font-color: rgb(40, 40, 61);
  --font-color-light: rgb(135, 135, 157);
  --num-width: 36px;
}
/*Mobile: Maximum width of 768 */
@media only screen and (max-width: 768px) {
  main > section > .image-demo {
    width: 151px;
    height: 143px;
    margin: 6px;
    border-radius: 5px;
  }

  footer {
    background-image: url(./docs/assets/mobile/image-footer.jpg);
    height: 428px;
  }
}

/*Laptops / Desktops: minimum width of 1024px */
@media only screen and (min-width: 1025px) {
  main > section:first-of-type {
    display: none;
  }

  body > main > .banner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .banner > .banner-inner {
    display: flex;
    flex-direction: column;
  }

  main section > .title {
    font-weight: 900;
    font-size: 60px;
    line-height: 60px;
    text-align: center;
    width: 445px;
    height: 128px;
    margin: auto;
    padding: 0px 20px 0px;
    box-sizing: border-box;
    margin-bottom: 24px;
  }

  .banner > .banner-inner article {
    display: flex;
    flex-direction: row;
    width: 420px;
    margin: auto;
    justify-content: space-between;
  }

  img.hero:nth-child(1) {
    margin-left: -32px;
    margin-top: -47px;
  }

  Element img.hero:nth-child(3) {
    margin-right: -32px;
  }

  main .banner .hero {
    height: 300px;
    width: 350px;
  }

  main .banner .hero.img2 {
    padding-top: 20px;
  }

  .banner-inner > section:nth-child(1) > p:nth-child(2) {
    width: 540px;
    font-size: 18px;
    margin-top: 0.5px;
    margin-bottom: 5px;
  }

  body > main:nth-child(2) > section:nth-child(4) > p:nth-child(3) {
    width: 540px;
    font-size: 18px;
  }

  footer {
    background-image: url(./docs/assets/desktop/image-footer.jpg);
    /* height: inherit;
    height: 308px; */
  }
  .footer-base {
    display: flex;
    width: 1110px;
    margin: auto;
    align-items: center;
    padding-top: 120px;
  }

  footer > div {
    /* height: inherit; */
    height: 308px;
  }

  #button3 {
    margin: 10px auto;
    height: 26px;
    width: 155.8px;
    margin-bottom: 80px;
    margin-top: 0;
    padding: 16px;
    margin-top: 0px;
    align-self: baseline;
  }

  footer div p {
    margin-top: 0;
    margin-top: 60px;
    text-align: left;
  }

  /* .footer-base {
    align-items: center;
    padding-top: 120px;
    } */

  .footer-base > h1:nth-child(1) {
    padding-top: 0;
    margin-top: 0px;
    text-align: left;
  }

  #num2 {
    bottom: 275px;
  }

  main > section > .image-demo {
    width: 151px;
    height: 143px;
    width: 255px;
    height: 242px;
    margin: 6px;
    border-radius: 5px;
  }

  .banner-inner > section:nth-child(2) > div:nth-child(2) {
    padding-left: 6%;
  }

  body > header:nth-child(1) {
    padding-right: 2.5vw;
  }

  #logo {
    margin: 80px 660px 80px 661px;
  }

  body > main:nth-child(2) > section:nth-child(4) > h2:nth-child(2) {
    font-size: 40px;
    line-height: 44px;
    width: 445px;
  }
}

/* General styling */

* {
  margin: 0;
  padding: 0;
  font-family: "Red Hat Display", sans-serif;
  /* box-sizing: border-box; */
}

body {
  background: var(--background-color);
  font-size: 18px;
  line-height: 26px;
  text-align: center;
  min-width: 350px;
}

main {
  /* overflow-x: hidden; */
  /* overflow-y: hidden; */
}

h1 {
  font-size: 64;
  line-height: 64px;
}

h2 {
  font-size: 40px;
  line-height: 44px;
}

main p {
  color: var(--font-color-light);
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  text-align: center;
  width: 327px;
  margin: 2em auto;
  padding: 10px 0;
}

main > .banner {
  display: flex;
  justify-content: center;
}

.hero {
  width: 50%;
}

main > section:nth-of-type(3) > article {
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  width: 348px;
  margin: auto;
}

#button1 {
  background: var(--button1);
  width: 193px;
  text-align: center;
  padding: 16px;
  margin: auto;
  border-radius: 25px;
  color: white;
  font-weight: 900;
  font-size: 16px;
  line-height: 26px;
  margin: 10px auto;
  transition: 1s ease all;
}

#button2 {
  background: var(--button2);
  width: 139px;
  /* height: 58px; */
  text-align: center;
  padding: 16px;
  margin: 10px auto;
  border-radius: 25px;
  color: white;
  font-weight: 900;
  font-size: 16px;
  line-height: 26px;
  transition: 1s ease all;
  /* margin: 5px auto; */
}

#button1:hover {
  background: var(--button1-hover2);
  cursor: pointer;
  transition: 2s ease all;
}

#button2:hover,
#button3:hover {
  background: var(--button2-hover);
  cursor: pointer;
  transition: 2s ease all;
}

section > div > .line {
  color: rgb(135, 135, 157);
  opacity: 25%;
  height: 84px;
  border-left: solid 0.5px;
  width: 1px;
  left: 27px;
  margin: auto;
  margin-top: 50px;
}

section > div > .num {
  color: var(--font-color-light);
  z-index: 3;
  width: 36px;
  height: 36px;
  margin: auto;
  margin-bottom: 20px;
  border-radius: 50%;
  border: solid 0.5px;
  padding: 9.5px;
  font-size: 16px;
  font-weight: 900;
  line-height: 26px;
}

main > .images-container {
  /* max-width: 1110; */
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 50px auto;
}

main > section > .tagline {
  color: rgb(94, 160, 178);
  font-weight: 900;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 4px;
  margin: 30px auto 20px;
}

main > section:last-child > h2:last-of-type {
  width: 327px;
  height: 72px;
  margin: auto;
  font-size: 32px;
  font-weight: 900;
  line-height: 36px;
  text-align: center;
  margin: auto;
}

#button3 {
  background: var(--button2);
  width: 139px;
  /* height: 58px; */
  text-align: center;
  padding: 16px;
  margin: 10px auto;
  border-radius: 25px;
  color: white;
  font-weight: 900;
  font-size: 16px;
  line-height: 26px;
  transition: 1s ease all;
  /* margin-bottom: 80px; */
}

footer {
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
  background-size: 100%;
  /* height: 150px; */
  width: 300px;
  position: absolute;
  width: 100%;
  /* box-sizing: border-box; */
  /* height: 100%; */
  margin-bottom: 0;
}

footer > div {
  background-color: rgb(83, 145, 159);
  width: 100%;
  opacity: 90%;
  color: var(--background-color);
}

footer div h1 {
  font-size: 32px;
  width: 327px;
  margin: auto;
  line-height: 36px;
  font-weight: 900;
  padding-top: 70px;
  padding-bottom: 7vh;
  align-self: top;
}

footer div p {
  width: 327px;
  margin: auto;
  padding-bottom: 5%;
  font-weight: 500;
}

footer h2 span {
  color: rgba(217, 184, 255, 1);
}

section h2 span {
  color: var(--button1-hover);
}

#num2 {
  color: var(--font-color-light);
  background-color: white;
  width: var(--num-width);
  height: 36px;
  margin: auto;
  border-radius: 50%;
  border: solid 0.5px;
  padding: 9.5px;
  font-size: 16px;
  font-weight: 900;
  line-height: 26px;
  position: absolute;
  /* bottom: 400px; */
  left: calc((100% - var(--num-width) - 20px) / 2);
  z-index: 3;
  opacity: 100;
}

section #line2 {
  margin-bottom: 26px;
}

footer > div > div {
  display: flex;
  justify-content: space-between;
}

/* Tablet: minimum width of 768px to maximum width of 1024px */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  main > section:first-of-type {
    height: 250px;
    padding: 100px 0 50px;
  }

  main .hero {
    display: none;
  }

  main > .images-container {
    justify-content: space-between;
    max-width: 689px;
  }

  main section .image-demo {
    width: 164px;
    height: 156px;
    margin: 0px;
  }

  main > section:last-child > h2:last-of-type {
    width: 350px;
  }

  main > section:last-of-type > p,
  footer > div p {
    width: 573px;
    margin-left: auto;
  }

  main > section:nth-of-type(2) > p {
    width: 457px;
    margin-left: auto;
  }

  main .banner > div > section:nth-of-type(2) > article {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 348px;
    margin: auto;
  }

  #button1 {
    margin-right: 8px;
  }

  #button2 {
    margin-left: 8px;
  }

  footer {
    background-image: url(./docs/assets/tablet/image-footer.jpg);
    box-sizing: border-box;
    padding-top: 0;
    height: 428px;
  }

  body > footer:nth-child(3) > div:nth-child(1) {
    padding-top: 0px;
  }

  .hero {
    width: 300px;
  }

  main > section:first-of-type {
    width: 100%;
    height: 303px;
  }
}

/* In all screens smaller than 1024px in width */
@media only screen and (max-width: 1024px) {
  #logo {
    margin: 48px 128px;
  }

  main .hero {
    display: none;
  }

  main section > .title {
    font-weight: 900;
    font-size: 40px;
    line-height: 44px;
    text-align: center;
    width: 327px;
    height: 88px;
    margin: auto;
    padding: 0px 20px 0px;
    box-sizing: border-box;
    margin-bottom: 24px;
  }

  main > section:first-of-type {
    background-image: url(./docs/assets/tablet/image-hero.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-size: 100%;
    height: 200px;
    margin: 0 auto;
  }

  footer > div {
    height: 100%;
  }

  #num2 {
    bottom: 400px;
  }
} ;
