html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}


body{
    font-family: 'Big Shoulders Text', sans-serif;
    font-size: 18px;
    padding-bottom: 100px;
}

h1{
    font-size: 32px;
    background-image: url("../_img/steffest_icon.png");
    background-repeat: no-repeat;
    background-position: center left;
    background-size: 64px 64px;
    padding: 10px 0 10px 64px;
    height: 64px;
    margin: 20px 0 20px -20px;

}

h2{
    font-size: 20px;
    color: #2c4d7b;
    padding: 0;
    margin: 20px 0 6px 0;
}

b{
    color: #000;
}

.container{
    width: 960px;
    max-width: 94%;
    margin: auto;
    padding: 0 20px 0 30px;
    border-left: 8px dotted #e3e3e3;
}

a{
    color: #007f9e;
    transition: color 0.2s ease-in-out;
    font-weight: 500;
}

a:hover{
    color: #f39700;
}

#projects,
.grid{
    margin-top: 10px;
}

#projects .item,
.grid .item{
    width: 250px;
    font-size: 14px;
    display: inline-block;
    margin-right: 20px;
    margin-top: 10px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e7e7e7;
}

#projects .item figure,
.grid .item figure{
    padding: 0;
    margin: 0;
    overflow: hidden;
    width: 250px;
    height: 190px;
    position: relative;
}


#projects .item figure img,
.grid .item figure img{
    width: 250px;
    height: 190px;
   transition: all 0.3s ease-in-out;
}

#projects .item p,
.grid .item p{
    font-family: sans-serif;
    font-size: 12px;
    padding: 10px 0;
    margin: 0;
    height: 92px;
}


#projects .item figure:hover img,
.grid .item figure:hover img{
    width: 270px;
    height: 210px;
    margin: -10px;
}

#projects .tags,
.grid .tags{
    text-align: right;
    position: absolute;
    margin: 2px;
    right: 0;
    bottom: 0;
}

#projects .tags div,
.grid .tags div{
    font-size: 12px;
    background-color: rgba(229, 229, 229, 0.82);
    padding: 2px 6px;
    display: inline-block;
    color: #000000;
}

#projects .links a,
.grid .links a{
    font-size: 13px;
    background-color: #cee5f2;
    padding: 4px 8px 4px 20px;
    display: inline-block;
    border-bottom: 1px solid #50adff;
    color: black;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    background-image: url("../_img/link.svg");
    background-size: 12px 12px;
    background-repeat: no-repeat;
    background-position: 4px center;
}

#projects .links a:hover,
.grid .links a:hover {
    background-color: #50adff;
    display: inline-block;
    border-bottom: 1px solid #3a498b;
    color: white;
    text-decoration: none;
}

#projects .orange h2,
.grid .orange h2{
    color: #f37f00;
}

#projects .orange .links a,
.grid .orange .links a{
    background-color: #f9f4dc;
    border-bottom: 1px solid #f37f00;
    color: #a51d05;
}

#projects .orange .links a:hover,
.grid .orange .links a:hover{
    background-color: #f37f00;
    border-bottom: 1px solid #f30c0c;
    color: white;
}


#projects .green h2,
.grid .green h2{
    color: #40c400;
}

#projects .green .links a,
.grid .green .links a{
    background-color: #d6f2d4;
    border-bottom: 1px solid #52ba26;
    color: #386b39;
}

#projects .green .links a:hover,
.grid .green .links a:hover{
    background-color: #52ba26;
    border-bottom: 1px solid #386b39;
    color: white;
}

#projects .blue h2,
.grid .blue h2{
    color:  #01a6d8;
}

.sans{
    font-family: sans-serif;
}


footer{
    color: silver;
    font-family: sans-serif;
    font-size: 12px;
    padding: 50px 0;

    width: 960px;
    max-width: 94%;
    margin: auto;
}

@media all and (max-width: 680px) {

    header{
        text-align: center;
    }

    h1{
        display: inline-block;
    }
    .intro{
        text-align: center;
    }

    #projects,
	.grid{
        text-align: center;
    }

    footer{
        text-align: center;
    }

    #projects .item,
	.grid .item{
        width: 90%;
        margin-right: 0;
    }

    #projects .item figure,
	.grid .item figure{
        width: 100%;
        height: auto;
    }

    #projects .item figure img,
	.grid .item figure img{
        width: 100%;
        height: auto;
    }

    #projects .item figure:hover img,
	.grid .item figure:hover img{
        width: 100%;
        height: auto;
        transform: scale(1.1);
    }

}

@media all and (max-width: 400px) {
    .container{
        border-left: none;
        padding: 10px;
    }

    #projects .item,
	.grid .item{
        width: 100%;
    }
}


