:root {
  --clr-green: hsl(163, 72%, 41%);
  --clr-red: hsl(356, 69%, 56%);
  --clr-facebook: hsl(195, 100%, 50%);
  --clr-twitter: hsl(203, 89%, 53%);
  --clr-instagram: linear-gradient( hsl(37, 97%, 70%), hsl(329, 70%, 58%));
  --clr-youtube: hsl(348, 97%, 39%);
  --background: hsl(230, 17%, 14%);
  --background-top: hsl(232, 19%, 15%);
  --background-card: hsl(228, 28%, 20%);
  --background-card-event: hsl(228, 26%, 27%);
  --clr-text-primary: hsl(0, 0%, 100%);
  --clr-text-secondary: hsl(228, 34%, 66%);
  --clr-toggle: linear-gradient(hsl(210, 78%, 56%), hsl(146, 68%, 55%));
  --clr-toggle-event: linear-gradient(hsl(210, 78%, 56%), hsl(146, 68%, 55%));
}

[data-theme="light"] {
  --background: hsl(0, 0%, 100%);
  --background-top: hsl(225, 100%, 98%);
  --background-card: hsl(227, 47%, 96%);
  --background-card-event: hsl(232, 33%, 91%);
  --clr-text-primary: hsl(230, 17%, 14%);
  --clr-text-secondary: hsl(228, 12%, 44%);
  --clr-toggle: hsl(230, 22%, 74%);
  --clr-toggle-event: linear-gradient(hsl(210, 78%, 56%), hsl(146, 68%, 55%));
}

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
  /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/**
 * Set up a decent box model on the root element
 */
html {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

/**
 * Make all elements from the DOM inherit from the parent box-sizing
 * Since `*` has a specificity of 0, it does not override the `html` value
 * making all elements inheriting from the root box-sizing value
 * See: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
 */
*,
*::before,
*::after {
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
}

body {
  background-color: var(--background);
}

h1, h2, h3, p {
  margin: 0;
}

/**
 * Basic styles for links
 */
a {
  text-decoration: none;
}

a:hover, a:active, a:focus {
  text-decoration: underline;
}

/**
 * Basic typography style for copy text
 */
body {
  font-family: "Inter", sans-serif;
  font-size: 14px;
}

h1, h2, h3 {
  color: var(--clr-text-primary);
}

p, a {
  color: var(--clr-text-secondary);
  font-weight: 700;
}

/**
 * Main content containers
 * 1. Make the container full-width with a maximum width
 * 2. Center it in the viewport
 * 3. Leave some space on the edges on small screens
 */
.container {
  max-width: 400px;
  /* 1 */
  margin-left: auto;
  /* 2 */
  margin-right: auto;
  /* 2 */
  padding-left: 25px;
  /* 3 */
  padding-right: 25px;
  /* 3 */
  width: 100%;
  /* 1 */
}

@media (min-width: 768px) {
  .container {
    max-width: 780px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1160px;
  }
}

.row-center {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

header {
  background: var(--background-top);
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  position: relative;
  /**
   * Psuedo element used for overlapping header background color under big cards
   * 1. Height of the overlap area sets height and position of area
   * 2. Border radius is set to curve edges of overlap background
   * 3. Height of overlap is expanded in larger screens
   */
}

@media (min-width: 768px) {
  header {
    padding-bottom: 0.5rem;
  }
}

header::after {
  /* 1 */
  position: absolute;
  bottom: -42px;
  /* 1 */
  left: 0;
  content: "";
  height: 42px;
  /* 1 */
  width: 100%;
  border-bottom-left-radius: 20px;
  /* 2 */
  border-bottom-right-radius: 20px;
  /* 2 */
  background: var(--background-top);
}

@media (min-width: 768px) {
  header::after {
    /* 3 */
    bottom: -118px;
    /* 3 */
    height: 118px;
    /* 3 */
  }
}

header .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

@media (min-width: 768px) {
  header .container {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
}

@media (min-width: 768px) {
  .big-cards-grid {
    display: -ms-grid;
    display: grid;
    grid-gap: 30px;
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .big-cards-grid {
    -ms-grid-columns: (1fr)[4];
        grid-template-columns: repeat(4, 1fr);
  }
}

.overview {
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .overview {
    display: -ms-grid;
    display: grid;
    grid-gap: 30px;
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .overview {
    -ms-grid-columns: (1fr)[4];
        grid-template-columns: repeat(4, 1fr);
  }
}

.overview__heading {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .overview__heading {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
}

.footer {
  font-size: 11px;
  text-align: center;
  padding-bottom: 0.5rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .footer {
    margin-top: 12rem;
  }
}

.footer a {
  color: var(--clr-text-secondary);
}

.heading {
  position: relative;
  text-align: left;
  width: 100%;
  margin-bottom: 2.5rem;
}

.heading:after {
  position: absolute;
  left: 0;
  bottom: -1.5rem;
  content: "";
  height: 1px;
  width: 100%;
  background: var(--clr-text-secondary);
}

@media (min-width: 768px) {
  .heading:after {
    content: none;
  }
}

.heading__title {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.toggle {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  width: 100%;
}

.toggle:hover .toggle__slider:before,
.toggle:focus .toggle__slider:before {
  opacity: 0.8;
}

.toggle:hover .toggle__label,
.toggle:focus .toggle__label {
  color: var(--clr-text-primary);
}

.toggle:hover .toggle__slider,
.toggle:focus .toggle__slider {
  background: var(--clr-toggle-event);
}

@media (min-width: 768px) {
  .toggle {
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
  }
}

.toggle__label {
  color: var(--clr-text-secondary);
  font-weight: 700;
  margin-right: 1rem;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.toggle__switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.toggle__checkbox {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle__checkbox:checked + .toggle__slider::before {
  -webkit-transform: translateX(23px);
          transform: translateX(23px);
}

.toggle__slider {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 34px;
  background: var(--clr-toggle);
  cursor: pointer;
}

.toggle__slider::before {
  position: absolute;
  left: 3px;
  bottom: 2px;
  content: "";
  height: 19px;
  width: 19px;
  border-radius: 50%;
  background-color: var(--background-top);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.card {
  background: var(--background-card);
  border-radius: 5px;
  padding: 1.7rem 1.7rem 1.5rem;
  margin-bottom: 1rem;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.card:hover {
  background: var(--background-card-event);
  cursor: pointer;
}

@media (min-width: 768px) {
  .card {
    margin-bottom: 0;
  }
}

.card__stats {
  color: var(--clr-green);
  font-size: 13px;
  margin-left: 4px;
}

.card__stats--red {
  color: var(--clr-red);
}

.card__count {
  font-size: 1.9rem;
}

.card__top-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 1.5rem;
}

.card__bottom-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
}

/**
 * Linear gradient to work on top border
 * 1. Border image must be used
 * 2. Psuedo elements used to place borders on top of parent
 * 3. Border image doesn't work with border radius, so parent overflow set hidden
 */
.card--big {
  text-align: center;
  position: relative;
  padding-top: 2rem;
  margin-bottom: 30px;
  overflow: hidden;
  /* 3 */
  /* 2 */
}

@media (min-width: 768px) {
  .card--big {
    margin-bottom: 0;
  }
}

.card--big::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 100%;
  border-top: 4px solid;
  border-radius: 5px;
}

.card--facebook::before {
  border-top-color: var(--clr-facebook);
}

.card--twitter::before {
  border-top-color: var(--clr-twitter);
}

.card--instagram::before {
  -o-border-image: linear-gradient(to right, #fdc468, #df4996) 1;
     border-image: -webkit-gradient(linear, left top, right top, from(#fdc468), to(#df4996)) 1;
     border-image: linear-gradient(to right, #fdc468, #df4996) 1;
}

/* 1 */
.card--youtube::before {
  border-top-color: var(--clr-youtube);
}

.card__social {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 1.5rem;
}

.card__social img {
  margin-right: 0.5rem;
}

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

.card__followers {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 1.5rem;
}
/*# sourceMappingURL=main.css.map */