html {
  font-size: 100%;
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-inter);
  background-color: var(--color-bg);
  color: var(--color-fg);
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.1;
}

a, a:active, a:visited {
  text-decoration: none;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 0.1875rem;
}

@media (min-width: 71.875em) {
  h1 {
    font-size: 1.75rem;
  }
}
:root {
  --limegreen: hsl(163, 72%, 41%);
  --brightred: hsl(356, 69%, 56%);
  --facebook: hsl(208, 92%, 53%);
  --twitter: hsl(203, 89%, 53%);
  --instagram-start: hsl(37, 97%, 70%);
  --instagram-middle: hsl(5, 77%, 71%);
  --instagram-end: hsl(329, 70%, 58%);
  --youtube: hsl(348, 97%, 39%);
  --toggle-bg-light: hsl(230, 22%, 74%);
  --toggle-bg-start: hsl(210, 78%, 56%);
  --toggle-bg-end: hsl(146, 68%, 55%);
  --toggle-light: hsl(230, 19%, 60%);
  --toggle-button-light: hsl(228, 46%, 96%);
  --dark-bg: hsl(230, 17%, 14%);
  --dark-top-bg: hsl(232, 19%, 15%);
  --dark-card: hsl(228, 28%, 20%);
  --dark-card-hover: hsl(228, 25%, 27%);
  --dark-text1: hsl(228, 34%, 66%);
  --dark-text2: hsl(0, 0%, 100%);
  --light-bg: hsl(0, 0%, 100%);
  --light-top-bg: hsl(225, 100%, 98%);
  --light-card: hsl(227, 47%, 96%);
  --light-card-hover: hsl(228, 33%, 91%);
  --light-text1: hsl(230, 12%, 44%);
  --light-text2: hsl(230, 17%, 14%);
}

/*- Family: [Inter](https://fonts.google.com/specimen/Inter)
- Weights: 400, 700*/
:root {
  --font-inter: "Inter", sans-serif;
  --font-hubballi: "Hubballi", cursive;
}

.container {
  padding: 0 1.5625rem;
  max-width: 69.375rem;
  margin: 0 auto 2.875rem;
}

@media (min-width: 71.875em) {
  .container {
    padding: 0;
  }
}
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.875rem;
}

@media (min-width: 40em) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 71.875em) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  color: var(--dark-text1);
  padding: 1.5625rem;
  border-radius: 0.3125rem;
  text-align: center;
  transition: background 150ms ease-in-out;
  cursor: pointer;
  border-style: none !important;
}

.card:hover {
  background: var(--card-hover);
  opacity: 0.5;
}

.card--facebook {
  border-top: 0.3125rem solid var(--facebook);
}

.card--facebook::before {
  content: "";
  position: absolute;
  display: block;
  left: 0;
  top: 0;
  width: 100%;
  height: 0.3125rem;
  background: var(--facebook);
}

.card--twitter {
  border-top: 0.3125rem solid var(--twitter);
}

.card--twitter::before {
  content: "";
  position: absolute;
  display: block;
  left: 0;
  top: 0;
  width: 100%;
  height: 0.3125rem;
  background: var(--twitter);
}

.card--instagram {
  padding-top: 1.875rem;
}

.card--instagram::before {
  content: "";
  position: absolute;
  display: block;
  left: 0;
  top: 0;
  width: 100%;
  height: 0.3125rem;
  background: linear-gradient(225deg, var(--instagram-end), var(--instagram-middle) 50.91%, var(--instagram-start) 100%);
}

.card--youtube {
  border-top: 0.3125rem solid var(--youtube);
}

.card--youtube::before {
  content: "";
  position: absolute;
  display: block;
  left: 0;
  top: 0;
  width: 100%;
  height: 0.3125rem;
  background: var(--youtube);
}

.card__platform {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 1.25rem;
  margin-top: 0.3125rem;
  margin-bottom: 1.75rem;
}

.card__subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-color2);
}

.card__icon {
  margin-right: 0.5rem;
}

.card__username {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-color2);
}

.card__followers {
  margin-bottom: 1.5625rem;
}

.card__count {
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: -0.125rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.card__count--big {
  font-size: 3.5rem;
}

.card__count--small {
  font-size: 2rem;
}

.card__label {
  font-size: 0.75rem;
  letter-spacing: 0.3125rem;
  font-weight: 400;
  color: var(--text-color2);
  text-transform: uppercase;
}

.card__change {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.card__change--up {
  color: var(--limegreen);
}

.card__change--down {
  color: var(--brightred);
}

.card__change img {
  margin-right: 0.25rem;
}

.dark {
  background-color: var(--dark-bg) !important;
  color: var(--dark-text2) !important;
}

.dark span {
  color: var(--dark-text1) !important;
}

.dark div {
  color: var(--dark-text2);
}

.light {
  background-color: var(--light-bg) !important;
  color: var(--light-text2) !important;
}

.light span {
  color: var(--light-text1) !important;
}

.light div {
  color: var(--light-text2);
}

.lightCard {
  background-color: var(--light-card) !important;
  color: var(--light-text2);
}

.darkCard {
  background-color: var(--dark-card) !important;
  color: var(--dark-text2);
}

.header {
  margin-top: 2.25rem;
}

@media (min-width: 71.875em) {
  .header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.header__title {
  width: 100%;
}

@media (min-width: 40em) {
  .header__title {
    width: auto;
  }
}
.header__subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark-txt1);
}

.header__toggle {
  display: inline-block;
}

.card-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  justify-items: start;
  gap: 1.4375rem;
}

.card-grid .card__count {
  margin-bottom: 0;
}

.card-grid .card__count,
.card-grid .card__change {
  align-self: end;
}

.card-grid img,
.card-grid .card__change {
  justify-self: end;
}

.attribution {
  background-color: var(--light-card);
  border-radius: 0.3125rem;
  height: 5rem;
  width: 28%;
  text-align: center;
  margin: auto;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.attribution a {
  text-decoration: none;
  color: #0a53be;
}

/*# sourceMappingURL=style.css.map */
