@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  /* Primary */

  --Cyan-600: hsl(192, 37%, 48%);
  --Purple-600: hsl(268, 34%, 53%);

  /* Secondary */

  --Cyan-300: hsl(192, 90%, 77%);
  --Purple-300: hsl(268, 100%, 86%);

  /* Nuetral */

  --Slate-900: hsl(240, 21%, 20%);
  --Slate-600: hsl(240, 10%, 57%);
  --White: hsl(0, 0%, 98%);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Red Hat Display", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-weight: 500;
}

.beginning {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(420px, 500px)
    minmax(0, 1fr);
  width: 100%;
  min-height: 500px;
  max-width: 1440px;
  overflow: hidden;
  margin-bottom: 4.5rem;
  margin-top: 2rem;
}

.hero-right {
  justify-self: end;
  align-self: center;
  grid-column: 3;
  transform: translateX(2rem);
}

.hero-left {
  justify-self: start;
  align-self: center;
  grid-column: 1;
  transform: translateX(-2rem);
}

.hero-small {
  display: none;
}

.logo {
  margin-top: 5rem;
  margin-right: 1rem;
}

.text-content {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  grid-column: 2;
  grid-row: 1/2;
}

.text-content h1 {
  text-align: center;
  font-size: clamp(3.2rem, 5vw, 4.375rem);
  max-width: 450px;
  font-weight: 900;
  line-height: 1.2;
}

.text-content p {
  text-align: center;
  color: var(--Slate-600);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  max-width: 460px;
}

.download1 {
  border-radius: 80px;
  padding: 1.2rem 2.5rem;
  background-color: var(--Cyan-600);
  color: var(--White);
  font-weight: 900;
}

.download1 span {
  color: var(--Cyan-300);
}

.explination {
  border-radius: 80px;
  padding: 1.2rem 2.5rem;
  background-color: var(--Purple-600);
  color: var(--White);
  font-weight: 900;
}

.buttons {
  width: 100%;
  max-width: 380px;
  display: flex;
  justify-content: space-around;
}

.pagebreak-1 {
  padding: 1rem;
  border-radius: 100%;
  border: 2px solid hsl(240 10% 57% / 0.15);
  color: var(--Slate-600);
}

.pagebreak-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 3.5rem;
}

.pagebreak-images img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 10px;
}

.pagebreak-2 {
  grid-column: 2;
  padding: 1rem;
  border-radius: 100%;
  border: 2px solid hsl(240 10% 57% / 0.15);
  color: var(--Slate-600);
  background-color: var(--White);
  position: relative;
  top: 30px;
}

.download2 {
  border-radius: 80px;
  padding: 1.2rem 2.5rem;
  background-color: var(--Purple-600);
  color: var(--White);
  font-weight: 900;
  grid-column: 3;
  justify-self: start;
  align-self: center;
  margin-left: 3.5rem;
  white-space: nowrap;
}

.download2 span {
  color: var(--Purple-300);
}

.line2 {
  border: 1px solid hsl(240 10% 57% / 0.15);
  height: 75px;
  position: relative;
  top: 30px;
}

.line1 {
  border: 1px solid hsl(240 10% 57% / 0.15);
  height: 75px;
}

.whatisit {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 0 3rem 0;
  width: 100%;
  max-width: 1440px;
  gap: 1rem;
}

.whatisit h2 {
  color: var(--Cyan-600);
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-weight: 800;
}

.whatisit h3 {
  max-width: 450px;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
}

.whatisit p {
  width: 100%;
  max-width: 600px;
  padding-inline: 2rem;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--Slate-600);
  padding-top: 1rem;
}

.ending {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  width: 100%;
  min-height: 280px;
  max-width: 1440px;
  background-image:
    linear-gradient(hsl(192 37% 48% / 0.85), hsl(192 37% 48% / 0.85)),
    url(starter-code/assets/desktop/image-footer.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 100%;
}

.ending p {
  color: var(--White);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.5;
  grid-column: 2;
  align-self: center;
}

.ending h2 {
  max-width: 440px;
  align-self: center;
  justify-self: end;
  grid-column: 1;
  color: var(--White);
  font-size: clamp(1rem, 4vw, 2.5rem);
  font-weight: 800;
}

.download1,
.explination {
  text-decoration: none;
}

@media (max-width: 1230px) {
  .beginning {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .text-content {
    padding-top: 3rem;
    max-width: 500px;
    width: 100%;
    justify-self: center;
    grid-column: 1;
    grid-row: 2;
    gap: 1.5rem;
  }

  .text-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    max-width: 450px;
  }

  .text-content p {
    max-width: 500px;
    font-size: 1.125rem;
    padding-bottom: 1rem;
  }

  .whatisit h3 {
    font-size: 2rem;
  }

  .whatisit p {
    font-size: 1.125rem;
  }

  .hero-left,
  .hero-right {
    display: none;
  }

  .hero-small {
    width: 110%;
    max-width: none;
    justify-self: center;
    height: auto;
    display: block;
    grid-column: 1;
    grid-row: 1;
  }
  .pagebreak-images {
    gap: 1rem;
    padding-inline: 2rem;
  }
}

@media (max-width: 1100px) {
  .ending {
    padding-inline: 2rem;
  }
}

@media (max-width: 780px) {
  .pagebreak-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .ending {
    display: grid;
    min-height: 350px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-content: start;
    padding-block: 3rem;
    gap: 2rem;
    background-image:
      linear-gradient(hsl(192 37% 48% / 0.85), hsl(192 37% 48% / 0.85)),
      url(starter-code/assets/tablet/image-footer.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 50%;
  }

  .ending h2 {
    text-align: center;
    justify-self: center;
    width: 300px;
    padding-top: 1rem;
    grid-column: 1;
    grid-row: 1;
  }

  .ending p {
    align-self: start;
    text-align: center;
    grid-column: 1;
    grid-row: 2;
  }

  .download2 {
    margin-right: 3rem;
    align-self: start;
    justify-self: center;
    grid-column: 1;
    grid-row: 3;
  }
}

@media (max-width: 593px) {
  .ending h2 {
    font-size: 2rem;
  }

  .text-content p {
    font-size: 1.0625rem;
    padding-inline: 1rem;
  }

  .whatisit h3 {
    font-size: 1.75rem;
  }

  .whatisit p {
    font-size: 1rem;
    padding-inline: 2rem;
  }

  .buttons {
    gap: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
  }

  .explination {
    padding-inline: 1.7rem;
  }
}
