/*
    We start with a good ol' reset.
    That's the one by Eric Meyer http://meyerweb.com/eric/tools/css/reset/

    You can probably argue if it is needed here, or not, but for sure it
    doesn't do any harm and gives us a fresh start.
*/

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;
}

/* HTML5 display-role reset for older browsers */
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;
}

/* impress magic */

.step {
    position: relative;
    width: 900px;
    padding: 40px;
    margin: 20px auto;

    -webkit-box-sizing: border-box;
    -moz-box-sizing:    border-box;
    -ms-box-sizing:     border-box;
    -o-box-sizing:      border-box;
    box-sizing:         border-box;
}

/*
    ... and we enhance the styles for impress.js.

    Basically we remove the margin and make inactive steps a little bit transparent.
*/
.impress-enabled .step {
    margin: 0;
    opacity: 0.3;

    -webkit-transition: opacity 1s;
    -moz-transition:    opacity 1s;
    -ms-transition:     opacity 1s;
    -o-transition:      opacity 1s;
    transition:         opacity 1s;
}

.impress-enabled .step.active { opacity: 1 }


body {
    font-family: 'Open Sans', sans-serif;
    min-height: 740px;

    background: rgb(0, 0, 0);
    color: #EEE;
}

p { line-height: 1.1em; padding-bottom: 1em;}

b, strong { font-weight: bold }
i, em { font-style: italic }

a {
    color: inherit; text-decoration: underline;
    -webkit-transition: 0.4s; -moz-transition:    0.4s;
    -ms-transition:     0.4s; -o-transition:      0.4s;
    transition:         0.4s;
}

a:hover, a:focus { color: #FF9900; }

#cultive { width: 500px }

.plant_text {
    position: relative;
    top: -200px;
    z-index: -1000;
}

/*
    ... so we define display to `inline-block` to enable transforms and
    transition duration to 0.5s ...
*/
.cultive .plant_anim {
    display: inline-block;
    -webkit-transition: 1s;
    -moz-transition:    1s;
    -ms-transition:     1s;
    -o-transition:      1s;
    transition:         1s;

    position: relative;
    top: 130px;
    left: -65px;

    -webkit-transform: scale(0);
    -moz-transform:    scale(0);
    -ms-transform:     scale(0);
    -o-transform:      scale(0);
    transform:         scale(0);
}

.cultive.present .plant_anim {
    -webkit-transform: scale(1);
    -moz-transform:    scale(1);
    -ms-transform:     scale(1);
    -o-transform:      scale(1);
    transform:         scale(1);  
}

/* illustrations */
.photo_shadow {
    -webkit-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.18);
    -moz-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.18);
    box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.18);
}

#session_table {
    position: absolute; 
    -webkit-transform: translate(-50%, -50%) translate3d(600px, -1700px, 0px) scale(0.8) rotateZ(10deg);
    -webkit-transform-style: preserve-3d;
}

#session_triangle {
    position: absolute; 
    -webkit-transform: translate(-50%, -50%) translate3d(2000px, -1400px, 4px) scale(0.5) rotateZ(85deg);
    -webkit-transform-style: preserve-3d;
}

#session_binome {
    position: absolute; 
    -webkit-transform: translate(-50%, -50%) translate3d(2250px, -200px, 0px) scale(0.24) rotateZ(-7deg);
    -webkit-transform-style: preserve-3d;
}

#session_mockup {
    position: absolute; 
    -webkit-transform: translate(-50%, -50%) translate3d(2420px, 0px, 0px) scale(0.24) rotateZ(-7deg);
    -webkit-transform-style: preserve-3d;
}

#session_touch_osc {
    position: absolute; 
    -webkit-transform: translate(-50%, -50%) translate3d(1895px, 420px, 0px) scale(0.17) rotateZ(4deg);
    -webkit-transform-style: preserve-3d;
}

#session_triangles_prod {
    position: absolute; 
    -webkit-transform: translate(-50%, -50%) translate3d(1140px, -350px, 0px) scale(0.25) rotateZ(-4deg);
    -webkit-transform-style: preserve-3d;
}

#session_exquis {
    position: absolute; 
    -webkit-transform: translate(-50%, -50%) translate3d(600px, 1200px, 0px) scale(0.5) rotateZ(100deg);
    -webkit-transform-style: preserve-3d;
}

#session_groupe {
    position: absolute; 
    -webkit-transform: translate(-50%, -50%) translate3d(150px, -240px, 10px) scale(0.4) rotateZ(98deg);
    -webkit-transform-style: preserve-3d;
}

#session_video {
    position: absolute; 
    -webkit-transform: translate(-50%, -50%) translate3d(-1400px, 1000px, -15px) scale(1) rotateZ(110deg);
    -webkit-transform-style: preserve-3d;
}

#session_p5js {
    position: absolute; 
    -webkit-transform: translate(-50%, -50%) translate3d(900px, -350px, 0px) scale(0.26) rotateZ(-4deg);
    -webkit-transform-style: preserve-3d;
}

#fond {
    position: absolute; 
    -webkit-transform: translate(-50%, -50%) translate3d(0px, 0px, -20px) scale(20) rotateZ(0deg);
    -webkit-transform-style: preserve-3d;
}

#commit_desopaquifier {
    position: relative;
    top: -200px; left: -380px;
}

#projet_etude_alambic {
    position: relative;
    top: -60px; left: -370px;
}

#se_perfectionner {
    position: relative;
    top: -410px; left: 300px;
}

#step-09 {
    width: 600px;
}

.impress-on-step-08 #step-08b.step { opacity: 1; }

#credits {
    width: 150px; position: relative;
    top: -2em; left: 30px;
}

/*  The last step is an overview. There is no content in it, so we make sure it's not visible
    because we want to be able to click on other steps. */
#overview { display: none }
.impress-on-overview .step { opacity: 1; cursor: pointer; }

/* Fullscreen button */
#fullscreen {
    position: fixed; bottom: 40px; left: 40px; ;
}

#fullscreen button {
    padding: 1em; font-size: 1em; cursor: pointer;
    background: transparent; color: #999;
    border-style: dashed; border-radius: 2em; border-color: #888;
}

