body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 18px;
  line-height: 34px;
  color: #777777;
  background: lightslategray
}

* {
  box-sizing: border-box;
}

.navbar navbar-expand-lg navbar-light bg-dark{

  background-color: #e3f2fd;
}

/* general */

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  clear: both;
  
}

.container-fluid {
  /* /width: 100%; */
  max-width: 960px;
  margin: 0 auto;
  clear: both;
}


h1,
h2,
h3,
p {
  margin-bottom: 20px;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, Times, "Times New Roman", serif;
  font-weight: 700;
  color: #4aaaa5;
}

h1 {
  padding-bottom: 20px;
  font-size: 30px;
  line-height: 49px;
  border-bottom: 3px solid #dddddd;
}

h2,
h3 {
  font-size: 22px;
}

/* header */

/* #masthead {
  position: fixed;
  z-index: 99;
  width: 100%;
  margin: 0 0 30px;
  overflow: auto;
  color: red;
  background: #ffffff;
  border-bottom: 2px solid #cccccc;
} */

#logo {
  float: left;
  width: 100%;
  height: 60px;
  font-family: Georgia, Times, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 70px;
  color: #ffffff;
  text-align: left;
  text-decoration: none;
  background: #4aaaa5;
  /* margin-left: 10%; */
}

#navbar {
  float: right;
  margin-top: 8px;
  width: 100%;
  margin-bottom: auto;
  padding: 2px 0;
  left: 0;
  right: 0;
  /* position:fixed; */
 

}


nav b:first-child {
  border-left: 0 none;
  
}


nav a:first-child {
  border-left: 0 none;
 
}

.navbar-brand{
  margin-bottom: 2px;
 
 
}

/* footer */

footer {
  padding: 30px 0;
  clear: both;
  font-size: 12px;
  color: #ffffff;
  color: #cccccc;
  text-align: center;
  background: #666666;
  border-top: 8px solid #4aaaa5;
  height: 50px;

  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
}

h3, h2 {
  padding-bottom: 20px;
  margin-bottom: 15px;
  line-height: 22px;
  border-bottom: 2px solid #eeeeee;
}

/* main */

#main-container {
  padding-top: 50px;
  min-height: calc(100vh - 70px);
  
}


.main-section {
  float: left;
  width: 100%;
  max-width: 960px;
  padding: 30px;
  margin: 0 0 40px;
  background-color:#fffbfb; 
  border: 1px solid #dddddd;
 

}

/* portfolio page */

.work {
  position: relative;
  float: left;
  width: 274px;
  margin: 20px 0 25px;
  overflow: auto;
}

.work:nth-child(even) {
  margin-right: 40px;
}

.work img {
  width: 100%;
  border: 0 none;
  opacity: 0.8;
}

.work h3 {
  position: absolute;
  bottom: 20px;
  width: 100%;
  padding: 15px;
  margin-bottom: 0;
  font-weight: 300;
  line-height: 30px;
  color: #ffffff;
  text-align: center;
  background: #4aaaa5;
  border-bottom: 0;
}

.card{
 width: 250px;
 height: 250px;
}

#portfolio{
  width: 98%;
  height: 20%
}
#text-portfolio{
  text-align: left;
  color:#4aaaa5;
  font-weight: bold
}


/* contact page */

#contact-form ul {
  margin-bottom: 20px;
}

#contact-form li {
  margin-bottom: 10px;
}

label,
input[type=text],
input[type=email],
textarea {
  display: block;
  width: 100%;
}

input[type=text],
input[type=email],
textarea {
  height: 35px;
  padding: 0 10px;
  font-size: 14px;
  border: 1px solid #dddddd;
}

textarea {
  height: 200px;
}

input[type=submit] {
  padding: 10px 30px;
  font-size: 18px;
  color: #ffffff;
  cursor: pointer;
  background: #4aaaa5;
  border: 0 none;
}

/*  media queries staring.  */


  @media(max-width:980px){
    body{
       width: 100%;
         
    }
  }
    
    #middle{
        width:70%; 
        margin-left: 5%; 
    }
 

/*  Responsivness at 768 pixels */

  @media(max-width:768px){
    body{
      width: 100%;
      margin-bottom: 10%;
  }
}

 .navigation{
  float: none;
   padding-right: 10%; 
      
} 

   #middle{
       width:90%; /* Using percent for width to preserve responsiveness*/
      
       
   }
  #main-container{
    padding-top: 10px;
   
  }
  


/*  Responsivness at 640 pixels */
@media(max-width:640px){
  body{
      width: 100%;
  }
  
}
   
  .middle{
      width: 100%; /* always use percent for width to preserve responsiveness*/
  }

  #masthead{

    position: static;
    margin-bottom: 1%;
  }

 #abt-img{
   max-width: 100%;
   height: auto;
   
  }
   
  .card-header{
    text-align: center;
    color:#4aaaa5

  }
