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

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

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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;
}
b, strong, mark {
  -webkit-font-smoothing: antialiased;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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


/*  ========================================================================== */
/*  @group Common */
/*  ========================================================================== */
    
    h1, h2, h3, h4, h5, h6 {
        font-family: effra,"Open Sans",sans-serif;
        -webkit-font-smoothing: antialiased;
        margin: .3em 0 .2em;
        text-transform: uppercase;
        color: #232323;
        line-height: 1;
        font-weight: 500;
    }
    
    h1 {
        font-size: 28px;
    }
    
    html, body, button, input, select, textarea, .ff-body {
        font-family: "lft-etica", sans-serif;
    }

    a {
        text-decoration: none;
        color: #ab0f15;
    }


/*  ========================================================================== */
/*  @group Layout */
/*  ========================================================================== */

    body {
        background-color: #5b0002;
    }
   
    .l-constrained {
      width: 96%;
      min-width: 0;
      max-width: 1200px;
      margin: 0 auto;
    }
    .l-constrained:before,
    .l-constrained:after {
      content: " ";
      display: table;
    }
    .l-constrained:after {
      clear: both;
    }
    .l-constrained:before,
    .l-constrained:after {
      content: " ";
      display: table;
    }
    .l-constrained:after {
      clear: both;
    }
    
    .main {
        color: #333;
        background-color: #fff;
    }
        .main__inner {
            width: 96%;
            min-width: 0;
            max-width: 1200px;
            margin: 0 auto;
        }

/*  ========================================================================== */
/*  @group Header  */
/*  ========================================================================== */

/*  ========================================================================== */
/*  @group Global Header */
/*  ========================================================================== */
    
    .area-global-header {
      box-sizing: border-box;
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      -o-box-sizing: border-box;
      z-index: 1000;
      width: 100%;
      background-color: #fff;
      box-shadow: 0px 5px 5px 0px rgba(50, 50, 50, 0.25);
      margin: 0;
      top: 0;
      left: 0;
      z-index: 2000;
      position: relative;
    }

    .global-header {
        height: 56px;
        padding: 8px 0;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        -o-box-sizing: border-box;
    }

    .global-header .area-logo {
      float: left;
      width: auto;
    }
    
    .global-header .area-logo .logo{
        display: block;
        border: 0;
        text-indent: -999em;
        overflow: hidden;
        background-color: transparent;
        background-repeat: no-repeat;
        text-align: left;
        direction: ltr;
        width: 240px;
        height: 40px;
        background-image: url(../img/logo-primary.svg);
        margin: 0;
    }
    
/*  ========================================================================== */
/*  @group Footer */
/*  ========================================================================== */
    
    .global-footer {
        background-color: #750002;
        font-size: 14px;
        font-size: 0.875rem;
        line-height: 1.5;
    }
        .area-footer-details {
            font-size: 12px;
            font-size: 0.75rem;
            color: #ffffff;
            background-color: #750002;
            color: #fff;
            padding: 2em 0;
            margin: 0;
        }

        .area-footer-details .unit-footer-charity {
            display: block;
            width: 25%;
            text-align: center;
        }
        .area-footer-details .unit-footer-charity img {
            width: 55px;
            height: auto;
            margin-bottom: .5em;
        }
        .area-footer-details .unit-footer-charity p {
        font-size: 10px;
        font-size: 0.625rem;
        margin: 0;
        }
        .area-footer-details .unit-footer-contact {
            width: 23%;
            margin-right: 2%;
        }
        .unit-footer-contact p {
          margin: 0;
        }
        .unit-footer-contact .title {
            font-size: 16px;
            font-size: 1rem;
            color: #ffffff;
            font-weight: 500;
            -webkit-font-smoothing: antialiased;
        }
        @media screen and (max-width: 30em) {
        .unit-footer-contact {
            text-align: center;
            }
        }

        .area-footer-copyright {
            color: #ffffff;
            background-color: #5b0002;
            clear: both;
            margin: 0;
            padding: 2em 0;
        }

        .area-footer-copyright .unit-copyright {
        font-size: 12px;
        font-size: 0.75rem;
        line-height: 1;
        float: left;
        margin: 0;
        }
        .area-footer-copyright .by-made {
          float: right;
        }

        .by-made {
          display: block;
          border: 0;
          text-indent: -999em;
          overflow: hidden;
          background-color: transparent;
          background-repeat: no-repeat;
          text-align: left;
          direction: ltr;
          background: url(../img/logo-made-inv.png) no-repeat 0 0;
          background-image: none,url(../img/logo-made-inv.svg);
          width: 39px;
          height: 9px;
          opacity: .5;
        }
        .area-footer-details strong {
          color: #fff;
          font-weight: 500;
        }


        @media screen and (min-width: 30em) {
            .area-footer-details .unit {
                float: left;
            }
            .area-footer-details .unit-footer-charity{
                float: right;
            }

        }

        @media screen and (max-width: 30em) {
          
          .area-footer-details .unit {
            clear: both;
            float: none;
            width: 100%;
            margin: 0 0 1em 0;
            padding: 1em 0;
          }
          .area-footer-details .unit-footer-charity {
            text-align: center;
          }
        }


/* @end 
/*  ========================================================================== */
/*  @group Messages */
/*  ========================================================================== */

    .cookies-disabled {
        color: #fff;
        background-color: #9f004a;
        padding: 0.5% 5%;
        display: none;
    }

    .welcome-message {
        text-align: center;
        padding: 3em 0 1em;
    }
    .welcome-message h1 {
        color: #ddd09f;
        margin-top: 0;
        font-size: 41px;
    }

    .welcome-message p {
        color: #fff;
        margin-top: 0.5em
    }


/* @end */
/*  ========================================================================== */
/*  @group Queue Position */
/*  ========================================================================== */

    .queue-position {
        color: #f0f0f0;
        padding: 70px 5% 0 5%;
        text-align: center;
        background-image: url(../img/301.GIF);
        background-repeat: no-repeat;
        background-position: 50% 12%;
        background-size: 45px;
        overflow: hidden;
    }
    .queue-position__context {
        position: relative;
    }

    .queue-position h2 {
        margin: 0 auto 1em auto;
        color: #ddd09f;
        text-transform: none;
    }
    #queue-position-value span:first-child{
        padding-right: 5px;
        font-size: 28px;

    }

    .queue-position p {
        margin: 0;
    }

    #last-checked {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 46%;
        font-size: 14px;
        line-height: 20px;
        display: none; /*TODO: put back in*/
    }

/* @end */
/*  ========================================================================== */
/*  @group Queue Full */
/*  ========================================================================== */

    .page-type-queue-full .main__primary { padding:0 0 1.75em; }

    .area-queue-full {
        margin: 0 auto;
        min-height: 300px;
        padding: 20px 0;
     }
     .area-queue-full--padding {
        margin: 0 auto;
        min-height: 300px;
        padding: 40px 0 20px 0;
     }

     .area-queue-full h2{
        font-size: 20px;

     }

    @media screen and (min-width: 30em) {
        .area-queue-full {
            max-width: 780px;
         }
    }


/* @end */
/*  ========================================================================== */
/*  @group Additional Information */
/*  ========================================================================== */
    
   /* .additional-info {
        text-align: left;
        color: #fff;
    }
        .additional-info ul {
            padding: 0 0 0 1.2em;
            font-size: 14px;
            line-height: 1.3;
        }
        .additional-info li {
            margin-bottom: 1em;
        }
        .additional-info h2 {
            margin-bottom: 0.5em;
            font-size: 18px;
            line-height: 20px;
            color:#FFF;
        }

    @media screen and (min-width: 48em) {
        .additional-info.has-sponsorimage {
            width: 46%;
        }
    }*/

     .additional-info {
        margin: 0 auto;
        margin-bottom: 30px;
        background-color: #f0f0f0;
        padding: 1em;
    }
    .additional-info h3{
        padding: 0;
        color: #232323;
        display: block;
        padding:0;
        margin: 0;
        font-size: 24px;
        margin: .3em 0 .2em;
    }
    .additional-info ul {
        padding: 8px 0 10px 0;
        margin: 0;
        width:90%;
        color:#232323;
        font-size: 15px;
    }
    .additional-info li{
        padding: 6px 0 6px 0;
        list-style: none;
    }
    .additional-info strong{
        color: #232323;
        font-size: 16px;

    }

/* @end */

/*  ========================================================================== */
/*  @group Sponsors */
/*  ========================================================================== */
    
    .sponsors {
        list-style: none;
        margin: 0;
        padding: 1.5em 0;
        text-align: center;
    }
    .area-footer-sponsors { background-color: #8f0002;}
    .area-footer-sponsors .sponsors li.first {
        margin-left: 0;
    }
    .sponsors li {
        display: inline-block;
        margin: 0 3%;
    }
    .sponsors img {
      height: 40px;
      width: auto;
      opacity: 0.9;
    }

    .sponsors li:first-child img { opacity: 1; }

    @media screen and (max-width: 30em) {
      .area-footer-sponsors .sponsors {
        padding: 0;
      }
      .area-footer-sponsors .sponsors li {
        display: block;
        margin: 2em 0;
      }
    }


/* @end */
/*  ========================================================================== */
/*  @group Theme - Media */
/*  ========================================================================== */

    .media-container {
        margin: 0 auto;
        color: #fff;
        font-size: 14px;
    }
    h2.refresh{
        color:#fff;
        display: block;
        text-align: left;
        margin: 0 0 30px 0;
        text-align: center;
        padding: 1.5em 0;
        background: #232323;
        font-size: 16px;
    }
    .media-item{
        width: 48%;
    }
    .media-item iframe{
        width: 100% !important;
        margin: auto !important;

    }
    .media-item-1{
        float: right;
    }
    .media-item-2{
        float: left;
    }
    .media-item-twitter{
        background: #fff;
    }
    .media-item-twitter iframe{
        height: 492px;
    }

    

/*  ========================================================================== */
/*  @group Twitter Feed */
/*  ========================================================================== */

    .area-twitter-feed {
        margin: 0 auto;
    }
    .twitter-feed {
        position: relative;
    }
    .twitter-feed iframe {
        margin: 0 auto;
        display: block;
    }

    @media screen and (min-width: 48em) {
        .area-twitter-feed { 
            width: 25%;
            float: right;
        }
        .twitter-feed {  }
    }

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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

.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;
}

/*
 * 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses 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,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    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;
    }
}


.main__primary {
    background-color: #750002;
    padding-bottom: 2em;
}

.main__secondary {
    padding: 30px 0 2em 0;
    overflow: auto;
}

.main__top {

}

@media screen and (min-width: 48em) {
    .main__waiting {
        width:48.75%;
        margin: 0 auto;
    }
}


.keep-together { display: inline-block; }
#queue-position-value .keep-together { margin-left: 3px; }

@media screen and (min-width: 48em) {
    #queue-position-value .keep-together { margin-left: 0; }
}



@media only screen and (max-width: 767px){

        h1 { font-size: 1.1em; }
        h2 { font-size: 1.1em;  }
        h3 { font-size: 1.1em; }
        h4 { font-size: 0.850em; }

        .welcome-message h1{
            font-size: 26px;
        }
       
        .queue-position h2{
            font-size: 20px;
        }
        .additional-info h3{
            font-size: 16px;
        }
        .additional-info strong{
            font-size: 14px;
        }
        .additional-info ul {
        width:100%;
        }
      
        .media-container{
            margin-top: 10px;

        }
        .media-container h2{
            width: 100%;
            margin-bottom: 15px;
        }
        .media-item{
            width: 100%;
            float: none;
            margin-bottom: 20px;
        }
        .media-item iframe{
            margin: auto;
        }
        .media-item-twitter iframe{
            height: 400px;
        }
    }
@media only screen and (max-width: 480px){

    .welcome-message{
        padding: 2em 0 1em;
    }
    .welcome-message h1{
        font-size: 20px;
    }
    .queue-position {
        padding: 38px 5% 0 5%;
        background-position: 50% 0%;
        background-size: 30px;
    }
    .queue-position h2{
        font-size: 15px;
    }
    #queue-position-value span:first-child{
        padding-right: 2px;
    }
    h2.refresh{
        font-size: 14px;
    }

}

