* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  --headers-color: #e5e7eb;
  --text-card-color: #d2d5da;
  --text-color: #9da3ae;
  --bg-main-color: #121826;
  --bg-cards-color: #212936;
  --bg-hand-emoji-color: #fceed8;
  --bg-goal-emoji-color: #dee9fc;
  --bg-dialog-box-emoji-color: #fbe5e6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  padding: 2rem;
  font-family: "Outfit", sans-serif;
  background-image: url(./resources/Background_image.svg);
  background-size: auto;
  background-color: var(--bg-main-color);
}

h1,
h2 {
  color: var(--headers-color);
}

h1 {
  font-size: clamp(2rem, 2.2vw, 2.5rem);
  font-weight: 600;
  text-align: center;
}

h1 + p {
  color: var(--text-color);
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

h2 {
  max-width: 260px;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

img {
  max-inline-size: 100%;
  block-size: auto;
  border-radius: 15px;
}

p {
  font-weight: 400;
}

main {
  flex: 1;
}

.author-info {
  font-size: 0.875rem;
  text-align: center;
  margin-top: 1rem;
  color: #374151;
  color: #d2d5da;
}

.author-info a {
  text-decoration: none;
  color: #e5e7eb;
}

.author-info a:visited {
  color: #dee9fc;
}

.cards {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.cards__card-1,
.cards__card-2,
.cards__card-3 {
  padding: 1.5rem;
  background-color: var(--bg-cards-color);
  border-radius: 15px;
  box-shadow: 0px 30px 100px 0px rgba(17, 23, 41, 0.15);
}

.cards__card-1 span,
.cards__card-2 span,
.cards__card-3 span {
  display: inline-block;
  border-radius: 50%;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  font-size: 1.4rem;
}
.cards__card-1 p,
.cards__card-2 p,
.cards__card-3 p {
  max-width: 230px;
  margin-bottom: 1rem;
  color: var(--text-card-color);
}

.cards__card-1 span {
  background-color: var(--bg-hand-emoji-color);
}

.cards__card-2 span {
  background-color: var(--bg-goal-emoji-color);
}

.cards__card-3 span {
  background-color: var(--bg-dialog-box-emoji-color);
}

@media screen and (min-width: 43.75rem) {
  body {
    background-size: 100%;
  }

  h1 {
    margin: auto;
    max-width: 350px;
  }

  .cards {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 50px;
  }
}

@media screen and (min-width: 75rem) {
  .cards__card-1,
  .cards__card-2,
  .cards__card-3 {
    transition: transform 0.3s ease;
  }

  .cards__card-1:hover,
  .cards__card-2:hover,
  .cards__card-3:hover {
    transform: scale(1.05);
  }
}
