/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url(/templates/default/fonts/lato-ext.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url(/templates/default/fonts/lato.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

input, select, textarea, button{font:inherit;}

/* Color Palette :
Very dark blue - #002270
Dark blue - #002C91
Medium blue (bright) - #1A60FF
Light Blue - #7FA6FF
Very Light blue - #ADC6FF

Very dark yellow - #A76F00
Dark yellow - #D99100
Medium yellow (bright) - #FFAA00
Light yellow - #FFCF70
Very Light yellow  - #FFE1A4
*/


html {
    font-family: 'Lato', sans-serif;
    font-size: 32px;
    background-color: #ADC6FF;
    color: #002270; 
}

div {
    margin: 5px;
	border-radius: 10px;
}

#overall-container {
	display: flex;
    flex-direction: row;
    flex-wrap: wrap;
	justify-content: center;
    margin: 0;
}

#content-container {
	display: flex;
    flex-direction: column;
    flex-grow: 100;
    background-color: #1A60FF;
}

#left-menu {
	flex-basis: 20%;
    background-color: #1A60FF;
}

@media screen and (max-width: 1000px) {
	#left-menu {
		flex-basis: 100%;
		order: 1;
	}
	#content-container {
		flex-basis: 100%;
	}
	#footer {
		order: 2;
	}
}

#main, #stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
	justify-content: center;
    background-color: #1A60FF;
}

#join, #create, #waiting, #question_answers {
    flex-basis: 0;
    flex-grow: 1;
    border: 1px solid #FFE1A4;
    background-color: #FFAA00;
    text-align: center;
}

#question {
    background-color: #FFCF70;
}

span.link_button {
	display: inline;
	cursor: pointer;
	vertical-align: middle;
}

span.link_button:hover {
    color: #1A60FF; 
}

div#header {
	background: #6699CC;
	top: 0;
}

div.title {
	display: inline-block;
	border: solid 2px black;
	margin: 5px;
}

div.menu {
	display: inline-block;
}

div#footer {
	display: block;
	font-size: 20px;
	bottom: 0;
	
}

div.answers {
	display:flex;
    flex-direction: row;
    flex-wrap: wrap;
	justify-content: center;
    background-color: #FFCF70;;
}

div.answer {
    flex-basis: 0;
    flex-grow: 1;
    border: 1px solid #FFE1A4;
    background-color: #FFAA00;
    text-align: center;
}

div.answer:hover {
	background: #ADC6FF;
}

div.answer.selected {
	background: #7FA6FF;
	border: solid 2px #1A60FF;
}

div.answer.correct {
	animation-duration: 500ms;
	animation-timing-function: linear;
	animation-iteration-count: 3;
	animation-fill-mode: backwards;
	animation-name: blink-correct;
	border: solid 2px green;
}
@keyframes blink-correct {  
  50% { background-color: green; }
}

div.answer.correct.selected {

}

div.answer.incorrect {
	border: solid 2px red;
}


div.msg {
	position: relative;
	border: solid black 1px;
	text-align: center;
	margin: 0 auto;
	margin-top: 10%;
	margin-bottom: 10%;
    max-width: 80%;
    padding-top: 24px;
    background: #EEEEEE;
}
div.msg:before {
	content: "Message";
	position: absolute;
	top: 0;
	left: 0;
    font-size: 24px;
    border-bottom: solid black 1px;
    width: 100%;
	text-align: left;
	background: #CCCCCC;
	
}

input.input_invalid {
	background-color: #FFA07A;
	border: solid red 1px;
}
input.input_valid {
	background-color: #FFFFFF;
	border: solid green 1px;
}
input.input_disabled {
	background-color: #CCCCCC;
	border: solid black 1px;
}


label#name_msg.name_banned:after {
	content: "Ce nom d'utilisateur a été interdit par l'administrateur";
	
}

div.players {
	position: relative;
}

div.player {
	display: inline-block;
	border: solid black 1px;
}

div.player.correct {
	background-color: #D0F0C0;
}

div.player.incorrect {
	background-color: #FFBDB4;
}

#total_seconds {
	background-color: #ADC6FF;
}

#remaining_seconds {
	margin: 0;
	background-color: #7FA6FF;
	padding-top: 10px;
	padding-bottom: 10px;
	
}