*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --project-light-blue: #0d2130;
  --project-dark-blue: #0d1723;
  --light-mode-two: #d6ccc2;
  --main-white: #fafafa;
}
.light-bg {
  background: var(--light-mode-two);
  color: black;
}
.dark-bg {
  background: linear-gradient(
    to right,
    var(--project-light-blue),
    var(--project-dark-blue)
  );
  color: var(--main-white);
}
body {
  min-height: 100vh;
  font-family: Lato, Helvetica, sans-serif;
  overflow: overlay; /* make the background of the scrollball "transparent */
}

body::-webkit-scrollbar {
  width: 10px; /* width of the entire scrollbar */
  /* background-color: #aaa; */
  /* display: none; --> to hide the scrollbar*/
}

body::-webkit-scrollbar-thumb {
  background-color: grey;
  border-radius: 5px;
}

header {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  margin-top: 0;
  padding: 2rem 0 1rem 0;
}

header > h1,
header > p {
  text-align: center;
}

header > h1 {
  margin: 1rem;
  font-size: 3rem;
}

header > p {
  margin: 5px 25px;
  font-size: 1.2rem;
}

.arrow {
  font-size: 2rem;
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  animation: 2s linear infinite horizontal-move;
}
@keyframes horizontal-move {
  0% {
    transform: translateX(0px);
  }
  10% {
    transform: translateX(10px);
  }
  20% {
    transform: translateX(0px);
  }
}

.project-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 190px;
}
.project {
  width: 300px;
  height: 300px;
  margin: 15px;
  border-radius: 5px;
  box-shadow: 0 0 5px 0px rgba(0, 0, 0, 0.5);
}

.project-img {
  width: 300px;
  height: 300px;
  border-radius: 5px;
}

@media (hover: hover) {
  .arrow:hover {
    animation-play-state: paused;
  }
  .fa-arrow-left:hover {
    transition: transform 0.1s ease-in-out 0ms;
    transform: scale(1.3);
  }
  .--project-dark:hover {
    box-shadow: 0 0 15px 5px rgba(73, 142, 220, 0.4);
  }
  .--project-light:hover {
    box-shadow: 0 0 12px 1px rgba(0, 0, 0, 0.5);
  }
}
@media screen and (max-width: 660px) {
  header {
    padding-top: 1rem;
  }
  .fa-arrow-left {
    font-size: 1rem;
    top: 15px;
    left: 15px;
  }
  header > h1 {
    font-size: 2rem;
    margin: 1rem 15px;
  }
  header > p {
    font-size: 1rem;
  }
  .project-wall {
    padding-top: 150px;
  }
  .project {
    width: 240px;
    height: 240px;
  }
  .project-img {
    width: 240px;
    height: 240px;
  }
}
@media screen and (max-width: 520px) {
  header > h1 {
    font-size: 2rem;
    margin: 1rem 15px;
    width: 250px;
  }
  .project-wall {
    padding-top: 220px;
  }
}
