@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500&display=swap");
/* font name : Rubik , weights 300 ,400 ,500 */

:root {
  --font: Rubik;

  /* Primary colors */
  --Blue: hsl(246, 80%, 60%);
  --Lightred-work: hsl(15, 100%, 70%);
  --Softblue-play: hsl(195, 74%, 62%);
  --Lightred-study: hsl(348, 100%, 68%);
  --Limegreen-exercise: hsl(145, 58%, 55%);
  --Violet-social: hsl(264, 64%, 52%);
  --Softorange-selfcare: hsl(43, 84%, 65%);

  /* Neutral colors  */
  --Verydarkblue: hsl(226, 43%, 10%);
  --Darkblue: hsl(235, 46%, 20%);
  --Desaturatedblue: hsl(235, 45%, 61%);
  --PaleBlue: hsl(236, 100%, 87%);
}

* {
  margin: 0px;
  font-family: var(--font);
  /*  border: 1px solid green;  */
}
html {
  height: 100%;
}
body {
  background-color: var(--Verydarkblue);
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
main {
  width: 100%;
  max-width: 820px;
  color: white;
  display: grid;
  grid-gap: 1em;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.profile {
  border-radius: 10px;
  background-color: var(--Darkblue);
  grid-row: 1 / 3;
}
.profile-top {
  padding: 1.5em;
  background-color: var(--Blue);
  border-radius: inherit;
}
.profile-avatar {
  width: 55px;
  border: 3px solid white;
  border-radius: 50%;
  margin-bottom: 20px;
}
h1 {
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: 30px;
}
.time-period {
  margin-left: 1.5em;
  margin-top: 1em;
  font-weight: 400;
  width: max-content;
  color: var(--Desaturatedblue);
}
.time-period:hover {
  cursor: pointer;
  color: var(--PaleBlue);
}
.clicked{
  color: var(--PaleBlue);
  font-weight: 500;
}

.work {
  background: url(images/icon-work.svg);
  background-color: var(--Lightred-work);
}
.play {
  background: url(images/icon-play.svg);
  background-color: var(--Softblue-play);
}
.study {
  background: url(images/icon-study.svg);
  background-color: var(--Lightred-study);
}

.social {
  background: url(images/icon-social.svg);
  background-color: var(--Violet-social);
}
.self-care {
  background: url(images/icon-self-care.svg);
  background-color: var(--Softorange-selfcare);
}
.container {
  display: flex;
  border-radius: 10px;
  background-repeat: no-repeat;
  background-position: top -10px right 10px;
  background-size: 55px;
}
.exercise {
  background: url(images/icon-exercise.svg);
  background-color: var(--Limegreen-exercise);
  background-position: top 0px right 10px;
  background-repeat: no-repeat;
  background-size: 55px;
}
.text {
  margin-top: 30px;
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr;
  border-radius: 8px;
  background-color: var(--Darkblue);
  padding: 1.3em;
  box-sizing: border-box;
}
.text:hover {
  cursor: pointer;
  background-color: var(--Blue);
}
h2 {
  margin-top: 20px;
  font-weight: 300;
  font-size: 3rem;
  grid-row: 2 / 3;
  grid-column: 1 / 3;
}
h3 {
  font-size: 1rem;
  font-weight: 500;
}
.weekly-hours {
  display: none;
}
.monthly-hours {
  display: none;
}
h4 {
  color: var(--Desaturatedblue);
  font-weight: 400;
  grid-column: 1 / 3;
}
.ellipsis-icon {
  align-self: center;
  justify-self: right;
  pointer-events: none;
}

h6 {
  display: none;
}

@media screen and (width<750px) {
  h2 {
    font-size: 2rem;
  }
}

@media screen and (width<500px) {
  main {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
  }
  html {
    height: auto;
  }
  body {
    background-color: var(--Verydarkblue);
    height: auto;
    display: block;
  }
  .text {
    grid-template-columns: 1fr 2fr;
  }
  h2 {
    margin-top: 0px;
    grid-column: 1 / 2;
  }
  h4 {
    grid-column: 2 / 3;
    align-self: center;
    justify-self: end;
  }

  .profile {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-radius: 10px;
    grid-row: 1 / 3;
  }
  .time-period {
    margin-left: 0em;
    margin-top: 0em;
    margin: 1em;
    justify-self: center;
  }
  .profile-top {
    display: grid;
    grid-column: 1 / 4;
  }
  .profile-avatar {
    grid-row: 1 / 3;
    width: 50px;
    margin-bottom: 0px;
  }
  #report-for {
    justify-self: start;
  }
  h1 {
    margin-top: 0px;
    font-size: 1.2rem;
    margin-bottom: 0px;
  }
}
