:root {
  --white: #ffffff;
  --lightbackground: #f9f7f7;
  --lightblue: #dbe2ef;
  --mediumblue: #3f72af;
  --darkblue: #112d4e;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--darkblue);
  color: var(--white);
  margin: 0;
}

a {
  color: var(--mediumblue);
  font-weight: bold;
  text-decoration: none;
}

.main-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.user-box {
  text-align: center;
  margin-top: 2rem;
}

.user-picture {
  width: 12.5rem;
  border-radius: 50%;
}

.user-box h2 {
  margin: 0;
}

.project-title {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  padding: 1.25rem;
  background-color: var(--lightblue);
  color: var(--mediumblue);
  border-radius: 2px;
  letter-spacing: 0.1rem;
}

.repos-chart {
  width: 18rem;
}

.sorting-dropdown {
  display: flex;
  align-self: center;
  border: transparent;
  border-radius: 2px;
  outline: none;
  font-size: inherit;
  background-color: var(--lightblue);
  color: var(--darkblue);
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  text-align: center;
  margin: 1.25rem 0;
  padding: 0.25rem 0.75rem;
}

.repos-box {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  color: var(--darkblue);
  padding: 1.25rem;
}

.repo-card {
  margin: 1.25rem;
  width: 25rem;
}

.repo-tabs {
  float: left;
  background-color: var(--lightblue);
  width: 30%;
  height: 20rem;
}

.repo-tabs button {
  display: block;
  background-color: inherit;
  color: var(--darkblue);
  padding-left: 0.4rem;
  width: 100%;
  height: 25%;
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.75rem;
}

.repo-tabs button:hover {
  background-color: var(--lightbackground);
}

.repo-tabs button.active {
  background-color: var(--mediumblue);
  color: var(--white);
}

.repo-content {
  float: left;
  background-color: var(--lightbackground);
  padding: 0 0.75rem;
  width: 70%;
  border-left: none;
  height: 20rem;
  overflow: auto;
}

.repo-name {
  text-transform: capitalize;
}

.footer-box {
  display: flex;
  justify-content: center;
  align-items: center;
  -moz-column-gap: 0.3rem;
  column-gap: 0.3rem;
  padding: 1rem 0;
  font-size: 1rem;
}

.footer-box .fab {
  font-size: 1.5rem;
}

/* Media queries for tablet and desktop */
@media only screen and (min-width: 768px) {
  .repo-card {
    width: 20rem;
  }

  .repo-tabs,
  .repo-content {
    height: 16rem;
  }
}

@media only screen and (min-width: 1024px) {
  .header-box {
    flex-direction: row;
    justify-content: space-between;
  }

  .user-box {
    width: 18rem;
  }

  .repos-chart {
    width: 18rem;
  }
}
