/*! 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: Thomas Rambaud at Dixxit agency
    Copyright: 2017
   ========================================================================== */

@font-face {
  font-family: 'Bebas';
  src: url('fonts/bebasneue_bold-webfont.eot');
  src: url('fonts/bebasneue_bold-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/bebasneue_bold-webfont.woff2') format('woff2'), url('fonts/bebasneue_bold-webfont.woff') format('woff'), url('fonts/bebasneue_bold-webfont.ttf') format('truetype'), url('fonts/bebasneue_bold-webfont.svg#bebas_neuebold') format('svg');
  font-weight: bold;
  font-style: normal;
}

/*
font-family: 'Lato', sans-serif;
font-family: 'Bebas', sans-serif;
*/

#dixxit-av h1, 
#dixxit-av h2, 
#dixxit-av h3,
#dixxit-av p, 
#dixxit-av ul, 
#dixxit-av li {margin:0;padding:0;}

#dixxit-av p, 
#dixxit-av .title, 
#dixxit-av li {font-family: 'Lato', sans-serif;}

#dixxit-av {max-width:722px;margin:auto;font-family: 'Bebas', sans-serif;color:#344050;height:556px;overflow: hidden;background:#fff url(../img/voiture.png) no-repeat bottom right;}

#dixxit-av .head {height:186px;background:#41B6A4;box-sizing: border-box;padding:10px 35px;}
#dixxit-av .head h2 {color:#fff;font-size:60px;line-height: 1.1em;}
#dixxit-av .body {height:370px;background:rgba(255,255,255,0.8);box-sizing: border-box;position: relative;}
#dixxit-av .step {position: relative;}

#dixxit-av .button {border-radius: 10px;background:#294250;font-size:30px;padding:10px 20px;color:#fff;font-size:30px;position: absolute;bottom:30px;right:20px;line-height: 1em;cursor:pointer;}
#dixxit-av .button:hover {background-color: #41b6a6;}

#dixxit-av .valign-container {display: table;width:100%;height: 100%;}
#dixxit-av .valign-in {display: table-cell;vertical-align: middle;}

#dixxit-av .home .head,
#dixxit-av .score .head {background-color: #2E686A;}
#dixxit-av .home .body,
#dixxit-av .score .body {background-color: #41B6A4;}

#dixxit-av .home .head h2 strong {color:#41b6a6;}
#dixxit-av .home img {position: absolute;bottom:30px;left: 20px;}
#dixxit-av .home img + img {top:85px;right: 130px;position: absolute;left: auto;}
#dixxit-av .home img.voiture {z-index: 1;}
#dixxit-av .home .button {font-size:60px;border-radius: 15px;}
#dixxit-av .home .button:hover {background-color:#2E686A;}

#dixxit-av .question h2 {font-size:39px;}
#dixxit-av .question h2 span {color:#294250;}
#dixxit-av .question .text {display:none;}
#dixxit-av .questions {margin-left:0;padding-left: 30px;}
#dixxit-av .questions li {list-style-type: none;font-size:39px;color:#294250;padding-left:80px;margin-left: 0;position: relative;display: block;line-height:1em;min-height: 70px;padding-top:14px;cursor:pointer;margin-bottom:9px;}
#dixxit-av .questions li.twolines {padding-top:0;}
#dixxit-av .questions li:hover {color:#41b6a6;}
#dixxit-av .questions li:hover::before {background-color:#41b6a6;}
#dixxit-av .questions li::before {position: absolute;display: block;text-align: center;color:#fff;background:#294250;top:0;left:0;border-radius: 50%;width:68px;height:68px;font-family: 'Bebas', sans-serif;box-sizing: border-box;font-size:50px;padding-top:13px;}
#dixxit-av .questions li::before {content:'1';}
#dixxit-av .questions li + li::before {content:'2';}
#dixxit-av .questions li + li + li::before {content:'3';}
#dixxit-av .questions li + li + li + li::before {content:'4';}
#dixxit-av .questions li + li + li + li + li::before {content:'5';}

#dixxit-av .text {height:100%;box-sizing: border-box;padding:3%;}
#dixxit-av .text-in {border:solid 3px #294250;border-radius: 10px;height:100%;padding:20px;box-sizing: border-box;}
#dixxit-av .text .button {bottom: 13.5%;right: 7%;}
#dixxit-av .text p {font-size:24px;line-height: 1em;}
#dixxit-av .text .title {text-transform: uppercase;font-family: 'Bebas', sans-serif;font-size: 40px;margin-top:5px;margin-bottom: 15px;}
#dixxit-av .text .title.nomargin {margin-bottom: 0;}
#dixxit-av .bravo .title {color:#a6bc2a;}
#dixxit-av .oups .title {color:#e74229;}
#dixxit-av .score .text-in {background:#fff;}

/* ==========================================================================
   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 (max-width: 700px) {
    #dixxit-av {height:auto;overflow: visible;background-size: 69%;}
    #dixxit-av .head {height: auto;}
    #dixxit-av .head h2 {font-size:32px;padding:10px 0;}
    #dixxit-av .head {padding:10px;}
    #dixxit-av .home img {position: relative;bottom:auto;left:auto;margin: auto;display: block;max-width: 36%;height:auto;padding:20px 0 20px 20px;float:left;}
    #dixxit-av .home img + img {position: relative;bottom:auto;left:auto;margin: auto;display: block;padding:20px 0 0 0;top:0px;max-width: 230px;height:auto;right:20px;float:left;width:45%;margin-left:10%;}
    #dixxit-av .text .title {font-size:30px;}
    #dixxit-av .text p {font-size: 21px;}
    #dixxit-av .button {position: relative;left:auto;right: auto;bottom: auto;font-size:26px;max-width: 70%;margin:auto;display: block;text-align: center;margin-top:20px;}
    #dixxit-av .home .button {font-size:40px;clear:both;}
    #dixxit-av .body {height: auto;padding-bottom: 30px;}
    #dixxit-av .questions {padding-left:10px;}
    #dixxit-av .questions li {font-size:26px;min-height: 48px;padding-left: 65px;padding-top:12px;}
    #dixxit-av .questions li::before {width:50px;height:50px;padding-top:11px;font-size:34px;}
}

@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;
    }
}

@media screen and (max-width : 768px) {
  .step.home .head {
    height: 105px !important;
  }
  .step.question .head {
    max-height: 200px;
  }
  .step.question .head .valign-container {
    height: auto !important;
  }
  #dixxit-av .text .button {
    bottom: 0 !important;
  }
  .oups.text {
    max-height: 410px;
  }
  .bravo.text {
    max-height: 350px;
  }
}