/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */


/* =============================================================================
   HTML5 element display
   ========================================================================== */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio[controls], canvas, video { display: inline-block; *display: inline; *zoom: 1; }


/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 *    http://clagnut.com/blog/348/#c790
 * 2. Force vertical scrollbar in non-IE
 * 3. Remove Android and iOS tap highlight color to prevent entire container being highlighted
 *    www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/
 * 4. Prevent iOS text size adjust on device orientation change, without disabling user zoom
 *    www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
 */

html { font-size: 100%; overflow-y: scroll; -webkit-overflow-scrolling: touch; -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

body { margin: 0; font-size: 13px; line-height: 1.231; }

body, button, input, select, textarea { font-family: sans-serif; color: #222; }

/* 
 * These selection declarations have to be separate
 * No text-shadow: twitter.com/miketaylr/status/12228805301
 * Also: hot pink!
 */

::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }


/* =============================================================================
   Links
   ========================================================================== */

a { color: #00e; }
a:visited { color: #551a8b; }
a:focus { outline: thin dotted; }

/* Improve readability when focused and hovered in all browsers: people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active { outline: 0; }


/* =============================================================================
   Typography
   ========================================================================== */

abbr[title] { border-bottom: 1px dotted; }

b, strong { font-weight: bold; }

blockquote { margin: 1em 40px; }

dfn { font-style: italic; }

hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }

ins { background: #ff9; color: #000; text-decoration: none; }

mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }

/* Redeclare monospace font family: en.wikipedia.org/wiki/User:Davidgothberg/Test59 */
pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }

/* Improve readability of pre-formatted text in all browsers */
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
q:before, q:after { content: ""; content: none; }

small { font-size: 85%; }

/* Position subscript and superscript content without affecting line-height: gist.github.com/413930 */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }


/* =============================================================================
   Lists
   ========================================================================== */

ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; margin: 0; padding: 0; }


/* =============================================================================
   Embedded content
   ========================================================================== */

/*
 * Improve image quality when scaled in IE7
 * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
 */

img { border: 0; -ms-interpolation-mode: bicubic; }

/*
 * Correct overflow displayed oddly in IE9 
 */

svg:not(:root) {
    overflow: hidden;
}


/* =============================================================================
   Figures
   ========================================================================== */

figure { margin: 0; }


/* =============================================================================
   Forms
   ========================================================================== */

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }

/* 
 * 1. Correct color not inheriting in IE6/7/8/9 
 * 2. Correct alignment displayed oddly in IE6/7 
 */

legend { border: 0; *margin-left: -7px; padding: 0; }

/* Indicate that 'label' will shift focus to the associated form element */
label { cursor: pointer; }

/*
 * 1. Correct font-size not inheriting in all browsers
 * 2. Remove margins in FF3/4 S5 Chrome
 * 3. Define consistent vertical alignment display in all browsers
 */

button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }

/*
 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
 * 2. Correct inner spacing displayed oddly in IE6/7
 */

button, input { line-height: normal; *overflow: visible; }

/*
 * 1. Display hand cursor for clickable form elements
 * 2. Allow styling of clickable form elements in iOS
 */

button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }

/*
 * Consistent box sizing and appearance
 */

input[type="checkbox"], input[type="radio"] { box-sizing: border-box; }
input[type="search"] { -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }

/* 
 * Remove inner padding and border in FF3/4
 * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ 
 */

button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }

/* Remove default vertical scrollbar in IE6/7/8/9 */
textarea { overflow: auto; vertical-align: top; }

/* Colors for form validity */
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }


/* =============================================================================
   Tables
   ========================================================================== */

table { border-collapse: collapse; border-spacing: 0; }


/* =============================================================================
   Primary styles
   Author: mderting
   ========================================================================== */


ul.menu { list-style: none; margin: 0; padding: 0; }
.nav-utility ul { overflow: hidden; }
.nav-utility li { float: left; }

/* MEDIA ELEMENTS 
-------------------- */
.hmedia { margin: 5px; }
.hmedia .polyfill-video { width: 100% !important; height: 100% !important; }
.hmedia .polyfill-video object { display: block; width: 100%; height: 100%; }
.hmedia video { width: 100%; height: auto; }
.hmedia footer { margin: 0 8px; }
.hmedia footer h2 { font-size: 1em; }
.hmedia footer p.description { margin: 0; }
.hmedia .media-info dt { clear: both; float: left; width: 9em; }
.hmedia .media-info dd { margin-left: 9.5em; }
.hmedia audio { height: 30px; }

.mediaplayer { overflow: hidden; position: relative; }

/* Media State */
.jme-default-media-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; background: url("../img/loader.gif") no-repeat -9999px -9999px; opacity: 0.7;
}
.state-playing .jme-default-media-overlay { /* display: none; */ }
.state-waiting .jme-default-media-overlay { background-position: center; }
.state-idle .jme-default-media-overlay,
.state-ended .jme-default-media-overlay { background: url("../img/play-overlay.png") center no-repeat; }

/* Control Bar */
.jme-default-control-bar,
.jme-minimal-control-bar { overflow: hidden; position: absolute; left: 0; bottom: 0; width: 100%; height: 3em; }

.media-controls { height: 3em; max-width: 980px; margin: 0 auto; padding: 0; }

/* State Transitions */
.media-controls,
.captions-display { -moz-transition: all 400ms; -webkit-transition: all 400ms; -ms-transition: all 400ms; -o-transition: all 400ms; transition: all 400ms; }
.mediaplayer.state-playing .media-controls/*,
.mediaplayer.state-idle .media-controls */ { -moz-transform: translate(0, 100%); -webkit-transform: translate(0, 100%); -ms-transform: translate(0, 100%); -o-transform: translate(0, 100%); transform: translate(0, 100%); opacity: 0; }
.no-opacity .mediaplayer.state-playing .media-controls,
.no-opacity .mediaplayer.state-idle .media-controls { display: none; }
.mediaplayer.useractive .media-controls { -moz-transform: translate(0, 0); -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); -o-transform: translate(0, 0); transform: translate(0, 0); opacity: 1; }
.no-opacity .mediaplayer.useractive .media-controls { display: block; }
.mediaplayer.useractive .captions-display { margin-bottom: 3em; }

.media-controls a.ui-slider-handle .ui-btn-inner { height: 0.5em; } /* TODO: Create improvement issue for jQuery Mobile so border-radius looks correct (i.e. not square across top). */

/* Displays */
.media-controls .currenttime-display,
.media-controls .duration-display { margin: 0.9em 8px 0.9em 0; }

/* Minimal Control Bar */
.jme-minimal-control-bar .media-bar .fullscreen-toggle { float: right; }
.jme-minimal-control-bar .media-controls .currenttime-display,
.jme-minimal-control-bar .media-controls .duration-display,
.jme-minimal-control-bar .media-controls .volume-slider,
.jme-minimal-control-bar .media-controls .time-slider { display: none; } /* Don't display some controls to conserve space. */
.player-fullscreen .jme-minimal-control-bar .media-controls .currenttime-display,
.player-fullscreen .jme-minimal-control-bar .media-controls .duration-display,
.player-fullscreen .jme-minimal-control-bar .media-controls .volume-slider,
.player-fullscreen .jme-minimal-control-bar .media-controls .time-slider { display: block; } /* Display all controls when in fullscreen mode. */

/* Additions for poster-display plugin.
 * NOTE: Rules to vertically center poster image inspired by Bruno Fassino.
 * @see http://www.brunildo.org/test/img_center.html
 */
.poster-display { position: absolute; top: 0; left: 0; width: 100%; height: 100%; vertical-align: middle; display: none; }
.opacity .poster-display {display: table-cell; opacity: 0; -moz-transition: all 900ms; -webkit-transition: all 900ms; -ms-transition: all 900ms; -o-transition: all 900ms; transition: all 900ms;}
.state-ended .poster-display {display: block; display: table-cell; opacity: 1;}
.poster-display * { vertical-align: middle; }
.poster-display span { display: inline-block; height: 100%; }
.poster-display .poster-image { width: 100%; height: 100%; }
.player-fullscreen .poster-display .poster-image { display: inline-block; height: auto; }

/* Additions for captions plugin */
.captions-display { position: absolute; bottom: 0; z-index: 0; width: 100%; height: 100%; margin-bottom: 0; color: #fff; text-align: center; text-shadow: 0 1px 0 #000; } /* NOTE: Captionator adds inline styles to the generated div.captionator-cue-canvas, one of which is z-index: 100;. We need to set z-index: 0; here to force the Captionator generated elements to stack within this element, without effecting the stacking order of siblings of .captions-display. -mderting */

/* Media Bar */
.media-controls .media-bar  { overflow: hidden; position: relative; height: 2em; min-height: 2em; margin: 0; padding: 0; }
html > body .media-controls .media-bar { height: auto; background-color: transparent; }
.media-controls .media-bar > * { float: left; }


/* Volume Slider */
.media-controls .volume-controls { overflow: hidden; display: inline-block; margin-right: 8px; zoom: 1; }
.media-controls .volume-controls > * { float: left; }
.media-controls .volume-slider { top: 0; width: 30px; height: 30px; margin: 3px; background: transparent url("../img/player-sprites.png") -460px 50% no-repeat; cursor: pointer; }
.media-controls .volume-slider .ui-slider-range { top: 0; left: 0; height: 100%; min-width: 1px; min-height: 1px; background: transparent url("../img/player-sprites.png") -420px 50% no-repeat; }
.media-controls .volume-slider .ui-slider-handle { width: 1px; height: 100%; margin-left: 0; background: none; } /* Overrides JQM a.ui-slider-handle { width: 28px; height: 28px; margin-left: -15px; } */
.media-controls .volume-slider .ui-slider-handle.ui-state-focus,
.media-controls .volume-slider .ui-slider-handle.ui-state-active { outline: thin dotted; }


/* Timeline Slider */
.media-controls .time-slider { margin: 0.7em 15px 0 20px; border-radius: .6em; } /* Inherits rules from JQM div.ui-slider. Overrides div.ui-slider { margin: 0 2% 0 20px; } */
.media-controls .ui-slider-disabled { background: #111; }
.media-controls .time-slider .ui-slider-handle { 
    z-index: 9; 
    outline: medium none; 
    border: 1px solid #222; 
    color: #fff; 
    font-weight: bold; 
    text-shadow: 0 -1px 1px #000; 
    background: #333333;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#555), to(#333)); /* Saf4+, Chrome */
    background-image: -webkit-linear-gradient(#555,#333); /* Chrome 10+, Saf5.1+ */
    background-image: -moz-linear-gradient(#555,#333 ); /* FF3.6 */
    background-image: -ms-linear-gradient(#555,#333 ); /* IE10 */
    background-image: -o-linear-gradient(#555,#333 ); /* Opera 11.10+ */
    background-image: linear-gradient(#555,#333 );
}
.media-controls .time-slider .ui-slider-handle.ui-state-focus,
.media-controls .time-slider .ui-slider-handle.ui-state-active { -moz-box-shadow: 0px 0px 12px #387bbe; -webkit-box-shadow: 0px 0px 12px #387bbe; box-shadow: 0px 0px 12px #387bbe; } /* FIXME: Duplicates JQM rules defined for .ui-btn:focus, .ui-focus. Investigate why .ui-btn:focus isn't being applied. Once fixed, we should be able to remove these rules. -mderting */
.media-controls .time-slider .ui-slider-range { position: absolute; top: 0; left: 0; height: 100%; border-radius: .6em; background: #e1e1e1; cursor: pointer; }

/* Buffer Progress Bar */
.media-controls .buffer-progress { height: 100%; min-width: 40px; }
.media-controls .buffer-progress .buffer-progress-indicator { height: 100%; border-radius: .6em; background: rgba(51,102,153,0.8); cursor: pointer; }

/* Fullscreen */
html.has-media-fullscreen,
body.has-media-fullscreen { overflow: hidden; }
.player-fullscreen { position: fixed !important; z-index: 999999; background: #000; }
.player-fullscreen,
.media-fullscreen { top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important; }
.media-fullscreen { position: relative; }

/* Toggles */
.toggle-controlgroup { margin: 0.2em 0 0.2em 8px; }
.toggle-controlgroup,
.toggle-controlgroup fieldset.ui-controlgroup { float: left; }
.toggle-control { overflow: hidden; }
.toggle-control fieldset.ui-controlgroup { margin: 0; } /* Overrides JQM fieldset.ui-controlgroup { margin: 0.5em 0 1em; } */
.toggle-control .ui-checkbox label .ui-btn-inner { height: 1em; padding: .6em 0px; } /* Overrides JQM .ui-btn-inner { padding: .6em 25px; } */
.toggle-control .ui-checkbox label .ui-btn-text { display: block; width: 44px; height:1em; }
.toggle-control .ui-checkbox label .jme-icon { display: block; position: absolute;
top: 50%; left: 10px; width: 24px; height: 24px; margin-top: -12px; }
.toggle-control .ui-checkbox label .jme-text { position: absolute; left: -9999px; }
.toggle-control span.ui-slider-label,
.toggle-control .ui-checkbox label .jme-icon { background-image: url(../img/player-sprites.png); background-repeat: no-repeat; background-size: 537px 24px; -moz-background-size: 537px 24px; -o-background-size: 537px 24px; -webkit-background-size: 537px 24px; text-indent: -9999em; }
/* play / pause */
.toggle-control .ui-checkbox label.play-toggle.ui-checkbox-off .jme-icon { background-position: 0 50%; }
.toggle-control .ui-checkbox label.play-toggle.ui-checkbox-on .jme-icon { background-position: -47px 50%; }
/* captions on / captions off */
.toggle-control .ui-checkbox label.captions-toggle.ui-checkbox-off .jme-icon { background-position: -140px 50%; }
.toggle-control .ui-checkbox label.captions-toggle.ui-checkbox-on .jme-icon { background-position: -187px 50%; }
/* mute / unmute */
.toggle-control .ui-checkbox label.mute-toggle.ui-checkbox-off .jme-icon { background-position: -233px 50%; }
.toggle-control .ui-checkbox label.mute-toggle.ui-checkbox-on .jme-icon { background-position: -280px 50%; }

/* fullscreen */
.fullscreen-toggle { width: 66px; margin-right: 8px; }
.fullscreen-toggle span.ui-slider-label-a { background-position: -273px 50%; background-size: 403px 18px; -moz-background-size: 403px 18px; -o-background-size: 403px 18px; -webkit-background-size: 403px 18px; }
.fullscreen-toggle span.ui-slider-label-b { background-position: -240px 50%; background-size: 403px 18px; -moz-background-size: 403px 18px; -o-background-size: 403px 18px; -webkit-background-size: 403px 18px; }
.media-controls .fullscreen-toggle .ui-slider-handle { outline: medium none; }
.media-controls .fullscreen-toggle .ui-slider-handle:focus,
.media-controls .fullscreen-toggle .ui-slider-handle:active { -moz-box-shadow: 0px 0px 12px #387bbe; -webkit-box-shadow: 0px 0px 12px #387bbe; box-shadow: 0px 0px 12px #387bbe; } /* FIXME: Duplicates JQM rules defined for .ui-btn:focus, .ui-focus. Investigate why .ui-btn:focus isn't being applied. Once fixed, we should be able to remove these rules. -mderting */




/* =============================================================================
   Non-semantic helper classes
   Please define your styles before this section.
   ========================================================================== */

/* For image replacement */
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir br { display: none; }

/* Hide for both screenreaders and browsers:
   css-discuss.incutio.com/wiki/Screenreader_Visibility */
.hidden { display: none; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders: by Jon Neal.
  www.webaim.org/techniques/css/invisiblecontent/  &  j.mp/visuallyhidden */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: drupal.org/node/897638 */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }

/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }

/* Contain floats: nicolasgallagher.com/micro-clearfix-hack/ */ 
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }



/* =============================================================================
   PLACEHOLDER Media Queries for Responsive Design.
   These override the primary ('mobile first') styles
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 480px) {
  /* Style adjustments for viewports 480px and over go here */

}

@media only screen and (min-width: 768px) {
  /* Style adjustments for viewports 768px and over go here */
  #wrapper.ui-body-c { background: #040404; } /* Overrides JQM */
}

@media only screen and (min-width: 980px) {
  /* Style adjustments for viewports 980px and over go here */
  
  #wrapper-2 { width: 940px; margin: 0 auto; border: 2px solid #636363; }
  .mediaplayer { width: 930px; height: 523px; }
}


/* =============================================================================
   Print styles.
   Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */
 
@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: sanbeiji.com/archives/953 */
  a, a:visited { color: #444 !important; text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3{ page-break-after: avoid; }
}
