@font-face {
  font-family: "outfit_bold";
  src: url("Outfit-Bold.ttf");
}

@font-face {
  font-family: "outfit_regular";
  src: url("Outfit-Regular.ttf");
}

:root {
  --body-bg: hsl(212, 45%, 89%);
  --slate-900: rgb(31, 49, 79);
  --slate-500: rgb(104, 119, 141);
  --qr-box-shadow: rgba(0, 0, 0, 0.0477);
  --qr-box-bg: white;
}

body {
  background-color: var(--body-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* extends body to take all viewport vertically */
  margin: 0; /*the default margin (8px i guess), produces unwanted vertical scrolling*/
}

.qr-code-box {
  background-color: var(--qr-box-bg);
  width: 320px;
  padding: 16px 16px 40px;
  border-radius: 20px;
  box-shadow: 0px 25px 25px var(--qr-box-shadow);
  display: flex;
  flex-flow: column;
  gap: 24px;
  align-items: center;
  box-sizing: border-box; /*the box remains 320px width, with or without padding */
}

.qr-code-box__image {
  border-radius: 10px;
  overflow: hidden;
}

img {
  max-width: 100%;
}

.qr-code-box__text {
  display: flex;
  flex-flow: column;
  gap: 16px;
}

.qr-code-box__text--bold {
  color: var(--slate-900);
  font-family: "outfit_bold", serif;
  text-align: center;
  font-size: 1.375rem;
  line-height: 120%;
}

.qr-code-box__text--regular {
  color: var(--slate-500);
  font-family: "outfit_regular", sans-serif;
  font-size: 0.9375rem;
  line-height: 140%;
  letter-spacing: 0.0125rem;
  text-align: center;
}

.qr-code-box__text p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1%;
  height: 1%;
  overflow: hidden;
  clip-path: rect(0 0 0 0);
}
