* {
    box-sizing: border-box;
}

body {
    background: url('../images/terrazzo.png') repeat;
    font-family: Arial, Helvetica, sans-serif;
    overflow: auto;
    color: #777777;
}

h1, h2, h3, h4, h5, h6 {
    color: #4a94aa;
    font-weight: bold;
}

header {
    background: #b8b7b7;
    border-bottom: 5px solid #777777;
    margin-bottom: 20px;
}    

header h1 {
    background: #4a94aa;
    color: white;
    display: inline-block;
    padding: 30px;
    font-size: 30px;
}

nav {
    width: 280px;
    float: right;
    margin-top: 25px;
    text-align: center;
    padding-top: 10px;
}

nav ul li {
    display: inline;
}

nav a:hover {
    background: #4a94aa;
    color: white;

}

nav a {
    color: #333;
    font-size: 16px;
    padding: 10px 15px;
    border-right: 2px solid #4a94aa;
    text-decoration: none;
    transition-duration: 1s;
    transition-property: all;
    transition-timing-function: ease-in-out;
}

nav ul li:last-child a {
    border-right: none;
    padding-right: none;
}

p {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 22px;
}

label {
    font-size: 18px;
    display: block;
}

input, textarea {
    width: 100%;
    display: block;
    margin: 5px 0 20px 0;
    border: 2px solid #ccc;
    padding: 10px;
    font-size: 16px;
}

textarea {
    height: 300px;
}

form button {
    background: #4a94aa;
    color: #fff;
    padding: 10px 20px;
    margin: 10px 0;
}

footer {
    background: #666;
    color: #ccc;
    text-align: center;
    padding: 40px 0px 10px 0px;
    margin-top: 10px;
    border-top: 5px solid #b8b7b7;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.wrapper {
    width: 960px;
    margin: 0 auto;
}

.inline-img {
    float: left;
    margin: 5px 20px 10px 0px;
    border: 1px solid #777777;
}

.portfolio-item {
    position: relative;
    background-color: rgba(0,0,0, .5);
    margin-bottom: 20px;
    width: 45%;
    float: left;
    height: 250px;
}

.portfolio-item:nth-of-type(even) {
    float: right;
}

.portfolio-item h4 {
    background: #4a94aa;
    color: white;
    text-align: center;
    padding: 15px 0;
    width: 100%;
    position: absolute;
    bottom: 15px;
}

.clearfix {
    display: block;
    clear: both;
    margin-bottom: 130px;
}

#left-column, #right-column {
    background: white;
    padding: 25px;
    border: 2 px solid #ccc;
}

#left-column {
    width: 650px;
    float: left;
}

#left-column h2 {
    font-size: 24px;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
}

#right-column {
    width: 300px;
    float: right;
}

#right-column h3 {
    font-size: 20px;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
}

#right-column ul {
    text-align: center;
}

#right-column ul li {
    display: inline-block;
}

#right-column ul li img {
    width: 40px;
    transition-timing-function: linear;
    transition-duration: 1s;
}

#right-column ul li img:hover {
    transform: rotate(360deg) scale(1.2);
}

#port1 {
    background: url('../images/port1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

#port2 {
    background: url('../images/port2.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

#port3 {
    background: url('../images/port3.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

#port4 {
    background: url('../images/port4.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

#port5 {
    background: url('../images/port5.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

#port6 {
    background: url('../images/port6.gif');
    background-size: cover;
    background-repeat: no-repeat;
}

@media screen and (max-width: 980px) {

    /* The wrapper's width will be 760px */
    .wrapper {
      width: 740px;
      padding: 0px;
    }

    #right-column {
        width: 100%;
        float: right;
        margin-top: 40px;
        display: center;
    }

    #left-column {
        width: 100%;
        float: left;
    }

    nav {
        width: 400px;
        float: right;
        text-align: center;
    }

}
  
@media screen and (max-width: 768px) {

    /* The wrapper's width will be 600px */
    .wrapper {
      width: 620px;
      padding: 0px;
    }

    #right-column {
        width: 100%;
        float: right;
        margin-top: 40px;
        display: center;
    }

    #left-column {
        width: 100%;
        float: left;
    }

    nav {
        width: 275px;
        float: right;
        text-align: center;
    }
}

@media screen and (max-width: 640px) {

    .wrapper {
      width: 100%;
      padding: 0px;
    }

    header {
        width: 100%;
        position: static;
        height: 160px;
    }

    #right-column {
        width: 100%;
        float: right;
        margin-top: 40px;
        display: center;
    }

    #left-column {
        width: 100%;
        float: left;
    }

    nav {
        width: 100%;
        display: center;
        margin-bottom: 0px;
        padding-top: 0px;
    }

    header h1 {
        width: 100%;
        text-align: center;
        display: center;
        margin: 0px auto;
    }

}
  

