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

body {
  font-family: 'Rubik', sans-serif;
  background: hsl(226, 43%, 10%);
  color: white;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard {
  width: 90%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 25px;
}

/* PROFILE */
.profile-card {
  background: hsl(235, 46%, 20%);
  border-radius: 15px;
  overflow: hidden;
}

.profile-top {
  background: hsl(246, 80%, 60%);
  padding: 30px;
}

.profile-top img {
  width: 80px;
  border: 3px solid white;
  border-radius: 50%;
  margin-bottom: 20px;
}

.profile-top p {
  opacity: 0.7;
  font-size: 14px;
}

.profile-top h1 {
  font-weight: 300;
  margin-top: 5px;
}

.timeframes {
  display: flex;
  flex-direction: column;
  padding: 25px;
}

.timeframes button {
  background: none;
  border: none;
  color: hsl(235, 45%, 61%);
  padding: 8px 0;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.timeframes button:hover,
.timeframes .active {
  color: white;
}

/* CARDS GRID */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* CARD */
.card {
  position: relative;
  border-radius: 15px;
  padding-top: 45px;
  cursor: pointer;
}

.card-content {
  background: hsl(235, 46%, 20%);
  border-radius: 15px;
  padding: 25px;
  height: 100%;
  transition: 0.3s;
}

.card-content:hover {
  background: hsl(235, 46%, 30%);
}

.card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}
.card-header img{
    height:20% ;
}

.card-body h2 {
  font-size: 40px;
  font-weight: 300;
}

.card-body p {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 5px;
}

/* BACKGROUND COLORS + ICONS */
.work {
  background: hsl(15, 100%, 70%) url("images/icon-work.svg") no-repeat top -10px right 15px;
}

.play {
  background: hsl(195, 74%, 62%) url("images/icon-play.svg") no-repeat top -10px right 15px;
}

.study {
  background: hsl(348, 100%, 68%) url("images/icon-study.svg") no-repeat top -10px right 15px;
}

.exercise {
  background: hsl(145, 58%, 55%) url("images/icon-exercise.svg") no-repeat top -10px right 15px;
}

.social {
  background: hsl(264, 64%, 52%) url("images/icon-social.svg") no-repeat top -10px right 15px;
}

.selfcare {
  background: hsl(43, 84%, 65%) url("images/icon-self-care.svg") no-repeat top -10px right 15px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    align-items: flex-start;
    padding: 30px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .timeframes {
    flex-direction: row;
    justify-content: space-between;
  }
}