@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;500;700&display=swap");
.not-selectable, .card__share-button, .card__share-popup {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.card {
  background-color: white;
  border-radius: 10px;
  display: -ms-grid;
  display: grid;
  -webkit-column-gap: 12px;
          column-gap: 12px;
      grid-template-areas: "img heading" "img content" "img other";
  -ms-grid-columns: 30% auto;
      grid-template-columns: 30% auto;
  -ms-grid-rows: auto auto auto;
      grid-template-rows: auto auto auto;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  max-height: 400px;
  max-width: 720px;
  position: relative;
  width: 72vw;
}

.card__image {
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
  -ms-grid-row: 1;
  -ms-grid-row-span: 3;
  -ms-grid-column: 1;
  grid-area: img;
  height: 100%;
  width: 100%;
}

.card__title, .card__content, .card__other {
  margin: 10px 20px;
}

.card__title {
  color: #48556a;
  font-weight: 700;
  -ms-grid-row: 1;
  -ms-grid-column: 2;
  grid-area: heading;
  margin-top: 20px;
}

.card__content {
  -ms-grid-row: 2;
  -ms-grid-column: 2;
  grid-area: content;
  color: #6d7f97;
}

.card__other {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-grid-row: 3;
  -ms-grid-column: 2;
  grid-area: other;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.card__author {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: auto auto;
      grid-template-columns: auto auto;
  -ms-grid-rows: auto auto;
      grid-template-rows: auto auto;
      grid-template-areas: "author-img author-name" "author-img date";
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  -webkit-column-gap: 10px;
          column-gap: 10px;
  font-weight: 700;
  font-size: .9em;
  color: #48556a;
  margin-bottom: 16px;
}

.card__author .author__img {
  -ms-grid-row: 1;
  -ms-grid-row-span: 2;
  -ms-grid-column: 1;
  grid-area: author-img;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.card__author .date {
  color: #9eafc2;
  font-size: .9em;
}

.card__share-button {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: #ecf2f8;
  border-radius: 50%;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 18px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 7px;
  width: 18px;
  position: relative;
}

.card__share-popup {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: #48556a;
  border-radius: 6px;
  color: white;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  opacity: 0;
  gap: 12px;
  height: 40px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-width: 140px;
  padding: 2px 24px;
  position: absolute;
  text-align: center;
  right: -9%;
  bottom: 28%;
  -webkit-transition: opacity .4s;
  transition: opacity .4s;
}

.card__share-popup .message {
  font-size: .85em;
  font-weight: 300;
  letter-spacing: 2.5px;
  margin-right: 4px;
  text-transform: uppercase;
}

.card__share-popup::after {
  background-color: inherit;
  bottom: -7px;
  content: '';
  height: 14px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  width: 14px;
}

body {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: #ecf2f8;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-family: Manrope;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 100vh;
  margin: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

#share-popup-toggle:checked ~ .card__share-popup {
  opacity: 1;
}

#share-popup-toggle:checked ~ .card__share-button {
  background-color: #48556a !important;
}

#share-popup-toggle:checked ~ .card__share-button img {
  fill: white;
}
