html {
  scroll-behavior: smooth;
}

body {
    background-color: #222933;
    
    margin: 0px;
    position: relative;
    font-family:sans-serif;
}

body::after {
    content: "";
    background-image: url(Images/background.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    
    opacity: 10%;
    top:0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
    filter: grayscale(10%);
}

a.home-button{
    float: left;
    margin-left: 10%;
    padding: 15px;
    display: block;
    color: white;
    text-align: center;
    font-size: 130%;
    text-decoration: none;
}

a.nav-button{
    float: left;
    display: block;
    color: white;
    text-align: center;
    text-decoration: none;
    margin: 0%;
    padding: 18px 15px;
}

a.first-nav-button{
    margin-left: 5%;
}

header{
    position: fixed;
    overflow: hidden;
    top: 0;
    width: 100%;
    color: white;
    margin: 0%;
    background-color:#0C0D0D;
    z-index: 1;
}

.footer{
    width: 100%;
    bottom: 0;
    color: white;
    margin: 0%;
    background-color:#0C0D0D;
    z-index: 1;
}

a.nav-button:hover{
    background-color: #222933;
    border-style: solid;
    border-color: #3C4859;
    border-width: 0px;
    border-left-width: 10px;
}

.icon:hover{
    background-color: #222933;
}

.icon{
    display: none;
    color: white;
    text-align: center;
    text-decoration: none;
    margin: 0%;
    padding: 5px 5px;
}

@media screen and (max-width: 1000px){
    a.nav-button{
        display: none;
    }
    .icon{
        float: right;
        display: block;
        margin-right: 10%;
        color: white;
    }
    .responsive .icon{
        position: absolute;
        right: 0;
        top: 0;
    }
    .responsive a{
        margin-left: 10%;
        float: none;
        display: block;
        text-align: left;
    }
    .responsive{
        position:fixed;
        top: 0;
        float: none;
        display: block;
        text-align: left;
    }
}

h2.title{
    margin: 0px;
    color: white;
    text-align: center;
    padding: 10px;
    background-color:#3C4859;
}

.anchor{
    top: -50px;
    position: relative;
}

p.paragraph{
    margin: 0px;
    padding: 2% 4% 2% 4%;
    color: white;
    font-size: 20px;
    text-align: center;
    text-decoration: none;
}

div.content{
    margin: auto;
    width: 80%;    
    background-color:#222933;
    min-width: 50%;
}

.portfolio-image{
    border-style: solid;
    border-color: #3C4859;
    border-width: 0px;
    border-width: 3px;
    
    display: block;
    height: auto;
    width: 100%;
}

.contact-image{
    display: block;
    height: auto;
    width: 100%;
    padding: 30%;
    padding-bottom: 0%;
    padding-top: 0%;
}

* {
    box-sizing: border-box;
}

.portfolio-gallery{
    position: relative;
    float: left;
    width: 26.5%;
    display: block;
    margin: 5%;
    margin-right: 0;
    margin-top: 0;
}

@media only screen and (max-width: 1000px){
    .portfolio-gallery{
        width: 42%;
        display: block;
        margin: 5%;
        margin-right: 0;
        margin-top: 0;
    }
}

@media only screen and (max-width: 700px){
    .portfolio-gallery{
        width: 90%;
        margin: 5%;
        margin-right: 0;
        margin-top: 0;
    }
}

.contact-gallery{
    position: relative;
    float: left;
    width: 26.5%;
    display: block;
    margin: 5%;
    margin-right: 0;
    margin-top: 0;
}

@media only screen and (max-width: 1000px){
    .contact-gallery{
        width: 42%;
        display: block;
        margin: 5%;
        margin-right: 0;
        margin-top: 0;
    }
}

@media only screen and (max-width: 700px){
    .contact-gallery{
        width: 90%;
        margin: 5%;
        margin-right: 0;
        margin-top: 0;
    }
}

.portfolio-holder{
    margin-top: 5%;
}

.clearfix:after{
    content: "";
    display: table;
    clear: both;
}

.overlay{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: RGBA(0,0,0,.7);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
}

.portfolio-gallery:hover .overlay{
    height: 100%;
}

.overlay .paragraph{
    position: absolute;
    overflow: hidden;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 60%;
    font-size: 2vw;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

.resume{
    margin-top: 5%;
    margin-bottom: 5%;
}

.portfolio-page-image{
    float: left;
    width: 35%;
    padding: 5%;
}