* {
  margin: 0px;
}
html {
  font-family: "RUbik", sans-serif;
  color: #444;
}
:root {
  --font-size-large: 24px;
  --devide-part-color: #e9ecef;
  --margin-title: 16px;
}
/*ngăn cách cho các phần trong project date*/
.border-for-every-in-timeline {
  border-bottom: dotted #99e9f2;
  padding-bottom: 6px;
  margin-top: 12px;
}
/*vị trí cho nội dung lorem*/
.content-goal {
  font-size: 20px;
  margin-right: 36px;
  margin-bottom: 36px;
}

/*căn các icon vô giữa container của nó*/
.center-flag {
  display: grid;
  align-self: center;
  justify-content: center;
  transform: translate(-50% -50%);
}
#goals,
#scope,
#team,
#primary,
#timeline {
  border: solid blue;
  border-width: 8px;
}
/*chứa nội dung */
.grid-container {
  border: solid blue;
  border-width: 8px;
  display: grid;
  grid-template-columns: 50% 25% 25%;
  grid-template-rows: repeat(2, auto);
  font-size: var(--font-size-large);
}

.h1-5 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 36px;
}
.h2 {
  font-size: 24px;
}
/*icon lấy từ font-icon do bài tập cung cấp*/
.icon-user-1 {
  font-size: 48px;
}
/*icon lấy từ heroicons*/
.icon-flag {
  width: 48px;
  height: 48px;
}
/*icon trong phần primary*/
.icon-quest {
  width: 48px;
  height: 48px;
  filter: invert(100%);
}

li {
  list-style-type: none;
}

/*chỉnh sửa icon chứa số trong phần Timeline*/
.pag-number {
  font-size: 36px;
  color: #000;
  /*màu cho số*/
  background-color: #eebefa;
  border-radius: 50%;
  height: 72px;
  width: 72px;
}

.pag-number:link,
.pag-number:visited {
  font-size: 36px;
  color: #eee;
  text-decoration: none;
  height: 72px;
  width: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*chỉnh sửa icon chứa dấu hỏi chấm trong phần Timeline*/
.pag-quest {
  font-size: 36px;
  color: #000;
  font-weight: bold;
  /*màu cho số*/
  background-color: black;
  border-radius: 50%;
  height: 72px;
  width: 72px;
}

.pag-quest:link,
.pag-quest:visited {
  font-size: 36px;
  color: white;
  text-decoration: none;
  height: 72px;
  width: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/*chia nội dung trong scpope thành 2 cột*/
.scope-container {
  display: flex;
  grid-template-columns: 50% 50%;
  gap: 18px;
}
/*chứa một phần nội dung gồm icon, goal, text*/
.subtitle-part {
  display: grid;
  grid-template-columns: 20% 80%;
  border-bottom: solid var(--devide-part-color);
  padding-bottom: 6px;
  margin-left: var(--margin-title);
  margin-top: 12px;
}
/*chừa chỗ như trong bài*/
.subtitle-part:last-child {
  margin-bottom: 36px;
}

/*các phần teams, primary, scope không có border chia
các phần nhỏ */
.subtitle-part-2 {
  display: grid;
  grid-template-columns: 20% 80%;
  padding-bottom: 6px;
  margin-left: var(--margin-title);
  margin-top: 12px;
}
/*chỉnh lại container cho phần Scopes do không có icon */
.subtitle-part-2 {
  display: grid;
  grid-template-columns: 20% 80%;
  padding-bottom: 6px;
  margin-left: var(--margin-title);
  margin-top: 12px;
}
/*tựa đề chính như Goals, Scope*/
.title-part {
  color: blue;
  padding-bottom: 12px;
  border-bottom: solid var(--devide-part-color);
  margin-left: var(--margin-title);
}

/*span time line lên 2 dòng*/
#timeline {
  grid-column: 3;
  grid-row: 1/3;
}

@media only screen and (min-width: 414px) and (max-width: 768px) {
  /*chứa nội dung kiểu mobile */
  .grid-container {
    border: solid blue;
    border-width: 8px;
    display: flex;
    flex-direction: column;
  }

  /*chỉnh lại cách sắp xếp của scope*/
  .scope-container,
  .subtitle-part-2 {
    display: flex;
    flex-direction: column;
  }
  /*chỉnh sửa grid cho phần goal*/
  .subtitle-part {
    display: flex;
    flex-direction: column;
  }

  /*căn lề của số trong timeline về bên trái*/
  #timeline .center-flag {
    justify-content: start;
    align-self: flex-start;
    margin-left: 32px;
  }
  /*sắp xếp lại vị trí*/
  #goal {
    order: 1;
  }
  #scope {
    order: 2;
  }
  #team {
    order: 3;
  }
  #primary {
    order: 4;
  }
  #timeline {
    order: 5;
  }
}
@media (max-width: 414px) {
  /*chứa nội dung kiểu mobile */
  .grid-container {
    border: solid blue;
    border-width: 8px;
    display: flex;
    flex-direction: column;
  }
  /*căn lề của số trong timeline về bên trái*/
  #timeline .center-flag {
    justify-content: start;
    align-self: flex-start;
    margin-left: 32px;
  }
  /*chỉnh lại cách sắp xếp của scope*/
  .scope-container,
  .subtitle-part-2 {
    display: flex;
    flex-direction: column;
  }

  /*chỉnh sửa grid cho phần goal*/
  .subtitle-part {
    display: flex;
    flex-direction: column;
  }

  /*sắp xếp lại vị trí*/
  #goal {
    order: 1;
  }
  #scope {
    order: 2;
  }
  #team {
    order: 3;
  }
  #primary {
    order: 4;
  }
  #timeline {
    order: 5;
  }
}
