@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500&display=swap');

:root {
  --bg-report: hsl(246, 80%, 60%);

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

  --bg-body: hsl(226, 43%, 10%);
  --bg-card: hsl(235, 46%, 20%);
  --txt-report: hsl(235, 45%, 61%);
  --txt-main: hsl(236, 100%, 87%);
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Rubik', sans-serif;
  background-color: var(--bg-body);
  color: white;
}

button:hover {
  cursor: pointer;
}

.report,
div {
  border-radius: .8rem;
}

.report {
  background-color: var(--bg-card);
  margin: 5rem 1.5rem 1rem;
}

.report__head {
  background-color: var(--bg-report);
  display: flex;
  padding: 1.5rem;
  position: relative;
}

.report__img {
  width: 4rem;
  height: 4rem;
  border: .15rem solid white;
  border-radius: 50%;
}

.report__desc {
  position: absolute;
  top: 50%;
  left: 6.5rem;
  transform: translateY(-50%);
}

.report__desc>* {
  margin: 0;
}

.report__for {
  color: var(--txt-main);
}

.report__name {
  font-size: 1.5rem;
  font-weight: 300;
}

.report__time {
  display: flex;
  justify-content: space-around;
}

.report__time>* {
  background-color: transparent;
  border: none;
  color: var(--txt-report);
  font-size: 1.25rem;
  padding: 1.5rem;
}

#showWeekly {
  color: white;
}

.report__data {
  margin: 1.5rem;
}

.report__data>*>* {
  position: relative;
  padding-top: 3rem;
  background-repeat: no-repeat;
  background-position: top -.3rem right 1rem;
  background-size: 4rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
}

.report__data>*>*>button {
  position: absolute;
  right: 1.5rem;
  top: 5.5rem;
  z-index: 1;
  border: none;
  padding: 0;
  margin: 0;
  background-color: transparent;
  height: fit-content;
}

.report__data>*>*>div {
  background-color: var(--bg-card);
  padding: 1.5rem;
  height: 8rem;
}

.report__data>*>*>*:hover,
.report__data>*>button>img {
  opacity: 0.95;
  cursor: pointer;
}

.Work {
  background-image: url(images/icon-work.svg);
  background-color: var(--bg-work);
}

.Play {
  background-image: url(images/icon-play.svg);
  background-color: var(--bg-play);
}

.Study {
  background-image: url(images/icon-study.svg);
  background-color: var(--bg-study);
}

.Exercise {
  background-image: url(images/icon-exercise.svg);
  background-color: var(--bg-exercise);
}

.Social {
  background-image: url(images/icon-social.svg);
  background-color: var(--bg-social);
}

.Self.Care {
  background-image: url(images/icon-self-care.svg);
  background-color: var(--bg-care);
}

.hrs__current {
  font-size: 1.5rem;
  float: left;
  margin: 0;
}

.hrs__previous {
  text-align: right;
  margin-top: 1.25rem;
  color: var(--txt-main);
}

.attribution {
  font-size: 11px;
  text-align: center;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

@media screen and (min-width:800px) {
  main {
    margin: auto;
    max-width: 65.5rem;
    margin-top: 13rem;
  }

  .report {
    width: 15rem;
    height: 31.5rem;
    float: left;
    margin: .75rem .5rem;
  }

  .report__head {
    display: block;
    height: 20rem;
  }

  .report__img {
    width: 5.5rem;
    height: 5.5rem;
  }

  .report__desc {
    position: static;
    transform: translateY(0);
    margin-top: 3rem;
  }

  .report__name {
    font-size: 2.5rem;
  }

  .report__time {
    display: block;
    padding: 1.5rem;
  }

  .report__time>* {
    display: block;
    padding: .5rem;
  }

  .report__data {
    margin: 0;
  }

  .report__data>* {
    display: flex;
    flex-wrap: wrap;
  }

  .report__data>*>* {
    margin: .75rem;
    height: 15rem;
    width: 15rem;
  }

  .report__data>*>*>div {
    height: 12rem;
  }
}

@media screen and (max-width:1050px) {
  main {
    margin: auto;
    max-width: 49rem;
    margin-top: 4rem;
  }
}