/*========== CSS Colors ==========*/

:root {
  --background-color: hsl(226, 43%, 10%);
  --font-color: hsl(236, 100%, 87%);

  --cards-color: hsl(235, 46%, 20%);

  --info-user-color: hsl(246, 80%, 60%);

  --work-card-color: hsl(15, 100%, 70%);
  --play-card-color: hsl(195, 74%, 62%);
  --study-card-color: hsl(348, 100%, 68%);
  --exercise-card-color: hsl(145, 58%, 55%);
  --social-card-color: hsl(264, 64%, 52%);
  --self-card-color: hsl(43, 84%, 65%);
}

/* GENERAL SETTINGS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

body {
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--background-color);
  color: #fff;

  font-family: "Rubik", sans-serif;
}

h1 {
  font-weight: 300;
}

/* MAIN */

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

/* USER INFO */

.infoContainer {
  grid-row: span 2;
  background-color: var(--cards-color);
  border-radius: 15px;

  padding-bottom: 15px;
}

.About-user {
  display: flex;
  flex-direction: column;

  border-radius: 15px;

  background-color: var(--info-user-color);
  padding: 30px 1px 50px 20px;
}

.About-user h1 {
  font-weight: 300;
  max-width: 200px;
}

.About-user span {
  color: var(--font-color);
  font-size: 14px;
}

/* LIST USER */

.navList {
  height: 90px;
  margin: 20px;

  padding-top: 10px;
  padding-left: 5px;
}

.navList li {
  font-size: 18px;
}

.navList li+li {
  margin-top: 15px;
}

/* IMAGE USER */

.About-user img {
  max-width: 90px;
  border: 2px solid white;
  border-radius: 100px;
  margin-bottom: 50px;
}

/*   CARD */

.card {
  height: 83%;
  width: 100%;

  background-color: var(--cards-color);
  position: relative;
  z-index: 2;
  top: 2px;

  display: flex;
  flex-direction: column;
  justify-content: space-evenly;

  border-radius: 15px;
  transition: 0.5s ease-in-out;
}

.card:hover {
  background-color: #46438f;
}

.time-frames {
  color: var(--font-color);
}

.active {
  color: #fff;
}



ul li:hover {
  cursor: pointer;
}

.card-header {
  display: flex;
  justify-content: space-between;
  margin: 20px 10px;
  align-items: baseline;
}

strong {
  font-size: 30px;
  font-weight: normal;
}

strong:hover {
  cursor: pointer;
}

.spanStyle {
  font-size: 30px;
}

.card h1 {
  margin: 0px 30px;
  font-size: 40px;
}

.card span {
  margin: 0px 30px;
  color: var(--font-color);
  font-size: 14px;
}

/* IMAGE   CARD */
.imgCard {
  max-width: 60px;
  position: absolute;
  top: 1px;
  right: 20px;
  z-index: 1;
}

/* WORK CARD */

.work-card-container {
  background-color: var(--work-card-color);
  border-radius: 15px;

  display: flex;
  align-items: flex-end;
  position: relative;

}

/* PLAY CARD */

.play-card-container {
  background-color: var(--play-card-color);
  border-radius: 15px;

  display: flex;
  align-items: flex-end;
  position: relative;

}

/* STUDY CARD */

.study-card-container {
  background-color: var(--study-card-color);
  border-radius: 15px;

  display: flex;
  align-items: flex-end;
  position: relative;

}

/* EXERCISE CARD */

.exercise-card-container {
  background-color: var(--exercise-card-color);
  border-radius: 15px;

  display: flex;
  align-items: flex-end;
  position: relative;

}

/* SOCIAL CARD */

.social-card-container {
  background-color: var(--social-card-color);
  border-radius: 15px;

  display: flex;
  align-items: flex-end;
  position: relative;

}

/* SELF CARD */

.self-card-container {
  background-color: var(--self-card-color);
  border-radius: 15px;

  display: flex;
  align-items: flex-end;
  position: relative;

}

/* Responsiveness */

@media (max-width: 980px) {
  main {
    gap: 20px;
  }
}

@media (max-width: 790px) {
  main {
    grid-template-columns: 1fr;
    width: 570px;
    margin: 10px;
  }

  body {
    height: 90%;
  }

  .card-header {
    margin: 20px 30px 10px;
  }

  .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
  }

  .card-body h1 {
    font-size: 30px;
  }

  .navList {
    height: 0;
  }

  .navList ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navList li {
    font-size: 16px;
  }

  .navList li+li {
    margin-top: 0;
  }

  .infoContainer {
    margin-top: 20px;
  }

  .About-user {
    padding: 0;
    flex-direction: row;

    align-items: center;
    justify-content: center;
  }

  .About-user img {
    max-width: 70px;

    margin-top: 20px;
    margin-bottom: 20px;
  }

  .About-user h1 {
    font-size: 18px;
  }

  .user-infos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 25px;
  }
}