﻿html {
    padding: 0;
    margin: 0;
}

body {
    background-image: url(../img/bgtruchet.png);
    background-size: 200px;
    background-color: #E6E4E3;
    font-size: 22px;
}

h1,h2,h3,h4{
    font-family: 'Roboto Slab', serif;
    text-transform: capitalize;
    text-align: left;
}

h2,h3,h4{
    margin-top: 2em;
}

h2.nomargin{
    margin-top: 0.83em;
}

h4:before {
    content: '● ';
}

p {
    font-family: 'Source Sans Pro', serif;
}

li {
    margin-bottom: 1em;
}

#main {
    position: absolute;
    left: 0;
    top: 0;
    background: url(../img/bgtruchetmask.svg);
    background-size: 1100px;
    background-position: 0 0;
    background-repeat: repeat-y;
    min-height: 100%;
    min-width: 100%;
    padding-bottom: 150px;
    overflow-x: hidden;
}

#logo {
    position: absolute;
    top: 50px;
    left: 20px;
    width: 320px;
    z-index: 1;
    display: flex;
}

#logo img {
    max-width: 112px;
    height: 112px;
    margin-right: 10px;
}

#logo div span {
    line-height: 0.7em;
    color: #5d5d5d;
    text-decoration: none;
    font-family: 'Passion One', sans-serif;
    font-weight: 400;
    font-size: 2.5em;
    text-transform: uppercase;
    display: block;
}

#top-left-triangle{
    box-sizing: border-box;
    position: absolute;
    left: -5px;
    top: 0;
    height: 520px;
    width: 520px;
    background-repeat: no-repeat;
    background-size: 515px;
    z-index: 0;
    border-left: 260px solid #f0f0f0;
    border-right: 260px solid transparent;
    border-top: 260px solid #f0f0f0;
    border-bottom: 260px solid transparent;
}

#decoLeftTriangles {
    position: absolute;
    left: 0;
    top: 255px;
    height: 520px;
    width: 130px;
    background: url(../img/decolefttriangles.svg);
    background-size: 130px;
    background-repeat: no-repeat;
    z-index: 100;
}

nav {
    position: absolute;
    top: 40px;
    left: 550px;
    width: 510px;
}

nav .nav-item{
    color: #5d5d5d;
    text-decoration: none;
    font-family: 'Passion One', sans-serif;
    font-weight: 400;
    font-size: 1.8em;
    text-transform: uppercase;
    position: relative;
    z-index: 100;
    float: left;
    width: 260px;
    margin-left: -175px;
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

nav .nav-item div {
    padding: 5px 10px;
    background: #fff;
    -moz-transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out, margin-left 0.1s ease-in-out;
    -webkit-transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out, margin-left 0.1s ease-in-out;
    -o-transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out, margin-left 0.1s ease-in-out;
    -ms-transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out, margin-left 0.1s ease-in-out;
    transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out, margin-left 0.1s ease-in-out;
}

nav .nav-item.active div {
    color: white;
    background: #5D5D5D;
}

nav .nav-item div:hover {
    color: #4a4a4a;
    margin-left: -20px;
    background-color: #bebebe;
}

.page-title {
    font-family: 'Roboto Slab', serif;
    position: relative;
    padding-top: 210px;
    padding-left: 130px;
    margin: 0;
}

.content {
    position: relative;
    font-family: 'Source Sans Pro', serif;
    padding-left: 170px;
    max-width: 1000px;
    width: calc(100% - 210px);
    text-align: justify;
}

.content a {
    font-weight: bold;
    color: inherit;
}

.content img {
    width: 100%;
    max-width: 500px;
    margin: 1em auto;
    display: block;
}

.figcaption {
    text-align: center;
    font-style: italic;
    margin-top: -1em;
}

.content .logo-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

.content img.logo {
    display: inline-block;
    margin: 1em;
}

.logo-container img.logo#uom {
    width: 250px;
}

.logo-container img.logo#maltco {
    width: 180px;
}

.citation {
    font-weight: bold;
    font-family: 'Roboto Slab', serif;
}

#quick-download {
    display: block;
    height: 60px;
    padding-left: 130px;
    margin-top: 10px;
}

.action-button {
    position: relative;
    height: 50px;
    float: left;
    margin-top: -10px;
    margin-left: -40px;
    margin-bottom: 10px;
    padding-left: 50px;
    padding-right: 10px;
    font-size: 1.2em;
    color: #FFF;
}

.action-button .btn-deco {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: url(../img/btn_action.svg);
    background-size: 50px;
    background-repeat: no-repeat;
    z-index: 10;
}

.action-button i {
    color: rgba(255,255,255,0.4);
    position: absolute;
    font-size: 0.6em;
    right: 82px;
    top: 0.5em;
    z-index: 20;
    pointer-events: none;
}

.action-button a {
    font-family: 'Source Sans Pro', serif;
    font-weight: bold;
    position: relative;
    -moz-transition: padding-left 0.1s ease-in-out, background 0.1s ease-in-out, color 0.1s ease-in-out;
    -webkit-transition: padding-left 0.1s ease-in-out, background 0.1s ease-in-out, color 0.1s ease-in-out;
    -o-transition: padding-left 0.1s ease-in-out, background 0.1s ease-in-out, color 0.1s ease-in-out;
    -ms-transition: padding-left 0.1s ease-in-out, background 0.1s ease-in-out, color 0.1s ease-in-out;
    transition: padding-left 0.1s ease-in-out, background 0.1s ease-in-out, color 0.1s ease-in-out;
    margin-top: 5px;
    margin-left: -48px;
    display: block;
    height: 40px;
    color: white;
    background: #5D5D5D;
    line-height: 1.5;
    padding-left: 55px;
    padding-right: 90px;
    text-decoration: none;
}

.action-button a:hover {
    color: #4a4a4a;
    background: #bebebe;
    padding-left: 70px;
}

.action-button .btn-deco-end {
    position: absolute;
    top: 0;
    right: -2px;
    width: 65px;
    height: 40px;
    background: url(../img/btn_action_end.svg);
    background-size: 65px;
    background-repeat: no-repeat;
}

ul {
    padding-left: 20px;
}

ol.instructions {
    counter-reset:li;
    text-align: left;
    list-style: none;
    padding: 0;
}

ol.instructions > li:before {
    content:'Step ' counter(li) '. ';
    counter-increment:li;
}

.contact-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    font-size: 1.5em;
}

.contact-box p {
    color: #106690;
    transition: color 0.3s;
}

.contact-box p:hover {
    color: #ad2218;
}

img.float-right {
    float: right;
    margin-left: 2em;
    margin-top: 0;
    border: 3px solid #106690;
    max-width: 400px;
    width: 40%;
}

a.btn {
    margin: -10px 0px 10px;
    display: inline-block;
    background: #106690;
    color: #f0f0f0;
    border: 5px solid #0b4c6e;
    padding: 5px 20px 5px 35px;
    font-size: 0.8em;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
    text-decoration: none;
}

a.btn:after{
    content: '';
    background: #083a54;
    height: 5px;
    width: calc(100% + 10px);
    position: absolute;
    left: -5px;
    bottom: -10px;
    transition: background-color 0.3s;
}

a.btn:before {
    content: '';
    height: 15px;
    width: 17px;
    position: absolute;
    background: url(../img/download.png) no-repeat;
    background-size: 17px 15px;
    left: 7px;
    top: 6px;
}

a.btn:hover{
    background: #5998b7;
    border-color: #106690;
    cursor: pointer;
}

a.btn:hover:after {
    background-color: #0b4c6e;
}

footer{
    clear: both;
    position: absolute;
    bottom: 0;
    width: 920px;
    height: 150px;
    background: url(../img/decofootertriangles.svg);
    background-position: 0 29px;
    background-size: 927px 125px;
    background-repeat: no-repeat;
    overflow: hidden;
}

@media (max-width: 869px) {
    * {
        font-size: 18px;
    }

    #decoLeftTriangles {
        display: none;
    }

    #top-left-triangle {
        display: none;
    }

    #logo{
        transform: scale(0.7);
        position: relative;
        margin: 10px auto;
        top: 0;
        left: 0;
    }

    #logo img {
        width: 92px;
        height: 92px;
    }

    nav {
        position: relative;
        display: block;
        width: 100%;
        top: 0;
        left: 0;
    }

    nav .nav-item {
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    nav .nav-item div {
        font-size: 1em;
    }

    .page-title {
        margin-top: 315px;
        padding-left: 30px;
        padding-top: 0;
        display: block;
    }

    #quick-download {
        /*padding-left: 70px;*/
        display: none;
    }

    .content {
        width: calc(100% - 60px);
        padding-left: 30px;
    }

    h1 {
        font-size: 1.6em;
        text-align: left;
    }
    h2 {
        font-size: 1.4em;
        text-align: left;
    }
    h3 {
        font-size: 1.2em;
        text-align: left;
    }

    img.float-right {
        width: 100%;
        float: none;
        margin: 0;
    }
}