﻿.breadxcrumb {
	/*centering*/
	display: inline-block;
	box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	border-radius: 5px;
	/*Lets add the numbers for each link using CSS counters. flag is the name of the counter. to be defined using counter-reset in the parent element of the links*/
	counter-reset: flag; 
}

.breadxcrumb a {
	text-decoration: none;
	outline: none;
	display: block;
	float: left;
	font-size: 12px;
	line-height: 36px;
	color: white;
	/*need more margin on the left of links to accomodate the numbers*/
	padding: 0 10px 0 30px;
	background: #666;
	background: linear-gradient(#666, #333);
	position: relative;
}
/*since the first link does not have a triangle before it we can reduce the left padding to make it look consistent with other links*/
.breadxcrumb a:first-child {
	padding-left: 30px;
	border-radius: 5px 0 0 5px; /*to match with the parent's radius*/
}
.breadxcrumb a:first-child:before {
	left: 14px;
}
.breadxcrumb a:last-child {
	border-radius: 0 5px 5px 0; /*this was to prevent glitches on hover*/
	padding-right: 20px;
}

/*hover/active styles*/
.breadxcrumb a.active, .breadxcrumb a:hover{
	background: #333;
	background: linear-gradient(#333, #000);
}
.breadxcrumb a.active:after, .breadxcrumb a:hover:after {
	background: #333;
	background: linear-gradient(135deg, #333, #000);
}

/*adding the arrows for the breadxcrumbs using rotated pseudo elements*/
.breadxcrumb a:after {
	content: '';
	position: absolute;
	top: 0; 
	right: -18px; /*half of square's length*/
	/*same dimension as the line-height of .breadxcrumb a */
	width: 36px; 
	height: 36px;
	/*as you see the rotated square takes a larger height. which makes it tough to position it properly. So we are going to scale it down so that the diagonals become equal to the line-height of the link. We scale it to 70.7% because if square's: 
	length = 1; diagonal = (1^2 + 1^2)^0.5 = 1.414 (pythagoras theorem)
	if diagonal required = 1; length = 1/1.414 = 0.707*/
	transform: scale(0.707) rotate(45deg);
	/*we need to prevent the arrows from getting buried under the next link*/
	z-index: 1;
	/*background same as links but the gradient will be rotated to compensate with the transform applied*/
	background: #474747;
	background: linear-gradient(135deg, #474747, #333);
	/*stylish arrow design using box shadow*/
	box-shadow: 
		2px -2px 0 2px rgba(0, 0, 0, 0.4), 
		3px -3px 0 2px rgba(255, 255, 255, 0.1);
	/*
		5px - for rounded arrows and 
		50px - to prevent hover glitches on the border created using shadows*/
	border-radius: 0 5px 0 50px;
}
/*we dont need an arrow after the last link*/
.breadxcrumb a:last-child:after {
	content: none;
}
/*we will use the :before element to show numbers*/
/*.breadxcrumb a:before {
	content: counter(flag);
	counter-increment: flag;
	
	border-radius: 100%;
	width: 20px;
	height: 20px;
	line-height: 20px;
	margin: 8px 0;
	position: absolute;
	top: 0;
	left: 30px;
	background: #444;
	background: linear-gradient(#444, #222);
	font-weight: bold;
}*/


.flat a, .flat a:after {
	background: white;
	color: black;
	transition: all 0.5s;
}
.flat a:before {
	background: white;
	box-shadow: 0 0 0 1px #ccc;
}
.flat a:hover, .flat a.active, 
.flat a:hover:after, .flat a.active:after{
	background: #FF5A09;
    color: black;
}


/*=======================================================================================================================*/
#breadxcrumbs-one{
  background: #eee;
  border-width: 1px;
  border-style: solid;
  border-color: #f5f5f5 #e5e5e5 #ccc;
  border-radius: 5px;
  box-shadow: 0 0 2px rgba(0,0,0,.2);
  overflow: hidden;
  width: 100%;
}

#breadxcrumbs-one li{
  float: left;
}

#breadxcrumbs-one a{
  padding: .7em 1em .7em 2em;
  float: left;
  text-decoration: none;
  color: #444;
  position: relative;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  background-color: #ddd;
  background-image: linear-gradient(to right, #f5f5f5, #ddd);  
}

#breadxcrumbs-one li:first-child a{
  padding-left: 1em;
  border-radius: 5px 0 0 5px;
}

#breadxcrumbs-one a:hover{
  background: #fff;
}

#breadxcrumbs-one a::after,
#breadxcrumbs-one a::before{
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -1.5em;   
  border-top: 1.5em solid transparent;
  border-bottom: 1.5em solid transparent;
  border-left: 1em solid;
  right: -1em;
}

#breadxcrumbs-one a::after{ 
  z-index: 2;
  border-left-color: #ddd;  
}

#breadxcrumbs-one a::before{
  border-left-color: #ccc;  
  right: -1.1em;
  z-index: 1; 
}

#breadxcrumbs-one a:hover::after{
  border-left-color: #fff;
}

#breadxcrumbs-one .current,
#breadxcrumbs-one .current:hover{
  font-weight: bold;
  background: none;
}

#breadxcrumbs-one .current::after,
#breadxcrumbs-one .current::before{
  content: normal;  
}

#breadxcrumbs-two{
  overflow: hidden;
  width: 100%;
}

#breadxcrumbs-two li{
  float: left;
  margin: 0 .5em 0 1em;
}

#breadxcrumbs-two a{
  background: #ddd;
  padding: .7em 1em;
  float: left;
  text-decoration: none;
  color: #444;
  text-shadow: 0 1px 0 rgba(255,255,255,.5); 
  position: relative;
}

#breadxcrumbs-two a:hover{
  background: #99db76;
}

#breadxcrumbs-two a::before{
  content: "";
  position: absolute;
  top: 50%; 
  margin-top: -1.5em;   
  border-width: 1.5em 0 1.5em 1em;
  border-style: solid;
  border-color: #ddd #ddd #ddd transparent;
  left: -1em;
}

#breadxcrumbs-two a:hover::before{
  border-color: #99db76 #99db76 #99db76 transparent;
}

#breadxcrumbs-two a::after{
  content: "";
  position: absolute;
  top: 50%; 
  margin-top: -1.5em;   
  border-top: 1.5em solid transparent;
  border-bottom: 1.5em solid transparent;
  border-left: 1em solid #ddd;
  right: -1em;
}

#breadxcrumbs-two a:hover::after{
  border-left-color: #99db76;
}

#breadxcrumbs-two .current,
#breadxcrumbs-two .current:hover{
  font-weight: bold;
  background: none;
}

#breadxcrumbs-two .current::after,
#breadxcrumbs-two .current::before{
  content: normal;
}

#breadxcrumbs-three{
  overflow: hidden;
  width: 100%;
}

#breadxcrumbs-three li{
  float: left;
  margin: 0 2em 0 0;
}

#breadxcrumbs-three a{
  padding: .7em 1em .7em 2em;
  float: left;
  text-decoration: none;
  color: #444;
  background: #ddd;  
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  border-radius: .4em 0 0 .4em;  
}

#breadxcrumbs-three a:hover{
  background: #abe0ef;
}

#breadxcrumbs-three a::after{
  background: #ddd;
  content: "";
  height: 2.5em;
  margin-top: -1.25em;
  position: absolute;
  right: -1em;
  top: 50%;
  width: 2.5em;
  z-index: -1; 
  transform: rotate(45deg);
  border-radius: .4em;
}

#breadxcrumbs-three a:hover::after{
  background: #abe0ef;
}

#breadxcrumbs-three .current,
#breadxcrumbs-three .current:hover{
  font-weight: bold;
  background: none;
}

#breadxcrumbs-three .current::after{
  content: normal;
}

#breadxcrumbs-four{
  overflow: hidden;
  width: 100%;
}

#breadxcrumbs-four li{
  float: left;
  margin: 0 .5em 0 1em;
}

#breadxcrumbs-four a{
  background: #F3843E;
  padding: .7em 1em;
  float: left;
  text-decoration: none;
  color: #FFF;
  text-shadow: 0 1px 0 rgba(255,255,255,.5); 
  position: relative;
}

#breadxcrumbs-four a:hover{
  background: #efc9ab;
}

#breadxcrumbs-four a::before,
#breadxcrumbs-four a::after{
  content:'';
  position:absolute;
  top: 0;
  bottom: 0;
  width: 1em;
  background: #F3843E;
  transform: skew(-10deg);  
}

#breadxcrumbs-four a::before{

  left: -.5em;
  border-radius: 5px 0 0 5px;
}

#breadxcrumbs-four a:hover::before{
  background: #efc9ab;
}

#breadxcrumbs-four a::after{
  right: -.5em;   
  border-radius: 0 5px 5px 0;
}

#breadxcrumbs-four a:hover::after{
  background: #efc9ab;
}

#breadxcrumbs-four .current,
#breadxcrumbs-four .current:hover{
  font-weight: bold;
  background: none;
}

#breadxcrumbs-four .current::after,
#breadxcrumbs-four .current::before{
  content: normal;
}

