/* Reset */
.ribbonWrap 
{
	position:relative;
	z-index: 1 
}

/* Basic Colours */
.rw-animate > span:first-child
{
	position: relative;
	padding: 14px;
	background: #fff; /* Ribbon front colour */
	color: #000; /* ribbon text colour */
	display: block;
	margin-bottom: 0;
	border-radius: 0 3px 3px 0;
	box-shadow: 0px 1px rgba(0,0,0,0.4);
	overflow: visible;
	
}


.rw-back
{
	border-color: #000; /* Ribbon back colour */
}

/* Ribbon Front */
.rw-animate
{
	margin: 0 -10px 0 -10px;
	padding-bottom: 10px;
	display: inline-block;
	zoom:1; *display: inline; /* IE7 fix for inline-block. IE6 is dead to me */
	position: relative;
	overflow:hidden;

}

.rw-right
{
	position: absolute;
	right: 0;
}


.rw-down
{
	padding-bottom: 1px !important;
	padding-top: 10px !important;
}


.rw-top,
.rw-bottom
{
	position: absolute;
}


.rw-top
{
	top: 10px;
}

.rw-bottom
{
	bottom: 10px;
}



.rw-right > span:first-child
{
	border-radius: 3px 0 0 3px; 
}

.rw-rounded > span:first-child 
{
	border-radius: 0 30px 30px 0;
}

.rw-right.rw-rounded > span:first-child
{
	border-radius: 30px 0 0 30px;
}


.rw-player
{
	width: 100%;
	margin: 0;
	padding: 0 20px 10px 0;
	margin-left: -10px;
}

.rw-player.rw-right
{
	padding: 0 0 10px 20px;
	margin-left: 0;
	margin-right: -10px;
}

.rw-player > span:first-child
{
	display:block;
	margin-left: -20px;
}

.rw-player.rw-right > span:first-child
{
	margin-left: 0;
	margin-right: -20px;
}

.rw-narrow > span:first-child
{
	padding: 10px 14px;
}

.rw-animate > span:first-child
{
	left: -100%;
}

.rw-animate.rw-right > span:first-child
{
	left: 100%;
	
}


.rw-static.rw-player > span:first-child
{
	margin-left: 0;
	margin-right: -20px;
}


.ribbonWrap:hover .rw-player.rw-right > span:first-child
{
	margin-right: 0;
	margin-left: -20px;
}


.ribbonWrap:hover > .rw-animate > span:first-child,
.ribbonWrap:hover .rw-player > span:first-child
{
	left: 0;
}


.ribbonWrap:hover > .rw-animate.rw-right > span:first-child,
.ribbonWrap:hover .rw-player.rw-right > span:first-child
{
	right: 0;
}


/* Ribbon Back */

.rw-back
{
	display: block;
	width: 0;
	height: 100%;
	position: absolute;
	z-index: -1;
}



.rw-back:before
{
	left: -10px;
    bottom: -1px;
	top: 10px;
}


.rw-back:after
{
	top: 0;
	left: 0;
	bottom: 9px;
}


.rw-down > .rw-back:after
{
	left: -10px;
}

.rw-right > .rw-back:after
{
	left: auto;
	right: 0;
	bottom: 11px;
}


.rw-down > .rw-back:before
{
	left: 0;
	bottom: 1px;
}

.rw-right.rw-down > .rw-back:before
{
	left: auto;
	right: 0;
}

.rw-right.rw-down > .rw-back:after
{
	left: auto;
	right: -10px;
}


.rw-animate > .rw-back
{
	bottom: -10px;
	left: 10px;
}

.rw-animate.rw-down > .rw-back
{
	bottom: 10px;
	left: 10px;
}
.rw-animate.rw-right > .rw-back
{
	right: 10px;
	left: auto;
}


.ribbonWrap:hover > .rw-animate.rw-right > .rw-back,
.ribbonWrap:hover .rw-player.rw-right > .rw-back
{
	right: 0;
	left: auto;
}
.ribbonWrap:hover > .rw-animate > .rw-back,
.ribbonWrap:hover .rw-player > .rw-back
{
	bottom: 0;
	left: 0;
}

.rw-back:before,
.rw-back:after
{
	content: "";
	display: block;
	border-width: 10px;
	border-style: solid;
	position: absolute;
	width: 0;
}

.rw-back:before,
.rw-right.rw-down > .rw-back:before
{
	border-top-color: transparent;
	border-left-color: transparent;
	border-bottom-color: transparent;
	border-right-color: inherit;
}

.rw-down > .rw-back:before,
.rw-right > .rw-back:before
{
	border-top-color: transparent;
	border-right-color: transparent;
	border-bottom-color: transparent;
	border-left-color: inherit;
}

.rw-back:after,
.rw-right.rw-down > .rw-back:after
{
	border-top-color: transparent;
	border-right-color: transparent;
	border-bottom-color: transparent;
	border-left-color: inherit;
}

.rw-down > .rw-back:after,
.rw-right > .rw-back:after
{
	border-top-color: transparent;
	border-left-color: transparent;
	border-bottom-color: transparent;
	border-right-color: inherit;
	
}

/* Ribbon Transitions */

.rw-animate > span:first-child,
.ribbonWrap:hover > .rw-animate span:first-child,
.ribbonWrap:hover .rw-player span:first-child,
.rw-animate .rw-back
{
  -webkit-transition-property: all;
     -moz-transition-property: all;
      -ms-transition-property: all;
       -o-transition-property: all;
          transition-property: all;
	-webkit-transition-duration: 0.4s;
	   -moz-transition-duration: 0.4s;
	     -o-transition-duration: 0.4s;
	    -ms-transition-duration: 0.4s;
	        transition-duration: 0.4s;
	
			
}


.rw-animate > .rw-back
{
		-webkit-transition-delay: 0.4s;
		   -moz-transition-delay: 0.4s;
			 -o-transition-delay: 0.4s;
			-ie-transition-delay: 0.4s;
				transition-delay: 0.4s;
}


.ribbonWrap:hover > .rw-animate > .rw-back,
.ribbonWrap:hover .rw-player > .rw-back
{

		-webkit-transition-delay: 0s;
		   -moz-transition-delay: 0s;
			 -o-transition-delay: 0s;
			-ie-transition-delay: 0s;
				transition-delay: 0s;
	
}
.ribbonWrap:hover  > .rw-animate > span:first-child,
.ribbonWrap:hover  .rw-player > span:first-child
{
	-webkit-transition-delay: 0.3s;
	   -moz-transition-delay: 0.3s;
	     -o-transition-delay: 0.3s;
	    -ie-transition-delay: 0.3s;
	        transition-delay: 0.3s;
}



