/**
 *	Developped by Nicolas Devenet <nicolas[at]devenet.info>
 *	Code hosted on https://github.com/Devenet/AdventCalendar
 */

body {
	background: #ffffff;
}
body, .tooltip {
	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}
.main-title {
	font-size: 36px;
	font-weight: 700;
	text-align: center;
	padding: 20px 15px;
	margin: 0;
}
.background {
	margin: 0;
	padding: 20px 15px;
	overflow: hidden;
	background: #ffffff;
}
hr, .page-header { border-color: #cdcdcd; }
nav.navbar { margin-bottom: 0; }
.navbar { font-weight: 400; }
.navbar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}
.navbar-brand {
	font-size: 18px;
	padding: 15px;
	float: none !important;
}
.navbar-right-mobile {
	margin: 8px 0;
	float: right;
}
a.navbar-brand i { margin-right: 4px; font-size: 16px; }
p, .text { font-size: 20px; line-height: 25px; }
.text-center { text-align: center; }
.error { 
	margin: 60px auto; 
	width: 90%; 
	max-width: 600px;
	font-size: 20px; 
	padding: 0 15px;
}
.error h3 { font-size: 30px; }
.error a.illustration { display: block; margin-top: 50px; font-size: 60px; }
.error a.illustration-danger { color: #fed2d2; }
.error a.illustration-danger:hover { color: #b94a48; }

.day-row, .day-row span, .footer a, .error a.illustration, footer p a { -webkit-transition:all linear 0.2s; -moz-transition:all linear 0.2s; -o-transition:all linear 0.2s; transition:all linear 0.2s; }
.font-normal { font-weight: 400; }
.espace-top { margin-top: 20px; }
.espace-lg { margin-top: 50px; margin-bottom: 50px; }
a.rss-feed:hover { color: #FF7A4D !important; }

.days {
	max-width: 735px;
	margin: 20px auto;
	padding: 0 15px;
	text-align: center;
}
.day-row {
	display: inline-block;
	width: 100px;
	height: 100px;
	margin: 6px 8px;
	background: #bebebe;
	position: relative;
	overflow: hidden;
	border-radius: 2px;
}
a.day-row:hover { -ms-transform:scale(1.1); -webkit-transform:scale(1.1); -o-transform:scale(1.1); transform:scale(1.1); border-radius: 10px; }
.days div.day-row:hover span { color: #db4545; cursor: default; }
.day-row span {
	display: block;
	position: absolute;
	bottom: -8px;
	right: 1px;
	font-size: 60px;
	line-height: 60px;
	font-weight: 700;
	letter-spacing: -4px;
	color: #fff;
}
.day-row.active.day-color-1 { background: #49C7FF; }
.day-row.active.day-color-2 { background: #5FC462; }
.day-row.active.day-color-3 { background: #EDD360; }
.day-row.active.day-color-4 { background: #C48CE8; }

.day {
	padding: 0 15px;
}
.day h1 {
	margin: 0 auto 20px;
	line-height: 1.2;
	font-size: 48px;
	padding: 0 10px;
	float: none;
	max-width: 100%;
	text-align: center;
	word-wrap: break-word;
}
.day h1 span { 
	display: inline-block; 
	line-height: 1.2;
}
.day h1 i { font-size: 40px; }
.day .day-row { 
	float: none; 
	margin: 0 auto 20px;
	display: block;
	max-width: 100px;
}
.day img, .day video { 
	margin: 15px auto 5px; 
	font-size: 20px; 
	line-height: 40px;
	max-width: 100%;
	height: auto;
}
.day p.legend { 
	font-size: 20px;
	padding: 0 15px;
}
.day .text { 
	margin: 30px auto 50px;
	padding: 0 15px;
}
.day .pager { 
	font-weight: normal; 
	margin-top: 40px;
}

.about { 
	margin-bottom: 20px;
	padding: 0 15px;
}
.about .page-header { margin: 20px 0; }
.about .page-header small { margin-left: 10px; }
.about h2 i { font-size: 25px; margin-right: 5px; }
.about h2 i.glyphicon-search { color: #49C7FF; }
.about h2 i.glyphicon-heart { color: #5FC462; }
.about h2 i.glyphicon-exclamation-sign { color: #C48CE8; }
.about h2 i.glyphicon-wrench { color: #EDD360; }
.about p { font-size: 20px; line-height: 24px; }
.about p code { 
	font-size: 17px; 
	font-family: Consolas, Monaco, Menlo, "Courier New", monospace;
	word-wrap: break-word;
}
.about .problems strong { font-weight: 400; }

footer { 
	margin: 0 0 20px 0;
	padding: 0 15px;
}
footer hr { margin-top: 0px; }
footer p { font-size: 1.5em; }
footer p a { color: #777; }
footer .notice { font-size:.8em; }
footer .notice a { color: #888; }

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
	.main-title {
		font-size: 24px;
		padding: 15px 10px;
	}
	
	.background {
		padding: 10px 15px;
	}
	
	.navbar-brand {
		font-size: 16px;
		padding: 10px;
	}
	
	.day-row {
		width: 80px;
		height: 80px;
		margin: 4px 6px;
	}
	
	.day-row span {
		font-size: 48px;
		line-height: 48px;
	}
	
	.day h1 {
		font-size: 28px;
		margin-bottom: 15px;
	}
	
	.day h1 i {
		font-size: 28px;
	}
	
	.day p.legend {
		font-size: 18px;
	}
	
	p, .text {
		font-size: 18px;
		line-height: 24px;
	}
	
	.error {
		font-size: 18px;
		margin: 30px auto;
	}
	
	.error h3 {
		font-size: 24px;
	}
	
	.about p {
		font-size: 18px;
		line-height: 22px;
	}
	
	.about p code {
		font-size: 14px;
	}
}

/* Responsive adjustments for tablets */
@media (min-width: 768px) and (max-width: 991px) {
	.main-title {
		font-size: 32px;
	}
	
	.day h1 {
		font-size: 40px;
	}
	
	.day-row {
		width: 90px;
		height: 90px;
	}
	
	.day-row span {
		font-size: 54px;
		line-height: 54px;
	}
}

/* Adjustments for very small screens */
@media (max-width: 480px) {
	.background {
		padding: 5px 10px;
	}
	
	.day-row {
		width: 70px;
		height: 70px;
		margin: 3px 4px;
	}
	
	.day-row span {
		font-size: 40px;
		line-height: 40px;
		bottom: -6px;
	}
	
	.main-title {
		font-size: 20px;
		padding: 8px 10px;
	}
	
	.navbar-brand {
		font-size: 14px;
	}
}

