
/*
    From Eric Meyer http://meyerweb.com/eric/tools/css/reset/
*/

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

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

    background: rgb(215, 215, 215);
    background: radial-gradient(rgb(240, 240, 240), rgb(190, 190, 190));
}

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

.fallback-message {
    font-family: sans-serif;
    line-height: 1.3;

    width: 780px;
    padding: 10px 10px 0;
    margin: 20px auto;

    border: 1px solid #E4C652;
    border-radius: 10px;
    background: #EEDC94;
}

.fallback-message p {
    margin-bottom: 10px;
}

.impress-supported .fallback-message {
    display: none;
}

.step {
    position: relative;
    width: 900px;
    padding: 40px;
    margin: 20px auto;
    box-sizing: border-box;
    font-family: 'PT Serif', georgia, serif;
    font-size: 48px;
    line-height: 1.5;
}

.impress-enabled .step {
    margin: 0;
    opacity: 0.3;
    transition: opacity 1s;
}

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

.slide {
    display: block;
    width: 900px;
    height: 700px;
    padding: 40px 60px;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, .3);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    color: rgb(102, 102, 102);
    text-shadow: 0 2px 2px rgba(0, 0, 0, .1);
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -1px;
}

.slide q {
    display: block;
    font-size: 50px;
    line-height: 72px;
    margin-top: 100px;
}

.slide q strong {
    white-space: nowrap;
}

#title {
    padding: 0;
}

#title .try {
    font-size: 64px;
    position: absolute;
    top: -0.5em;
    left: 1.5em;
    transform: translateZ(20px);
}

#title h1 {
    font-size: 180px;
    transform: translateZ(50px);
}

#title .footnote {
    font-size: 32px;
}

#big {
    width: 600px;
    text-align: center;
    font-size: 60px;
    line-height: 1;
}

#big strong, #big b {
    display: block;
    font-size: 250px;
    line-height: 250px;
}

#big .thoughts {
    font-size: 90px;
    line-height: 150px;
}

#tiny {
    width: 500px;
    text-align: center;
}

#issues {
    width: 500px;
}

#issues p {
    margin-left: 100px;
    color: rgb(102, 102, 102);
}

#issues b {
    display: inline-block;
    transition: 0.5s;
}

.present .positioning {
    transform: translateY(-10px);
    color: darkslategray;
}

.present .rotating {
    transform: rotate(-10deg);
    transition-delay: 0.25s;
    color: brown;
}

.present .scaling {
    transform: scale(0.7);
    transition-delay: 0.5s;
    color: #000;
}

#question {
    width: 600px;
}

#question .question {
    font-size: 78px;
}

#source q {
    font-size: 60px;
}

#its-in-3d p {
    transform-style: preserve-3d;
}

#its-in-3d span, #its-in-3d b {
    display: inline-block;
    transform: translateZ(40px);
    transition: 0.5s;
}

#its-in-3d .have {
    transform: translateZ(-40px);
}

#its-in-3d .you {
    transform: translateZ(20px);
}

#its-in-3d .noticed {
    transform: translateZ(-40px);
}

#its-in-3d .its {
    transform: translateZ(60px);
}

#its-in-3d .in {
    transform: translateZ(-10px);
}

#its-in-3d .footnote {
    font-size: 32px;
    transform: translateZ(-10px);
}

#its-in-3d.present span, #its-in-3d.present b {
    transform: translateZ(0px);
}

#overview {
    display: none
}

.impress-on-overview .step {
    opacity: 1;
    cursor: pointer;
}

.hint {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 200px;
    background: rgba(0,0,0,0.5);
    color: #EEE;
    text-align: center;
    font-size: 50px;
    padding: 20px;
    z-index: 100;
    opacity: 0;
    transform: translateY(400px);
    transition: opacity 1s, transform 0.5s 1s
}

.impress-enabled .hint {
    display: none
}

.impress-on-bored .hint {
    opacity: 1;
    transform: translateY(0px);
    transition: opacity 1s 5s, transform 0.5s 4.5s
}

.d3-logo {
    display: flex;
    height: 200px;
    justify-content: space-between;
}

.intro {
    background: url(../images/graphs.png) top center no-repeat;
    background-size: 100% 45%;
    background-attachment: fixed;
    padding: 250px 0 0 0;
}

h1 span {
    font-size: 50px;
}

.intro h1 span {
    font-size: 50px;
    align-self: center;
}

p {
    text-align: justify;
    margin: 20px 0;
}

.photo {
    background: url(../images/mbostok.jpeg) top center no-repeat;
    /*background-position: 50%;*/
    background-size: cover;
    border-radius: 50%;
    height: 200px;
    width: 200px;
}

.about {
    margin: 90px 0 0 0;
}

.slide pre > code {
    font-size: 14px;
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

code {
    font-family: "Cutive mono","Courier New", monospace;
}

a {
    color: rgb(102, 102, 102);
    text-decoration: none;
    padding: 0 0.1em;
    background: rgba(200,200,200,0.2);
    text-shadow: -1px 1px 2px rgba(100,100,100,0.9);
    border-radius: 0.2em;
    border-bottom: 1px solid rgba(100,100,100,0.2);
    border-left: 1px solid rgba(100,100,100,0.2);
    transition: 0.5s;
}

a:hover, a:focus {
    background: rgba(200,200,200,1);
    text-shadow: -1px 1px 2px rgba(100,100,100,0.5);
}

.modules {
    display: flex;
    flex-direction: column;
}

.modules h1 {
    flex: none;
}

.modules > img {
    flex: 1 auto;
    margin: 50px 0 0 0;
}

.modules h3 {
    font-size: 30px;
    font-weight: bolder;
}

.modules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modules-header img {
    height: 60px;
    width: 60px;
}

.pros img {
    width: 16px;
    height: 16px;
    stroke: green;
}

.cons img {
    width: 16px;
    height: 16px;
    stroke: red;
}

.pros-and-cons {
    margin: 100px 0 0 0;
    display: flex;
}

.pros-and-cons > span {
    font-weight: bolder;
}

.pros-and-cons ul {
    margin: 0 0 0 50px;
}

.d3-about p {
    margin: 40px 0;
}

.d3-selectors-intro p {
    margin-top: 40px;
}

.d3-selectors-intro li {
    margin: 40px 0;
}

.d3-selectors-examples ul {
    margin-top: 40px;
}

.d3-selectors-examples li {
    margin: 35px 0;
}

.data-binding {
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.d3-data-join-example p {
    margin-top: 40px;
}

.code-example {
    font-size: 14px;
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    font-family: "Cutive mono","Courier New", monospace;
    line-height: 25px;
}

.d3-and-react {
    display: flex;
    justify-content: space-between;
}

.d3-and-react > div {
    flex: none;
    width: 50%;
}

.d3-and-react > pre {
    line-height: 22px;
}
