html, body, h1, h2, h3, h4, h5, h6, p, ol, ul, li, a, div {
    border: 0;
    margin: 0;
    padding: 0;
    font-size: 100%;
    font: inherit;
}

html {
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    box-sizing: border-box;
    padding: 10px;
    max-width: 900px;
    width: 100%;
    height: 100%;
    margin-right: auto;
    margin-left: auto;
}

header {
    box-sizing: content-box;
    width: 100%;
    max-height: 100px;
    height: 100%;
    font-size: 0px;
    border-bottom: 2px solid #CCCCCC;
}

#logo {
    width: 30%;
    height: 100%;
    box-sizing: border-box;
}

#menuIcon {
    height: 100%;
    line-height: 50px;
    font-size: 25px;
    text-align: center;
    float: right;
    display: none;
    text-decoration: none;
}

nav {
    width: 70%;
    height: 100%;
    float: right;
}

main {
    width: 100%;
}

footer {
    position: fixed;
    bottom: 0;
    right: 0;
    font-size: 12px;
    color: #CCCCCC;
    padding: 5px;
}

ul {
    list-style-position: inside;
    list-style-type: square;
    padding-left: 10px;
}

li {
    font-size: 16px;
    font-weight: bold;
    display: list-item;
    padding: 5px;
}

.subList li {
    font-size: 13px;
    font-weight: normal;
    padding: 0;
}

ul.simple li {
    font-weight: normal;
    padding-top: 0;
    padding-bottom: 0px;
}

ul#mainMenu {
    position: relative;
    overflow: hidden;
    top: 50%;
    transform: translateY(-50%);
    list-style-type: none;
    float: right;
}

ul#mainMenu li {
    box-sizing: border-box;
    display: inline-block;
    font-size: 15px;
    padding: 0 10px 0 10px;
}

a:link, a:active, a:visited {
    color: #B12D12;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #7b1f0c;
    text-decoration: underline;
}

p {
    box-sizing: border-box;
    padding: 10px;
}

/* Float clearing */
.clearFix:before, .clearFix:after {
    content: "";
    display: table;
}

.clearFix:after {
    clear: both;
}

/***************************
* Front Page about section *
***************************/
#about {
    width: 100%;
    margin: 40px 0 40px 0;
    position: relative;
}

#about img {
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid #B12D12;
    width: 30%;
    float: right;
    background-color: #EEEEEE;
}

#about p {
    color: #000000;
    padding: 30px;
}

#about div {
    width: 70%;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

#fpTitle {
    width: 100%;
    font-weight: bold;
    font-size: 25px;
}

ul#fpSocials {
    list-style-type: none;
}

ul#fpSocials li {
    font-size: 16px;
    display: inline;
    padding: 10px;
}

ul#fpSocials a {
    display: inline-block;
}

/* Social Media colors */
ul.sLinks li:first-child a:hover {
    color: rgb(0, 119, 181);
}

ul.sLinks li:nth-child(2) a:hover {
    color: rgb(0, 0, 0);
}

ul.sLinks li:last-child a:hover {
    color: rgb(42, 163, 239);
}

/****************************
* Frontpage product section *
****************************/
#products {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
}

#products a {
    width: 32%;
    box-sizing: border-box;
    border-radius: 21px;
    border: 1px solid #CCCCCC;
    background-color: #EEEEEE;
    justify-content: space-between;
    color: #000000;
    font-weight: inherit;
    display: flex;
    align-items: center;
}
#products a:hover {
    color: #7b1f0c;
    background-color: #f5f5f5;
}
#products a:hover {
    text-decoration: none;
}
#products a:hover .boxTitle {
    text-decoration: underline;
}
#products a:hover img {
    background-color: #b84229;
}

#products img {
    width: 30%;
    height: 100%;
    float: left;
    padding: 0px 0px 0px 0px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: #B12D12;
}

#products div.description {
    width: 70%;
    height: 100%;
    display: flex;
    border: none;
    flex-direction: column;
    margin-bottom: 5px;
}

#products p {
    font-size: 14px;
    box-sizing: border-box;
    width: 100%;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
}

#products .boxTitle {
    font-size: 16px;
    font-weight: bold;
    margin-top: 5px;
}

span.wrappingPoint {
    display: inline-block;
}

/*************
* ErrorPage  *
*************/
.errorPage {
    text-align: center;
}

.errorPage h1 {
    font-size: 40px;
    color: #B12D12;
    font-weight: bold;
    padding-top: 100px;
}

.errorPage p {
    color: #AAAAAA;
    padding: 30px 0 30px 0;
}

/************************
* Portfolio choice page *
************************/
#portfolioPickTitle {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 25px;
}

#portfolioPick {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#portfolioPick a {
    width: 30%;
    box-sizing: border-box;
    border-radius: 21px;
    color: #000000;
    font-weight: bold;
    display: flex;
    align-items: center;
    flex-direction: column;
}
#portfolioPick a:hover {
    color: #7b1f0c;
}
#portfolioPick a:hover .boxTitle {
    text-decoration: underline;
}
#portfolioPick a:hover img {
    background-color: #b84229;
}

#portfolioPick img {
    width: 100%;
    border-radius: 20px;
    background-color: #B12D12;
}

/********************
* Website portfolio *
********************/
ul#websiteList {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

ul#websiteList li {
    box-sizing: border-box;
    display: inline-block;
    width: 30%;
    padding: 20px 0 20px 0;
}

a.websiteBox {
    display: block;
    text-align: center;
    font-size: 15px;
    line-height: 140%;
}

a.websiteBox img {
    box-sizing: border-box;
    border: 1px solid #B12D12;
    width: 100%;
}

a.websiteBox:hover img {
    border-color: #AAAAAA;
}

/******************
* Product details *
******************/
.productTitle {
    font-size: 17px;
    font-weight: bold;
    padding: 20px 10px 10px 10px;
}

.productTitle .subTitle {
    font-size: 15px;
    font-weight: bold;
    color: #CCCCCC;
}

.tagTitle {
    font-weight: bold;
}

/* Website specific details */
.websiteExample p {
    font-size: 15px;
    padding-top: 20px;
}

.websiteExample a {
    font-weight: normal;
}

.websiteExample img {
    box-sizing: border-box;
    width: 60%;
    float: right;
    border: 1px solid black;
    margin: 20px 0 20px 5%;
}

/* App specific details */
.appExample p {
    box-sizing: border-box;
    width: 70%;
}

.appExample .appImages {
    box-sizing: border-box;
    width: 30%;
    float: right;
    text-align: center;
}

.appExample .smartphoneExample {
    position: relative;
    width: 100%;
    text-align: center;
}

.appExample .smartphone {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
}

.appExample .appImage {
    position: absolute;
    width: 64%;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.appExample .appStoreBadge {
    margin-bottom: 15px;
}

/***************
* Contact page *
***************/
#contactPrimary p {
    font-size: 17px;
    font-weight: bold;
    padding: 0 5% 5px 5%;
}

#contactPrimary p.subtext {
    font-size: 12px;
    font-weight: normal;
}

#contactPrimary {
    float: left;
    width: 60%;
    padding: 20px 0 20px 0;
}

#contactAlternatives {
    float: right;
    width: 40%;
    padding: 20px 0 50px 0;
    text-align: center;
}

#contactAlternatives img {
    width: 40%;
    margin: 50px 30% 20px 30%;
    border-radius: 50%;
    border: 2px solid #B12D12;
    background-color: #EEEEEE;
}

input:not([type=file]), textarea {
    box-sizing: border-box;
    width: 90%;
    padding: 10px;
    display: block;
    margin: 5px auto 5px auto;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    -webkit-appearance: none;
    -moz-appearance: none;
}

input:not([type=file]):focus, textarea:focus {
    border: 1px solid #B12D12;
    outline: 0;
}

textarea {
    resize: none;
    height: 150px;
}

input[type=submit] {
    background-color: #B12D12;
    color: #FFFFFF;
    font-size: 15px;
    cursor: pointer;
    border: none;
    font-weight: bold;
    width: 85%;
    -webkit-appearance: none;
    -moz-appearance: none;
}

input[type=submit]:hover {
    background-color: #7F200D;
}

/* CAPTCHA */
#contactPrimary img {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border: 1px solid #CCCCCC;
    border-right: none;
    box-sizing: border-box;
    float: left;
    margin: 0 0 0 5%;
    width: 15%;
    height: 36px;
}

#captchaInput {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin: 0 5% 0 0;
    width: 75%;
    height: 36px;
}

/* Invalid input CSS */
.invalidInput {
    color: #FF0000;
    font-weight: bold;
    background-color: #ffdddd;
}

.invalidInput::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: #FF0000;
    font-weight: bold;
}

.invalidInput::-moz-placeholder { /* Firefox 19+ */
    color: #FF0000;
    font-weight: bold;
}

.invalidInput:-ms-input-placeholder { /* IE 10+ */
    color: #FF0000;
    font-weight: bold;
}

.invalidInput:-moz-placeholder { /* Firefox 18- */
    color: #FF0000;
    font-weight: bold;
}

#contactResponse {
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 5px;
}

#contactResponse.contactError {
    text-align: center;
    color: #FF0000;
}

#contactResponse.contactSuccess {
    color: #4BB543;
}

.nl {
    display: inline-block;
}

/**************
* It-Sec page *
**************/
#itSecText p {
    font-size: 16px;
    font-weight: normal;
    padding: 0 0 5px 0;
}

#itSecText p.title {
    font-size: 20px;
    font-weight: bold;
}

#itSecText {
    float: left;
    width: 60%;
    padding: 20px 0 20px 0;
}

#itSecText .note {
    color: #CCCCCC;
}

#itSecSidebar {
    float: none;
    width: 100%;
    padding-top: 0;
}

#itSecSidebar #cisco {
    text-align: center;
    margin-bottom: 30px;
}

#itSecSidebar #cisco img {
    width: 100px;
    margin: 10px;
}

#itSecSidebar #nse {
    text-align: center;
}

#itSecSidebar #nse img {
    width: 100px;
    margin: 10px;
}

.experienceTitle {
    text-decoration: underline;
}

/* Medium */
@media only screen and (max-width: 800px) {
    header {
        max-height: 150px;
        border: none;
    }

    #logo {
        width: 100%;
        height: 60%;
        padding-bottom: 10px;
    }

    nav {
        width: 100%;
        height: 40%;
        float: none;
        border-top: 2px solid black;
        border-bottom: 2px solid black;
    }
    main {
        margin-bottom: 10px;
    }

    footer {
        position: static;
        bottom: auto;
        right: auto;
        text-align: center;
    }

    nav {
        display: flex;
        justify-content: center;
    }

    ul#mainMenu {
        top: auto;
        transform: none;
        float: none;
        height: 100%;
    }

    ul#mainMenu li {
        height: 100%;
    }

    ul#mainMenu li a {
        height: 100%;
        display: flex;
        align-items: center;
    }

    #about img {
        width: 30%;
        margin: 0 35% 0 35%;
        float: none;
    }

    #about div {
        width: 100%;
        position: static;
        top: auto;
        transform: none;
    }

    #products {
        flex-direction: column;
    }

    #products a {
        width: 100%;
        margin-bottom: 10px;
        max-height: 100px;
    }

    #products img {
        width: 20%;
        max-height: 100px;
    }

    #products div.description {
        width: 80%;
        justify-content: center;
    }

    .errorPage h1 {
        font-size: 30px;
    }

    ul#websiteList li {
        width: 45%;
    }

    .websiteExample img {
        width: 50%;
    }

    .appExample p {
        width: 50%;
    }

    .appExample .appImages {
        width: 50%;
    }

    #contactPrimary {
        float: none;
        width: 100%;
    }

    #contactAlternatives {
        float: none;
        width: 100%;
        padding-top: 0;
    }

    #contactAlternatives img {
        margin-top: 30px;
    }

    #itSecText {
        float: none;
        width: 100%;
    }
}

/* Small */
@media only screen and (max-width: 530px) {
    header {
        max-height: 50px;
        border-bottom: 2px solid black;
    }

    #logo {
        width: auto;
        height: 50px;
        padding-bottom: 10px;
    }

    #menuIcon {
        display: inline-block;
    }

    nav {
        display: none;
        width: 100%;
        height: 100%;
        justify-content: flex-start;
    }

    /* Show / Hide the menu on small screens */
    header.showSmallScreenMenu {
        max-height: 250px;
    }

    header.showSmallScreenMenu #menuIcon {
        height: 20%;
    }

    header.showSmallScreenMenu nav {
        display: inline;
    }

    header.showSmallScreenMenu ul#mainMenu {
        height: 80%;
        overflow: visible;
        width: 100%;
    }

    header.showSmallScreenMenu ul#mainMenu li {
        height: 25%;
        float: none;
        display: inline;
        display: block;
        text-align: left;
        border-top: 1px solid #CCCCCC;
    }

    header.showSmallScreenMenu ul#mainMenu li:first-child {
        border-top: 2px solid black;
    }

    #about img {
        width: 40%;
        margin: 0 30% 0 30%;
        float: none;
    }

    #about p {
        padding: 15px;
    }

    #fpTitle {
        font-size: 20px;
    }

    #products {
        flex-direction: row;
        justify-content: space-around;
    }

    #products a {
        width: 25%;
        max-width: 100px;
    }

    #products img {
        width: 100%;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    #products div.description {
        display: none;
    }

    .errorPage h1 {
        font-size: 20px;
    }

    .errorPage p {
        font-size: 12px;
    }

    #portfolioPick a .boxTitle {
        display: none;
    }

    ul#websiteList {
        justify-content: center;
    }

    ul#websiteList li {
        width: 90%;
    }

    .websiteExample img {
        width: 100%;
    }

    .appExample p {
        width: 100%;
    }

    .appExample .appImages {
        width: 60%;
        margin-left: 20%;
        margin-right: 20%;
    }
}