/* Base Styles ----------------*/

body {
  color: #878787;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  margin: 0;
}
header {
  background-color: #926aa6;
  position: sticky;
  top: 0;
}

h1 {
  color: white;
  margin-bottom: 0;
  letter-spacing: 2px;
  font-size: 3em;
  text-shadow: 1px 1px rgb(0, 0, 0);
}

nav ul {
  display: flex;
  flex-direction: row;
  float: right;
  justify-content: space-between;
  width: 100%;
}
ul {
  margin: 0;
  padding-bottom: 1rem;
}

footer {
  margin: 1em;
}

/* Pseudo-Classes -----------------*/

a:link {
  color: white;
  text-decoration: none;
}

a:visited {
  color: rgb(128, 240, 162);
}

a:hover {
  color: lightseagreen;
}

a:active {
  color: blue;
}

/* Main Styles -----------------*/

.main-header {
  padding: 1em 1em 3em 1em;
}

/* Layout Styles -----------------*/

#intro {
  padding-top: 1rem;
  width: 100%;
  color: #878787;
  background-color: #a0daa9;
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  margin: 0;
}
#intro h2 {
  padding-left: 2rem;
  padding-right: 2rem;
  text-align: center;
}
.profile-pic {
  border: #878787 solid 2px;
  align-items: center;
  margin-left: 4rem;
  margin-right: 4rem;
}
#about {
  border-top: 2px solid #878787;
  padding-top: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

#projects {
  border-top: 2px solid #878787;
  padding-left: 1rem;
  padding-right: 1rem;
  background-color: #e9897e;
  color: white;
}
#projects h3 {
  margin-bottom: 1rem;
}

#contact {
  border-bottom: 2px solid #878787;
  border-top: 2px solid #878787;
  padding-left: 1rem;
  padding-right: 1rem;
}

form {
  margin-top: 1rem;
  padding-bottom: 1rem;
}

input {
  width: 100%;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
}

input[type="text"]:hover {
  background-color: rgb(220, 247, 245);
}

textarea {
  width: 100%;
  height: 150px;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
}

button {
  font-family: Poppins, Arial, Helvetica, sans-serif;
}

#icons {
  margin-top: 1rem;
  padding-bottom: 0.5rem;
}

/* Floated Columns -----------------*/

/* Float Clearfix ------------------ */

.group:after {
  clear: both;
  content: "";
  display: table;
}

/* Media Queries -----------------*/

@media screen and (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  input {
    width: 50%;
  }
  textarea {
    width: 50%;
  }
  #about {
    display: flex;
    justify-content: center;
  }
  .about-aside {
    display: flex;
    max-width: 38rem;
    width: 100%;
  }
  .about-aside p:nth-child(1) {
    padding-right: 1rem;
  }
  .about-aside p:nth-child(2) {
    padding-left: 1rem;
  }
  .about-aside-content {
    flex: 50%;
  }

  #projects {
    display: flex;
    justify-content: center;
  }
  #project-container {
    display: flex;
    flex-direction: column;
    max-width: 50rem;
    width: 100%;
    margin-top: 5rem;
    margin-bottom: 2rem;
    justify-content: center;
  }
  #project-content {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
  }
  #project-text {
    flex: 50%;
  }
  #project-image {
    flex: 50%;
  }
}
@media screen and (min-width: 1224px) {
  .nav-div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    float: right;
  }
  nav {
    width: 20em;
  }

  #intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 20rem;
  }
  #intro h2 {
    padding-left: 10rem;
    padding-right: 10rem;
  }
}
