/*! HTML5 Boilerplate v5.2.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 styles ---------------------*/
body
{
        height:100%;
        position: relative;
        min-height: 100%;
        }
/*--------------------- wrapper styles ---------------------*/
#wrapper
{

        margin-left:auto;
        margin-right:auto;
}
/*--------------------- head styles ---------------------*/
#head 
{
		width:100%;
		height:100%;
		}
		
#head-content
{
		max-width:968px;
		margin-left:auto;
        margin-right:auto;
		height:100%;
		padding-top:20px;
		padding-bottom:20px;
		}
#logo
{
	float:left;
	width:36%;
	}
#logo img
{
	width:100%;
	max-width:450px;
	}
#head-info
{
	float:right;
	width:64%;
	text-align:right;
	position:relative;
	font-size:14px;
	}
#socmed-links
{
	width:100%;
	margin-top:-20px;
	}
#sm-icons
{
	float:right;
	margin-left:10px;
	}
#head-contact
{
	width:100%;
	margin-top:17px;
	text-align:right;
	color:#004A90;
	font-size:14px;
	}
/*-----------------nav styles-------------------*/
#menu
{
	width:100%;
	}
#nav ul, #nav ul li
{
		list-style:none;
		padding:0;
		margin:0;
		}
#nav li
{
		float:left;
		}
#nav ul
{
		margin:0px;
		}
#nav {
        color:#004A90;
        overflow:hidden;
        padding:0 0px 0 0px;
		float:right;
		text-align:right;
		margin-top:10px;
		font-weight:100;
}
#nav a {
        font-size:14px;
        color:#ffffff;
		background-color:#004A90;
        text-decoration:none;
        display:block;
        float:left;
		font-weight:300;
        padding:4px 8px 4px 8px;
		margin-left:8px;
}
#nav a:hover {
}	

#nav ul li ul li a{
	display: block;
	color: #ffffff;
	text-decoration: none;
	text-align: left;
    padding:5px 10px 5px 10px;
	border: none;
	float: none;
	background-color:#004A90;
	border-top:1px solid #ffffff;
}

#nav ul li ul li a:hover {
    text-decoration:underline;
}

#nav ul li ul li {
	float:none;
	display: block;
	margin: 0;
	padding: 0;
}

#nav ul li ul {
	position:absolute;
	left:-999em;
	z-index:100;
	margin:28px 0 0 0px;
}
#nav ul li:hover ul, #menu ul li ul:hover {
	left:auto;
}
/*-----slider tyles------*/
#slider
{
	width:100%;
	position:relative;
	background: url("https://insurancelinx.co.uk/dev/images/slider-bg.png");
	background-position:top;
	background-repeat:repeat-x;
	}
#featuredImage
{
	max-height:400px;/*was 372px*/
	max-width:960px;
	margin-left:auto;
	margin-right:auto;
	overflow:hidden;
	position:relative;
	}
#featuredImage img
{
	width:100%;
	height:auto;
	}
#page-title
{
	position: absolute;
    top: 0;
    right: 0;
	bottom:auto !important;
	left:auto !important;
    background: #0F3367 !important;
    color: #ffffff !important;
    opacity: 0.7;
    margin: 0;
    display: block;
    width: auto !important;
    line-height: 1.4em;
	margin-top:20px !important;
	padding: 15px !important;
	padding-left:10px !important;
	padding-right:10px !important;
    word-wrap: break-word;
	text-align:right;
	font-size:25px;
	}
/*-----main content styles-----*/
#main-content 
{
	width:100%;
	height:100%;
	}	
#content
{
	max-width:960px;
	margin-left:auto;
    margin-right:auto;
	height:100%;
	padding-top:20px;
	padding-bottom:20px;
	}
#left-col
{
	width:64%;
	float:left;
	}
#right-col
{
	width:33%;
	float:right;
	}
#right-col img
{
	width:100%;
	height:auto;
	}
#test-rotator
{
	background-color:#C5EEFC;
	width:100%;
	height:auto;
	margin-bottom:20px;
	position:relative;
	padding:20px;
	}
#chainimg
{
	position:absolute;
	top:0;
	right:0;
	margin-top:-10px;
	margin-right:-10px;
	}
/*-----home tab styles-----*/
#tab-content
{
	width:100%;
	position:relative;
	background: url("http://insurancelinx.co.uk/dev/images/slider-bg.png");
	background-position:top;
	background-repeat:repeat-x;
	}
#home-tab
{
	width:32%;
	float:left;
	margin-right:2%;
	margin-bottom:20px;
	position:relative;
	height: 230px;
	}
#home-tab img
{
	width:100%;
	height:auto;
	}
#ht-title
{
	position:absolute;
	top:0;
	padding:10px;
	color: #004A90;
	background-color:rgba(255, 255, 255, 0.8);
	width:100%;
	}
#ht-title p
{
	color: #004A90;
	}
/*-----main content styles-----*/
#footer
{
	width:100%;
	height:100%;
	border-top:1px solid #0079C3;
	}	
#footer-content
{
	max-width:960px;
	margin-left:auto;
    margin-right:auto;
	height:100%;
	padding-top:20px;
	padding-bottom:10px;
	}
/*-------------align styles--------------*/
.aligncenter
{
	text-align:center;
	width:100%;
	}
.alignleft
{
	float:left;
	margin-right:20px;
	margin-right:20px;
	}
.alignright
{
	float:right;
	margin-left:20px;
	margin-left:20px;
	}
/*---------------link styling--------------*/
/* unvisited link */
a:link 
{
		color: #004A90;
		text-decoration: none;
		}
/* visited link */
a:visited 
{
		color: #004A90;
		text-decoration: none;
		}
/* mouse over link */
a:hover 
{
		color: #004A90;
		text-decoration: underline;
		}
/* selected link */
a:active 
{
		color: #004A90;
		text-decoration: none;
		}
/*-----text styles-----*/
p, ul, ul li
{
	color:#545454;
	font-size:15px;
	}
h1, h2, h3, h4, h5, h6
{
	color:#0C3168;
	font-weight:300;
	}
h1
{
	font-size:22px;
	}
h2
{
	font-size:21px;
	}
h3
{
	font-size:20px;
	}
h4
{
	font-size:19px;
	}
h5
{
	font-size:18px;
	}
h6
{
	font-size:17px;
	margin-top: 25px;
	}
/*-----over written plugin styles-----*/
.metaslider .caption-wrap {
    position: absolute;
    top: 0;
    right: 0;
	bottom:auto !important;
	left:auto !important;
    background: #0F3367 !important;
    color: #ffffff !important;
    opacity: 0.7;
    margin: 0;
    display: block;
    width: auto !important;
    line-height: 1.4em;
	margin-top:20px !important;
}
.metaslider .caption {
    padding: 15px !important;
	padding-left:10px !important;
	padding-right:10px !important;
    word-wrap: break-word;
	text-align:right;
	font-size:25px;
}
.testimonial_rotator_wrap {
	margin:0px !important;
    padding: 0px !important;
    overflow: hidden;
    position: relative;
}
h2.testimonial_rotator_slide_title
{
	display:none;
	}
.testimonial_rotator.template-default .testimonial_rotator_author_info {
    font-style: italic;
    line-height: 1.2em;
    padding: 10px 0 10px 15px;
	padding:0px !important;
    border-left: none !important;
    margin: 10px 0;
	font-size:12px !important;
	margin-bottom:0px !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 {
        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;
    }
}
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
/* Smaller than 800px ----------- */
@media only screen and (max-width : 800px) {
#head {
    padding-left:10px;
	padding-right:10px;
}
#logo {
    float: none;
    width: 100%;
	margin-bottom:30px;
}
#head-info {
    float: none;
    width: 100%;
    text-align: center;
    position: relative;
    font-size: 14px;
}
#sm-icons {
    float: left;
    margin-left: 0px;
	margin-right: 10px;
}
#head-contact {
    width: 100%;
    margin-top: 10px;
    text-align: left;
    color: #004A90;
    font-size: 17px;
}
/*-----content styles-----*/
#content {
	padding-left:10px;
	padding-right:10px;
}
#left-col {
    width: 100%;
    float: none;
	margin-bottom:20px;
}
#right-col {
    width: 100%;
    float: none;
}
#home-tab {
    width: 100%;
    float: none;
	max-width:367px;
    margin-right: auto !important;
	margin-left:auto !important;
    margin-bottom: 20px;
}
#callback-link
{
	max-width:317px;
	margin-left:auto;
	margin-right:auto;
	}
#footer-content #left-col
{
	text-align:center !important;
	}
#footer-content #right-col
{
	text-align:center !important;
	}
#footer-content #right-col p
{
	text-align:center !important;
	}
.metaslider .caption {
    padding: 15px !important;
	padding-left:10px !important;
	padding-right:10px !important;
    word-wrap: break-word;
	text-align:right;
	font-size:16px;
	}
#page-title {
    font-size: 16px;
}
#left-col img, #right-col img
{
	max-width:100%;
	height:auto;
	}
/*-----hidden element from mobile-----*/
#menu
{
	display:none;	
	}
}