html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: #f7dd74;
  font-family: "Sora", sans-serif;
  color: black;
}

h1 {
  color: #d342c1;
  font-size: 2em;
}
h2 {
  font-size: 1.4em;
}

h3 {
  font-weight: 300;
  margin: 0.5em;
  text-transform: capitalize;
}
p {
  font-weight: 300;
  margin: 0 0.2em 0;
}

a {
  position: relative;
  color: #000;
  text-decoration: none;
}

a:hover {
  color: #000;
}

a::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #000;
  transform: scaleX(0);
  transform-origin: top left;
  transition: transform 0.3s ease;
}

a:hover::before {
  transform: scaleX(1);
}

a {
  color: black;
}

header {
  display: grid;
  justify-content: center;
}

.chart-container {
  margin: 2% 20%;
}

.user-card {
  display: grid;
  justify-items: center;
  margin: 1em;
}

.user-card img {
  height: 200px;
  object-fit: contain;
  border-radius: 50%;
  filter: grayscale(50%);
}

#projects-container {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(305px, 1fr));
  /* width: 100%; */
  column-gap: 1rem;
  row-gap: 1rem;
}

.project-card {
  width: 90%;
  background-color: #fff;
  /* background-color: #bfbfbf; */
  opacity: 0.4;
  padding: 0 1em 1em 1em;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.project-card:hover {
  opacity: 0.8;
}

/* ---- tablet ----*/
@media (min-width: 668px) {
  h1 {
    font-size: 4em;
  }

  h2 {
    font-size: 2.5em;
  }

  h3 {
    font-size: 1.5em;
  }

  p {
    font-size: 1.4em;
  }

  #projects-container {
    grid-template-columns: repeat(auto-fit, minmax(400px, 2fr));
    padding: 3em;
  }
  .project-card {
    width: 93%;
  }

  .user-card img {
    height: 300px;
  }
}

/* ---- desktop ----*/
@media (min-width: 1024px) {
  h1 {
    font-size: 6em;
  }

  h2 {
    font-size: 3em;
  }

  h3 {
    font-size: 2em;
  }

  #projects-container {
    grid-template-columns: repeat(auto-fit, minmax(450px, 3fr));
    padding: 4em;
  }

  .user-card img {
    height: 400px;
  }
  .chart-container {
    margin: 2% 30%;
    /* STÖRRE TEXT */
  }
}
