:root {
  --manrope: "Manrope", sans-serif;
  --Very-dark-grayish-blue: hsl(217, 19%, 35%);
  --desaturated-dark-blue: hsl(214, 17%, 51%);
  --grayish-blue: hsl(212, 23%, 69%);
  --light-grayish-blue: hsl(210, 46%, 95%);
}

html {
  box-sizing: border-box;
  font-size: 1em;
  color: var(--Very-dark-grayish-blue);
}

*,
*::after,
*::before {
  box-sizing: inherit;
}

* {
  padding: 0;
  margin: 0;
  font-family: var(--manrope);
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1.5em;
  background-color: var(--light-grayish-blue);
}

footer {
  position: absolute;
  bottom: 0.5em;
  background-color: var(--grayish-blue);
  padding: 0.3em 1em;
  border-radius: 1em;
}

.container {
  position: relative;
  max-width: 30em;
  background-color: white;
  border-radius: 0.6em;
}

.image-banner {
  height: 12.5em;
  background-image: url("/images/drawers.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position-y: 20%;
  border-radius: 0.6em 0.6em 0 0;
}

.text-section {
  padding: 2.5em 2em 0 2em;
}

.text-section h1 {
  font-size: 1rem;
  padding-bottom: 1em;
  line-height: 1.6;
  font-weight: 700;
}

.text-section .description {
  font-size: 0.83rem;
  font-weight: lighter;
  line-height: 1.6;
  padding-bottom: 2.9em;
  color: var(--desaturated-dark-blue);
}

.author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2em 1.2em 2em;
}

.author .author-info img {
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
}

.author .author-info {
  display: flex;
  align-items: center;
  gap: 1em;
}

.author-info .author-details {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.author-info .author-details strong {
  font-size: 0.85rem;
  font-weight: 700;
}

.author-info .author-details time {
  display: block;
  font-size: 0.8rem;
  font-weight: lighter;
  color: var(--desaturated-dark-blue);
}

.author .share-img-btn {
  background-color: var(--light-grayish-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2.3em;
  width: 2.3em;
  padding: 0.6em;
  border-radius: 50%;
  transform: scale(0.9);
  cursor: pointer;
  z-index: 999;
  transition: 0.6s;
  transform: rotate(0);
  border: none;
  color: var(--desaturated-dark-blue);
}

.author .share-img-btn.active {
  background-color: var(--desaturated-dark-blue);
  transform: rotate(360deg);
  color: white;
}

.tooltip {
  position: absolute;
  display: flex;
  align-items: center;
  bottom: 0;
  left: 0;
  background-color: var(--Very-dark-grayish-blue);
  width: 100%;
  padding: 1.3em 2em;
  border-radius: 0 0 0.6em 0.6em;
  opacity: 1;
  transition: 0.6s;
  visibility: visible;
}

.tooltip .content {
  display: flex;
  align-items: center;
  gap: 1em;
}

.tooltip h2 {
  text-transform: uppercase;
  font-size: 0.83rem;
  letter-spacing: 0.3em;
  margin-top: -0.2em;
}

.tooltip ul {
  display: flex;
  align-items: center;
  list-style-type: none;
  gap: 1em;
  font-weight: lighter;
}

.tooltip ul img {
  width: 1.5em;
}

.tooltip .list-item {
  width: 100%;
  color: white;
}

.tooltip .list-item:nth-child(1) {
  color: var(--grayish-blue);
  font-size: 0.9rem;
  font-weight: lighter;
}

.hidden {
  transition: 0.6s;
  visibility: hidden;
  opacity: 0;
}

.attribution {
  font-size: 11px;
  text-align: center;
  color: var(--light-grayish-blue);
}
.attribution a {
  color: var(--Very-dark-grayish-blue);
}
