@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap');

:root {
  --primary: #F5F5F5;
  --secondary: #a6c2a7; /* Only used in the chart */
  --third: #4D724D;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--primary);
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
}

body {
  width: 100%;
  margin: 0 auto;
  min-width: 290px;
  color: var(--third);
}

h1 {
  text-align: center;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

h4 {
  font-size: 1.5rem;
}

ol {
  font-size: small;
}

a {
  color: rgb(34, 31, 31);
}

span {
  color:rgb(34, 31, 31);
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  background-color: var(--third);
}

.logo {
  height: 3rem;
  width: auto;
  margin: 2rem;
}

.main {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-content: center;
  gap: 3rem;
  padding: 20px;
}

.user-section {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.avatar {
  height: 200px;
  width: 200px;
  border-radius: 50%;
  filter: grayscale(100%);
}

.project-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.repo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.repo-div {
  flex: 25%;
  min-height: 13rem;
  border: 1px solid var(--third);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  margin: 0.5rem;
  transition: 0.2s; /*The delay of the scale change below*/
}

.repo-div:hover {
  transform: scale(1.05);  
  background-color: var(--secondary);
}

.repo-div-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0.4rem;
}

.no-pullrequest {
  font-style: italic;
  font-size: small;
}

.commit-div {
  margin-left: 2.5rem;
}

.commits-button {
  width: fit-content;
  margin: 1rem auto;
  padding: 0.6rem;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--third);
  border: var(--third);
  position: relative;
  left: -1.3rem;
}

.commits-button:hover {
  text-decoration: underline;
}

.canvas-section {
  width: 50%;
  margin: 0 auto;
}

@media only screen and (max-width: 992px) {
  .repo-container {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .repo-div {
    flex: 100%;
  }
}