html, body{
	width: 100%;
	height: 100%;
}
* {
	box-sizing:	border-box;
}
/* we correct scrollTop ourselves when prepending months */
html, body, #calendar {
	overflow-anchor: none;
}

.memo-tools
{
	color: #aaa;
}
.label{
	display: inline-block;
}
.month {
	height: 100%;
	margin-bottom: 0.5em;
}
th.date, td.date {
	padding: 0;
}
.date {
	line-height: 1.1em;
	display: inline-block;
	width: calc(100%/7);
	float: left;
	min-height: 4.5em;
}
th.date {
	line-height: 1.5em;
	min-height: 0;
}
th.month, th .month-label{
	padding: 0;
	line-height: 2em;
}
th .month-label {
	margin: 0 0.3em 0 0;
	font-size: 1.6rem;
	font-weight: 700;
}
th .year-label {
	color: #888;
}
.today .date-label::after {
	font-family: "Font Awesome 5 Free";
	content: " \f005";
	color: #ffff23;
	font-weight: 900;
	text-shadow: 0px 0px 5px black;
}
.today {
	box-shadow: 2px 2px 8px #777;
}
.week {
	position: relative;
}

/* weekday / holiday colouring of the date number */
.date[day='일'] {
	color: #ff3434;
}
.date[day='토'] {
	color: #3434ff;
}
td.date.holiday {
	color: #ff3434;
}
.holiday {
	color: #ff3434;
}

/* small labels inside a cell */
.lunar-label {
	font-size: 0.7em;
	color: #a0a0a0;
	font-weight: normal;
}
.lunar-label.emph {
	color: #555;
	font-weight: bold;
}
.holiday-label {
	display: block;
	font-size: 0.7em;
	margin-right: 0.3em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.holiday-label.holiday {
	color: #ff3434;
}
.holiday-label.memorial {
	color: #888;
}
.term-label {
	font-size: 0.7em;
	color: #1a9c8a;
	background: rgba(26, 156, 138, 0.1);
	border-radius: 3px;
	padding: 0 0.3em;
}

/* memos */
.memo-label {
	display: block;
	color: #333;
	cursor: pointer;
}
.memo-label .memo-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.memo-tools {
	display: none;
}
.date:hover .memo-tools{
	display: inline;
	cursor: pointer;
}
th.month,td.date, th.date {
	border-bottom: none !important;
	border-top: none !important;
	padding-top: 3px;
	padding-left: 3px;
}
td.date.empty {
	cursor: default;
}
td.date:not(.empty) {
	cursor: pointer;
}

/* fixed chrome: soft dark gradient at the top (like a paper calendar's
   hanging strip) with large typographic navigation floating over it. The
   gradient itself never takes clicks; only the text does. */
#calendar {
	padding-top: 7em;
}
#nav-shade {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 150px;
	z-index: 190;
	pointer-events: none;
	background-image: url(img/shadow_top2x.png);
	background-size: 100% 180px;
	background-position: 0 -30px;
	background-repeat: repeat-x;
}
#navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 200;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 0 0.6em;
	padding: 0.3em 0.75em 0.5em;
	background: transparent;
	color: #f4f4f4;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 12px rgba(0, 0, 0, 0.35);
	pointer-events: none;
	font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
	line-height: 1.15;
}
#navbar .nav-title {
	position: absolute;
	left: 0.9em;
	top: 0.8em;
	font-size: 0.95em;
	font-weight: 300;
	letter-spacing: 0.08em;
	color: rgba(244, 244, 244, 0.85);
	max-width: 10em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#navbar .nav-title:empty {
	display: none;
}
#nav-form {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 0 0.55em;
	margin: 0;
}
#navbar .nav-item {
	display: inline-flex;
	align-items: baseline;
	white-space: nowrap;
	pointer-events: auto;
}
#navbar .nav-item-year { font-size: 1.5rem; font-weight: 300; }
#navbar .nav-item-month { font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; }
#navbar .nav-item-day { font-size: 2.1rem; font-weight: 300; }
#navbar .nav-unit {
	font-size: 0.55em;
	font-weight: 300;
	margin-left: 0.12em;
	opacity: 0.85;
}
#navbar .nav-text {
	cursor: text;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s;
}
#navbar .nav-text:hover {
	border-bottom-color: rgba(244, 244, 244, 0.45);
}
/* the inline editor: same glyph size, no box, just a light underline */
#navbar .nav-input {
	display: none;
	font: inherit;
	color: inherit;
	text-shadow: inherit;
	text-align: center;
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(244, 244, 244, 0.75);
	border-radius: 0;
	outline: none;
	padding: 0;
	margin: 0;
	line-height: inherit;
	-moz-appearance: textfield;
}
#navbar .nav-input::-webkit-outer-spin-button,
#navbar .nav-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
#navbar .nav-item.editing .nav-text { display: none; }
#navbar .nav-item.editing .nav-input { display: inline-block; }
#nav-year { width: 2.6em; }
#nav-month { width: 1.35em; }
#nav-day { width: 1.35em; }
/* tiny chevrons beside year / month */
#navbar .nav-arrow {
	font: inherit;
	font-size: 0.7em;
	font-weight: 300;
	line-height: 1;
	color: inherit;
	text-shadow: inherit;
	background: transparent;
	border: 0;
	padding: 0 0.25em;
	margin: 0;
	opacity: 0.45;
	cursor: pointer;
	transition: opacity 0.15s;
	align-self: center;
}
#navbar .nav-arrow:hover,
#navbar .nav-arrow:focus { opacity: 1; outline: none; }
#today-btn {
	font: inherit;
	font-size: 0.9rem;
	font-weight: 300;
	letter-spacing: 0.12em;
	color: inherit;
	text-shadow: inherit;
	background: transparent;
	border: 0;
	padding: 0 0.2em;
	margin-left: 0.3em;
	opacity: 0.6;
	cursor: pointer;
	pointer-events: auto;
	transition: opacity 0.15s;
	align-self: center;
}
#today-btn:hover,
#today-btn:focus { opacity: 1; outline: none; }
@media (max-width: 480px) {
	#navbar .nav-title { display: none; }
	#navbar .nav-item-year { font-size: 1.2rem; }
	#navbar .nav-item-month { font-size: 2.3rem; }
	#navbar .nav-item-day { font-size: 1.7rem; }
}
.shadow-bottom
{
	position: absolute;
	background: url(img/shadow_bottom2x.png);
	background-size: 100% 100%;
	pointer-events: none;
	bottom: 0;
	left: 0;
	width: 1140px;
	height: 130px;
	z-index: 100;
}
.shadow-top
{
	position: absolute;
	background: url(img/shadow_top2x.png);
	background-size: 100% 100%;
	pointer-events: none;
	bottom: 0;
	left: 0;
	width: 1140px;
	height: 130px;
	z-index: 100;
	background-position: 0 -30px;
	background-repeat: repeat-x;
}
#sidebar-wrapper {
	z-index: 101;
}
