/* General Reset */

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

:root {
  --White: hsl(0, 0%, 100%);
  --Slate300: hsl(212, 45%, 89%);
  --Slate500: hsl(216, 15%, 48%);
  --Slate900: hsl(218, 44%, 22%);
}

html,
body {
  font-family: "Outfit", sans-serif;
  background-color: var(--Slate300);
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

main {
  background-color: var(--White);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
  border-radius: 24px;
  overflow: hidden;
  padding: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 1s ease-in;
}

body.loaded main {
  opacity: 1;
}

.qr-code {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.text-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  text-align: center;
  gap: 12px;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 120%;
  color: var(--Slate900);
}

p {
  font-size: 14px;
  font-weight: 400;
  color: var(--Slate500);
  line-height: 150%;
}

/* Footer */

footer {
  position: absolute;
  bottom: 24px;
  font-size: 11px;
  text-align: center;
  color: hsl(228, 45%, 44%);
}

/* Mobile Design */

@media (max-width: 375px) {
  main {
    padding: 12px;
  }

  h1 {
    font-size: 16px;
  }

  p {
    font-size: 12px;
  }
}
