/*
SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
*/

/* 
MAIN COLOR: #6ca965
GRAY COLOR: #343a40
*/

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Oxanium", cursive, sans-serif;
  color: #343a40;
}

/* 
******
HEADER
******
*/

header {
  height: 10vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 3.125rem;

  background-color: #98c393;
}

.logo:link,
.logo:visited,
.logo:hover,
.logo:active {
  height: 100%;
}

.logo img {
  height: 100%;
}

img {
  height: 100%;
}

nav {
  display: flex;
  gap: 3.125rem;
  align-items: center;
}

nav a:link,
a:visited {
  text-decoration: none;
  font-size: 1.5rem;
  color: #343a40;
  font-weight: 600;
}

nav a:hover {
  text-shadow: 0 0.031rem 0.063rem rgba(0, 0, 0, 0.5);
}

nav a:active {
  color: #fff;
}

/* 
*******
CONTENT
*******
*/

.container {
  max-width: 56.25rem;
  margin: 3rem auto;
}

.title-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.875rem;
  align-items: center;
  margin-bottom: 5rem;
}

h1 {
  font-size: 3.875rem;
  color: #343a40;
  font-weight: 700;
}

.title-description {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}

.bg--logo {
  margin: 0 auto;
  width: 18.75rem;
}

.bg--logo img {
  width: 100%;
}

/* 
*******
FEATURES
*******
*/

#features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  background-color: #6ca965;
  stroke: #fff;
  width: 4rem;
  height: 4rem;
  padding: 1.125rem;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.feature-title {
  margin-bottom: 0.75rem;
  font-size: 1.875rem;
  font-weight: 600;
}

.feature-description {
  font-size: 1.25rem;
}

/* 
************
HOW IT WORKS
************
*/

#how-it-works {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.125rem;

  height: 18.75rem;

  align-content: center;
  align-items: center;
}

@media (min-width: 35em) {
  .step:nth-child(odd) .step-visual {
    grid-column: 1;
    grid-row: 1;
  }

  .step:nth-child(odd) .step-text {
    grid-column: 2;
    grid-row: 1;
  }

  .step:nth-child(even) .step-visual {
    grid-column: 2;
    grid-row: 1;
  }

  .step:nth-child(even) .step-text {
    grid-column: 1;
    grid-row: 1;
  }
}

.step-img-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem 0;
  text-align: center;
}

.step-visual {
  display: flex;
  flex-direction: column;
  border-radius: 3.125rem;
  box-shadow: 0 0 0.625rem 0.125rem rgba(0, 0, 0, 0.2);

  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 2.5rem;
}

.step-visual img {
  width: 100%;
}

.step-number {
  font-size: 1.875rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-text {
  font-size: 1.25rem;
}

/* 
********
DOWNLOAD
********
*/

#download {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #6ca965;
  border-radius: 2.5rem;
  align-items: center;

  padding: 1.25rem 2.5rem;
  margin: 0 1.875rem;
  box-shadow: 0 0 1.25rem 0.625rem rgba(0, 0, 0, 0.2);
}

.download-text {
  color: #fff;
  font-weight: 700;
  font-size: 3.25rem;
}

.download-link:link,
.download-link:visited {
  width: 18.75rem;
  height: 18.75rem;
  justify-self: end;
  border-radius: 2.5rem;
  position: relative;
}

.download-link:hover .download-img-qr {
  border-width: 0.438rem;
}

.download-link:active .overlay {
  display: block;
}

.download-img-qr {
  width: 18.75rem;
  height: 18.75rem;
  border-radius: 2.5rem;
  border: 0.313rem solid black;
  z-index: -1;

  content: url(WH_qrcode.png);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 2.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  display: none;
}

@media (max-width: 34em) {
  body,
  html {
    width: 100vw;
    /* min-width: 100vw;
    max-width: 100vw; */

    overflow-x: hidden;
    overflow-y: auto;
  }

  .container {
    width: 95vw;
    padding: 0 2rem;
  }

  nav {
    display: none;
  }

  .title-section {
    grid-template-columns: 1fr;
  }

  .title-section h1 {
    text-align: center;
  }

  .bg--logo {
    width: 16rem;
  }

  #features {
    grid-template-columns: 1fr;
  }

  #how-it-works .step {
    grid-template-columns: 1fr;
    height: auto;
    row-gap: 3rem;
  }

  #download {
    grid-template-columns: 1fr;
    margin: 0 0;
    gap: 2em;
    justify-items: center;
    justify-content: center;
  }

  .download-text {
    font-size: 2rem;
  }

  #download .download-link:link {
    width: 12rem;
    height: 12rem;
    justify-self: center;
  }

  .download-img-qr {
    width: 12rem;
    height: 12rem;
  }
}
