body{
    margin: 0;
    box-sizing: content-box;
    font-family: 'Inter', sans-serif;
    color: var(--baseColor);
    background: var(--baseBackground);
}
:root{
--Lime-Green: hsl(163, 72%, 41%);
--Bright-Red: hsl(356, 69%, 56%);
--Twiteer: hsl(195, 100%, 50%);
--Facebook: hsl(203, 89%, 53%);
--Instagram1:hsl(37, 97%, 70%);
--instagram2: hsl(329, 70%, 58%);
--YouTube: hsl(348, 97%, 39%);
--gray: #5f616d;
--cardGray: #f0f3fa;
--lightGray: #f8f9fe;
--cardTitle: #6f717e;
--baseBackground: white;
--baseColor: #1d2029;
--switchSpinner: white;
--switch: #5f616d;
}

.wrapper{
    padding: 0 30px;
}
.grid{
    display: grid;
    grid-row-gap: 25px;
}
.dark-mode{
    display: flex;
    justify-content: space-between;
    padding-top: 1em;

}
.checkbox{
    display: none;
}

.checkbox:checked ~ .switch::before{
    transform: translateY(0);
}
.switch{
    /* border:1px solid red; */
    height: 40px;
    display: block;
    border-radius: 20px;
    background: var(--switch);
    width: 80px;
    padding: 5px;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
}
.switch::before{
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background: var(--switchSpinner);
    border-radius: 50%;
    transform: translateX(40px);
    transition: .3s;
    will-change:transform;
}
/* --------------------------------------------- */
/* header */
.header{
    /* border: 1px solid red; */
    background: var(--lightGray);
    padding-bottom: 100px;
    border-radius:0 0 20px 20px;
    padding-top:2em;
}
.header-total{
    color:var(--gray);
    margin: .5em 0;
    font-weight: 600;
    padding-bottom: 1.5em;
    border-bottom: 1px solid var(--gray);
}
h1{
    margin: 0;
   /* font-size: 1.7em; */
}
/* --------------------------------------------- */
/* top-card */
.top-cards{
    /* border:1px solid green; */
    margin-top: -50px;
    margin-bottom: 2em;
}
/* --------------------------------------------- */
/* card */
.card{
    border-radius: 8px;
    overflow: hidden;
    background: var(--cardGray);
    text-align:  center;
    padding-bottom: 1.7em 0;
    position: relative;

}
.card::before{
    content: "";
    height: 4px;
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0;
}
.card.facebook::before{
    background-color:var(--Facebook);
}

.card.twiter::before{
    background-color:var(--Twiteer);
}

.card.instagram::before{
    background-image: linear-gradient( to right, var(--Instagram1)0%, var(--instagram2)100%);
}

.card.github::before{
    background-color:var(--cardTitle);
}
.card-title{
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cardTitle);
    font-size: .9em;
    font-weight: bold;
}
.card-title img{
    margin-right: 5px;
    height: 20px;
}
/* .card-followers{
    
} */
.card-followers-numbers{
    /* border:1px solid blue; */
    font-size: 50px;
    font-weight: 700;
}
.card-followers-title{
    /* border:1px solid green; */
    display: block;
    text-transform: uppercase;
    color:var(--cardTitle);
    letter-spacing: 5px;
    font-size: -75em;

}
.card-today{
    margin-top: 20px;
    color:var(--Lime-Green);
    font-size: .7em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-today img{
    margin-right: 5px;
}
/* ------------------------------------------------ */
/* overview */
.overview{
    padding-bottom: 2em;
}
h2{
    color: var(--gray)
}
.card-small{
    /* border: 1px solid dodgerblue; */
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 1em;
    background: var(--cardGray);
    border-radius: 8px;
    padding: 1.7em;
}
.card-small p{
    margin: 0;
}
.card-samall-views{
    /* border: 1px solid hotpink; */
    color:var(--cardTitle);
    font-weight: bold;
    font-size: .9em;
}

.card-samall-icon{
    /* border: 1px solid darksalmon; */
    text-align: right;
}
.card-samall-icon img{
    height: 17px;
}

.card-samall-number{
    /* border: 1px solid darkcyan; */
    font-weight: bold;
    font-size: 2.5em;
    line-height: .9em;
}

.card-samall-percentage{
    /* border: 1px solid green; */
    text-align: right;
    display: flex;
    align-items: flex-end;
    color: var(--Lime-Green);
    justify-content: flex-end;
    font-size: .8em;
    font-weight: bold;
}
.card-samall-percentage.is-danger{
    color: var(--Bright-Red);
}


.card-samall-percentage span{
    /* border:1px solid red; */
    display: flex;
    align-items: center;
}
.card-samall-percentage img{
    margin-right: 5px;
}

@media screen and (min-width:500px){
    .grid{
        grid-template-columns:1fr 1fr;
        grid-column-gap: 25px;
    }
    .wrapper{
        max-width: 1440px;
        margin: auto;
    }
}
@media screen and (min-width:768px){
    .grid{
        grid-template-columns:1fr 1fr 1fr;
        grid-column-gap: 25px;
    }
}


@media screen and (min-width:1024px){
    .grid{
        grid-template-columns:1fr 1fr 1fr 1fr;
        grid-column-gap: 25px;
    }
    .header-total{
        border:none;
    }
    .header-grid{
        display: grid;
        grid-template-columns: 1fr 200px;
    }
}

.is-dark-mode {
    --cardGray: #252b43;
    --baseBackground: #1d2029;
    --baseColor: white;
    --gray: #8088ad;
    --lightGray: #1d2029;
    --cardTitle: #8088ad;
    --switchSpinner: #282943;
    --switch: linear-gradient(to right, #4796d2 0%, #37ce8f 100%);
  }
  
  .is-light-mode {
    --gray: #5f616d;
    --cardGray: #f0f3fa;
    --lightGray: #f8f9fe;
    --cardTitle: #6f717e;
    --baseBackground: white;
    --baseColor: #1d2029;
    --switchSpinner: white;
    --switch: #5f616d;
  }
