/* Fresh CSS */

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-kerning: auto;
}
::-moz-selection {
	color: #fff;
	text-shadow: indigo 1px 1px 1px;
	background-color: darkviolet !important;
}
::-webkit-selection {
	color: #fff;
	text-shadow: indigo 1px 1px 1px;
	background-color: darkviolet !important;
}
::selection {
	color: #fff;
	text-shadow: indigo 1px 1px 1px;
	background-color: darkviolet !important;
}
::-webkit-input-placeholder {
	color: rgba(0,0,0,.5);
}
::-moz-placeholder {
	color: rgba(0,0,0,.5);
}
:-ms-input-placeholder {
	color: rgba(0,0,0,.5);
}
:placeholder-shown {
	color: rgba(0,0,0,.5);
}
html {
	font-size: 16px;
	line-height: 1.4;
	font-weight: 400;
	font-family: 'Source Sans Pro', sans-serif;
	-webkit-text-size-adjust: 100%;
	overflow: hidden;
	overflow-x: hidden;
	overflow-y: auto;
}
body {
	margin: 0;
	color: white;
	font-size: 14pt;
	text-shadow: rgba(0,0,0,.05) 1px 2px 2px;
	overflow: hidden;
	overflow-x: hidden;
	overflow-y: auto;
}
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em 0;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.02em;
	font-family: 'Fira Sans', sans-serif;
}
h1 {
	font-size: 48pt;
	font-weight: 900;
}
h2 {
	font-size: 34pt;
	font-weight: 600;
}
h3 {
	font-size: 24pt;
}
h4 {
	font-size: 22pt;
}
h5 {
	font-size: 18pt;
}
h6 {
	font-size: 14pt;
}
a {
	outline: none;
	transition: color .2s ease-in-out;
}
p {
	margin: 0;
}
p + p {
	margin-top: .75em;
}
hr {
	margin: 2em 0;
	border: none;
	height: 2px;
	background: rgba(255,255,255,.7);
}
pre,
code {
	font-family: 'Source Code Pro', monospace;
}
pre {
	padding: 1em;
	border: 1px solid currentColor;
	word-break: break-word;
	white-space: pre-wrap;
	font-kerning: auto;
}
[data-theme] [data-button],
[data-theme] [data-select] {
	display: inline-block;
	margin: .5em;
	padding: .5em;
	text-decoration: none;
	font-weight: 600;
	border: 1px solid currentColor;
}
[data-theme] [data-select] {
	background-color: transparent;
	outline: none;
	cursor: pointer;
}
[data-theme] [data-button=blue],
[data-theme] [data-select=blue] {
	color: aqua;
}
[data-theme] [data-button=green],
[data-theme] [data-select=green] {
	color: lime;
}
[data-theme] [data-button=red],
[data-theme] [data-select=red] {
	color: #f00;
}
[data-theme] [data-button=grey],
[data-theme] [data-select=grey] {
	color: lightgrey;
}
[data-theme] [data-button=outline],
[data-theme] [data-select=outline] {
	color: currentColor;
}
.disabled,
[hidden],
[disabled] {
	pointer-events: none;
	opacity: .8;
}
[class^=float-] {
	display: block;
	width: auto;
	margin: 1em auto;
}
@media (min-width: 600px) {
	.float-left {
		float: left;
		margin: 0 1em .5em 0;
	}
	.float-right {
		float: right;
		margin: 0 0 .5em 1em;
	}
}

/* Roundedness */
pre,
[data-button] {
		border-radius: 3px;
}

/* Orange theme */
[data-theme*=orange] {
	background: hsl(236, 90%, 55%);
	background: -webkit-linear-gradient(top,
		hsl(20, 85%, 43%) 0,
		hsl(20, 91%, 50%) 50vh,
		hsl(20, 91%, 50%) 100%
	);
}
[data-theme*=orange] a,
[data-theme*=orange] pre,
[data-theme*=orange] [data-select] {
	color: yellow;
}
[data-theme*=orange] [data-button]:hover,
[data-theme*=orange] [data-button]:focus,
[data-theme*=orange] [data-select]:hover,
[data-theme*=orange] [data-select]:focus {
	color: violet;
}

/* Green theme */
[data-theme*=green] {
	background: hsl(236, 90%, 55%);
	background: -webkit-linear-gradient(top,
		hsl(100, 85%, 33%) 0,
		hsl(100, 91%, 40%) 50vh,
		hsl(100, 91%, 40%) 100%
	);
}
[data-theme*=green] a,
[data-theme*=green] pre {
	color: yellow;
}
[data-theme*=green] a:hover,
[data-theme*=green] a:focus {
	color: orange;
}

/* Blue theme */
[data-theme*=blue] {
	background: hsl(236, 90%, 55%);
	background: -webkit-linear-gradient(top,
		hsl(236, 85%, 43%) 0,
		hsl(236, 91%, 50%) 50vh,
		hsl(236, 91%, 50%) 100%
	);
}
[data-theme*=blue] a,
[data-theme*=blue] pre {
	color: turquoise;
}
[data-theme*=blue] a:hover,
[data-theme*=blue] a:focus {
	color: magenta;
}



.main {
	min-height: 100vh;
}
.intro {
	padding: 3rem;
	text-align: center;
}
.first {
	display: flex;
	justify-content: center;
	height: 40vh;
	align-items: center;
	padding: 3rem;
	transition: height .7s ease-in-out;
}
.main.known .first {
	height: 100px;
}
#year, #month {
	transition: transform .7s ease-in-out;
	transform: scale(3);
}
#year {
	transform-origin: right;
}
#month {
	transform-origin: left;
}
.main.known #year,
.main.known #month {
	transform: scale(1);
}

.result {
	padding: 3rem;
	display: none;
}
.main.known .result {
	display: block;
}
.result h3 {
	text-align: center;
	opacity: 0;
}
.weeks {
	line-height: 0;
	font-size: 0;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-content: flex-start;
	height: min(48vh, 48vw);
	/*min-height: 424px;*/
}
.week {
	display: inline-block;
	font-size: 0;
	/*margin: 2px;*/
	margin: max(1px, .1vw);
	/*height: 8px;*/
	/*width: 8px;*/
	width: max(6px, .5vw);
	/*min-width: 5px;*/
	border: 1px solid currentColor;
	opacity: 0;
	background-color: white;
}
.week::before {
	padding-top: 100%;
	display: block;
	content: ' ';
}
.result h6 {
	margin-top: 20px;
	opacity: 0;
}
.result a {
	opacity: 0;
}
@media (max-width: 1500px) {
	.week {
		width: max(6px, .55vw);
	}
}
@media (max-width: 1400px) {
	.week {
		width: max(6px, .57vw);
	}
}
@media (max-width: 1300px) {
	.intro h1 br:first-child {
		display: none;
	}
	.week {
		width: max(6px, .6vw);
	}
}
@media (max-width: 1200px) {
	.week {
		width: max(6px, .65vw);
	}
}
@media (max-width: 884px),
	(max-device-width: 1000px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
	.weeks {
		flex-direction: row;
		height: auto;
	}
	.week {
		width: 6px;
	}
}
@media (max-width: 640px),
	(max-device-width: 1000px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
	.intro h1 {
		font-size: 28px;
	}
	.result {
		padding: 15px;
		padding-bottom: 60px;
	}
	.main:not(.known) #year,
	.main:not(.known) #month {
		transform: scale(1.4);
	}
	.result h3 {
		font-size: 22px;
	}
}
@media (max-width: 375px) {
	.result {
		padding: 10px;
		padding-bottom: 60px;
	}
}