* {
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
body {
  display: grid;
  grid-template-columns: minmax(200px, 400px) 1fr;
}
h2 {
  font-size: 1.4rem;
  margin-top: 3em;
  font-weight: 900;
  padding-bottom: 1em;
}
p,
h2,
h3 {
  font-weight: 750;
  margin-bottom: 0.2px;
  font-family: Roboto, Arial, Helvetica, sans-serif;
}
a {
  font-family: Roboto, Arial, Helvetica, sans-serif;
}
h2,
h3 {
  display: block;
}
h3 {
  font-size: 1rem;
}
.sidebar {
  padding-top: 1em;
  background-color: #7a192a;
  flex: 1 1 250px;
  padding-left: 1.5em;
  height: 100%;
  display: grid;
  grid-template-rows: 120px 400px 1fr;
}
.sidebar > div:nth-child(1n + 2) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dashboard-div div {
  font-size: 1.7rem;
}
.img-text:not(.dashboard-div) {
  margin-left: 0.5em;
}
.img-text {
  display: flex;
  align-items: center;
  color: #ffffff;
  gap: 1em;
  font-size: 1.3em;
  font-weight: 700;
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.dashboard {
  width: 3em;
}
.img-text img {
  filter: invert(1);
}
.right {
  flex: 11 1 159px;
  min-width: 400px;
  display: grid;
  grid-template-rows: minmax(18vh, 1fr) 6fr;
}
.main {
  gap: 1em;
  background-color: #e2e8f0;
  padding-left: 1em;
  padding-right: 1em;
  padding-right: 1.5em;
  /* padding-top: 2em; */
  padding-bottom: 5%;
  display: grid;
  grid-template-columns: 7fr 2fr;
}
.header {
  background-color: #ffffff;
  box-shadow: 0px 0px 10px grey;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.header-1 {
  flex: 1;
  display: grid;
  grid-template-columns: 5fr 3fr;
  margin-top: 1em;
}
.header-1-1 {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 2em;
}
.header-1-1 > *:first-child {
  flex: 1;
  text-align: end;
}
.header-1-1 > *:last-child {
  flex: 7;
}
.header-1-2 {
  display: flex;
  justify-content: center;
}

.header-1-2 > div {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.header-1-2 > div > * {
  margin: 0 1em;
  flex: 1;
  text-align: center;
}
.header-1-2 > div > div:nth-child(3) {
  font-weight: 700;
  font-size: 1.4em;
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  flex: 3;
}
.input {
  border-radius: 100px;
  border: none;
  background-color: #e2e8f0;
  height: 50%;
}
.header-name {
  display: flex;
  align-items: center;
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  gap: 40px;
}
.name {
  font-size: 2em;
  font-weight: 700;
}
.name span {
  font-size: 0.7em;
  font-weight: 550;
}
.header-name img {
  width: 90px;
  height: 90px;
  background-color: #515668;
  border-radius: 1000px;
}
.header-2 {
  flex: 1.4;
  display: flex;
  padding: 1em 1.5em;
}
.header-2 > div:first-child {
  flex: 3;
}
.header-links {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.header-links a {
  background-color: #7a192a;
  padding: 0.7em 2em;
  border-radius: 100px;
  text-decoration: none;
  color: white;
}
.mainleft-grid-items,
.announcements > div,
.trending > div {
  box-shadow: 4px 4px 6px grey;
}
.trending {
  display: flex;
  flex-direction: column;
}
.announcements > h3 {
  margin-bottom: 0px;
}
.mainleft p {
  font-weight: 400;
}
.mainleft {
  display: flex;
  flex-direction: column;
}
.mainleft > h2 {
  flex: 0;
}
.mainleft p {
  line-height: 1.4em;
}
.mainleft-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  grid-template-rows: repeat(3, 1fr);
  gap: 18px;
  grid-auto-rows: 1fr;
}

.mainleft-grid-items {
  background-color: #ffffff;
  border-radius: 7px;
  min-height: 250px;
  border-left: 9px solid #f0b429;
  padding: 1.5em;
  display: flex;
  flex-direction: column;

  /* justify-content: space-around; */
}
.mainright {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
}
.mainleft-grid-items div {
  align-self: flex-end;
  margin-top: auto;
  margin-bottom: 0.6em;
  margin-right: 1em;
  display: flex;
  justify-content: space-between;
  width: 25%;
}
.icons,
.img-text img:not(.dashboard) {
  width: 2em;
}
.mainleft-grid-items h2 {
  margin-bottom: 0.5em;
}
.mainleft-grid h2 {
  margin-top: 0.5em;
  padding-bottom: 0;
}
.announcements {
  display: flex;
  flex-direction: column;
}
.announcements h2 {
  flex: 0;
}
.announcements > div {
  flex: 1;
  background-color: #ffffff;
  border-radius: 7px;
  padding: 1em;
}
.trending > div {
  background-color: #ffffff;
  flex: 1;
  border-radius: 7px;
  padding: 1.5em;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
}
.trending h2 {
  flex: 0;
}

.announcements p {
  font-size: 0.8rem;
  color: #515668;
}

.trending-items img,
.firefox {
  width: 60px;
  height: 60px;
  border-radius: 100px;
  background-color: black;
  margin-right: 1em;
}
.trending-items {
  display: flex;
  align-items: center;
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.trending-items > div {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}
.tag {
  font-weight: 700;
}
