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

html {
  font-size: 62.5%;
  box-sizing: border-box;
  font-family: "Rubik";
  color: #ffffff;
}

.section {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto;
  place-items: center;
  background-color: #0e1323;
}

.container {
  max-width: 111.6rem;
  margin: 0 auto;
  width: 100%;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(20rem, 1fr));
  grid-template-rows: repeat(2, 1fr);
  gap: 3.2rem;
  width: 100%;
}

.account {
  grid-row: 1 / 3;
}

.acc-info {
  background-color: #5747ea;
  padding: 3.2rem;
  border-radius: 1.5rem;
  z-index: 2;
  position: relative;
  padding: 3.2rem 3.2rem 9.3rem 3.2rem;
}

.acc-info img {
  max-width: 100%;
  width: 7.8rem;
  height: 7.8rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  margin-bottom: 4rem;
}

.acc-name span {
  color: #bbc0ff;
  font-size: 1.5rem;
  line-height: 1.8rem;
  display: block;
}

.acc-name {
  font-size: 4rem;
  line-height: 4.7rem;
  font-weight: 100;
}

.list {
  padding: calc(2.8rem + 1.5rem) 3.2rem 3.2rem 3.2rem;
  background-color: #1c204b;
  margin-top: -1.5rem;
  z-index: 1;
  position: relative;
  border-radius: 1.5rem;
  list-style: none;
}

.list-item:not(:last-child) {
  margin-bottom: 2.1rem;
}

.list-item p {
  font-size: 1.8rem;
  line-height: 2.1rem;
  color: #7078c9;
  transition: all 0.2s ease;
  cursor: pointer;
}

.list-item p:hover {
  color: #ffffff;
}

.header {
  background-color: #ff8b64;
  border-radius: 1.5rem 1.5rem 0 0;
  z-index: 1;
  position: relative;
  padding: 2.6rem 0;
  border-radius: 1.5rem 1.5rem 0 0;
  background-position-x: calc(100% - 2rem);
  background-position-y: -1.2rem;
  background-repeat: no-repeat;
  background-size: 7rem;
}

.header2 {
  background-color: #ff8b64;
  background-image: url("/images/icon-work.svg");
}

.header3 {
  background-color: #55c2e6;
  background-image: url("images/icon-play.svg");
}

.header4 {
  background-color: #ff5e7d;
  background-image: url("images/icon-study.svg");
}

.header5 {
  background-color: #4bcf82;
  background-image: url("images/icon-exercise.svg");
}

.header6 {
  background-color: #7335d2;
  background-image: url("images/icon-social.svg");
}

.header7 {
  background-color: #f1c75b;
  background-image: url("images/icon-self-care.svg");
}

.header img {
  width: 7.8rem;
  height: auto;
}

.content {
  background-color: #1c204b;
  border-radius: 1.5rem;
  margin-top: -1rem;
  z-index: 2;
  position: relative;
  padding: 3.2rem;
}

.first-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.4rem;
}

.for {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 2.1rem;
}

.hours {
  font-size: 5.6rem;
  font-weight: 100;
  line-height: 6.6rem;
  margin-bottom: 0.8rem;
}

.when {
  font-size: 1.5rem;
  line-height: 1.8rem;
}

@media screen and (max-width: 48em) {
  .container {
    max-width: 61.2rem;
  }

  .grid-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2.4rem;
    width: 100%;
  }

  .account {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
  }

  .acc-info {
    padding: 3.2rem;
    display: flex;
    align-items: center;
    gap: 2.4rem;
  }

  .acc-info img {
    margin-bottom: 0;
    width: 6.4rem;
    height: auto;
  }

  .acc-name {
    font-size: 2.4rem;
    line-height: 2.8rem;
    font-weight: 100;
  }

  .list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7rem;
  }

  .list-item:not(:last-child) {
    margin-bottom: 0;
  }

  .content {
    padding: 2.4rem;
  }
}

@media screen and (max-width: 38.5625em) {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}
