:root {
  /* Light Theme */
  --bg: hsl(0, 0%, 100%);
  --bg-top-color: hsl(225, 100%, 98%);
  --card-bg: hsl(227, 47%, 96%);
  --primary-color-text: hsl(228, 12%, 44%);
  --secondary-color-text: hsl(230, 17%, 14%);
  --form-check-input: hsl(230, 22%, 74%);

  --color-text-over: hsl(230, 17%, 14%);
  --dark-mode-color: hsl(228, 12%, 44%);
}

* {
  font-family: "Inter", sans-serif !important;
  font-weight: 400 !important;
  transition: 0.4s;
}

/* button back to index */
.button-back {
  width: 25%;
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  height: auto;
  color: aliceblue;
  padding: 5px;
  margin: 5px auto;
  background-color: rgb(25, 118, 210);
  border: solid #1a4c77 2px;
}

.button-back:hover {
  background-color: rgb(17, 77, 138);
  border: solid #11324e 2px;
  color: aliceblue;
}

/* end button back to index */

.separate-sm {
  display: none;
}

/* Btn Toggle Switch */
.switch {
  margin-top: 5px;
  position: relative;
  display: inline-block;
  width: 33px;
  height: 17px;
}

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

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

.dark.slider:before {
  --bg-top-color: hsl(232, 19%, 15%);
}

.slider:before {
  position: absolute;
  content: "";
  height: 13px;
  width: 13px;
  left: 2px;
  bottom: 2px;
  background-color: var(--bg-top-color);
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

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

input:checked + .slider:before {
  -webkit-transform: translateX(15px);
  -ms-transform: translateX(15px);
  transform: translateX(15px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 45px;
}

.slider.round:before {
  border-radius: 50%;
}
/* End Btn Toggle Switch */

.container {
  background-color: var(--bg);
  color: var(--text);
  font-size: 14px !important;
}

.navbar {
  height: 250px;
  align-items: flex-start;
  padding: 40px 80px;
}

.nav-left {
  width: 35%;
}

.title-nav-left.dark {
  --secondary-color-text: hsl(0, 0%, 100%);
}

.title-nav-left {
  font-weight: 700 !important;
  color: var(--secondary-color-text);
}

.nav-subtext {
  font-weight: bold !important;
}

.mode {
  margin-right: 10px;
}

/* positioning cards in nav */
.cards-info {
  padding: 0px 80px;
  position: absolute;
  top: 180px;
  z-index: 3;
  margin: auto;
  right: 1px;
}
/*  end positioning cards in nav */

/* Painting Cards */

/* edit borders cards*/

.border-top-facebook {
  border-radius: 5px;
  border-top: solid;
  border-top-color: hsl(208, 92%, 53%);
}

.border-instagram {
  position: relative;
  padding-top: 5px;
}

.border-instagram::before {
  display: block;
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  margin: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, hsl(37, 97%, 70%), hsl(329, 70%, 58%));
  border-top-left-radius: 30%;
  border-top-right-radius: 30%;
  border-bottom-left-radius: 20%;
  border-bottom-right-radius: 20%;
}

.border-top-twitter {
  border-radius: 5px;
  border-top: solid;
  border-top-color: hsl(203, 89%, 53%);
}

.border-top-youtube {
  border-radius: 5px;
  border-top: solid;
  border-top-color: hsl(348, 97%, 39%);
}

/* --- end edit borders cards ---/

/* edit nav */

.form-check-input.dark {
  --form-check-input: linear-gradient(
    to right,
    hsl(210, 78%, 56%),
    hsl(146, 68%, 55%)
  );
}

.form-check-input {
  background: var(--form-check-input) !important;
  border: var(--form-check-input);
}

/* --- end edit nav --- */

/* edit cards */
.card.dark:hover {
  background: hsl(230, 19%, 24%) !important;
  cursor: pointer;
}
.card:hover {
  background: var(--form-check-input) !important;
  cursor: pointer;
}

/* edit overview */
.overview-today.dark {
  --primary-color-text: hsl(0, 0%, 100%);
}
.overview-today {
  color: var(--primary-color-text);
  font-weight: 700 !important;
  margin-top: 25px;
  margin-bottom: 15px;
}
/* --- end edit overview --- */

/* edit intern card */
.card-top {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.icon-card-top {
  margin-right: 7px;
}

.name-card-ty-top {
  margin-left: 8px;
}

.card-title {
  font-weight: bold !important;
}

.text-card-color.dark {
  --secondary-color-text: hsl(0, 0%, 100%);
}
.text-card-color {
  color: var(--secondary-color-text);
}

.follow-num {
  font-weight: 700 !important;
  margin-bottom: 0px;
  font-size: 50px !important;
}

.follow-subscriber {
  letter-spacing: 2px;
}

.card-bottom-number {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
}

.arrow-position {
  margin-top: 9px;
}

.follow-today-positive {
  color: hsl(163, 72%, 41%);
  font-weight: bold !important;
  margin-left: 5px;
}

.follow-today-negative {
  color: hsl(356, 69%, 56%);
  font-weight: bold !important;
  margin-left: 5px;
}

.card-title.top {
  display: flex;
  justify-content: space-between;
}

.card-bottom-position {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.card-num {
  font-weight: 700 !important;
  margin-bottom: 0px;
  font-size: 30px !important;
}
/* --- edit intern card--- */

/* --- end edit card ---*/

/* Colors Themes */

/* /// Light /// */

input:checked:hover + .slider:hover {
  background: linear-gradient(to right, hsl(210, 78%, 56%), hsl(146, 68%, 55%));
}

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

.primary-color-text {
  color: var(--primary-color-text);
}

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

.bg-theme {
  background: var(--bg);
}

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

/* /// end light /// */

/* /// Dark /// */
.dark-mode-color.dark {
  --dark-mode-color: hsl(0, 0%, 100%);
}

.dark {
  --primary-color-text: hsl(228, 34%, 66%);
  --secondary-color-text: hsl(0, 0%, 100%);
  --bg: hsl(230, 17%, 14%);
  --bg-top-color: hsl(232, 19%, 15%);
  --card-bg: hsl(228, 28%, 20%);
}

/* /// end light /// */

/* End colors themes */

/* --- End Painting Cards --- */

footer {
  background: hsl(208, 92%, 53%);
  margin-top: 5px;
  margin: 5px auto;
  padding: 5px 5px;
  border-radius: 15px;
  
}

.attribution {
  font-size: 12px;
  text-align: center;
  color: white;
}

.attribution a {
  color: hsl(182, 34%, 70%);
  font-weight: bold !important;
}

/* Disegn mobile */
@media screen and (max-width: 375px) {
  .button-back {
    width: 30%;
  }

  .navbar {
    width: 100%;
    padding: 30px 10px;
  }

  .nav-subtext {
    width: 200px;
  }

  .separate-sm.dark {
    background-color: var(--secondary-color-text);
  }

  .separate-sm {
    background-color: var(--secondary-color-text);
    display: flex;
    height: 5px;
    width: 350px;
  }

  .container-fluid {
    align-items: flex-start;
    justify-content: center;
  }

  .title-nav-left {
    width: 13em;
  }

  .slider {
    margin-left: 47px;
    width: 39px;
    height: 20px;
  }

  .slider:before {
    height: 15px;
    width: 15px;
  }

  input:checked + .slider:before {
    -webkit-transform: translateX(19px);
    -ms-transform: translateX(19px);
    transform: translateX(19px);
  }

  .cards-info {
    top: 250px;
    padding: 0px 20px;
  }
}

/* End Disegn mobile */

/* Other mobiles */
@media screen and (min-width: 376px) and (max-width: 461px) {
  .button-back {
    width: 30%;
  }

  .navbar {
    width: 100%;
    padding: 30px 10px;
  }

  .nav-subtext {
    width: 200px;
  }

  .separate-sm.dark {
    background-color: var(--secondary-color-text);
  }

  .separate-sm {
    background-color: var(--secondary-color-text);
    display: flex;
    height: 5px;
    width: 350px;
  }

  .container-fluid {
    align-items: flex-start;
    justify-content: center;
  }

  .title-nav-left {
    width: 13em;
  }

  .slider {
    margin-left: 47px;
    width: 39px;
    height: 20px;
  }

  .slider:before {
    height: 15px;
    width: 15px;
  }

  input:checked + .slider:before {
    -webkit-transform: translateX(19px);
    -ms-transform: translateX(19px);
    transform: translateX(19px);
  }

  .cards-info {
    top: 270px;
    padding: 0px 20px;
  }
}

@media screen and (min-width: 462px) and (max-width: 581px) {
  .navbar {
    width: 100%;
    padding: 30px 90px;
  }

  .nav-subtext {
    width: 200px;
  }

  .separate-sm.dark {
    background-color: var(--secondary-color-text);
  }

  .separate-sm {
    background-color: var(--secondary-color-text);
    display: flex;
    height: 5px;
    width: 380px;
  }

  .container-fluid {
    align-items: flex-start;
    justify-content: center;
  }

  .title-nav-left {
    width: 13em;
  }

  .slider {
    margin-left: 47px;
    width: 39px;
    height: 20px;
  }

  .slider:before {
    height: 15px;
    width: 15px;
  }

  input:checked + .slider:before {
    -webkit-transform: translateX(19px);
    -ms-transform: translateX(19px);
    transform: translateX(19px);
  }

  .cards-info {
    top: 270px;
    padding: 0px 20px;
  }
}

/* End  Other mobiles */

/* Disegn some tablets and some mobiles */
@media screen and (min-width: 582px) and (max-width: 1107px) {
  /* .navbar {
    width: 100%;
    padding: 30px 10px;
  }*/

  .separate-sm {
    display: none;
  }

  .container-fluid {
    align-items: flex-start;
    justify-content: center;
  }

  .title-nav-left {
    width: 13em;
  }

  .slider {
    width: 39px;
    height: 20px;
  }

  .slider:before {
    height: 15px;
    width: 15px;
  }

  input:checked + .slider:before {
    -webkit-transform: translateX(19px);
    -ms-transform: translateX(19px);
    transform: translateX(19px);
  }

  .cards-info {
    top: 200px;
    padding: 0px 20px;
  }
}

/* End Disegn mobile */
