@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

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

body {
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    position: relative;
    background-color: hsl(230, 17%, 14%);
}

.fondo {
    position: absolute;
    background-color: hsl(232, 19%, 15%);
    width: 100%;
    height: 300px;
    z-index: -1;
    border-radius: 0 0 30px 30px;
}

.container {
    width: 85%;
}

.banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0;
}

.title {
    font-size: 2.5em;
    font-weight: 700;
    color: hsl(0, 0%, 100%);
    margin-bottom: 10px;
}

.subtitle {
    color: hsl(228, 12%, 44%);
    font-weight: 700;
    /* margin-top: 10px; */
}

/*Switch*/
.confiswiche {
    display: flex;
    justify-content: center;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
    margin: 20px;
}

.switch .toggle {
    opacity: 0;
    width: 0;
    height: 0;
}

.deslizar {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, hsl(210, 78%, 56%), hsl(146, 68%, 55%));
    -webkit-transition: .4s;
    transition: .4s;
}

.deslizar:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 5px;
    bottom: 5px;
    background-color: hsl(0, 19%, 15%);
    -webkit-transition: .4s;
    transition: .4s;
}

/*Cambia color del bolita*/
.toggle:checked+.deslizar:before {
    background-color: hsl(225, 100%, 98%);
}

.toggle:checked+.deslizar {
    background: hsl(230, 22%, 74%);
}

.toggle:checked+.deslizar:hover {
    background: linear-gradient(90deg, hsl(210, 78%, 56%), hsl(146, 68%, 55%));
}

.toggle:checked {
    background: hsl(230, 22%, 74%);
}

.toggle:focus+.deslizar {
    box-shadow: 0 0 1px #f3f4f5;
}

.toggle:checked+.deslizar:before {
    -webkit-transform: translateX(31px);
    -ms-transform: translateX(31px);
    transform: translateX(31px);
}

/* Rounded sliders */
.deslizar.round {
    border-radius: 34px;
}

.deslizar.round:before {
    border-radius: 50%;
}

/**/
.socialdashboard {
    display: grid;
    gap: 2em;
    grid-auto-rows: 17em;
    grid-template-columns: repeat(auto-fit, minmax(16.5em, 1fr));
}

.socialcard {
    background: hsl(228, 28%, 20%);
    border-radius: 5PX;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.socialcard:hover {
    cursor: pointer;
    background: hsl(229, 27%, 27%);
}

.socialcard__user {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    color: hsl(228, 12%, 44%);
    font-weight: 700;
}

.socialcard-icon {
    padding-right: 10px;
}

.socialcard__followers {
    font-size: 4em;
    margin: 20px 0 0 0;
    color: hsl(227, 47%, 96%);
}

.followers__name {
    text-transform: uppercase;
    color: hsl(228, 12%, 44%);
    font-weight: 400;
    margin: 0 0 20px 0;
}

.socialcard__date {
    color: hsl(163, 72%, 41%);
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
}



.icon-up,
.icon-down {
    margin-right: 5px;
}

.bordeface {
    border-top: solid 3px hsl(208, 92%, 53%);
}

.bordetwiter {
    border-top: solid 3px hsl(203, 89%, 53%);
}

.bordeinsta {
    border-top: 3px solid;
    border-image-source: linear-gradient(90deg, hsl(37, 97%, 70%), hsl(329, 70%, 58%));
    border-image-slice: 1;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
}

.bordeyoutube {
    border-top: solid 3px hsl(348, 97%, 39%);
}


/*Overviewcard*/

.overiew__title {
    margin: 50px 0 25px;
    font-size: 2em;
    font-weight: 700;
    color: hsl(228, 12%, 44%);
}

.overiew {
    display: grid;
    gap: 2em;
    grid-auto-rows: 10em;
    grid-template-columns: repeat(auto-fit, minmax(16.5em, 1fr));
}

.overiewcards {
    background: hsl(228, 28%, 20%);
    color: hsl(0, 0%, 100%);
    border-radius: 5PX;
    display: flex;
    justify-content: space-around;
    align-items: space-around;
    flex-direction: column;
    width: auto;
    padding: 20px 30px;
}

.overiewcards:hover {
    cursor: pointer;
    background: hsl(229, 27%, 27%);
}

.stadistic__name,
.stadistic__number {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overiewcards__item {
    font-size: 1em;
    font-weight: 700;
    color: hsl(228, 12%, 44%);
}

.item__number {
    font-size: 2em;
}

.overiewcards__porcent {
    display: flex;
    justify-content: center;
    align-items: center;
    color: hsl(163, 72%, 41%);
    font-weight: 700;
}


.attribution {
    font-size: 11px;
    text-align: center;
    margin: 50px 0;
    color: hsl(228, 12%, 44%);
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

.red {
    color: hsl(356, 69%, 56%);
}

/*Hover diferente color*/

.hoverdark {
    background: hsl(228, 28%, 20%);
}

.hoverdark:hover {
    background: hsl(229, 27%, 27%);
}

.light {
    background: hsl(227, 47%, 96%);
}

.light:hover {
    background: hsl(222, 25%, 92%);
}

/*Quierys*/

@media (max-width:750px) {
    .banner {
        display: block;
    }

    .confiswiche {
        margin-top: 30px;
        border-top: solid 1px hsla(229, 12%, 44%, 0.555);
        justify-content: space-between;
    }
}

@media (max-width:750px) {
    .title {
        font-size: 1.9em;
    }
}