
body {
	font-family: 'PT Sans', sans-serif;
}

header{
	margin: 0;
	padding-left: 17px;
	padding-right: 17px;
}

header h1 {
	font-size: 400%;
	margin-bottom: 7px;
	padding-bottom: 5px;
	border-bottom: 3px black solid;
	margin-top: 0;
}

header p {
	font-size: 210%;
	margin-top: 5px;
	font-family: 'PT Sans Narrow', sans-serif;
	color: #585858;
}


article p, article .container {
	margin: 15px;
	padding: 25px;

	font-size: 100%;

	border: 1px solid #D8D8D8;
	background-color: #FDFDFD;
}

#links {
	margin: 15px;
}

#sentence .elem {
	color: #A4A4A4;
	text-decoration: none;
	font-size: 70%;
	margin-bottom: -20px; 
}

#time {
	font-size: 80%;
}

#sentence .elem:hover {
	color: #848484;
}

/* Containers */

.content {
	margin: 15px;
	min-height: 30px;
}

.content div {
	padding: 15px;

	border: 1px solid #D8D8D8;
	background-color: #FDFDFD;

	display: none;
}

h1 {
	font-family: 'PT Sans Narrow', sans-serif;
	font-weight: normal;
}

h2 {
	font-family: 'PT Sans Narrow', sans-serif;
	margin-top: 5px;
	text-align: left;
}

h3 {
	font-family: 'PT Sans Narrow', sans-serif;
	text-align: left;
	font-size: 120%;
	margin-top: 0px;
}

p, ul, td {
	font-size: 80%;
}


/* Pied de page */

footer{
	color: gray;
	font-size: 80%;
	padding-left: 15px;
}


/* Table */
table {
	border-collapse: collapse;
	border-spacing: 0;
	empty-cells: show;
	border: 1px solid #cbcbcb;
}

thead {
	background: #e0e0e0;
	color: #000;
	text-align: left;
	vertical-align: bottom;
}

tr {
	border-width: 0 0 1px;
	border-bottom: 1px solid #cbcbcb;
}

th, td {
	padding: 15px;
}

/* Buttons */
.button
{        
	display: inline-block;
	white-space: nowrap;

	background-color: #fafafa;

	border: 1px solid #BDBDBD;

	padding: 0 1.5em;
	margin-right: 0.5em;
	margin-top: 0.5em;

	font: 100% 'PT Sans', sans-serif;
	line-height: 25px;

	background-image: -webkit-gradient(linear, left top, left bottom, from(#fafafa), to(#ddd));
	background-image: -webkit-linear-gradient(top, #fafafa, #ddd);
	background-image: -moz-linear-gradient(top, #fafafa, #ddd);
	background-image: -ms-linear-gradient(top, #fafafa, #ddd);
	background-image: -o-linear-gradient(top, #fafafa, #ddd);
	background-image: linear-gradient(top, #fafafa, #ddd);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#fafafa', EndColorStr='#dddddd');
	

	text-decoration: none;
	color: #333;

	-moz-border-radius: .1em;
	-webkit-border-radius: .1em;
	border-radius: .1em;
}

.button:hover
{
	background-color: #E6E6E6;        
	background-image: -webkit-gradient(linear, left top, left bottom, from(#F2F2F2), to(#E6E6E6));
	background-image: -webkit-linear-gradient(top, #F2F2F2, #E6E6E6);
	background-image: -moz-linear-gradient(top, #F2F2F2, #E6E6E6);
	background-image: -ms-linear-gradient(top, #F2F2F2, #E6E6E6);
	background-image: -o-linear-gradient(top, #F2F2F2, #E6E6E6);
	background-image: linear-gradient(top, #F2F2F2, #E6E6E6);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#F2F2F2', EndColorStr='#E6E6E6');        
}

.button:disabled {
	color: gray;
}

.button:active
{
	-moz-box-shadow: 0 0 10px 2px rgba(0,0,0,.3) inset;
	-webkit-box-shadow: 0 0 10px 2px rgba(0,0,0,.3) inset;
	box-shadow: 0 0 4px 2px rgba(0,0,0,.3) inset;
	position: relative;
	top: 1px;
}

.button:focus
{
	outline: 0;
	background: #fafafa;
}    

.button:before
{
	background: #D8D8D8;
	background: rgba(0,0,0,.1);
	float: left;        
	width: 1em;
	text-align: center;
	font-size: 1.5em;

	margin: 0 1em 0 -1em;
	padding: 0 .2em;

	border-right: 1px solid #A4A4A4;
    pointer-events: none;        
}

.page {
	margin-left: -2px;
	margin-right: -2px;
}


/* Pop-up */
.popup-background {
    width: 100%;
    height: 100%;
    opacity: 0;
    background: black; 
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: none;
}

.popup-window {
	position: fixed;
	padding: 50px;
	padding-top: 20px;
	padding-bottom: 45px;
	left: 50%;
	margin-left: -250px;
	margin-top: 75px;
	background-color: white;
	min-height: 100px;
	width: 400px;
	border-radius: 4px;
    z-index: 10000;
	text-align: center;

	background-repeat: no-repeat;
	background-size: 30%;
	background-position: 60px 20px;
}

.popup-window h1 {
	margin-bottom: 50px;
}


.popup-success {
	background-image: url('success.jpg');
}

.popup-success h1 {
	color: #119E22;
}

.popup-error {
	background-image: url('error.jpg');
}

.popup-error h1 {
	color: #E8664D;
}

/* Animations */
@-webkit-keyframes flipInX { 
    0% { 
        -webkit-transform: perspective(400px) rotateX(90deg); 
        opacity: 0; 
    } 
    40% { 
        -webkit-transform: perspective(400px) rotateX(-10deg); 
    } 
    70% { 
        -webkit-transform: perspective(400px) rotateX(10deg); 
    } 
    100% { 
        -webkit-transform: perspective(400px) rotateX(0deg); 
        opacity: 1; 
    }
}

@keyframes flipInX { 
    0% { 
        transform: perspective(400px) rotateX(90deg); 
        opacity: 0; 
    } 
    40% { 
        transform: perspective(400px) rotateX(-10deg); 
    } 
    70% { 
        transform: perspective(400px) rotateX(10deg); 
    } 
    100% { 
        transform: perspective(400px) rotateX(0deg); 
        opacity: 1; 
    } 
}

.flipInX { 
    -webkit-animation-duration: 1s; 
    animation-duration: 1s; 
    -webkit-animation-fill-mode: both; 
    animation-fill-mode: both; 
    -webkit-backface-visibility: visible !important; 
    -webkit-animation-name: flipInX; 
    backface-visibility: visible !important; 
    animation-name: flipInX; 
}

@-webkit-keyframes flipOutX {
    0% {
        -webkit-transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
    100% { 
        -webkit-transform: perspective(400px) rotateX(90deg);
        opacity: 0; 
    }
}

@keyframes flipOutX {
    0% {
        transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
    100% {
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }
}

.flipOutX {
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: flipOutX;
    -webkit-backface-visibility: visible !important;
    animation-name: flipOutX;
    backface-visibility: visible !important;
}
