* {
  padding: 0;
  margin: 0;
  font-size: 16px;
  box-sizing: border-box;
  font-family: Helvetica, Arial, sans-serif;
}

body {
  background: linear-gradient(45deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
  text-align: center;
}

#profile-pic {
  width: 200px;
}

#wrapper {
  max-width: 1000px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 25px 15px 0 15px;
  background-color: #ffffff;
  border: 10px solid #000000;

  display: grid;
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-template-columns: 1fr;
  grid-template-rows: 340px minmax(250px, auto) 70px;
  gap: 30px;
}

header {
  grid-area: header;
  height: 340px;
}

h1 {
  font-size: 3rem;
  letter-spacing: 7px;
  margin: 10px 0;
}

h2 {
  font-size: 1.7rem;
  font-style: italic;
}

main {
  grid-area: main;
}

ul {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

li {
  list-style: none;
  width: 48%;
  min-width: 400px;
  background: linear-gradient(45deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
  padding: 20px;
  border-bottom: 7px solid #000000;
  border-left: 7px solid #000000;
  border-top: 5px solid #efede7;
  border-right: 5px solid #afafaf;
}

li:hover {
  transform: scale(1.01);
}

li:active {
  transform: translateY(3px);
}

a {
  text-decoration: none;
  color: #ffffff;
}

ul a {
  font-weight: bold;
}

a:hover {
  color: #fbff1a;
}

ul img {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-bottom: 20px;
  border-bottom: 3px solid #000000;
  border-left: 3px solid #000000;
  border-top: 2px solid #efede7;
  border-right: 2px solid #afafaf;
}

figcaption {
  font-size: 1.2rem;
  font-weight: bold;
}

footer {
  grid-area: footer;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #afafaf;
}

footer a {
  color: #000000;
}

footer a:hover {
  color: #833AB4;
}

@media screen and (max-width: 800px) {
  #wrapper {
    border: none;
    padding: 30px 5% 0 5%;
  }

  li {
    min-width: 100%;
  }

  ul img {
    max-width: 100%;
  }
}