/*
 * Christmas theme. Every rule is scoped to html.xmas, which js/christmas.js
 * only adds between 1 December and 5 January.
 */
html.xmas body {
	background: #f6f9f7;
}

/* -- Header: festive ribbon and string of lights -- */
html.xmas .header {
	border-top: 5px solid #a4161a;
}
html.xmas .header:after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 14px;
	pointer-events: none;
	background:
		radial-gradient(ellipse 4px 6px at 20px 7px, #d62828 95%, transparent 100%),
		radial-gradient(ellipse 4px 6px at 60px 9px, #ffc300 95%, transparent 100%),
		radial-gradient(ellipse 4px 6px at 100px 7px, #1b7a43 95%, transparent 100%),
		radial-gradient(ellipse 4px 6px at 140px 9px, #1d6fc4 95%, transparent 100%),
		linear-gradient(#1f4d33, #1f4d33) top / 100% 2px no-repeat;
	background-size: 160px 14px, 160px 14px, 160px 14px, 160px 14px, 100% 2px;
	background-repeat: repeat-x, repeat-x, repeat-x, repeat-x, no-repeat;
}
html.xmas .top-nav ul.nav1 > li > a:hover,
html.xmas .top-nav ul.nav1 > li > a:focus {
	color: #a4161a;
}
html.xmas .top-nav ul.nav1 > li > a.active,
html.xmas .top-nav ul.nav1 > li.active > a {
	color: #a4161a;
	box-shadow: inset 0 -3px 0 #a4161a;
}

/* -- Santa hat on the logo -- */
html.xmas .header-logo a {
	display: inline-block;
	position: relative;
	line-height: 0;
}
html.xmas .header-logo a:after {
	content: "";
	position: absolute;
	top: -9px;
	left: -16px;
	width: 32px;
	height: 26px;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 52'%3E%3Cpath d='M9 40C10 20 22 5 36 5C48 5 56 14 57 31L46 22L51 40Z' fill='%23c1121f'/%3E%3Crect x='4' y='36' width='53' height='13' rx='6.5' fill='%23ffffff' stroke='%23c4cdd4' stroke-width='1.5'/%3E%3Ccircle cx='56' cy='33' r='7' fill='%23ffffff' stroke='%23c4cdd4' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	transform: rotate(-28deg);
}

/* -- Headings, cards and buttons -- */
html.xmas .section-heading,
html.xmas .homepage-widgets__title {
	color: #14532d;
	border-bottom-color: #ecd9d9;
}
html.xmas .card,
html.xmas .homepage-widgets__card {
	border-top: 3px solid #a4161a;
}
html.xmas .card--info {
	background: #eef6f0;
	border-left-color: #14532d;
}
html.xmas .btn--primary {
	background-color: #a4161a;
	color: #fff;
}
html.xmas .btn--primary:hover {
	background-color: #7f1114;
	color: #fff;
}
html.xmas .event-promo__badge {
	background: #14532d;
	color: #fff;
}

/* -- Footer -- */
html.xmas .footer {
	background: #14432a;
	border-top: 5px solid #a4161a;
}

/* -- Falling white tennis balls -- */
.xmas-balls {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 999; /* below the sticky header and its menus */
}
.xmas-ball {
	position: absolute;
	top: -30px;
	display: block;
	animation: xmas-fall linear infinite;
}
.xmas-ball i {
	display: block;
	width: 100%;
	height: 100%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='%23ffffff' stroke='%239fb0bd' stroke-width='1.6'/%3E%3Cpath d='M6 5C13 11 13 21 6 27M26 5C19 11 19 21 26 27' fill='none' stroke='%23a9bac7' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	filter: drop-shadow(0 1px 2px rgba(20, 50, 80, 0.25));
	animation: xmas-sway ease-in-out infinite alternate;
}
@keyframes xmas-fall {
	from { transform: translateY(0); }
	to { transform: translateY(calc(100vh + 60px)); }
}
@keyframes xmas-sway {
	from { transform: translateX(-18px) rotate(-90deg); }
	to { transform: translateX(18px) rotate(120deg); }
}

/* -- On/off button for visitors -- */
.xmas-toggle {
	position: fixed;
	left: 12px;
	bottom: 12px;
	z-index: 999;
	padding: 6px 12px;
	font-size: 12px;
	color: #14432a;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid #c9d8ce;
	border-radius: 20px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

@media print {
	.xmas-balls,
	.xmas-toggle {
		display: none;
	}
}

/* Headings that are coloured blue directly in the page content */
html.xmas .card h2,
html.xmas h2[style*="#0056a3"],
html.xmas h3[style*="#0056a3"],
html.xmas .flex-card h3 {
	color: #14532d !important;
}
