body {
  margin: 0;
  background-color: #fdf8f0;
  font-family: "Courier New", "American Typewriter", monospace;
}

h1,
h2,
h3 {
  text-align: center;
  font-family: "Cooper Black", "Courier New", monospace;
  letter-spacing: 2px;
  color: #c85a17;
  text-decoration: underline;
}

h2 {
  padding-bottom: 2rem;
}

h3 {
  margin: 0;
  font-family: "Cooper Black", monospace;
  font-weight: bold;
  color: #5c2e0a;
  font-size: 1.3em;
}

/*Layout*/

main {
  margin: 24px;
  padding: 1rem;
}

header {
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer {
  background-color: #e8a87c;
  padding: 1rem;
  border-top: 6px solid #c85a17;
  color: #4a3b2c;
}

.section-cards {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

.angled-line {
  position: absolute;
  bottom: 500px;
  left: 0;
  width: 100%;
  height: 1000px;
  background-color: #e8a87c;
  transform: skewY(-15deg);
  transform-origin: top left;
  z-index: -1;
}

/*Components*/

.header-image {
  position: relative;
  display: block;
  border: 8px solid #e8a87c;
  box-shadow: 8px 8px 0 #4a3b2c;
}

.header-image img {
  display: block;
  margin: 0 auto;
  max-height: 100%;
  width: auto;
}

.project-card {
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15);
  border: 2px solid #e8a87c;
  background-color: #fffaf2;
  transition: transform 0.2s ease;
}

.project-card img {
  width: 100%;
  object-fit: cover;
  border-bottom: 4px solid #f3d2b5;
}

.project-card p {
  margin: 0;
  font-family: "Courier New", monospace;
}

.project-card:hover,
.header-icons img:hover,
.card-header-icons svg:hover {
  transform: translate(-3px, -3px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px dotted #e8a87c;
  padding-bottom: 0.5rem;
}

.card-header-icons {
  display: flex;
  gap: 0.8rem;
}

.card-header-icons svg {
  width: 1.5rem;
  color: #c85a17;
}

.name {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 40px;
  color: #fdf8f0;
  text-shadow: 4px 4px 0 #c85a17;
  font-family: "Cooper Black", monospace;
  letter-spacing: 4px;
}

.header-icons {
  display: flex;
  justify-content: end;
  gap: 1.5rem;
}

.header-icons img {
  width: 2rem;
  filter: drop-shadow(2px 2px 0 #c85a17);
}

.card-content {
  padding: 1rem;
  padding-top: 0;
}

.card-content p {
  padding-top: 1rem;
}

.footer-text {
  padding: 1rem;
  font-family: "Courier New", monospace;
  font-weight: bold;
}

footer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) sepia(0.3);
}

header img,
footer img {
  filter: sepia(0.5) contrast(1.1);
}

/*Media Queries*/

@media (max-width: 2560px) {
  .section-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .header-text {
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 500px;
    background-color: #fffaf2;
    border: 2px solid #e8a87c;
  }

  .header-image img {
    max-height: 600px;
  }

  main {
    padding: 2rem 3rem;
  }

  .angled-line {
    bottom: 500px;
    transform: skewY(-9deg);
  }

  footer {
    background-color: #e8a87c;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }

  .footer-image {
    max-width: 500px;
  }

  footer .header-icons {
    padding-top: 0.5rem;
    justify-content: start;
  }

  h3 {
    justify-self: start;
  }
}

@media (max-width: 1024px) {
  .section-cards {
    grid-template-columns: 1fr 1fr;
  }

  .header-image img {
    max-height: 400px;
  }

  main {
    padding: 1rem;
  }

  .angled-line {
    bottom: 600px;
    transform: skewY(-10deg);
  }

  footer {
    background-color: #e8a87c;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
  }

  .footer-image {
    max-width: 400px;
  }
}

@media (max-width: 640px) {
  main {
    margin: 8px;
  }

  header {
    flex-direction: column;
  }

  .header-text {
    box-shadow: none;
    padding: 0;
    position: static;
    border: none;
    background: transparent;
  }

  .section-cards {
    grid-template-columns: 1fr;
  }

  .header-icons {
    justify-content: center;
    gap: 1.5rem;
  }

  .header-image {
    display: inline-block;
    margin-top: 30px;
    border-width: 4px;
  }

  .header-image img {
    max-height: 300px;
    width: 100%;
    height: auto;
  }

  .name {
    display: flex;
    max-width: 268px;
    justify-content: center;
    font-size: 28px;
  }

  .angled-line {
    bottom: 800px;
  }

  footer {
    display: block;
    padding: 0%;
  }

  .footer-image {
    max-width: 100%;
  }

  footer .header-icons {
    justify-content: center;
  }

  h3 {
    justify-self: center;
  }
}
