* {
  box-sizing: border-box;
  
}
body {
  background-color: #504f57; 
}
body {
  font-family: Arial, Helvetica, sans-serif;
  
}

header {
  background-color: #f01f1f;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  font-size: 30px;
  color: rgb(255, 252, 252);
  
}

.logo img {
  height: 150px;
  width: 150px;
  border-radius: 10px;
  margin-right: 25px;
  padding: 25px;
  transition: transform 0.3s ease;
}


.header-content {
  flex-grow: 1;
  
 
}

.social-icons {
  margin-left: auto;
  padding: auto;
  transition: transform 0.3s ease;

}

nav {
  float: left;
  width: 16%;
  height: 432px; 
  background:  #deeb2c;
  padding: 0;
  
}

    .content {
      margin-left: 190px;
      border-left: 1px solid #d4d4d4;
      padding: 1em;
      overflow: hidden;
      
    }

    ul {
      list-style-type: none;
      margin: 0;
      padding: 0;
      font-family: sans-serif;
    }

    li a {
      display:flex;
      color: #000;
      padding: 12px 20px;
      text-decoration: none;
    }

    li a.active {
      background-color: #323634;
      color: rgb(248, 247, 247);
      
    }

    li a:hover:not(.active) {
      background-color: #17c407;
      color: white;
    }

article {
  float: left;
  padding: 20px;
  width: 84%;
  background-color: #f1f1f1;
  height: 438px; 

}
section::after {
  content: "";
  display: table;
  clear: both;
}
footer {
  background-color:#0fcf0f ;
  padding: 13px;
  text-align: center;
  color: white;
  border-radius: 2%;
}
@media (max-width: 600px) {
  nav, article {
    width: 100%;
    height: auto;
  }
}
/*our projects*/
div.gallery {
  margin: 5px;
  border: 2px solid #23c245;
  border-radius:20px;
  float: left;
  width: 120px;
  height: 120px;
  overflow: hidden;
  position: relative;
}
div.gallery img {
  width: 100%;
  height: 118px;
  transition: transform 0.4s ease;
}
div.gallery:hover img {
  transform: scale(1.3);
}
@media (max-width: 600px) {
 
  header {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    margin-bottom: 10px;
  }

  .logo img {
    height: 100px;
    width: 100px;
    padding: 15px;
  }

  .header-content {
    margin-bottom: 10px;
  }

  .social-icons {
    padding: 10px;
    margin: 0 auto;
  }


  nav {
    width: 100%;
    height: auto;
    float: none;
    padding-bottom: 20px;
  }

  ul {
    text-align: center;
  }

  article {
    width: 100%;
    height: auto;
  }


}
footer {
  background-color: #0fcf0f;
  padding: 13px;
  text-align: center;
  color: white;
  border-radius: 2%;
}

footer .right-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

footer .right-content p {
  margin: auto;
}
