/* 
    HTML5 Reset for older browsers
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/*
    ===============================
    Grid
    ===============================
*/
*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* 
    ========================================
    Container Class
    ========================================
*/
.container,
.grid {
    margin: 0 auto;
    /* center content */
    width: 840px;
    width: 84.0rem;
    /* fixed width */
}

/*
    ========================================
    Clearfix
    ========================================
*/
.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    clear: both;
    *zoom: 1;
}


/*
    ========
    Globals
    ========
*/
html {
    font-family: 'Inconsolata', monospace;
    color: rgb(33, 33, 33);
    color: #616161;
    font-size: 20px;
    font-size: 62.5%;
    font-weight: 400;
}

section {
    padding: 16px;
}


/*
    ==============
    c) Typography
    ==============
*/
h1 {
    color: #1a73e8;
    font-size: 48px;
    font-size: 4.8rem;
    font-weight: 550;
    line-height: 72px;
}

h2, h3 {
    font-weight: 500;
    margin: 0 0 8px;
}

h2 {
    color: rgb(33, 33, 33);
    font-size: 32px;
    font-size: 3.2rem;
    line-height: 48px;
}

h3 {
    color: rgb(33, 33, 33);
    font-size: 24px;
    font-size: 2.4rem;
}


/*
    ================
    Links (Anchors)
    ================
*/
a,
a:hover {
    color: #1a73e8;
    text-decoration: none;
    cursor: pointer;
}

a:visited {
    color: #1a73e8;
    text-decoration: none;
    cursor: pointer;
}

/*
--------------------------------
    2. MODULES
--------------------------------
*/

/*
    ==========
    a) Header
    ==========
*/
header {
    font-size: 20px;
    font-size: 2.3rem;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    min-width: 100%;
    padding: 32px 32px 0 32px;
}

.logo,
.logo:hover,
.logo:visited {
    float: left;
    color: #000;
    text-decoration: none;
}

.logo img {
    margin-right: 0;
    width: 20px;
}

/*
    ==============
    Navigation
    ==============
*/
.nav {
    text-align: right;
    text-transform: lowercase;
}

.nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

li {
    display: inline-block;
}

.nav li {
    position: relative;
    margin: 0 36px 0 0;
    transition: all 0.4s ease;
}

.nav li a:hover, footer li:hover {
    color: #1a73e8;
}

.nav a {
    color: #000;
    cursor: pointer;
}

.nav a:active {
    opacity: 0.8;
}

.nav a:after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    height: 0.2rem;

    left: 20%;
    position: absolute;
    background: #1a73e8;
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
}

a:hover:after {
    width: 100%;
    left: 0;
}

li:last-child {
    padding-right: 0;
    margin-right: 0;
}

/*
    ===============
    b) Main (Body)
    ===============
*/
body {
    background: #fff;
    font-size: 20px;
    font-size: 2.0rem;
    line-height: 30px;
}

main {
    margin: 94px 0 94px 0;
    margin: 9.4rem 0 9.4rem 0;
}

.spaces {
    width: 840px;
}

.row {
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.row section {
    display: inline-block;
    width: 24%;
    
    text-align: center;
    margin-bottom: 148px;
    margin-bottom: 14.8rem;
}

.coloured,
#general:hover .black-white,
#design:hover .black-white,
#languages:hover .black-white,
#microsoft:hover .black-white,
#problems:hover .black-white,
#security:hover .black-white {
    opacity: 0;
}

.black-white,
#general:hover .coloured,
#design:hover .coloured,
#languages:hover .coloured,
#microsoft:hover .coloured,
#problems:hover .coloured,
#security:hover .coloured {
    opacity: 1;
}

section img {
    display: flex;
    position: absolute;
    width: 16rem;
    
    -webkit-transition: opacity 0.25s ease-in-out;
    -moz-transition:    opacity 0.25s ease-in-out;
    -o-transition:      opacity 0.25s ease-in-out;
    transition:         opacity 0.25s ease-in-out;
}

section span {
    display: flex;
    justify-content: center;
    
    position: relative;
    bottom: -164px;
    bottom: -16.4rem;
}

/*
    ==========
    c) Footer
    ==========
*/
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    
    background: #eceff1;
    color: #616161;
    font-size: 14px;
    font-size: 1.4rem;
    text-align: left;
    
    line-height: 18px;
    padding: 32px 0 32px;
    margin: 0 auto;
}

.footer-description {
    margin: 0 0 16px;
}

.footer-social li {
    display: inline-block;
    margin: 0 8px 16px;
}

.footer-social li:first-child {
    margin: 0;
}

.footer-social a,
.footer-social a:hover,
.footer-social a:visited {
    color: rgb(33, 33, 33);
    text-decoration: none;
}

@media (max-height:800px){
	html {
        font-size: 1.6vh;
    }
    
    footer {
        position: static;
    }
}