/*
Theme Name: Endurance Racing
Version: 1.0
Author: Endurance Racing
*/

html, body {font-family: 'Open Sans', sans-serif; font-weight: 400; background: #fff; color: #000; padding: 0; margin: 0 auto; line-height: 1.3; max-width: 1280px; letter-spacing: -0.02em;}

body a {text-decoration: none; color: #162159;}
body a:visited {text-decoration: none; color: #162159;}
body a:hover {text-decoration: underline; color: #404a80;}

h1, h2, h3, h4, h5, h6, strong {font-size: 100%; font-style: normal; padding: 0; margin: 0; display: inline;}

em {font-style: italic;}

img {
    width: 100%;
    height: auto;
    border: 0;
}

.wrap {
    margin-top: 25px;
    margin-left: 25px;
}


.wrap-menu {
    margin: 20px 25px 20px 25px;
}


.wrap-footer {
    margin-top: 0px;
    margin-left: 25px;
}





#primary-menu {
margin-top: 20px;
text-transform: uppercase;
}



.header-logo:hover, .header-lbn:hover {
position: relative;
top: -1px;
}








.box {
    background: #fff;
    margin: 0 25px 30px 0;
    overflow: hidden;

}




.box-title {

    font-family: 'Roboto', serif;
    font-weight: 900;
    font-size: 1.4em;
    border-bottom: 5px solid #ccc;
    padding-bottom: 5px;
    color: #555;
text-transform: uppercase;
}


.box-title a, .box-title a:visited {
color: #555;
}

.box-title a:hover {
color: #777;
}


.b-0 {
    clear: both;
    display: flex;
    flex-flow: row wrap;
}


.div-center {
    display: -webkit-box;   
	display: -moz-box; 
	display: -ms-flexbox;  
	display: -webkit-flex;
	display: flex;  
    
    -webkit-justify-content: center;
    -moz-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
    -moz-align-items: center;
	align-items: center;
	-webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    flex-wrap: wrap;
}


/* HEADER */

.header-left {
float: left;
background: #eee;
overflow: hidden;
}

.header-center {
float: left;
background: #ccc;
overflow: hidden;
}

.header-right {
float: right;
background: #aaa;
overflow: hidden;
}




/* HOME MAIN NEWS */


.main-news-info {
    font-size: 0.75em;
    margin: 17px 0 15px 0;
    color: #888;
}

.main-news-title {
    font-family: 'Roboto', serif;
    font-weight: 900;
    font-size: 2.2em;
}


.main-news-title-red a, .main-news-title-red a:visited {
    font-family: 'Roboto', serif;
    font-weight: 900;
    font-size: 2.2em;
color: #ff0038;
}

.main-news-title-red a:hover {
    font-family: 'Roboto', serif;
    font-weight: 900;
    font-size: 2.2em;
color: #ff2655;
}



.news-cat {
    text-transform: uppercase;
}

.main-news-excerpt {
    color: #444;
text-align: justify;
}

.news-cat {
    text-transform: uppercase;
}


/* LATEST NEWS BOX */




.latest-news-box {
    clear: both;
    margin: 13px 0 13px 0;
    padding: 0 0 13px 0;
    border-bottom: 1px solid #ccc;
    overflow: hidden;
}



.latest-news-box:first-child {
    clear: both;
    margin: 0 0 13px 0;
    padding: 0 0 13px 0;
    border-bottom: 1px solid #ccc;
    overflow: hidden;
}

.latest-news-box:last-child {
    clear: both;
    margin: 13px 0 0 0;
    padding: 0 0 13px 0;
    overflow: hidden;
}


.latest-news-left {
    float: left;
    width: 62%;
}

.latest-news-right {
    float: right;
    width: 34%;
}





.latest-news-title {
    font-family: 'Roboto', serif;
    font-weight: 900;
}

.latest-news-title-red a, .latest-news-title-red a:visited {
    font-family: 'Roboto', serif;
    font-weight: 900;
color: #ff0038;
}

.latest-news-title-red a:hover {
    font-family: 'Roboto', serif;
    font-weight: 900;
color: #ff2655;
}




.latest-news-info {
    font-size: 0.75em;
    margin: 0 0 9px 0;
    color: #888;
}


.latest-more {
float: right;
    font-size: 0.75em;
text-transform: uppercase;
margin: 2px 0 0 0;
}







/* SMALL NEWS BOX */








.small-news-info {
    font-size: 0.75em;
    margin: 12px 0 9px 0;
    color: #888;
}



.smaller-news-title {
    font-family: 'Roboto', serif;
    font-weight: 900;
    font-size: 1.1em;
    margin: 0 0 10px 0;
}




.smaller-news-title-red a, .smaller-news-title-red a:visited {
    font-family: 'Roboto', serif;
    font-weight: 900;
    font-size: 1.1em;
    margin: 0 0 10px 0;
color: #ff0038;
}


.smaller-news-title-red a:hover {
    font-family: 'Roboto', serif;
    font-weight: 900;
    font-size: 1.1em;
    margin: 0 0 10px 0;
color: #ff2655;
}











/* MENU */



.toggle,
[id^=drop] {
	display: none;

}

/* Giving a background-color to the nav container. */
nav { 
	margin:0;
	padding: 0;
	background-color: #162159;
    font-size: 0.9em;
}

nav a, nav a:hover, nav a:visited {
	color:#fff;
text-decoration: none;
}


/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */

nav:after {
	content:"";
	display:table;
	clear:both;
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
nav ul {
	float: left;
	padding:0;
	margin:0;
	list-style: none;
	position: relative;
	}
	
/* Positioning the navigation items inline */
nav ul li {
	margin: 0px;
	display:inline-block;
	float: left;
	background-color: #162159;
	}

/* Styling the links */
nav a, nav a:hover, nav a:visited {
	display:block;
	padding:0 16px;	
	color:#FFF;
	text-decoration:none;
line-height: 40px;
}


nav ul li ul li:hover { background: #0d64ff; }

/* Background color change on Hover */
nav a:hover { 
	background-color: #ff0038; 
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
	display: none;
	position: absolute; 
	/* has to be the same number as the "line-height" of "nav a" */
	top: 40px; 
}
	
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display:inherit;
}
	
/* Fisrt Tier Dropdown */
nav ul ul li {
	width:220px;
	float:none;
	display:list-item;
	position: relative;
}

/* Second, Third and more Tiers	
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
nav ul ul ul li {
	position: relative;
	top:-40px;
	/* has to be the same number as the "width" of "nav ul ul li" */ 
	left:220px; 
}

	
/* Change ' +' in order to change the Dropdown symbol */
li > a:after { content:  ''; }
li > a:only-child:after { content: ''; }


/* Media Queries
--------------------------------------------- */

@media all and (max-width : 1024px) {



	nav {
		margin: 0;
	}

	/* Hide the navigation menu by default */
	/* Also hide the  */
	.toggle + a,
	.menu {
		display: none;
		width: 100%;
		color:#FFF;
	}

	/* Stylinf the toggle lable */
	.toggle {
		display: block;
		background-color: #162159;
		padding:0px 16px;	
		color:#FFF;
line-height: 40px;
		text-decoration:none;
		border:none;
	}

	.toggle:hover {
		background-color: #15478c;
		color:#FFF;
	}

	/* Display Dropdown when clicked on Parent Lable */
	[id^=drop]:checked + ul {
		display: block;
	}

	/* Change menu item's width to 100% */
	nav ul li {
		display: block;
		width: 100%;
		}

	nav ul ul .toggle,
	nav ul ul a {
		padding: 0 40px;
		color:#fff;
	}

	nav ul ul ul a {
		padding: 0 80px;
	}

	nav a:hover,
 	nav ul ul ul a {
		background-color: #15478c;
		color:#fff;
	}
  
	nav ul li ul li .toggle,
	nav ul ul a,
  nav ul ul ul a{
		padding:0px 16px;	
		color:#FFF;

	}
  
  
	
	nav ul li ul li .toggle,
	nav ul ul a {
		background-color: #00307c; 
	}


	nav ul li ul li ul li .toggle,
	nav ul ul ul a {
		background-color: #00307c; 
	}

	/* Hide Dropdowns by Default */
	nav ul ul {
		float: none;
		position:static;
		color: #ffffff;
		/* has to be the same number as the "line-height" of "nav a" */
	}
		
	/* Hide menus on hover */
	nav ul ul li:hover > ul,
	nav ul li:hover > ul {
		display: none;
	}
		
	/* Fisrt Tier Dropdown */
	nav ul ul li {
		display: block;
		width: 100%;
	}

	nav ul ul ul li {
		position: static;
		/* has to be the same number as the "width" of "nav ul ul li" */ 

	}

}

@media all and (max-width : 640px) {

	nav ul li {
		display:block;
		width: 100%;
	}

}







/* SINGLE */


.single-title {
clear: both;
    font-family: 'Roboto', serif;
    font-weight: 900;
    font-size: 2.2em;
padding: 25px 0 10px 0;
}



.single-content {
clear: both;
text-align: justify;
}



.single-category a, .single-category a:visited {
color: #555;
text-transform: uppercase;
}

.single-category a:hover {
color: #777;
}


.single-date {
    font-size: 0.75em;
    margin: 15px 0 0 0;
    color: #888;
}

.single-date::first-letter {
text-transform: uppercase;
}


.single-tags {
    font-size: 0.75em;
    padding: 15px 0 10px 0;
    color: #888;
}









.alignnone {
margin-bottom: 20px;
}


.aligncenter {
float: center;
margin: 0 0 20px 0;
display: inline;
}

.alignleft {
float: left;
margin: 0 0 20px 0;
display: inline;
}


.alignright {
float: right;
margin: 0 0 20px 0;
display: inline;
}

.wp-caption {
background-color: #eee;
padding-top: 0;
}

.wp-caption img {
margin: 0;
padding: 0;
border: 0 none;
}

.wp-caption-text {
font-size: 0.75em;
color: #444;
padding: 9px 11px 9px 11px;
margin: 0;
}

.gallery-caption {
display: none;
}


.gallery-item {
margin: 0;
padding: 10px 0 0 0;
}






/* CATEGORY */


.cat-title-category, .cat-title-category a, .cat-title-category a:hover, .cat-title-category a:visited {
color: #555;
text-transform: uppercase;
}



.cat-title {
    font-family: 'Roboto', serif;
    font-weight: 900;
    font-size: 1.25em;
padding: 2px 0 0px 0;
overflow: hidden;
}

.cat-title-red a, .cat-title-red a:visited {
    font-family: 'Roboto', serif;
    font-weight: 900;
    font-size: 1.25em;
padding: 2px 0 0px 0;
overflow: hidden;
color: #ff0038;
}

.cat-title-red a:hover {
    font-family: 'Roboto', serif;
    font-weight: 900;
    font-size: 1.25em;
padding: 2px 0 0px 0;
overflow: hidden;
color: #ff2655;
}


.cat-excerpt {
text-align: justify;
color: #444;
font-size: 0.9em;
overflow: hidden;

}

.cat-border {
    margin: 0 0 5px 0;
    padding: 0 0 5px 0;
    border-bottom: 1px solid #ccc;
    overflow: hidden;
clear: both;
}



.cat-category {
color: #888;
margin: 20px 0 10px 0;

}

.cat-category a, .cat-category a:hover, .cat-category a:visited {
font-size: 0.75em;
text-transform: uppercase;
}


.cat-date {
    font-size: 0.75em;
    margin: 15px 0 15px 0;
    color: #888;
display: inline;

}






.cat-image {

float: left;
width: 180px;
height: 100px;
margin: 15px 15px 15px 0;
}



.cat-box1 {
display: inline;
}


.cat-box2 {
display: inline;

}





.paginate {
font-size: 1em;
color: #ccc;
clear: both;

}

.page-numbers {
border: 1px solid #ccc;
padding: 5px 11px 5px 11px;
margin: 12px 4px 5px 0;
float: left;
}




/* SIDEBAR */



.sidebar-latest-news-title {
    font-family: 'Roboto', serif;
    font-weight: 900;
    font-size: 1.1em;
}


.sidebar-latest-news-title-red a, .sidebar-latest-news-title-red a:visited {
    font-family: 'Roboto', serif;
    font-weight: 900;
    font-size: 1.1em;
color: #ff0038;
}


.sidebar-latest-news-title-red a:hover {
    font-family: 'Roboto', serif;
    font-weight: 900;
    font-size: 1.1em;
color: #ff2655;
}






.sidebar-latest-news-box {
    clear: both;
    margin: 13px 0 13px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #ccc;
    overflow: hidden;
}



.sidebar-latest-news-box:first-child {
    clear: both;
    margin: 0 0 13px 0;
    padding: 0 0 13px 0;
    border-bottom: 1px solid #ccc;
    overflow: hidden;
}

.sidebar-latest-news-box:last-child {
    clear: both;
    margin: 13px 0 0 0;
    padding: 0 0 13px 0;
    overflow: hidden;
}



.sidebar-youtube {
margin: 15px 0 0 0;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}
.sidebar-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.youtube-latest-more {
float: right;
    font-size: 0.75em;
text-transform: uppercase;
margin: 15px 0 0 0;
}



/* FOOTER */



.footer-bottom {
border-top: 5px solid #ccc;
text-align: center;
margin-top: 5px;
padding: 20px 25px 0 0;
overflow: hidden;
    font-size: 0.75em;
    color: #888;
}



.footer-img:hover, .footer-img:hover {
position: relative;
top: -1px;
}