@charset "utf-8";


* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
	background-color: #000;
}
body {
	font-size: 16px;
	font-family: 'Migu-1C';
	max-width: 500px;
	aspect-ratio: 9/16;
	margin: auto;
	position: absolute;
	left: 0;
	right: 0;
	background-color: #fff;
	overflow: hidden;
}

.hidden {
	display: none !important;
}
.background {
	width: 100%;
	max-width: 500px;
	height: 100%;
	margin: auto;
	display: flex;
	position: absolute;
	top: 0;
	background-image: url(images/blank.webp);
	background-repeat: no-repeat;
	background-position: left -70% bottom -40%;
	background-size: 75% auto;
	z-index: 1;
	transition: all 1s ease 0s;
	pointer-events: none;
}
.message, .space {
	max-width: 66.666%;
	padding: 0.75em;
	position: absolute;
	top: 72%;
	right: 0.5em;
	background: #fff;
	border-radius: 1em;
	font-size: 1.2em;
	font-weight: 600;
	opacity: 0;
	pointer-events: auto;
	transition: opacity 0.3s ease 0s;
	filter:
		drop-shadow(0 2px 3px rgba(0, 0, 0, 0))
		drop-shadow(0 0 1px rgba(0, 0, 0, 1))
		drop-shadow(0 0 0 rgba(0, 0, 0, 1));
}
.message::after, .space::after, .space::before {
	top: -0.5em;
	left: -0.5em;
	border: solid transparent;
	content: "";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: rgba(0, 0, 0, 0);
	border-right-color: #fff;
	font-size: 15px;
	border-width: 1em;
	margin-left: -1.5em;
	transform: rotateZ(40deg) scale(3, 1);
	z-index: -1;
}
.calender .space {
	width: 2em;
	max-width: none;
	margin: auto;
	padding: 0.25em 0.25em 0 0.25em;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: absolute;
	top: auto;
	left: 0;
	bottom: 3.5em;
	right: 0;
	opacity: 1;
	animation: none;
	filter: none;
	border-radius: 5px;
	box-sizing: content-box;
	zoom: 1.2;
}
.space::after, .space::before {
	margin-left: auto;
	top: auto;
	left: auto;
	bottom: -1.75em;
	transform: rotate(270deg) scale(0.6) translateX(0.7em);
}
.space::before {
	bottom: -2em;
	border-right-color: #f00;
}

.space:empty {
	display: none;
}

.wrapper {
	padding: 1.5em 2.5px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-wrap: wrap;
}
h1 {
	font-size: 1.8em;
	font-weight: 800;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 125%;
	position: absolute;
	top: 0.25em;
}
h1 small {
	font-size: 0.5em;
	padding: 0 0.25em;
	position: absolute;
	left: 0;
	bottom: 0;
	display: flex;
}

.clock {
	width: calc(100% / 7 * 6);
	height: 9em;
	padding: 0.333em 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: row-reverse;
	color: #000;
	font-size: 1.2em;
	font-weight: 100;
}
.digital {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column-reverse;
	line-height: 150%;
}
.digital small {
	font-size: 0.5em;
}
.date {
	font-size: 1.3em;
}
.time {
	margin: 0.075em 0 0.075em 0.25em;
	padding: 0;
	font-size: 3em;
	border-bottom: 1px solid #666;
}
.digital .clock-value:after {
	content: attr(data-value);
}
.analog {
	width: 7em;
	height: 7em;
	position: relative;
	border: 2px solid #000000;
	border-radius: 7em;
}
#a-hours, #a-minutes, #a-seconds {
	height: 0px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform-origin: left center;
}
#a-hours {
	width: 25%;
	border-bottom: 4px solid #000000;
	transition: all 0.5s ease 0s;
}
#a-minutes {
	width: 45%;
	border-bottom: 3px solid #0000cc;
	transition: all 0.5s ease 0s;
}
#a-seconds {
	width: 40%;
	border-bottom: 1px solid #cc0000;
}
.point {
	width: 45%;
	height: 2px;
	position: absolute;
	top: 50%;
	left: 50%;
	border-right: 2px solid #404040;
	transform-origin: left center;
}
.dot {
	height: 3px;
	border-right: 5px solid #404040;
}
.center {
	width: 0.5em;
	height: 0.5em;
	margin: auto;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	border-radius: 1em;
	border: 1px solid #ffffff;
	background-color: #cc0000;
}

.alert-box {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	position: absolute;
	left: 0;
	top: 0;
	background-color: #000000;
	color: #ffffff;
	z-index: 10;
}
.alert-box p {
	width: 100%;
	height: 33.333%;
	padding: 0.5em;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.alert-box p span {
	width: 5em;
	display: block;
}
.alert-box p input {
	width: calc(100% - 5em);
	height: 100%;
	padding: 0.5em;
	border: 0;
	outline: 0;
	display: block;
	color: #ffffff;
	text-align: right;
	background-color: transparent;
}
#alert-minutes {
	padding: 0;
	font-size: 2em;
}
.alert-box hr {
	width: calc(100% - 1em);
	margin: auto;
	background-color: #ffffff;
}

.pdf {
	width: calc(100% / 7);
	height: 9em;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	position: relative;
	font-size: 1.2em;
}
.pdf a {
	font-size: 0.8em;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.pdf img {
	max-width: 80%;
	max-height: 80%;
	display: flex;
}


.calender {
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	position: relative;
	font-size: 1.4em;
	border: 1px solid #666;
	z-index: 0;
}
.description {
	font-size: 0.85em;
	font-weight: 800;
	width: 100%;
	text-align: center;
	color: #888;
}
.calender section {
	width: calc(100% / 7);
	height: 3em;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	position: relative;
	border: 1px solid #666;
	line-height: 100%;
}
.calender .weeks {
	height: 1.5em;
	font-weight: 800;
	justify-content: center;
}
.calender span {
	font-size: 0.8em;
	width: 50%;
	line-height: 100%;
	opacity: 0.5;
	font-weight: 800;
}
.calender strong {
	width: 100%;
	font-size: 2em;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 80%;
	font-weight: 400;
}
.maxday * {
	display: none !important;
}
.Sun {
	color: #f00;
}
.Sat {
	color: #00f;
}
.day0 {
	background-color: #fdb;
	cursor: pointer;
}
.calender .now {
	background-color: #dfb;
}
.back {
	background-color: #ccc;
}

.next {
	width: calc(100% / 7 * 3);
	margin: 0 0 0 calc(100% / 7 * 4 + 2px);
	padding: 0.333em;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	position: relative;
	top: -3.15em;
	background-color: #fff;
	font-size: 1.333em;
	font-weight: 800;
	color: #666;
}
.next p {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.next strong {
	display: block;
	font-size: 4.5em;
	color: #000;
	writing-mode: horizontal-tb;
	line-height: 80%;
}
.next .today {
	margin: 0.25em;
	border-bottom: 0;
}
.next strong small {
	font-size: 0.3em;
}

.favicon{
	mix-blend-mode: multiply;
}

.space {
	margin: 1em;
	padding: 0.25em 0.5em;
	position: absolute;
	top: 50%;
	right: 0;
	border: 3px solid #ff0000;
	color: #ff0000;
	font-weight: 800;
	border-radius: 1.5em;
	background-color: #fff;
	transform: translateY(1em);
	transition: all 2.5s ease 0s;
	animation: move 5s ease 0s infinite normal;
	z-index: 2;
}
@keyframes move {
	0%, 100% {
		transform: translateY(1em) translateX(-0.25em);
	}
	50% {
		transform: translateY(1em) translateX(0.25em);
	}
}


footer {
	width: 100%;
	position: absolute;
	bottom: 0;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	flex-wrap: wrap;
	z-index: 2;
}
footer menu {
	list-style-type: none;
	width: 66.666%;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	position: relative;
	font-size: 1.3em;
}
footer menu .actions {
	width: 23%;
	aspect-ratio: 1/1;
	margin: 0 5px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	word-break: break-all;
	background-color: rgba(0, 0, 0, 0.333);
	color: #fff;
	font-weight: 800;
	border-radius: 10px;
	cursor: pointer;
}
.actions:hover {
	filter: sepia(0.8);
}
.actions::after {
	content: attr(data-text);
	font-size: 0.666em;
}
.actions.color-0 {
	background-color: #cb0;
}
.actions.color-1 {
	background-color: #f00;
}
.actions.color-2 {
	background-color: #0c0;
}
.actions.color-3 {
	background-color: #0cf;
}
footer address {
	width: 100%;
	padding: 0 0.5em;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	font-size: 0.8em;
}
