/* IMPORT */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

/* GENERAL */

html {
  font-family: "outfit", "montserrat", "poppins", sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #d6e2f0;
  color: #2e3d59;
  width: 100vw;
  height: 100vh;
  text-align: center;
}

.container {
  max-width: 75vw;
  background-color: #fff;
  padding: 1rem;
  border-radius: 20px;
}

img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
}

figcaption,
p {
  color: #2e3d59;
  margin: 1rem;
}

figcaption {
  font-size: 4.8vw;
  margin-top: 1.2rem;
  font-weight: 700;
}

p {
  margin: 15px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
}

/* MEDIA QUERIES */

/* TABLET */

@media screen and (min-width: 768px) {
  .container {
    max-width: 50%;
    padding: 1.5rem;
  }

  figcaption {
    font-size: 1.35rem;
    margin-top: 1.2rem;
    font-weight: 800;
  }

  p {
    margin: 15px;
    margin-bottom: 20px;
    font-size: 20px;
  }
}

/* DESKTOP */

@media screen and (min-width: 1024px), (orientation: landscape) {
  .container {
    max-width: 22%;
    padding: 1.1vw;
    border-radius: 20px;
  }

  figcaption {
    font-size: 1.2vw;
    margin-top: 1.2rem;
    font-weight: 800;
  }

  p {
    margin: 15px;
    font-size: 1vw;
  }
}

.attribution p {
  font-size: inherit;
  margin: 0.5rem;
}

.attribution a {
  color: inherit;
  text-decoration: underline;
}

.attribution a:hover,
.attribution a:focus-visible {
  color: #2e3d59;
  text-decoration: none;
}
