/*
 * Special objects
 */

@font-face {
    font-family: 'Source Sans Pro';
    src: url('font/SourceSansPro-Bold.eot');
    src: url('font/SourceSansPro-Bold.eot?#iefix') format('embedded-opentype'),
         url('font/SourceSansPro-Bold.woff') format('woff'),
         url('font/SourceSansPro-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url('font/SourceSansPro-Black.eot');
    src: url('font/SourceSansPro-Black.eot?#iefix') format('embedded-opentype'),
         url('font/SourceSansPro-Black.woff') format('woff'),
         url('font/SourceSansPro-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

.inline-black {
    display: inline-block !important;
    background-color: black;
    padding: 0.1em 0.3em !important;
    margin-bottom: 20px !important;
}

.inline-black2 {
    display: inline-block !important;
    background-color: black;
    padding: 0em 0.4em !important;
    line-height: 1em;
    padding-top: 0.1em !important;
    margin-bottom: 0px !important;
}

.reveal .arrow_box {
	position: relative;
	background: #88b7d5;
	border: 4px solid #c2e1f5;
}
.reveal .arrow_box:after, .arrow_box:before {
	right: 100%;
	top: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}
.reveal .arrow_box:after {
	border-color: rgba(136, 183, 213, 0);
	border-right-color: #88b7d5;
	border-width: 30px;
	margin-top: -30px;
}
.reveal .arrow_box:before {
	border-color: rgba(194, 225, 245, 0);
	border-right-color: #c2e1f5;
	border-width: 36px;
	margin-top: -36px;
}

.reveal .ball {
    background-color: white;
    border-radius: 15px;
    width: 30px;
    height: 30px;
}

.reveal .arrow-up {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid black;
}

.reveal .arrow-down {
    width: 0;
    height: 0;
    margin-left: auto;
    margin-right: auto;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-top: 50px solid #444;
    margin-top: 20px;
    margin-bottom: 20px;
}

.arrow-right {
    width: 0;
    height: 0;
    border-top: 60px solid transparent;
    border-bottom: 60px solid transparent;
    border-left: 60px solid green;
}

.arrow-left {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right:10px solid blue;
}

.reveal .centre {
  width: 10px;
  display: block; !important
  margin-left: auto; !important
  margin-right: auto; !important
}

.reveal section img {
    vertical-align: middle;
    box-shadow: none;
    border: none;
}

.reveal .anim-enumerate { transition: transform 1s; top: 0; }
.reveal .anim-enumerate * { text-align: center; width: 300px; }

.reveal .anim-enumerate.anim1 { transform: translateX(100px); }
.reveal .anim-enumerate.anim2 { transform: translateX(450px); }
.reveal .anim-enumerate.anim3 { transform: translateX(800px); }
.reveal .anim-enumerate.anim4 { transform: translateX(1100px); }

.reveal .anim-filter { transition: transform 1s; top: 0; }
.reveal .anim-filter * { text-align: center; width: 300px; }

.reveal .anim-filter.anim1 { transform: translateX(38px); }
.reveal .anim-filter.anim2 { transform: translateX(290px); }
.reveal .anim-filter.anim3 { transform: translateX(800px); }
.reveal .anim-filter.anim4 { transform: translateX(1100px); }

/*
 * Custom special backgrounds
 */

.gray-right #bg .right-side { background-color: #222; }
.gray-left #bg .left-side { background-color: #222; }
.front-left #bg .left-side { background-color: #222; opacity: 1; }
.front-right #bg .right-side { background-color: #000; opacity: 0.5; }
.black-right #bg .right-side { background-color: #000; }
.black-left #bg .left-side { background-color: #000; }
.white-right #bg .right-side { background-color: white; }
.white-left #bg .left-side { background-color: white; }
.rich-left #bg .left-side { background-image: url('pic/rich.jpg'); }
.search-right #bg .right-side { background-image: url('pic/search.png'); }
.rich2-left #bg .left-side { background-image: url('pic/rich2.jpg'); }
.live-right #bg .right-side { background-image: url('pic/ableton.jpg'); }
.invert-right #bg .right-side { background-color: #dddddd; opacity: 1; }

.gradient-left #bg .left-side { background: linear-gradient(to right, black, transparent); }

/*
 * Special styles
 */

.reveal .cursive1 { font-family: 'Pinyon Script', cursive; }
.reveal .cursive2 { font-family: 'Sacramento', cursive; }

.reveal .padded { padding: 1em !important; box-sizing: border-box; }
.reveal .left-align { text-align: left; }
.reveal .right-align { text-align: right; }
.reveal .text-dark-shadow * { text-shadow: 0 0 40px #000; }
.reveal .dark-shadow { box-shadow: 0 0 40px #000; }

.reveal .noborder { border: 0; }
.reveal .full { border: 0; margin: 0; padding: 0; }
.reveal .relpos { position: relative; }
.reveal .abspos { position: absolute; }
.reveal .leftpos { left: 0; }
.reveal .toppos { top: 0; }
.reveal .corner { left: 0; top: 0; }
.reveal .leftpos-2 { left: 1em; }
.reveal .fillwidth, .reveal .fill { width: 100%; }
.reveal .fillheight, .reveal .fill { height: 100%; }
.reveal .underline { display:inline-block; border-bottom:solid 0.15em white; }
.reveal tt { font-family: Inconsolata, monospace; }

.reveal .fill {
    margin: 0; padding: 0;
    position: absolute; width:1440px; height:810px; top:0; left:0;
}

.reveal hr {
    height: 5px;
    background-color: #444;
    border: 0;
}

.reveal .slides section .fragment.current-hl {
    opacity: 0.4;
    visibility: visible;
}
.reveal .slides section .fragment.current-hl.current-fragment {
    opacity: 1;
    visibility: visible;
}

.reveal .slides section .fragment.current-animate {
    animation-play-state: paused;
}
.reveal .slides section .fragment.current-animate.current-fragment {
    animation-play-state: running;
}

.reveal .slides section .fragment.current-display {
    opacity: 0;
    visibility: hidden;
    display: none;
}
.reveal .slides section .fragment.current-display.current-fragment {
    opacity: 1;
    visibility: visible;
    display: initial
}

.reveal .slides section .fragment.fragment-display {
    opacity: 0;
    visibility: hidden;
    display: none;
}
.reveal .slides section .fragment.fragment-display.visible {
    opacity: 1;
    visibility: visible;
    display: initial
}

.reveal .invertcolor { -webkit-filter: invert(100%); filter: invert(100%); }
.reveal .invertcolor .fragment.highlight-current-green.current-fragment,
.reveal .invertcolor .fragment.highlight-current-red.current-fragment,
.reveal .invertcolor .fragment.highlight-current-blue.current-fragment
{ -webkit-filter: invert(100%); filter: invert(100%); }

.reveal .slides section  div.fragment.nestcode1.visible {
    background: #224;
    color: #ccf;
}
.reveal .slides section  div.fragment.nestcode2.visible {
    background: #242;
    color: #cfc;
}
.reveal .slides section  div.fragment.nestcode3.visible {
    background: #422;
    color: #fcc;
}

.reveal .slides section div.fragment.nestcode1,
.reveal .slides section div.fragment.nestcode2,
.reveal .slides section div.fragment.nestcode3 {
    display: visible;
    opacity: 1;
    background: none;
    color: transparent;
    padding-left: 2em;
    padding-right: 2em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    margin-top: 0.5em;
    margin-bottom: 0.2em;
    border-radius: 30px;
}

.reveal .slides div.left-side {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    width: 49%;
    margin: 0;
    vertical-align: middle;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.reveal .slides section div.right-side {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    width: 49%;
    margin: 0;
    vertical-align: middle;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.reveal .slides div.both-side {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    vertical-align: middle;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

#bg .left-side,
#bg .right-side {
    display: block;
    position: absolute;
    height: 100%;
    padding: 0;
    width: 50%;
    transition: all 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985) 0s;
}
#bg .right-side {
    right: 0;
}
#bg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.reveal .backgrounds {
    z-index: -1;
}

/*
 * Highlight-js overrides
 */

/*
 * Reveal overrides
 */

.reveal section img {
    background-color: transparent;
    max-width: 100%;
    max-height: 100%;
}

.reveal .slides {}

.reveal .slides::after {
    content: "";
    outline: 1000vmax solid rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
}

.reveal em {
    font-style: normal;
    color: rgb(0, 170, 255);
}

.reveal strong {
    font-style: none;
    font-weight: inherit;
    color: rgb(255, 0, 136);
}

.reveal pre code,
.reveal pre.highlight {
    font-family: Inconsolata, monospace;
    padding: 1.0em;
    line-height: 125%;
    max-height: 90%;
    box-sizing: border-box;
    overflow: hidden;
    font-size: 1.45rem;
}

.reveal pre code.sm,
.reveal pre.highlight.sm {
    font-size: 1.8rem;
}

.reveal pre code.mid,
.reveal pre.highlight.mid {
    font-size: 2.1rem;
}

.reveal pre code.big,
.reveal pre.highlight.big {
    font-size: 2.5rem;
}

.reveal pre {
    font-size: 0.68wem;
    width: 100%;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {}

.reveal p {
    font-size: 0.85em;
    margin-bottom: 40px;
}

.green {
    background: #bfb
}

.red {
    background: #fbb;
}

div .MathJax_Display {
    margin: .7em !important;
}

.reveal .slides section .fragment.highlight-red.visible * {
  color: #ff2c2d; }

.reveal .slides section .fragment.highlight-green.visible * {
  color: #17ff2e; }

.reveal .slides section .fragment.highlight-blue.visible * {
  color: #1b91ff; }

.reveal .slides section .fragment.highlight-current-red.current-fragment * {
  color: #ff2c2d; }

.reveal .slides section .fragment.highlight-current-green.current-fragment * {
  color: #17ff2e; }

.reveal .slides section .fragment.highlight-current-blue.current-fragment * {
  color: #1b91ff; }

.reveal .slides section .fragment.highlight-current-strong,
.reveal .slides section .fragment.highlight-current-em {
  opacity: 1;
  visibility: visible; }

.reveal .slides section .fragment.highlight-current-em.current-fragment {
  color: rgb(0, 170, 255); }
.reveal .slides section .fragment.highlight-current-strong.current-fragment {
  color: rgb(255, 0, 136); }

@keyframes spaghetti-img-anim {
    from { transform: rotate(30deg); }
    to { transform: rotate(-30deg); }
}

@keyframes spaghetti-child-anim {
    from { transform: translate(-0%, -10%); }
    20% { transform: translate(-10%, -10%); }
    40% { transform: translate(-10%, -0%); }
    80% { transform: translate(-0%, -0%); }
    to { transform: translate(-0%, -10%); }
}

@keyframes spaghetti-anim {
    from { transform: scale(2); }
    50% { transform: scale(1.7); }
    to { transform: scale(2); }
}

@keyframes spaghetti-container-anim {
    from { transform: scale(0); }
    to { transform: scale(4); }
}

.spaghetti-container {
    position: absolute;
    left: 45%;
    right: 0%;
    top: 35%;
    bottom: 0;
    transform-origin: 0% 0% 0;
    animation: spaghetti-container-anim 20s 1 forwards;
}

.spaghetti {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    animation: spaghetti-anim 1s infinite alternate;
}

.spaghetti-child {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    animation: spaghetti-child-anim 2s infinite alternate;
}

.spaghetti-img {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    animation: spaghetti-img-anim 0.5s infinite alternate;
}
