/*
 === DESIGN SYSTEM ====

 - Font Sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
11 / 13 / 15 

- Spacing System
2 / 4 / 8 / 12 / 16 / 24 / 32/ 48 / 64 / 80/ 96/ 128


- Font Weights
500
700


-Colors
body background: #ECF2F8

*/

:root {
  --heading-primary: hsl(217, 19%, 35%);
  --text-primary: hsl(214, 17%, 51%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem; /*13px*/
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  background-color: #ecf2f8;
  min-height: 100vh;
}

/********* REUSABLE CLASSES *********/
.section-card {
  padding: 9.6rem 2.4rem;
}

.card {
  display: grid;
  background-color: #fff;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0px 8px 24px rgba(195, 221, 246, 0.833);
  transition: all 0.4s;
}

.card:hover {
  transform: translateY(-1.2rem);
}

.container {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 3.2rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
}

/********* HERO IMAGE *********/

.card__img-container {
  height: 200px;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/********* CONTENT *********/
.heading-primary {
  color: var(--heading-primary);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.4px;
}

.card__description {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.18px;
  line-height: 20px;
}

/********* PROFILE *********/

.card__profile {
  position: relative;
  padding: 1.6rem 3.2rem;
}

.profile {
  display: flex;
  justify-content: flex-start;
  /* align-items: center; */
}
.profile__img {
  height: 4rem;
  border-radius: 50%;
  margin-right: 1.2rem;
}

.btn {
  background-color: hsl(210, 46%, 95%);
  height: 3.2rem;
  width: 3.2rem;
  border: none;
  border-radius: 50%;
  margin-left: auto;
  align-self: center;
}

.profile_text p {
  font-size: 1.3rem;
  letter-spacing: 0.12px;
  line-height: 1.5;
}

.name {
  color: hsl(217, 19%, 35%);
  font-weight: 700;
}

.date {
  color: hsl(212, 23%, 69%);
  font-weight: 500;
}

/* User Clicks 'Share' Button */
.social-links-container {
  padding: 1.6rem 3.2rem;
  background-color: #48556a;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(100%);
  display: none;
}

.flex-container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style-type: none;
}

.share-text {
  color: #9daec2;
  font-size: 1.3rem;
  letter-spacing: 5px;
}

/* adding a class when button is clicked */
.share-open {
  transform: translateY(0%);
  display: block;
}

.share-btn {
  z-index: 9999;
}

.btn-active {
  background-color: #6e8098;
}

.btn-active svg path {
  fill: #fff;
}
