@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
  margin:0;
  padding:0;
  font-family: "Inter", sans-serif;
  /*Colors*/
  /*Primary*/
  --Green500: hsl(163, 72%, 41%);
  --Red500: hsl(356, 69%, 56%);
  --Blue600_Facebook: hsl(208, 92%, 53%);
  --Blue500_Twitter: hsl(203, 89%, 53%);
  --Linear_gradient_Instagram: hsl(37, 97%, 70%) to hsl(5, 77%, 71%) to hsl(329, 70%, 58%);
  --Red700_YouTube: hsl(348, 97%, 39%);
  /*Dark Theme*/
  --Linear_gradient_Toggle: hsl(210, 79%, 56%) to hsl(146, 68%, 55%);
  /*Light Theme*/
  --Gray400_Toggle: hsl(230, 22%, 74%);
  /*Neutral*/
  /*Dark Theme*/
  --Gray950_BG: hsl(230, 17%, 14%);
  --Gray900_Top_BG_Pattern: hsl(232, 19%, 15%);
  --Navy950_Card_BG: hsl(228, 28%, 20%);
  --Gray400_Text: hsl(230, 22%, 74%);
  --White_Text: hsl(0, 100%, 100%);
  /*Light Theme*/
  --White_BG: hsl(0, 100%, 100%);
  --Blue50_Top_BG_Pattern: hsl(225, 100%, 98%);
  --Navy50_Card_BG: hsl(227, 47%, 96%);
  --Gray650_Text: hsl(228, 12%, 44%);
  --Gray950_Text: hsl(230, 17%, 14%);

}

body {
  background-color:var(--White_BG);
  font-size:14px;
}
/* Dark mode */
body.dark {
    background: #1e1f26;
    color: white;
}

/* Toggle switch container */
.toggle-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0 0 20px 0;
    font-size: 16px;
}

/* The switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.switch input {
    display: none;
}

/* Slider background */
.slider {
    position: absolute;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background: #ccc;
    border-radius: 34px;
    cursor: pointer;
    transition: 0.3s;
}

/* Slider circle */
.slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

/* Checked state */
input:checked + .slider {
    background: #4c8bf5;
}
input:checked + .slider:before {
    transform: translateX(24px);
}
hr {
  margin:1rem 0;
}
main {
  width:357px;
  margin: 0 auto;
  padding:2rem;
}

h1 {
  font-weight:400;
}
.social_media_section {
  display:grid;
  grid-gap:25px;
  text-align:center;
}

.social_media_section div {
  background-color:var(--Navy50_Card_BG);
  padding:1rem;
  border-radius: 8px;
}

.sm_section_div {
  border-top: 4px solid var(--Blue600_Facebook);
}
.countUp{
  color:var(--Green500);
}

.countDown {
  color:var(--Red500);
}
.sm_section_div:nth-child(2) {
  border-top:4px solid var(--Blue500_Twitter);
}

.sm_section_div:nth-child(3){
  border-top:4px solid hsl(329, 70%, 58%); 
}

.sm_section_div:nth-child(4) {
  border-top:4px solid var(--Red500);
}

.social_media_section p {
  color:var(--Gray650_Text);
  margin-bottom:15px;
  letter-spacing:.1rem;
}

.overview_section {
  display:grid;
  grid-gap:25px;
}

.overview_section div{
  background-color:var(--Navy50_Card_BG);
  padding:.8rem;
  border-radius:.5rem;
}

.overview_section div div {
  display:flex;
  justify-content:space-between;
}

.text {
  display:flex;
  justify-content:center;
  align-items:center;
}

.text img {
  margin-right:5px;
}

.follower_count {
  font-size:32px;
  margin-bottom:-15px;
  margin-top:-10px;
  font-weight:700;
  letter-spacing:4px;
}

.overview_section span{
  font-size:20px;
  font-weight:700;
}

h2 {
  padding:1rem 0;
}
@media screen and (min-width: 1440px) {
  /* CSS styles for laptops and desktops */
  main {
    width:1120px;
    margin:0 auto;
  }

  .social_media_section {
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    grid-gap:25px;
    margin:50px 0 50px 0;
  }

  .overview_section {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    grid-gap:25px;
    margin:25px 0 25px 0;
  }

  .header {
    display:flex;
    justify-content:space-between;
  }
}


.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
