/** Reset some basic elements */
@import url(https://fonts.googleapis.com/css?family=Michroma);
body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, dl, dd, ol, ul, figure { margin: 0; padding: 0; }

/** Basic styling */
body { font: 400 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; color: #ddd; background-color: #222; -webkit-text-size-adjust: 100%; -webkit-font-feature-settings: "kern" 1; -moz-font-feature-settings: "kern" 1; -o-font-feature-settings: "kern" 1; font-feature-settings: "kern" 1; font-kerning: normal; }

/** Set `margin-bottom` to maintain vertical rhythm */
h1, h2, h3, h4, h5, h6, p, blockquote, pre, ul, ol, dl, figure { margin-bottom: 15px; }

/** Lists */
ul, ol { margin-left: 30px; }

li > ul, li > ol { margin-bottom: 0; }

/** Headings */
h1, h2, h3, h4, h5, h6 { font-weight: 400; }

/** Links */
a { color: #0ff; text-decoration: none; }
a:visited { color: #00b3b3; }
a:hover { color: #ddd; text-decoration: underline; }

/** Clearfix */
.button-group:after, .links:after, .experiment:after { content: ""; display: table; clear: both; }

.clearfix:after { content: ""; display: table; clear: both; }

.hidden { display: none; }

.material-icons { font-size: 16px; }

@keyframes fadeOut { from { opacity: 1; }
  to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; }
  to { opacity: 1; } }
.control { font-size: 11px; }

button { background: rgba(30, 30, 30, 0.85); color: #ddd; border: 1px solid #aaa; }
button:hover { background: rgba(50, 50, 50, 0.85); }

.button-group { border: 1px solid #aaa; }
.button-group button { margin: 0; display: block; float: left; border: none; border-right: inherit; }
.button-group > button:last-child { border-right: none; }

select { background: rgba(30, 30, 30, 0.85); color: #ddd; border: 1px solid #aaa; }

.event-list { position: absolute; right: 0; top: 0; text-align: right; list-style: none; font-size: 11px; color: #666; z-index: -99; margin: 4px 8px; display: flex; flex-direction: column-reverse; }
.event-list .event { animation: fadeOut 2s; animation-timing-function: ease-in; animation-fill-mode: both; }

@media only screen and (max-width: 1200px) { .event-list { display: none; } }
#index { text-align: center; padding-bottom: 4em; font-weight: 300; min-width: 320px; margin: 0 0.5em; }
#index > { max-width: 600px; }
#index article { max-width: 800px; margin-bottom: 6em; }
#index article header { text-align: center; margin-bottom: 2em; }

.page-header { font-family: 'Michroma', sans-serif; margin: 0 auto; display: table; height: 70vh; max-height: 600px; padding-bottom: 1.5em; }
.page-header .logo, .page-header .title h1 { width: 280px; }
.page-header > * { display: table-cell; vertical-align: middle; }
.page-header .logo { position: relative; height: 350px; z-index: -3; }
.page-header .logo canvas { width: 100%; height: 100%; }
.page-header .logo::after { content: ""; display: block; background: url(../images/skull-mask.svg); background-size: 100% 100%; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.page-header .logo::before { content: ""; display: block; position: absolute; top: -4px; left: -4px; width: 100%; height: 100%; border: 8px solid #222; z-index: 10; }
.page-header .title { overflow: hidden; }
.page-header .title div { border-left: 2px solid #ddd; }
.page-header .title h1 { padding: 20px 0 20px 20px; font-size: 24px; opacity: 0; text-align: left; z-index: 99; animation-name: fadeinlogo; animation-duration: 0.8s; animation-delay: 0.4s; animation-fill-mode: forwards; animation-timing-function: ease-out; animation-iteration-count: 1; }

.links { padding: 10px 0; margin-bottom: 4em; }
.links a { color: inherit; display: inline-block; border-left: 1px solid #ddd; font-style: italic; padding: 2px 20px; }
.links a:first-child { border-left: none; }

.experiment { display: block; color: inherit; padding: 8px; text-align: center; }
.experiment:visited { color: inherit; }
.experiment:hover { text-decoration: none; background: rgba(255, 255, 255, 0.1); }
.experiment img { float: left; max-width: 400px; width: 100%; }
.experiment h1 { padding-top: 50px; font-weight: 100; font-size: 40px; margin-bottom: 0.2em; }

.page-footer { clear: both; font-size: 85%; margin: 2em; }

@keyframes fadeinlogo { 0% { opacity: 0; transform: translateX(-100%); }
  70% { opacity: 0; }
  100% { opacity: 1; transform: translateX(0); } }
@media only screen and (max-width: 600px) { .page-header { height: 60vh; } }
@media only screen and (max-height: 800px) { .links { margin-bottom: 1.5em; } }
@media screen and (max-height: 500px) { .page-header .logo, .page-header .title h1 { width: 200px; }
  .page-header .logo { height: 250px; } }
@media screen and (max-width: 700px) { .experiment img { float: none; }
  .experiment h1 { padding-top: 0; } }
@media screen and (max-width: 600px) { .page-header { height: auto; padding-bottom: 3em; }
  .page-header > * { display: inline-block; max-width: 100%; }
  .page-header .title { width: 100%; }
  .page-header .title div { border-left: none; display: inline-block; }
  .page-header .title h1 { width: auto; white-space: nowrap; text-align: center; animation-duration: 0s; opacity: 1; padding: 0; font-size: 20px; line-height: 22px; }
  .page-header .logo { width: 200px; height: 250px; }
  .page-header .logo-wrapper { margin-top: 10%; } }
html, body, .full-container { min-height: 100%; max-width: 100%; }

html, #full { height: 100%; }

.full-container { height: 100%; width: 100%; min-width: 100%; }

.container { margin: 0 auto; max-width: 800px; }

#controls { position: absolute; bottom: 0; left: 0; width: 100%; }

.page-logo { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 40px; width: 100px; background-image: url(../images/small-logo.svg); background-size: 100%; }

.page-logo:hover { background-image: url(../images/small-logo-active.svg); }

.match-view { width: 100%; height: 100%; overflow: hidden; -webkit-user-select: none; user-select: none; }
.match-view canvas { opacity: 0; }
.match-view canvas.ready { animation: fadeIn 1s; animation-fill-mode: forwards; animation-timing-function: ease-in-out; }

.main-view { height: 100%; position: relative; }

.side-panel { box-sizing: border-box; position: relative; height: 100%; max-height: 100%; z-index: 100; float: right; }
.side-panel h1 { font-weight: lighter; }
.side-panel .panel-contents { height: 100%; box-sizing: border-box; border-left: 1px solid #aaa; background: rgba(30, 30, 30, 0.85); display: none; width: 300px; text-align: center; overflow-y: scroll; }
.side-panel.implicit .panel-contents, .side-panel.active .panel-contents { display: block; }

.side-panel.implicit + .main-view, .side-panel.active + .main-view { margin-right: 300px; }

.side-panel > button { width: 40px; height: 40px; text-align: center; font-size: 30px; border: none; background: none; position: absolute; padding: 0; }
.side-panel > button.panel-settings-button { bottom: 20px; left: 0; margin-left: -46px; }
.side-panel > button.panel-close-button { bottom: 20px; right: 0; left: 0; margin-right: 10px; }

.options-pane { padding-top: 0.6em; padding-bottom: 3em; border-bottom: 1px solid #444; }
.options-pane h2 { font-weight: lighter; }

.options-links a { display: block; }

@media only screen and (max-width: 1200px) { .side-panel:not(.active) .panel-contents { display: none; border: none; }
  .side-panel:not(.active) + .main-view { margin-right: 0 !important; } }
@media only screen and (max-width: 500px) { .side-panel.active { float: none; }
  .side-panel.active .panel-contents { width: 100%; border: none; }
  .side-panel.active + .main-view { display: none; } }
#playback-controls { text-align: center; }
#playback-controls > * { display: inline-block; }

#timeline { position: relative; height: 60px; background: rgba(30, 30, 30, 0.85); border-top: 1px solid #aaa; padding: 5px 16px 20px 16px; -webkit-user-select: none; user-select: none; }
#timeline .timeline-content { position: relative; height: 100%; }

.timeline-events { position: absolute; left: 0; top: 0; margin: 0; width: 100%; height: 100%; }

.timeline-event { position: absolute; width: 10px; height: 10px; margin-left: -5px; margin-top: -5px; top: 50%; border-radius: 100px; list-style: none; }

.scrubber { height: 100%; border-left: 1px solid white; }

.timeline-ticks { position: absolute; width: 100%; height: 20px; top: 0; left: 0; bottom: 0; right: 0; margin: auto 0; }

.timeline-label { font-size: 11px; position: absolute; bottom: 0; vertical-align: bottom; }

#view-controls { position: absolute; top: 10px; left: 20px; }

@media only screen and (max-width: 500px) { #view-controls { top: initial; bottom: 20px; } }
.weapon { background: white; }

.weapon-assault-rifle { background: #79e0f3; }

.weapon-ball { background: #f3e279; }

.weapon-banshee { background: #be79f3; }

.weapon-battle-rifle { background: #79f39b; }

.weapon-beam-rifle { background: #f3797b; }

.weapon-binary-rifle { background: #799ef3; }

.weapon-boltshot { background: #c2f379; }

.weapon-carbine { background: #f379e5; }

.weapon-chaingun-turret { background: #79f3dd; }

.weapon-dmr { background: #f3b979; }

.weapon-energy-sword { background: #9679f3; }

.weapon-environmental-explosives { background: #80f379; }

.weapon-flagnum { background: #f379a3; }

.weapon-forerunner-beam-turret { background: #79c7f3; }

.weapon-frag-grenade { background: #eaf379; }

.weapon-fuel-rod-cannon { background: #d779f3; }

.weapon-gauss-turret { background: #79f3b4; }

.weapon-ghost { background: #f39179; }

.weapon-gravity-hammer { background: #7985f3; }

.weapon-halo-2-battle-rifle { background: #a9f379; }

.weapon-halo-one-pistol { background: #f379cc; }

.weapon-hydra-launcher { background: #79f0f3; }

.weapon-incineration-cannon { background: #f3d279; }

.weapon-lightrifle { background: #af79f3; }

.weapon-magnum { background: #79f38b; }

.weapon-mantis { background: #f3798a; }

.weapon-mongoose { background: #79aef3; }

.weapon-needler { background: #d1f379; }

.weapon-phaeton { background: #79f3cd; }

.weapon-phantom-chin-gun { background: #f179f3; }

.weapon-phantom { background: #f179f3; }

.weapon-plasma-caster { background: #f37d79; }

.weapon-plasma-grenade { background: #7999f3; }

.weapon-plasma-pistol { background: #bcf379; }

.weapon-railgun { background: #f379e0; }

.weapon-rocket-launcher { background: #f3bf79; }

.weapon-rocket-pod-turret { background: #9b79f3; }

.weapon-saw { background: #7af379; }

.weapon-scattershot { background: #f3799e; }

.weapon-scorpion { background: #79c1f3; }

.weapon-scorpion-anti-infantry-turret { background: #e5f379; }

.weapon-shade-aa-turret { background: #dd79f3; }

.weapon-shade-plasma-turret { background: #dd79f3; }

.weapon-shotgun { background: #79f3ba; }

.weapon-smg { background: #f39679; }

.weapon-sniper-rifle { background: #797ff3; }

.weapon-spartan { background: #a3f379; }

.weapon-spartan-laser { background: #f379c6; }

.weapon-spirit-chin-gun { background: #79eaf3; }

.weapon-splinter-grenade { background: #f3d879; }

.weapon-splinter-turret { background: #b579f3; }

.weapon-spnkr-rocket-launcher { background: #79f391; }

.weapon-storm-rifle { background: #f37985; }

.weapon-suppressor { background: #79a8f3; }

.weapon-unsc-auto-turret { background: #ccf379; }

.weapon-warthog { background: #79f3d3; }

.weapon-wraith { background: #f3af79; }

.weapon-wraith-anti-infantry-turret { background: #8c79f3; }
