
/*
	Based upon Jakub Hampl's "Designing a departures board with CSS3".
	https://gampleman.eu/post/1488470623/designing-a-departures-board-with-css3
*/
:root {

  --departure-board: #E77326E0;
  --departure-board: #E77326FF;

  --departure-board: rgb(30,30,30);
  --departure-board-flap: rgb(0,0,0);

  --departure-board: #001d3dF0;
  --departure-board-flap: #001d3dFF;

}


.departure-board {
    padding:  1em 5em 1em 5em;
    display: inline-block;
	line-height: 1.3em;
    background: var(--departure-board);
    -webkit-border-radius: 0.51em;
    -moz-border-radius: 0.51em;
    border-radius: 0.51em;
    color: #eee;
    color: #FF3602;
    color: orange;
	font-family: Helvetica;
}


.departure-board span.letter {
	display: inline-block;
	width: 1em;
	margin: 0 .2em;
	height: 1.3em;
	text-align: center;
	position: relative;
}


.departure-board span.letter {
	-webkit-box-shadow: 
		inset 0 -.07em 0 rgba(50, 50, 50, .7), 
		inset 0 -.14em 0 rgba(0, 0, 0, .7), 
		inset .14em 0 .28em rgba(0, 0, 0, .9), 
		inset -.14em 0 .28em rgba(0, 0, 0, .9),	
		0 .07em 0 rgba(255, 255, 255, .2); 

	-moz-box-shadow: 
		inset 0 -.07em 0 rgba(50, 50, 50, .7), 
		inset 0 -.14em 0 rgba(0, 0, 0, .7), 
		inset .14em 0 .28em rgba(0, 0, 0, .9), 
		inset -.14em 0 .28em rgba(0, 0, 0, .9),	
		0 .07em 0 rgba(255, 255, 255, .2); 

	-o-box-shadow: 
		inset 0 -.07em 0 rgba(50, 50, 50, .7), 
		inset 0 -.14em 0 rgba(0, 0, 0, .7), 
		inset .14em 0 .28em rgba(0, 0, 0, .9), 
		inset -.14em 0 .28em rgba(0, 0, 0, .9),	
		0 .07em 0 rgba(255, 255, 255, .2); 
	box-shadow: 
		inset 0 -.07em 0 rgba(50, 50, 50, .7), 
		inset 0 -.14em 0 rgba(0, 0, 0, .7), 
		inset .14em 0 .28em rgba(0, 0, 0, .9), 
		inset -.14em 0 .28em rgba(0, 0, 0, .9),	
		0 .07em 0 rgba(255, 255, 255, .2); 
}


.departure-board span.letter:before {
	border-top: .07em solid rgba(0, 0, 0, .4);
	border-bottom: .07em solid rgba(255, 255, 255, .08);
	height: 0;
	position: relative;
	width: 100%;
	left: 0;
	top: .62em;
	content: " ";
	display: block;
	z-index: 2;
	-moz-transform: translate(0, -.05em);
	-o-transform: translate(0, -.1em);
}


.departure-board span.fold {
	display: block;
	position: absolute;
	height: 0;
	top: .65em;
}


.departure-board span.flap {
	display: block;
	position: absolute;
	top: 0em;	
	width: 1em;
	height: .65em;
	margin: 0;
	overflow: hidden;
}


.departure-board span.text {
	width: 100%;
}
	

.departure-board span.bottom {
	top: .65em;
}


.departure-board span.bottom span.text {
	position: relative;
	top: -.65em;
}
	


.departure-board span.flap.falling {
	display: none;
	bottom: 0;	
	top: auto;
}


.departure-board span.flap.falling span.text {
	-webkit-backface-visibility: hidden;
	border-top: .03em solid #444;
	border-bottom: .03em solid #444;	
    background: var(--departure-board-flap);
	display: block;
	position: relative;
	
	-webkit-transform: scaleY(1); 
	-moz-transform: scaleY(1); 
	-o-transform: scaleY(1); 
	transform: scaleY(1); 
	
	-webkit-transition: -webkit-transform linear;
	-moz-transition: -moz-transform linear;
	-o-transition: -o-transform linear;
	transition: transform linear;
}

