@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

* {
  margin: 0;
  padding: 0;
}

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

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

.profile_top h1 {
  font-weight: 300;
}

p {
  font-size: 10px;
}

h1 {
  font-weight: 300;
  margin-bottom: 15px;
}

body {
  max-width: 800px;
  margin-inline: auto;
  font-family: "Rubik", sans-serif;
  background-color: hsl(226, 43%, 10%);
  color: white;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.dashboard {
  display: grid;
  margin: 20px;
  gap: 1.5rem;
}

.profile_card {
  grid-column-start: 1;
  grid-row-start: 1;
  grid-row-end: 3;
  display: flex;
  flex-direction: column;
  background-color: hsl(235, 65%, 61%);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.profile_card img {
  width: 50px;
  border: 2px solid white;
  border-radius: 90px;
  margin-bottom: 20px;
  position: relative;
  margin: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.top {
  display: flex;
  flex-direction: row;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 30%;
}

.top img {
  width: 40px;
  height: auto;
  transform-origin: center;
  margin-left: auto;
}

.bottom {
  padding: 20px;
  background-color: hsl(235, 46%, 20%);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 90px;
}

.profile_top {
  display: flex;
  flex-direction: column;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 77%;
  background-color: hsl(235, 65%, 61%);
  padding: 20px;
}

.profile_bottom {
  padding: 20px;
  background-color: hsl(235, 46%, 20%);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 37%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

button {
  margin-right: 15px;
  margin-left: 15px;
  /* font-weight: 100; */
  background: none;
  border: none;
  outline: none;
  color: white;
  font-family: "Rubik", sans-serif;
  cursor: pointer;
}

button:hover {
  font-weight: 800;
  transition: 0.5s all ease-in-out;
}

.option:is(:hover, .active) {
  font-weight: 800;
  color: white;
}

.work_card,
.work_card .top {
  background-color: hsl(15, 100%, 70%);
}

.play_card,
.play_card .top {
  background-color: hsl(195, 74%, 62%);
}

.study_card,
.study_card .top {
  background-color: hsl(348, 100%, 68%);
}

.exercise_card,
.exercise_card .top {
  background-color: hsl(145, 58%, 55%);
}

.social_card,
.social_card .top {
  background-color: hsl(264, 64%, 52%);
}

.self_care_card,
.self_care_card .top {
  background-color: hsl(43, 84%, 65%);
}

@media (min-width: 50em) {
  .dashboard {
    grid-template-columns: repeat(4, 1fr);
  }

  .profile_bottom {
    flex-direction: column;
  }

  button {
    margin-top: 5px;
    margin-bottom: 5px;
  }
}
