* {
    padding: 0;
    margin: 0;
}

body {
    background-color: #242424;
    margin: 0;
    display: flex;
    flex-direction: column;
}

header {
    padding: 10px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background-color: #242424;
    color: #d8d8d8;
    text-align: center;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

h1 {
    display: inline-block;
    font-size: 48px;
}

nav {
    padding-top: 15px;
    margin-left: 100px;
    float: right;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 20px;
  }

nav a {
    color: #b3b3b3;
    text-decoration: none;
    margin-left: 10px;
  }

ul {
    list-style-type: none;
}

li {
    display: inline-block;
}

.panoramic {
    height: 300px;
    width: 100%;
    margin-bottom: 25px;
    background-image: url("https://images.pexels.com/photos/754122/pexels-photo-754122.jpeg");
    background-size: cover;
}

.panoramic h2 {
    display: inline-block;
    font-size: 24px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-weight: 10;
    float: right;
}

main {
    display: flex;
    margin: 30px 70px 30px 0px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  }
  
  aside {
    background-color: #242424;
    padding: 10px 50px;
    margin: 20px;
    text-align: right;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    border-right: 5px solid #b3b3b3;
    display: flex;
    justify-content: space-around;
    color: #d8d8d8;
  }

  .aboutme {
    display: flex;
    flex-wrap: wrap;
    background-color: #242424;
    justify-content: space-between;
    color: #b3b3b3;
  }

  .projects p {
    margin: 20px;
      }
  
  .projects {
    display: flex;
    flex-wrap: wrap;
    background-color: #242424;
    justify-content: space-between;
    color: #b3b3b3;
  }
  
  .projects p {
    margin: 20px;
  }
  
  .card {
    border-style: solid;
    border-width: 1px;
    border-color: #242424;
    flex: 1;
    margin: 5px 0
  }
  
  .projects :nth-child(1) {
    flex: 1 0 100%;
  }
  
  .projects :nth-child(n+2) {
    flex: 0 0 49%;
  }
  
  .card header {
    padding: 15px;
  }
  
  .card p {
    text-align: center;
  }
  
  .card img {
    width: 100%;
  }

  footer {
    width: 100%;
    bottom: 0;
    padding: 20px;
    text-align: center;
    color: #fff;
    font-size: 20px;
  }

  footer a {
    color: #b3b3b3;
    text-decoration: none;
    margin: 8px;
  }
  
  @media screen and (max-width: 768px) {
    main {
      margin: 40px;
      display: flex;
      justify-content: space-around;
      flex-direction: column;
    }
    nav ul{
      display: flex;
      flex-direction: column;
    }
    footer ul{
      display: flex;
      flex-direction: column;
    }
    aside{
      border-right: none;
      border-bottom: 3px solid #b3b3b3;
    }
  
    .projects :nth-child(n+1) {
      flex-basis: 100%;
    }
    .aboutme :nth-child(n+1) {
      flex-basis: 100%;}}