/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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,
button,
input,
select,
textarea {
    color: #222;
}

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * 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 images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
   
   input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

	body.home {
		background-image: url(../img/background.jpg);
		background-position: center top;
		background-repeat: no-repeat;
	}
   
   body.login {
	   background-image: none;
	   background-color: #34373C;
   }
   
   form#login {
	   background-color: #D9DADB;
	   width: 264px;
	   height: 281px;
	   position: absolute;
	   left: 50%;
	   top: 50%;
	   margin-top: -172px;
	   margin-left: -172px;
	   padding: 40px 40px 13px 40px;
	   box-shadow: 0px 0px 25px rgba(0,0,0,0.1);
   }
   
   form#login input {
	   width: 264px;
	   height: 35px;
	   margin-bottom: 17px;
	   border: none;
	   text-align: center;
	   font-size: 14px;
   }
   
   form#login input[type='submit'] {
	   margin: 0 0 17px 0;
	   background-color: #CA2B12;
   }
   
   form#login figure {
	   height: 98px;
	   width: 98px;
	   display: block;
	   background-image: url(../img/logo.gif);
	   margin: 0 auto 17px auto;
   }

   a {
	   outline: none;
   }

   header, footer, #wrapper {
	   width: auto;
	   padding: 0 20px;
	   max-width: 980px;
	   margin: 0 auto;
   }

   /* HEADER */
   
   
   header {
	   overflow: auto;
	   height: 120px;
	   position: relative;
	   margin-top: 26px;
   }
   
   header h2 {
	   display: block;
	   width: 566px;
	   height: 64px;
	   float: left;
	   margin: 44px 0 0 0;
   }
   
   header a#logo {
	   float: right;
	   background-image: url(../img/logo-deliver.svg);
	   height: 74px;
	   width: 74px;
	   text-indent: -9999px;
	   margin: 41px 0 0 0;
   }
   
   header ul.lang {
	   list-style: none;
	   margin: 0;
	   padding: 0;
	   position: absolute;
	   right: 20px;
	   top: 0px;
   }
   
   header ul.lang li {
	   float: left;
	   margin-left: 5px;
   }
   
   header ul.lang li a {
	   color: #000;
	   font-size: 12px;
	   text-transform: uppercase;
   }
   
   header ul.lang li a:hover, header ul.lang li a.active {
	   color: #CA2B12;
   }
   
   header h1 {
	   display: block;
	   margin: 0;
	   background-image: url(../img/optifuel-logo-2017.svg);
	   background-size: cover;
	   width: 146px;
	   height: 100px;
	   text-indent: -9999px;
	   float: left;
	   margin-top: 0px;
   }
   
   .no-svg header h1 {
	   background-image: url(../img/optifuel-logo-2017.png);
   }
   

   /* WRAPPER */
   
   #wrapper {
	   position: relative;
   }
   
   #wrapper img {
	   margin-left: -113px;
	   float: left;
   }
   
   #wrapper section {
	   width: 553px;
	   float: left;
	   margin: 0px 16px 0 0;
   }
   
   #wrapper section h2 {
	   font-family: "din-condensed-web",sans-serif;
	   text-transform: uppercase;
	   font-size:40px;
	   font-weight: 400;
	   margin: 2px 0 12px;
	   line-height: 1;
   }
      
   #wrapper section p {
	   font-size: 15px;
	   line-height: 1.6;
	   color: #000;
	   font-family: Arial, sans-serif;
	   margin: 17px 0 0 0;
	   padding: 25px;
	   background-color: rgba(255,255,255,0.8);
   }
   
   #wrapper section a {
	   height: 33px;
	   color: #FFF;
	   text-transform: uppercase;
	   background-color: #000;
	   width: 222px;
	   text-align: center;
	   text-decoration: none;
	   display: block;
	   font-weight: bold;
	   padding-top: 6px;
	   margin-top: 17px;
	   font-size: 20px;
	   float: left;
	   margin-right: 20px;
	   font-family: "din-condensed-web",sans-serif;
	   text-transform: uppercase;
	   font-weight: 400;
   }
   #wrapper section a:hover, #wrapper section a.schrijf {
	   background-color: #CA2B12;
   }
   
   #wrapper a#logorenault {
	   width: 78px;
	   height: 114px;
	   text-indent: -9999px;
	   background-image: url(../img/renault-trucks.svg);
	   position: absolute;
	   right: 20px;
	   bottom: 0px;
   }
   
   .no-svg #wrapper a#logorenault  {
	   background-image: url(../img/renault-trucks.png);
   }
   
   #wrapper a#logomichelin {
	   width: 146px;
	   height: 50px;
	   background-image: url(../img/michelin.svg);
	   background-position: center bottom;
	   background-repeat: no-repeat;
	   position: absolute;
	   left: 503px;
	   bottom: -1px;
	   font-size: 11px;
	   color: #9EA3A5;
	   text-decoration: none;
	   text-indent: -9999px;
   }
   
   .no-svg #wrapper a#logomichelin {
	   background-image: url(../img/michelin.png);
   }
   
   #wrapper a#logoalcoa {
	   width: 70px;
	   height: 40px;
	   background-image: url(../img/AlcoaWheels.png);
	   background-position: center bottom;
	   background-repeat: no-repeat;
	   position: absolute;
	   left: 503px;
	   bottom: -1px;
	   font-size: 11px;
	   color: #9EA3A5;
	   text-decoration: none;
	   text-indent: -9999px;
   }

   /* FOOTER */
   
   footer {
	   height: 33px;
	   color: #9EA3A5;
	   font-size: 12px;
	   padding-top: 17px;
   }



   /* FANCYBOX */
   
   #wrapperfancy {
	   max-width: 900px;
	   width: auto;
	   margin: 0 auto;
	   font-family: Arial, sans-serif;
	   font-size: 14px;
	   color: #33373B;
	   overflow: auto;
   }
   
   #wrapperfancy h1 {
	   color: #33373B;
	   font-size: 20px;
	   font-family: "din-condensed-web",sans-serif;
	   text-transform: uppercase;
	   font-weight: 400;
   }
   
   #wrapperfancy h1 strong {
	   color: #CA2B12;
	   font-weight: normal;
   }
   
   #wrapperfancy ul {
	   list-style: none;
	   padding: 0;
	   margin: 0 0 10px 0;
	   overflow: auto;
   }
   
   #wrapperfancy ul li {
	   float: left;
	   width: 286px;
	   margin: 10px 20px 10px 0;
	   
   }
   
   #wrapperfancy ul li.third {
	   margin-right: 0px;
   }
   
   #wrapperfancy ul li.session {
	   width: 900px;
	   margin-right: 0;
   }
   
   #wrapperfancy ul li span {
	   float: left;
	   width: 106px;
	   padding-top: 3px;
   }
   
   #wrapperfancy ul li input {
	   width: 160px;
	   float: right;
	   border: none;
	   padding: 0;
	   background-color: #EEEEEE;
	   height: 30px;
	   padding: 0 10px;
   }
   
   #wrapperfancy ul li select[name='country'] {
	   width: 62px;
   }
   
   #wrapperfancy ul li select {
	   height: 30px;
   }
   
   #wrapperfancy ul li input[name='tel'] {
	   width: 80px;
   }

   #wrapperfancy ul li select[name='slot'] {
	   
   }
   
   #wrapperfancy textarea {
	   border: none;
	   padding: 0;
	   width: 772px;
	   height: 80px;
	   padding: 10px;
	   background-color: #EEEEEE;
	   float: right;
   }
   
   #wrapperfancy input[type='submit'] {
	   margin-top: 20px;
	   margin-left: 106px;
	   height: 30px;
	   color: #FFF;
	   background-color: #CA2B12;
	   border: none;
	   text-transform: uppercase;
	   font-size: 15px;
	   font-weight: bold;
	   padding: 0 10px;
   }
   #wrapperfancy input[type='submit']:hover {
	   background-color: #33373B;
   }
   
   #wrapperfancy p.confirm {
	   padding: 10px;
	   background-color: #C9DFAF;
	   color: #2DB200;
	   font-weight: bold;
	   display: inline-block;
   }
   
   
   #wrapperfancy p.error {
	   padding: 10px;
	   background-color: #CA2B12;
	   color: #FFF;
	   font-weight: bold;
	   display: inline-block;
	   
   }
   
   
   /* AMDIN */
   
	body.admin.index #wrapper {
		max-width: 90%;
	}
	
   nav {
	   height: 98px;
	   width: 980px;
	   margin: 0 auto;
	   background-color: #D9DADB;
	   margin-top: 18px;
   }
   body.admin.index nav {
	   width: auto;
   }
   
   nav a#logo {
	   height: 98px;
	   width: 98px;
	   display: block;
	   background-image: url(../img/logo.gif);
	   text-indent: -9999px;
	   float: left;
   }
   
   #wrapper ul#nav {
	   list-style: none;
	   margin: 0;
	   padding: 0;
	   overflow: auto;
   }
   #wrapper ul#nav li {
	   float: left;
	   font-size: 14px;
	   text-transform: uppercase;
	   cursor: pointer;
	   font-weight: bold;
	   margin-top: 43px;
	   margin-left: 21px;
   }
   
   #wrapper ul#nav li a {
	   color: #34373C;
	   text-decoration: none;
   }
   #wrapper ul#nav li a:hover, #wrapper ul#nav li a.active {
	   text-decoration: underline;
   }
   
   #wrapper ul#nav li.logout {
	   float: right;
	   margin-right: 21px;
   }
   
   .admin table {
	   width: 100%;
	   margin-top: 20px;
	   font-size: 14px;
   }
   
   .admin table td, .admin table th {
	   padding: 5px;
   }
   .admin table th {
	   background-color: #CA2B12;
	   color: #FFF;
	   text-transform: uppercase;
	   font-weight: normal;
	   text-align: left;
   }
   
   .admin table td a, .admin table td a:visited {
	   color: #4A4343;
   }
   
   .admin table .even td {
	   background-color: #EEE;
   }
   
   .admin input[type='submit'], .admindetail input[type='submit'] {
	   color: #FFFFFF;
	    display: block;
	    font-size: 14px;
	    font-weight: bold;
	    height: 30px;
	    margin-top: 17px;
	    text-align: center;
	    text-decoration: none;
	    text-transform: uppercase;
	    width: 180px;
	    background-color: #4A4343;
	    border: none;
   }
   
   .admindetail input[type='submit'] {
	   background-color: #CA2B12;
   }
   
   .admindetail table {
	   font-size: 14px;
	   width: 100%;
	   border-spacing: 5px;
	   border-collapse: separate;
	   margin-top: 20px;
   }
   
   .admindetail th, .admindetail td {
	   padding: 5px;
   }
   
   .admindetail td {
	   background-color: #EEE;
   }
   
   .admindetail th {
	   background-color: #4A4343;
	   color: #FFF;
	   width: 250px;
	   text-align: left;
	   font-weight: normal;
   }
   
   .admindetail textarea {
	   width: 400px;
	   height: 150px;
   }


/* ==========================================================================
   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.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width : 899px) {
	#wrapperfancy ul li {
		width: 100%;
		margin:  10px 0;
	}
	#wrapperfancy ul li input {
		float: none;	
	}
	#wrapperfancy input[type='submit'] {
		float: left;
		margin-left: 0;
	}
	#wrapperfancy ul li.session {
		width: 100%;
	}
}

@media only screen and (max-width: 780px) {
	#wrapper a#logomichelin {
		left: 20px;
		bottom: -60px;
	}
}

@media only screen and (max-width: 694px) {
	body.home {
		background-attachment: fixed;
	}
    #wrapper section {
	    width: 100%;
	    margin: 0;
    }
    
    #wrapper section a {
	    width: 100%;
    }
    
    #wrapper a#logorenault {
	    position: static;
	    display: block;
	    float: right;
	    margin-top: 20px;
	    margin-bottom: 20px;
    }
    
    figure#background {
	    position: fixed;
	    height: 100%;
	    width: 100%;
	    margin: 0;
	    top: 0px;
	    left: 0px;
	    background-image: url(../img/background.jpg);
		background-position: center top;
		background-repeat: no-repeat;
		z-index: -1;
    }
    
}

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