h1 {
  font-size: 3.3rem;
  margin-bottom: 10px;
}

header img {
  height: 150px;
  position: relative;
}

h2 {
  margin: auto
}

h3 {
  text-align: left;
  margin: 0;
  padding: 20px;
  text-shadow: 1px 1px 2px black, 0 0 6px black, 0 0 4px black;
  /* color: rgb(23, 21, 21); */
  border: 1px solid rgb(17, 230, 250);
  background: linear-gradient(90deg, #f926ae, #8028ee, rgb(50, 190, 222));
  /* background: linear-gradient(90deg, rgb(50, 190, 222), rgb(237, 49, 247)); */
  box-shadow: 0 0 8px 3px rgb(128, 128, 128) inset;
}

/* hr {
    border: 0;
    border-top: 1px solid #4a3f6c;
    margin: 0;
} */


main {
  background-color: black;
}

/* .subtitle {
  text-align: left;
  margin: 0 auto 30px;
} */

main .subtitle {
  text-align: left;
  margin: 0 auto 30px;
  width: 90%;
  max-width: 1000px;
  font-size: 1.2rem;
}

.icon {
  height: 30px;
  /* margin: -8px; */
}

.repository-links {
  margin: 20px 20px 0;
}

.projects {
  margin: 10px auto 90px;
  max-width: 1300px;
  padding: 0 30px;
  /* display: flex;
  flex-wrap: wrap;
  align-items: flex-start; */
  display: grid;
  /* align-items: flex-start; */
  justify-items: stretch;
  gap: 30px;
  grid-template-columns: 1fr 1fr;
}

.project {
  background-color: #1f143d98;
  border: 1px solid #4a3f6c;
  box-shadow: 0 0 10px 4px #1f143d;
  margin: 20px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  transition: all 0.5s linear;
}

.project:hover {
  scale: 1.01;
}

.project-description p {
  margin: 20px 20px 0;
}

.project-screenshot {
  /* position: relative; */
  width: 100%;
  height: 100%;
  background-size: cover;
  border: 1px solid #4a3f6c;
  box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.841);
  transition: all 0.3s linear;
  /* display: block; */
  /* height: 100%; */
  /* margin: auto auto 20px; */
  /* border: 1px solid red; */
}

.overlay {
  display: none;
  /* display: flex; */
  position: absolute;
  z-index: 1;
  top: 0;
  background: linear-gradient(#1f143d36, #1f143d83, #1f143de8, #1f143d);
  border: 1px solid #4a3f6c;
  box-shadow: 0 0 6px 2px black;
  height: 100%;
  width: 100%;
}

.overlay-btn {
  /* display: block;
  margin: auto;
  flex-grow: 0;
  font-size: 19px; */
  
  /* box-shadow: 0 0 5px 5px #1f143dae inset, 0 7px 13px 6px black; */
  padding: 10px 20px;
  cursor: pointer;
  font-size: 17px;
}

.overlay a {
  display: block;
  margin: auto;
  width: fit-content;
  /* flex-grow: 0; */
  
  box-shadow: 0 0 5px 5px #1f143dae inset, 0 7px 15px 8px black;
  transition: all 0.3s linear;
}

.overlay a:hover {
  box-shadow: 0 0 5px 5px #1f143dae inset, 0 3px 10px 2px black;
  font-size: 15px;
  scale: 0.97;
}

.overlay-btn:active {
  background-color: rgb(177, 177, 177);
  color: black;
}

/* .img-container:before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  z-index: 99;
  height: 100%;
  width: 100%;
  border: 1px solid #4a3f6c;
  background: linear-gradient(rgba(2, 213, 255, 0.319), #1f143d);
} */

.img-container {
  position: relative;
  /* position: relative; required for :before overaly to work! */
  margin: 20px;
  /* border: 1px solid #4a3f6c; */
  height: fit-content;
}

@media (max-width: 1000px) {
  .projects {
    display: block;
  }
}

@media (max-width: 730px) {
  .repository-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  main .subtitle {
    font-size: 17px;
  }

  header > * {
    transform: translateY(10px);
  }
}

@media (max-width: 500px) {
  .projects {
    padding: 0
  }
}
