:root {
    --purple-600: hsl(246, 80%, 60%);
    --orange-300: hsl(15, 100%, 70%);
    --blue-300: hsl(195, 75%, 62%);
    --pink-400: hsl(348, 100%, 68%);
    --green-400: hsl(145, 58%, 55%);
    --purple-700: hsl(264, 64%, 52%);
    --yellow-300: hsl(43, 84%, 65%);
    --navy-950: hsl(226, 43%, 10%);
    --navy-900: hsl(235, 46%, 20%);
    --purple-500: hsl(235, 45%, 61%);
    --navy-200: hsl(236, 100%, 87%);
    --font-family: 'Rubik', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-bold: 500;
}

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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    background-color: var(--navy-950);
}

.container {
    width: calc(100% - 2rem * 2);
    max-width: 68.75rem;
    display: flex;
    gap: 2rem;
    padding-inline: 2rem ;
}

.profile {
    display: flex;
    flex-direction: column;
    flex: 0 0 15.625rem;
}

.profile-header {
  height: 100%;
    background-color: var(--purple-600);
    color: white;
    padding: 2rem;
    border-radius: .9375rem .9375rem 0 0;
}

.user-image {
    width: 4rem;
    height: 4rem;
    border: .1875rem solid white;
    border-radius: 50%;
}

.report {
    margin-top: 2rem;
    color: var(--navy-200);
    font-size: 0.8rem;
}

.user-name {
    font-size: 2rem;
    font-weight: var(--font-weight-light);
    line-height: 1.1;
}

.time-filters {
    background-color: var(--navy-900);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 0 0 15px 15px;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--navy-200);
    opacity: 0.5;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    color: white;
    opacity: 1;
}

.cards {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
  width: 14.0625rem;
  border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--navy-900);
}


.card-header {
    height: 2.75rem;
    position: relative;
    overflow: hidden;
}

.card-header img.todo-icon {
    position: absolute;
    top: -0.625rem;
    right: .625rem;
    width: 5rem;
    opacity: 0.8;
}

.card-content {
    background-color: var(--navy-900);
    padding: 1.5rem;
    border-radius: .5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}
.card-content:hover{
  background-color: var(--purple-500);
}
.card-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1rem;
    color: white;
}

.ellipsis-icon {
    cursor: pointer;
}

.card-time {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.current-time {
    font-size: 2.5rem;
    font-weight: var(--font-weight-light);
    color: white;
}

.previous-time {
    font-size: 0.75rem;
    color: white;
    font-weight: var(--font-weight-light);
    opacity:0.5;
}


/* Colors */
.work {
    background-color: var(--orange-300);
}
.play {
    background-color: var(--blue-300);
}
.study {
    background-color: var(--pink-400);
}
.exercise {
    background-color: var(--green-400);
}
.social {
    background-color: var(--purple-700);
}
.self-care {
    background-color: var(--yellow-300);
}


@media (max-width: 47.9375rem) {
  body {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
  }

  .container {
    flex-direction: column;
    align-items: center;
    padding-inline: 0.5rem;
    gap: 1.5rem;
    width: 100%;
    max-width: 100vw;
  }

  .profile {
    flex: unset;
    width: 100%;
    max-width: 100vw;
  }

  .profile-header,
  .time-filters {
    max-width: 100vw;
    width: 100%;
    border-radius: .9375rem .9375rem 0 0;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
  }

  .profile-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    border-radius: .9375rem .9375rem 0 0;
    padding: 1.5rem 1rem;
  }

  .user-image {
    width: 3rem;
    height: 3rem;
  }

  .report {
    margin-top: 0;
    font-size: 0.7rem;
  }

  .user-name {
    font-size: 1.2rem;
  }

  .time-filters {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
    border-radius: 0 0 .9375rem .9375rem;
    padding: 1rem;
  }

  .filter-btn {
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 100vw;
  }

  .card {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    border-radius: .9375rem;
  }

  .card-header img.todo-icon {
    width: 3.75rem;
    right: 0;
    top: 0;
  }

  .card-content {
    padding: 1rem;
    gap: 0.5rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .current-time {
    font-size: 2rem;
  }

  .previous-time {
    font-size: 0.8rem;
  }
}