body {
  background: #654;
  padding: 0;
  margin: 0;
  overflow: hidden;
  line-height: 160%;
}
#loading {
  position: absolute;
  color: white;
  top: 30px;
  left: 40px;
  font-family: 'Helvetica Neue', Arial, sans;
  font-size: 20px;
  text-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px; 
}

presentation {
  position: absolute;
  width: 2000px;
  height: 1000px;
  margin-left: -1000px;
  margin-top: -500px;
  left: 50%;
  top: 50%;
  
  z-index: 100;
  
  display: block;
  
  opacity: 0;
  
  background: inherit;
  
  -webkit-transition: margin-top .51s;
  
  -webkit-transform: rotateZ(0);
}
presentation.loaded {
  opacity: inherit;
}
body.with-notes presentation {
  margin-top: -550px;
}
slides {
  width: 100%;
  height: 100%;
  overflow: hidden;
  left: 0;
  top: 0;
  position: absolute;
  display: block;
  
  -webkit-transition: -webkit-transform 1s ease-in-out; 
}

slide {
  display: block;
  position: absolute;
  overflow: hidden;
  width: 900px;
  height: 700px;
  left: 50%;
  top: 50%;
  margin-top: -350px;
  margin-left: -450px;
  background: -webkit-gradient(linear, left bottom, left top, from(#dcb), to(#fff));
  
  -webkit-box-shadow: 0 5px 8px rgba(0, 0, 0, .2);
  
  -webkit-transition: -webkit-transform 0.25s ease-in-out, height .51s; 
}
presentation.loaded slide {
  margin-left: 0;
  display: none;
}
body.with-notes slide {
  height: 800px;
}
slide.black {
  background: black;
}

slide:nth-child(even) {
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
slide:nth-child(odd) {
  border-top-right-radius: 20px;
  border-bottom-left-radius: 20px;
}

slide:nth-child(even) iframe.fill {
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
slide:nth-child(odd) iframe.fill {
  border-top-right-radius: 20px;
  border-bottom-left-radius: 20px;
}

presentation slide.time-far-past {
  -webkit-transform: translate3d(-2400px, 0, 0);
  display: block;  
}
presentation slide.time-past {
  -webkit-transform: translate3d(-1400px, 0, 0);
  display: block;  
}
presentation slide.time-current {
  -webkit-transform: translate3d(-450px, 0, 0);
  display: block;  
}
presentation slide.time-future {
  -webkit-transform: translate3d(500px, 0, 0);
  display: block;  
}
presentation slide.time-far-future {
  -webkit-transform: translate3d(1500px, 0, 0);
  display: block;  
}


body.three-d presentation {
  background: -webkit-gradient(radial, 50% 50%, 10, 50% 50%, 1000, from(#a98), to(#000));
}
body.three-d slides {
  -webkit-transform: translateX(50px) scale(0.6) rotateY(10deg);        
}


.fill {
  position: absolute; 
  background: black; 
  left: 0; 
  top: 0; 
  width: 900px; 
  height: 700px;
}

/* Content */

@font-face { font-family: 'Inconsolata'; src: url(../fonts/Inconsolata.otf); }
@font-face { font-family: 'VitesseSans-Light'; src: url(../fonts/VitesseSans-Light.otf); }
@font-face { font-family: 'VitesseSans-Book'; src: url(../fonts/VitesseSans-Book.otf); }
@font-face { font-family: 'VitesseSans-BookItalic'; src: url(../fonts/VitesseSans-BookItalic.otf); }
@font-face { font-family: 'VitesseSans-Medium'; src: url(../fonts/VitesseSans-Medium.otf); }
@font-face { font-family: 'Vitesse-Medium'; src: url(../fonts/Vitesse-Medium.otf); }

header {
  font-family: 'VitesseSans-Book';
  /*font-weight: 300;*/
  font-size: 40px;
  letter-spacing: -.03em;
  color: white;        
  color: black;
  text-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px; 
  
  position: absolute;
  left: 30px;
  top: 30px;
  margin: 0;
  padding: 0;
}
header i {
  font-family: 'VitesseSans-BookItalic';
  padding: 0 .1em;
}
h1 {
  color: black;
  padding: 0;
  margin: 0;
  letter-spacing: -.05em;
  font-family: 'Vitesse-Medium';
  font-size: 76.8px;
}

slides > h1 {
  padding-top: 50px;
  padding-left: 580px;
  color: #dcb;
  font-size: 40px;
  text-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px; 
}


h2 {
  color: black;
  font-family: 'VitesseSans-Book';
  /*font-weight: 300;*/
  padding: 0;
  margin: 0;
  margin-top: -10px;
  font-size: 38.4px;
  letter-spacing: -.05em;
}
h2 i {
  font-family: 'VitesseSans-BookItalic';
}
h3 {
  font-family: 'VitesseSans-Medium';
  color: black;
  font-size: 20px;
  margin-left: 20px;
  margin-top: 36px;
  line-height: 16px;
}
h3:first-child {
  margin-top: 0;
}
  

slide > section {
  font-family: 'VitesseSans-Light';
  font-size: 40px;
  color: #3f3f3f;
  text-shadow: rgba(0, 0, 0, 0.2) 0 2px 5px;         
  line-height: 160%;
  margin-left: 30px;
  margin-right: 30px;
  margin-top: 30px;
  display: block;
  overflow: hidden;
}

note {
  margin-top: 90px;
  height: 0;
  display: block;
  overflow: hidden;
  background: white;
  
  -webkit-transition: height .51s;
}
note > section {
  margin-left: -20px;
  width: 840px;
  height: 68px;
  padding: 15px 50px;
  margin-top: -34px;
  font-family: 'VitesseSans-Book';
  color: #765;
  font-size: 20px;
  line-height: 26px;
  -webkit-box-shadow: inset rgba(128, 64, 0, 0.2) 0 3px 5px;   
  
  -webkit-transition: margin-top .51s;
}
body.with-notes note {
  height: 100px;
}
body.with-notes note > section {
  margin-top: 0;
}
note code {
  color: black;
}

a {
  color: inherit;
  display: inline-block;
  text-decoration: none;
  line-height: 110%;
  border-bottom: 2px solid #3f3f3f;
}

slide > section.middle-small {
  font-size: 36px;
}
slide > section.middle-small ul {
  margin: 0 0 0 15px;
  padding: 0;
}
slide > section.middle-small li {
  padding-bottom: 0;
}

slide > section.left {
  float: left;
  width: 390px;
}
slide > section.small {
  font-size: 24px;
}
slide > section.small ul {
  margin: 0 0 0 15px;
  padding: 0;
}
slide > section.small li {
  padding-bottom: 0;
}
h4 {
  padding: 0;
  margin: 15px 0 5px 0;
  font-family: 'VitesseSans-Book';
  /*font-weight: 300;*/
}

slide > section.center {
  line-height: 180%;
  text-align: center;
  display: table-cell;
  vertical-align: middle;
  height: 604px;
  width: 900px;
}

pre,
code {
  font-family: 'Inconsolata', Courier;
  line-height: 20px;
  letter-spacing: 1px;  
}

pre {
  text-align: left;
  font-size: 16px;

  margin-top: 0;
  padding: 10px 20px;
  background: rgba(255, 64, 0, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 64, 0, 0.2);
}

pre.css {
  background: rgba(224, 224, 0, 0.1);
  border: 1px solid rgba(200, 200, 0, 0.3);
}
pre.js {
  background: rgba(64, 224, 0, 0.1);
  border: 1px solid rgba(64, 224, 0, 0.3);
}

.two-column ul {
  -webkit-column-break-inside: avoid;  
}
.two-column li {
  -webkit-column-break-inside: avoid;  
  -webkit-column-break-before: avoid;  
}
.two-column {
  -webkit-column-count: 2;
}
.two-column pre,
.two-column div {
  -webkit-column-break-before: always;
}
.three-column {
  -webkit-column-count: 3;
}

pre select {
  font-size: 16px;
  font-family: 'Inconsolata', Courier;
  border: 1px solid #c65800;        
}
  
input {
  font-size: 16px;
  font-family: 'VitesseSans-Book';
  padding: 3px;
}
input[type='range'] {
  width: 100%;
  cursor: -webkit-grab;
}
input[type='range']:active {
  cursor: -webkit-grabbing;  
}
button {
  font-family: 'VitesseSans-Medium';
  /*font-weight: 200;*/
}
button.large {
  font-size: 32px;        
}
  
code b, 
pre b {
  font-weight: normal;
  color: #c65800;
  text-shadow: #c65800 0 0 1px; 
  /*letter-spacing: -1px;*/
}
pre em {
  font-weight: normal;
  font-style: normal;
  color: #18a600;
  text-shadow: #18a600 0 0 1px; 
}
pre input[type="range"] {
  height: 6px;
  cursor: pointer;
  width: auto;
}      
example {
  font-size: 16px;
  line-height: 130%;
  display: block;
  padding: 10px 20px;
  color: black;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
video {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);        
}

span.css,
span.js,
span.html,
span.key {
  font-family: 'VitesseSans-Medium';
  color: black;
  display: inline-block;
  padding: 6px 10px 3px 10px;
  font-size: 25px;
  line-height: 30px;
  text-shadow: none;
  letter-spacing: 0;
  bottom: 5px;
  position: relative;
  border-radius: 10px;
  background: white;
  box-shadow: rgba(0, 0, 0, .1) 0 1px 3px; 
  -webkit-box-shadow: rgba(0, 0, 0, .1) 0 1px 3px; 
  -moz-box-shadow: rgba(0, 0, 0, .1) 0 1px 3px; 
}
:not(header) > span.css,
:not(header) > span.js,
:not(header) > span.html,
:not(header) > span.key {
  margin: 0 5px;
  bottom: 4px;
}

span.css {
  background: -webkit-gradient(linear, left top, left bottom, from(#ff4), to(#ffc));        
}
span.js {
  background: -webkit-gradient(linear, left top, left bottom, from(#4e4), to(#afa));        
}
span.html {
  background: -webkit-gradient(linear, left top, left bottom, from(#ea8), to(#fff7ee));                
}

li {
  list-style: none;
  padding-bottom: 12px;
  text-indent: -.38em;
  margin-left: .38em;
}
li > * {
  text-indent: 0;
}
li::before {
  content: '· ';
}

info {
  display: block;
  font-size: 50%;
  text-align: center;
}

.shadow {
   -webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 4px 6px;
}

iframe {
  border: 0;
  background: white;
  z-index: 555555;
}

hr {
  visibility: hidden;
  padding: 0;
  margin: 0 0 20px 0;
}


#crt-cover {
  position: absolute;
  left: 0;
  top: 0;

  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;  
  
  width: 100%;
  height: 100%;  

  background: -webkit-linear-gradient(rgba(0, 0, 0, .3), transparent),
              -webkit-linear-gradient(transparent, rgba(0, 0, 0, .13), rgba(0, 0, 0, .13), transparent, transparent, transparent, transparent, transparent, transparent);
              
  background-size: 100% 2px, 100% 100%;
  
  background-clip: border-box;
  
  pointer-events: none;

  -webkit-animation-name: flicker;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;    
  
  display: none;
}
#crt-cover.visible {
  display: block;
}

@-webkit-keyframes flicker {
  0% { opacity: .95; background-position: 0 0, 0 620px; }
  10% { opacity: .9; }
  20% { opacity: .75; }
  30% { opacity: .9; }
  40% { opacity: .75; }
  50% { opacity: .9; }
  60% { opacity: .95; }
  70% { opacity: .92; }
  80% { opacity: .7; }
  90% { opacity: .92; }
  100% { opacity: .9; background-position: 0 0, 0 0; }
}
