*{
    box-sizing: border-box;
}

body{
    background: url('assets/images/white-waves.png');
    font-size: 18px;
    line-height: 34px;
    font-family: Arial, Helvetica, sans-serif;
    color: #777; 
}

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

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

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

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

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

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

/*header*/ 

#masthead{
    background:#fff;
    margin: 0 0 0px;
    z-index: 99;
    color: #fff;
    overflow: auto;
    border-bottom: 2px solid #ccc;
    position: fixed;
    width: 100%;
}

#logo{
    width: 250px;
    height: 90px;
    background: #4aaaa5;
    float: left;
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-align: center;
    line-height: 90px;
    color: #fff;
    font-weight: 700;
    font-size: 30px;
    text-decoration:none;
}

nav{
    float: right;
    margin-top: 25px;
}

nav a{
    color: #999;
    text-decoration: none;
    margin-left: 15px;
    display: inline-block;
    border-left: 1px solid #efefef;
    padding-left: 15px;
    line-height: 18px;
}

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

/*main*/
#main-container{
    padding-top: 130px;
}

.main-section{
    background: #fff;
    padding: 30px;
    margin: 0 0 40px 100px;
    width: 100%;
    max-width: 650px;
    float: left;
    border: 1px solid #ddd;
    clear: both;
}

.auth-image{
    width: 200px;
    height: auto;
    margin-top: 10px;
    float: left;
    margin-right: 25px;
    clear: both;
}

/*sidebar*/ 
.sidebar{
    background: #fff;
    padding: 30px;
    width: 100%;
    max-width: 270px;
    float: right;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    margin-right: 100px;
}

h3,.sidebar,h2{
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    line-height: 22px;
}

.social{
    width: 62px;
    height: 62px;
    margin-top: 8px;
    margin-right: 5px;
}

.social:last-child{
    margin-right: 0;
}

/*footer*/
footer{
    background: #666;
    color: #fff;
    padding: 30px;
    clear: both;
    border-top: 8px solid #4aaaa5;
    color: #ccc;
    font-size: 12px;
    text-align: center;
}

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

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

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

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

/*contact*/ 
#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;
    border: 1px solid #ddd;
    padding: 0 10px;
    font-size: 14px;
}

textarea{
    height: 200px;
}

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

/*size readjustment*/ 

@media only screen and (max-width: 980px) {
    .container{
        max-width: 760px;
    }
    .sidebar{
        display: none;
    }
    /* footer{
        background-color: orange;
    } */
  }

  @media only screen and (max-width: 768px) {
    .container{
        max-width: 500px;
    }
    .main-section{
        margin-left:50px;
        width:600px;
    }
    footer{
        /* background-color: green; */
        width:760px;
    }
  }

  @media only screen and (max-width: 640px) {
   #masthead{
        position: static;
   }
   .container{
       max-width:600px;
   }
   .main-section{
       max-width: 500px;
   }
   .work{
       margin-left: 80px;
   }
    /* footer{
       background-color: pink;
   } */
   .auth-image{
       width:450px;
   }
  }