/* Importing google fonts */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

/* Custom variables */
:root {
  --slate-300: hsl(212, 45%, 89%);
  --slate-500: hsl(216, 15%, 48%);
  --slate-900: hsl(218, 44%, 22%);
  --font: "Outfit", Poppins;
}

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

/* Card design */

body {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  font-family: var(--font);
  max-width: 100dvw;
  min-height: 100dvh;
  background-color: var(--slate-300);
}

.card {
  height: auto;
  max-width: 300px;
  padding: 1.1em;
  background-color: #fff;
  border-radius: 1.1em;
}

.card-img {
  width: 100%;
  height: auto;
  border-radius: 0.7em;
}

.card-header,
.card-text {
  text-align: center;
  margin: 0.7em auto;
}

.card-header {
  color: var(--slate-900);
}

.card-text {
  width: 94%;
  color: var(--slate-500);
  margin-bottom: 1.5em;
}

/* Footer section */
.attribution {
  margin-top: 2em;
  font-size: 11px;
  text-align: center;
}
.attribution a {
  text-decoration: none;
  color: hsl(228, 45%, 44%);
}
