/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

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

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio, canvas, iframe, img, svg, video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
  background-color: #111;
  color: #eee
}

a, a:hover, a:active {
  color: #eee;
}

.bbc-orb-wrap {
  background-color: #fff;
  border-bottom: 1px solid #000;
  width: 100%
}

.bbc-extra-wrap {
  background-color: #222;
  border-bottom: 1px solid #000;
  width: 100%;
}

.bbc-orb-bar, .bbc-extra-bar {
  margin: 0 auto;
  padding: 6px 0;
  width: 980px;
  height: 32px
}

.bbc-orb-logo {
  background-image: url(../img/BBC-Extra-Logos_Blue_on_White_Stacked.jpg);
  display: inline-block;
  height: 24px;
  width: 84px;
  text-indent: -9999999px;
  background-size: 82px;
  background-repeat: no-repeat;
}

.bbc-extra-logo {
  background-image: url(../img/BritBox_Mono_03_.png);
  display: inline-block;
  height: 34px;
  width: 117px;
  text-indent: -9999999px;
  background-size: 106px;
  background-repeat: no-repeat;
  /* background-position: 0 -32px; */
  vertical-align: text-bottom;
}

.bbc-content {
  display: flex;
  max-width: 990px;
  margin: 0 auto;
  padding: 0 0 10px 0;
}

.social {
  color: #5bc5f1;
  display: inline-block;
  font-size: 24px;
  margin-left: 6px
}

.bbc-social-bar {
  display: inline-block;
  float: right;
  margin-top: 4px;
}

.signup-bar {
  width: 980px;
  margin: 0 auto
}

.bbc-text {
  width: 350px;
  height: 310px;
  display: inline-block;
  float: left;
  position: absolute;
  z-index: 10;
  padding: 25px;
}

.bbc-text h2 {
  font-size: 26px;
  line-height: 1.4em;
}

/*.bbc-hero-img {display:inline-block;float:right}*/

.bbc-footer {
  width: 100%;
  clear: both;
  text-align: center;
  font-size: .8em;
  padding: 60px 0
}

#slideshow {
  margin-left: 400px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 981px) {
  .bbc-orb-bar, .bbc-extra-bar {
    width: 100%
  }
  .bbc-orb-logo, .bbc-extra-logo {
    margin-left: 10px
  }
  .bbc-social-bar {
    margin-right: 16px
  }
  .signup-bar {
    width: 100%;
  }
  .bbc-text {
    width: 100%;
    padding: 0;
    height: auto;
    margin: 0 auto;
    display: block;
    float: none;
    position: relative;
    text-align: center;
  }
  .bbc-text>div {
    padding: 25px
  }
  /*.bbc-hero-img {margin-top:0;float:none}
    .bbc-hero-img, .bbc-hero-img img {width:100%;height:auto}*/
  .bbc-content {
    flex-direction: column;
    max-width: 900px;
    align-items: center;
    background: black;
  }
  #slideshow {
    margin: 0;
  }
  #slideshow img {
    max-width: 100%;
    height: auto;
  }
}

#newsletter-signup {
  width: 240px;
  height: 152px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient {
  background: rgba(0, 0, 0, .8);
  /* For browsers that do not support gradients */
  /*background: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0)); /*Standard*/
}

/* ==========================================================================
   BBC.com's custom styles
   ========================================================================== */

/*
@font-face{
    font-family:"Gill Sans W01 Light";
    src:url("../fonts/GillSansW01Light.eot?#iefix");
    src:url("../fonts/GillSansW01Light.eot?#iefix") format("eot"),url("../fonts/GillSansW01Light.woff") format("woff"),url("../fonts/GillSansW01Light.ttf") format("truetype"),url("../fonts/GillSansW01Light.svg#GillSansW01Light") format("svg");
}
@font-face{
    font-family:"Gill Sans W01 Medium";
    src:url("../fonts/GillSansW01Medium.eot?#iefix");
    src:url("../fonts/GillSansW01Medium.eot?#iefix") format("eot"),url("../fonts/GillSansW01Medium.woff") format("woff"),url("../fonts/GillSansW01Medium.ttf") format("truetype"),url("../fonts/GillSansW01Medium.svg#GillSansW01Medium") format("svg");
}
@font-face{
    font-family:"Gill Sans W01 Bold";
    src:url("../fonts/GillSansW01Bold.eot?#iefix");
    src:url("../fonts/GillSansW01Bold.eot?#iefix") format("eot"),url("../fonts/GillSansW01Bold.woff") format("woff"),url("../fonts/GillSansW01Bold.ttf") format("truetype"),url("../fonts/GillSansW01Bold.svg#GillSansW01Bold") format("svg");
}
*/

h1, h2 {
  font-family: 'MuseoSansW01-Rounded300';
  /*'Montserrat', sans-serif; "Gill Sans W01 Light"; */
  font-weight: normal;
}

h1 img {
  width: 200px;
  margin-top: -20px;
  margin-left: -7px;
}

body {
  font-size: 14px;
  font-family: Arial, sans-serif;
  line-height: 24px;
}

.signup-bar-wrap {
  width: 100%;
  background: #0396c8;
  /*url(../img/logo-gradient-overlay.png) no-repeat;*/
  min-height: 124px;
  background-position: 15% -60px;
  clear: both;
  margin-top: -7px;
}

.signup-bar {
  margin: 0 auto;
  width: 60%;
  max-width: 900px;
  padding: 10px;
  padding-bottom: 24px;
}

.signup-bar h2 {
  margin: 0;
}

.signup-bar h2 span {
  font-size: .5em;
  display: block;
  line-height: 1.6em;
}

@media (max-width: 599px) {
  h1 {
    font-size: 30px;
    line-height: 1.2em;
  }
  .signup-bar h2 {
    font-size: 21px;
    padding: 26px;
  }
}

@media (max-width: 981px) {
  h1 {
    font-size: 34px
  }
  .signup-bar h2 {
    font-size: 30px;
    line-height: 34px;
    padding: 36px 36px 20px;
    text-align: center;
  }
  #newsletter-signup {
    margin: 0 auto;
    float: none !important;
    padding-top: 0 !important;
  }
  .signup-bar {
    display: block !important;
    width: 80%;
  }
  .bbc-text h2 {
    max-width: 80%;
    margin: 20px auto;
  }
  h1 img {
    display: block;
    margin: 10px -7px;
  }
}

@media (min-width: 770px) {
  h1 {
    font-size: 38px;
  }
  .signup-bar h2 {
    font-size: 30px;
    line-height: 34px;
    padding: 28px 0px;
    /* padding-right: 0; */
    width: 60%;
    order: 2;
  }
  #newsletter-signup {
    /* padding-left:0 !important */
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.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 screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before, .clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

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

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *, *:before, *:after, *:first-letter, *:first-line {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a, a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after, a[href^="javascript:"]:after {
    content: "";
  }
  pre, blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr, img {
    page-break-inside: avoid;
  }
  img {
    max-width: 100% !important;
  }
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
  h2, h3 {
    page-break-after: avoid;
  }
}
