/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Fonts
- Base Styles
- Common
- Typography
- Logo / Branding
- Navigation
- Sections
- Contact Form
*/

@font-face {
    font-family: 'myriad-pro';
    src: url('../fonts/myriad-bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'myriad-pro';
    src: url('../fonts/myriad-light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

/* Base Styles
–––––––––––––––––––––––––––––––––––––––––––––––––– */
* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    margin: 0;
    font: 300 28px/38px 'myriad-pro', 'Open Sans', 'Helvetica Neue', Helvetica, sans-serif;
    color: #7e7e7e;
    background-color: #eff2f5;
}


@media ( max-width: 800px ) {
    body {
        font-size: 22px;
    }
}

@media ( max-width: 568px ) {
    body {
        font-size: 14px;
        line-height: 22px;
        text-align: center;
    }
}

/* Common
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.m5abba {
    display: none;
}

/* Typography
–––––––––––––––––––––––––––––––––––––––––––––––––– */
h1 {
    color: #B7C2CF;
    font-size: 3.5em;
    margin: 0;
}

a {
    text-decoration: none;
    outline: none;
    color: white;
}

a:hover {
    color: white !important;
    transition: 300ms;
    transition-timing-function: ease-in-out;
    -webkit-transition: 300ms;
    -webkit-transition-timing-function: ease-in-out;
}

li {list-style: none;}

@media (max-width:680px) {
    h1 {font-size: 3em;}
}


/* Logo / Branding
–––––––––––––––––––––––––––––––––––––––––––––––––– */
header {
    display: flex;
    background-color: #B7C4D2;
    color: white;
    justify-content: space-between;
    flex-wrap: wrap;
}

.branding {
    padding-left: 20px;
    margin-left: 20px;
}

#logo {
    margin-left: 20px;
    width: 40px;
    height: 40px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

#brand {
    float: left;
    width: 150px;
    height: 20px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width:680px) {
    .branding {
        margin-left: auto;
        margin-right: auto;
        height: 65px;
    }

}

/* Navigation
–––––––––––––––––––––––––––––––––––––––––––––––––– */
nav {
    min-width: 50%;
    text-align: center;
    font-size: 22px;
}

nav img {
    width: 20px;
}

nav ul {
    padding: 0;
    margin: 0;
}

nav li {
    float: left;
    width: 33.33%;
    line-height: 80px;
}

nav li:nth-child(1) {background-color: #f9f9f9;}
nav li:nth-child(2) {background-color: #f4f4f4;}
nav li:nth-child(3) {background-color: #ededed;}

nav a {
    display: block;
    opacity: 1;
}

nav a:hover {
    opacity: 0;
    /*transition: 150ms;*/
}

nav a, nav a:hover, nav li {
    transition: all 200ms ease-out;
    -webkit-transition: all 200ms ease-in-out;
       -moz-transition: all 200ms ease-in-out;
        -ms-transition: all 200ms ease-in-out;
         -o-transition: all 200ms ease-in-out;
}

.btn-github {
    background-image: url("../images/github_full.png");
}

.btn-linkedin {
    background-image: url("../images/linkedin_full.png");
}

.btn-hello {
    background-image: url("../images/hello.png");
}

.btn-github, .btn-linkedin, .btn-hello {
    background-position: center 80px;
    cursor: pointer;
    background-size: 90px;
    background-repeat: no-repeat;
}

.btn-github:hover, .btn-linkedin:hover, .btn-hello:hover {
    background-position: center;
}

@media (max-width: 680px) {
    nav {
        width: 100%;
    }

    nav li {
        line-height: 65px;
        height: 65px;
    }
}


/* Sections
–––––––––––––––––––––––––––––––––––––––––––––––––– */
section {
    height: 650px;
    padding: 0;
}

article {
    margin: auto;
    padding: 0px 10px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.container {
    clear: both;
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    width: 1021px;
}

.lead {
    font-size: 1.4em;
    line-height: 1.2em;
    margin-top: 80px;
}

.intro {
    background-color: #EFF2F5;
    height: 700px;
}

.crypto-tracker {
    text-align: center;
    background-color: #05021d;
}

.crypto-tracker a {
    color: #7e7e7e;
}

.crypto-prix {
    color: white;
    background-color: #89CEC2;
    background-image: url("../images/cryptoprix.png");
    background-image: url("../images/cryptoprix.png") , linear-gradient(to top, #8ACEC2 , #C8F3ED);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
}

#contact h1 {
    color: #B6C3D1;
    text-align: center;
    line-height: 1em;
}

@media ( max-width: 800px ) {
    section {
        height: 500px;
    }

    .intro article {
        transform: translateY(-70%);
    }

    .intro {
        height: 600px;
    }

    .lead {
        margin-top: 45px;
    }

    .crypto-prix article {
        width: 350px;
        padding-right: 20px;
        text-align: center;
    }

    .crypto-prix h1 {
        line-height: 0.9em;
    }

    #contact {
        height: 550px;
    }
}

@media ( max-width: 680px ) {
    .crypto-prix article {
        padding-right: 60px;
        right: 10%;
    }
}

@media ( max-width: 568px ) {
    section {
        height: 240px;
    }

    article {
        margin-left: 0;
    }

    .lead {
        margin-top: 40px;
    }

    .intro, #contact {
        height: 435px;
    }

    .crypto-prix article {
        text-align: left;
        margin: auto;
        right: unset;
    }
}


/* Contact Form
–––––––––––––––––––––––––––––––––––––––––––––––––– */
form {
    font-size: 0.8em;
    width: 400px;
    margin: 1em auto;
}

label {
    margin-top: 2em;
    margin-bottom: 0.5em;
    color: #999999;
}

input {
    width: 100%;
    padding: 0.5em 0.5em;
    border: none;
    border-radius: 0;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 0.5em 0.5em;
    resize: none;
    border: none;
    margin-bottom: 10px;
    border-radius: 0;
}

input:focus, textarea:focus, button:focus {
    outline: none;
    border: 1px solid #B8C3D0;
}

::placeholder               {color: #7e7e7e; opacity: 0.5;}
::-webkit-input-placeholder {color: #7e7e7e; opacity: 0.5;} /* Chrome/Opera/Safari */
::-moz-placeholder          {color: #7e7e7e; opacity: 0.5;} /* Firefox 19+ */
:-ms-input-placeholder      {color: #7e7e7e; opacity: 0.5;} /* IE 10+ */
:-moz-placeholder           {color: #7e7e7e; opacity: 0.5;} /* Firefox 18- */

/* Prevent ios from zooming in on focus */
input[type="email"],
input[type="text"],
input[type="url"],
select:focus,
textarea {
    font-size: 16px;
}

button {
    border: none;
    width: 150px;
    height: 50px;
    display: block;
    margin: auto;
    opacity: 0.6;
    transition: 300ms;
    transition-timing-function: ease-in-out;
    -webkit-transition: 300ms;
    -webkit-transition-timing-function: ease-in-out;
    background-color: white;
}

button img {
    width: 25px;
}

button:hover, button:focus {
    opacity: 1;
    cursor: pointer;
}

button:active {
    opacity: 1;
}

.success {
    padding: 0.5em 1em;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #468847;
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.error {
    padding: 0.5em 1em;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #b94a48;
    background-color: #f2dede;
    border: 1px solid rgba(185, 74, 72, 0.3);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

@media ( max-width: 800px ) {
    #form-result {font-size: 1em;}
}

@media ( max-width: 568px ) {
    #contact article {
        padding: 0;
    }

    form {
        width: 100%;
    }

    #form-result {
        font-size: 1em;
    }

    input {
        width: 100%;
    }

    .field {
        width: 100%;
        margin-top: 20px;
    }

    label {
        display: none;
    }
}
