@font-face {
    font-family: "dseg";
    src: url(/fonts/DSEG7Classic-BoldItalic.woff2) format(woff2);
}

html, body {
	font-family: "Roboto", "Noto Sans JP", sans-serif;
}

/* iPhone / iPad */
@supports (-webkit-touch-callout: none) {
	html, body {
		font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif;
	}
}

body {
    position: relative;
    width: 100%;
    height: 100svh;
    margin: 0;
    background-color: rgb(212, 211, 212);
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}

* {
    box-sizing: border-box;
}

app, textbox, temp, temp-display, temp-body, temp-border, text, cc {
    display: block;
}

app {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 100%;
}

textbox {
    width: 100%;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

textbox > * {
    margin: 7.5px 0;
}

textbox > p {
    font-size: 11pt;
    color: rgba(0, 0, 0, 0.75);
}

temp {
    position: relative;
    width: 250px;
    aspect-ratio: 1/1;
    margin: 0 auto;
    perspective: 475px;
    perspective-origin: -31% 126%;
}

temp-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 5px 1px;
    transform: rotateX(330deg) rotateY(300deg) rotateZ(3deg) translate3d(7px, -3px, 26px) scale(0.5) skewX(12deg);
    z-index: 2;
    filter: blur(0.5px);
}

temp-body {
    width: 100%;
    height: 100%;
    background-image: url(/assets/ondokei.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

text.temp, text.humi {
    font-family: "dseg";
    color: rgba(50, 50, 50, 0.75);
}

text.temp > span.l, text.humi > span.l {
    font-size: 55pt;
}

text.temp > span.c, text.humi > span.c {
    font-size: 55pt;
    margin: 0 5px;
}

text.temp > span.s, text.humi > span.s {
    font-size: 48pt;
}

text.temp > span.d, text.humi > span.d {
    font-size: 20pt;
    font-weight: bold;
}

text.temp > span.d {
    margin: 0 -5px;
}

text.temp {
    transform: translate(10%, 15%);
}

text.humi {
    transform: translateX(35%);
}

temp-border {
    width: 100%;
    margin: 15px 0;
    padding: 0 10px;
}

temp-border > div {
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background-color: rgba(50, 50, 50, 0.75);
}

text.sync {
    margin: 0 15px;
    font-size: 15pt;
    color: rgba(50, 50, 50, 0.75);
    opacity: 0;
    transition: 0.3s ease;
}

temp:hover > temp-display > text.sync {
    opacity: 1;
}

cc {
    font-size: 9pt;
    font-weight: bold;
    margin: 50px auto 0 auto;
    text-align: center;
    color: rgba(0, 0, 0, 0.25);
}