/* Base styles */
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
:root {
  font-family: "Manrope", sans-serif;

  /* Text colors */
  --main-color: hsl(217, 19%, 35%);
  --second-color: hsl(214, 17%, 51%);
  --third-color: hsl(212, 23%, 69%);

  /* Background colors */
  --body-bg-color: hsl(210, 46%, 95%);
  --share-icon-bg-color: hsl(214, 17%, 51%);
  --tooltip-bg-color: hsl(217, 19%, 35%);
}
/* ScreenReader only */
.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  left: -100000000;
  overflow: hidden;
}
.main-container {
  background-color: var(--body-bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0px;
  width: 100%;
  min-height: 100vh;
}
/* Card */
.card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 5px 5px 20px hsl(0deg 0% 50% / 10%);
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 350px;
}
/* Card image */
.card__image {
  border-radius: 15px 15px 0px 0px;
  object-fit: cover;
  width: 100%;
  height: 200px;
}
/* Card content */
.card-content-wrapper {
  font-size: 15px;
  padding: 40px 25px 20px;
  width: 100%;
}
.card-content__title {
  color: var(--main-color);
  font-size: 18px;
  line-height: 26px;
}
.card-content__description {
  color: var(--second-color);
  margin: 15px 0px;
  line-height: 22px;
}
/* Card user */
.card-user-profile-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  position: relative;
  width: 100%;
}
.card-user-profile__avatar {
  border-radius: 50%;
  max-width: 40px;
}
/* User profile info */
.user-profile-info {
  font-size: 13px;
  margin-right: auto;
  margin-left: 10px;
}
.user-profile-info__name {
  color: var(--main-color);
  font-size: 13px;
}
.user-profile-info__date {
  color: var(--third-color);
}
/* Share */
.share__btn {
  border: none;
  border-radius: 50%;
  color: var(--second-color);
  cursor: pointer;
  font-size: 15px;
  background-color: var(--body-bg-color);
  padding: 10px;
  height: 35px;
  width: 35px;
  line-height: 15px;
  transition: all 0.5s;
  z-index: 100000;
}
.share__btn:hover {
  color: #fff;
  background-color: var(--second-color);
}
.share__btn:active {
  transform: scale(0.95);
}
.share-tooltip {
  position: absolute;
  width: 100%;
  background-color: var(--tooltip-bg-color);
  left: 0;
  height: 100%;
  border-radius: 0px 0px 15px 15px;
  padding: 0px 30px;
  display: flex;
  align-items: center;
  transition: all 1s;
  opacity: 1;
}
.share-tooltip--hidden {
  opacity: 0;
}
.share-tooltip__description {
  text-transform: uppercase;
  color: var(--third-color);
  letter-spacing: 5px;
  font-weight: 500;
  margin-right: 20px;
  animation: changeColor 1s 1s alternate infinite;
}
@keyframes changeColor {
  from {
    color: var(--third-color);
  }
  to {
    color: #fff;
  }
}
.share-tooltip__icon {
  background-color: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 20px;
  text-decoration: none;
}
.share-tooltip__icon:nth-child(odd) {
  margin: 0px 15px;
}
/* Attribution footer*/
.attribution {
  background-color: var(--body-bg-color);
  font-size: 14px;
  text-align: center;
  color: green;
  padding: 20px;
}
.attribution a {
  color: purple;
  text-decoration: none;
  transition: color 0.5s;
}
.attribution a:hover {
  color: blueviolet;
}
