
@font-face {
    font-family: "ZhuShiTi";
    src: url(../resources/subset-YRDZST-Semibold.woff2) format("woff2"),
        url(../resources/subset-YRDZST-Semibold.woff) format("woff"),
        url(../resources/subset-YRDZST-Semibold.ttf) format("truetype"),
        url(../resources/YangRenDongZhuShiTi-semibold.ttf) format("truetype");
}

* {
    --gray-for-background: #F9F8F8;
    --gray-for-foreground: #3D3D3D;
    --gray-for-shadow: rgba(0, 0, 0, 0.33);
    
    color: var(--gray-for-foreground);
    
    background-position: center;
    background-repeat: no-repeat;

    font-family: "ZhuShiTi";

    user-select: none;

    /* accelerate */
    -webkit-font-smoothing: antialiased;
}

html {
    /* cursor: none; */
    cursor: url(../resources/image-cursor.png) 16 16, auto;
}

body {
    width: 100vw;
    height: 100vh;

    background-color: var(--gray-for-background);

    overflow: hidden;
}

video, img {
    max-width: 100%;
    height: auto;
    
    border-radius: 16px;
}

a {
    text-decoration: none;
    cursor: url(../resources/image-cursor-1.png) 16 16, auto;
}

.initiallyHidden {
    display: none !important;
}

.clickable {
    cursor: url(../resources/image-cursor-1.png) 16 16, auto;
}

.projectionCaption {
    position: absolute;
    right: 8vw;
    top: 3vh;

    font-size: 3rem;
    writing-mode: vertical-rl;

    opacity: 0.0;

    z-index: 11;
}

.projectionCaption::before {
    content: "。";
    opacity: 0.6;

    padding-left: 0.5rem;
    margin-bottom: 1rem;
}

#launchingBackground {
    position: fixed;
    top: 0;
    left: 0;
    
    width: 100vw;
    height: 100vh;
    
    background-color: var(--gray-for-background);

    opacity: 0.0;
}

#launchingBackgroundMounts {
    position: fixed;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;

    z-index: -3;
}

#launchingBackgroundSign {
    position: fixed;
    bottom: 1rem;
    right: 1rem;

    width: 5rem;
    height: 5rem;

    object-fit: contain;

    z-index: -1;
}

#launchingProjection {
    position: absolute;
    top: 25vh;
    /* make it horizontally central */
    left: 50vw;
    transform: translateX(-50%);
    
    opacity: 0.8;
}

#qrCode {
    position: absolute;
    top: 0;

    display: none;
    z-index: 9;

    cursor: none;
}

#otherLinksContainer {
    position: absolute;
    right: 5vw;
    top: 5vh;

    font-size: 1.5rem;
    writing-mode: vertical-rl;

    opacity: 0.0;
}

#launchingVideo {
    position: absolute;
}

#launchingTips {
    position: absolute;
    bottom: 10vh;

    /* make it horizontally central */
    left: 50vw;
    transform: translateX(-50%);

    font-size: 1.5rem;

    opacity: 0.8;
}

#launchingTips > span::before {
    content: "。";
    color: #ed5a65;
    font-size: 2.5rem;
}

#startIndicator {
    position: absolute;
    bottom: 15vh;
    left: 50vw;
    transform: translateX(-50%);
    width: 6vw;
    max-width: 60px;
    min-width: 50px;
}

/* MARK: insightsIntroducingProjection */

#insightsIntroducingProjection {
    position: absolute;
    top: 10vh;
    /* make it horizontally central */
    left: 50vw;
    transform: translateX(-50%);
    
    opacity: 0.0;
}

#insightsContainer canvas {
    max-height: 2rem !important;
    opacity: 0.0;
}

.circleIndicator {
    position: absolute;
    left: 50vw;
    transform: translateX(-50%);
    bottom: 10vh;

    width: 2rem;
    height: 2rem;

    transition: filter 0.7s;

    opacity: 0.0;

    z-index: 9;
}

.circleIndicator:hover {
    filter: brightness(0.0);
}

.circleIndicator img {
    width: 100%;
    height: 100%;
}

/* MARK: exhibitionProjection */

#exhibitionProjection {
    position: absolute;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background-color: var(--gray-for-background);
    overflow: hidden; /* fix Safari's rotate bug */

    opacity: 0.0;
}

#inkDrop {
    position: absolute;
    top: 20vh;
    /* make it central */
    left: 50vw;
    transform: translate(-50%, -50%);

    width: 2rem;
    height: 2rem;

    background: linear-gradient(4deg, #3D3D3D 30%, #FFFFFF);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    
    opacity: 0.8;

    z-index: 9;
}

.inkDropAnimated {
    animation: inkDropAnimation 2s ease-in 1s;
}

@keyframes inkDropAnimation {
    0% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, calc(-50% + 30vh)) scale(0.8, 1.5);
        opacity: 0.8;
    }
    60% {
        transform: translate(-50%, calc(-50% + 30vh + 10px)) scale(3.0, 1.5);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, calc(-50% + 30vh + 10px)) scale(2.0, 0.0);
        opacity: 0.3;
    }
}

#exhibitionBackground {
    position: inherit;
    top: -10vh;
    left: 10%;

    width: 80%;
    height: 100%;

    background-image: url(../resources/background-spot.png);
    background-size: cover;

    border-radius: 32px;
    box-shadow: 0px 8px 16px rgb(206, 205, 205);

    transform: perspective(100vh) rotateX(20deg);
    transform-origin: bottom;

    opacity: 0.8;
}

#exhibitionWindow {
    position: inherit;
    top: -10vh;
    left: 10%;

    width: 80%;
    height: 100%;

    transform: perspective(100vh) rotateX(20deg);
    transform-origin: bottom;

    opacity: 0.8;
}

#exhibitionWindow > div {
    position: absolute;

    perspective: 25px;
}

#exhibitionWindow > div > img {
    transform: translateZ(0);

    opacity: 0.7;
    transition: opacity 0.4s cubic-bezier(0.45, 0.22, 1, 1), transform 0.4s;
}

#exhibitionWindow > div:hover > img {
    box-shadow: 0px 5px 12px #3d3d3da6;

    opacity: 1.0;
    transform: translateZ(4px);
}

#exhibitionWindow > div > span {
    display: inline-block;
    position: absolute;

    top: 45%;
    left: 50%;

    width: 90%;

    background-color: var(--gray-for-background);
    margin-top: 0%;
    padding: 5px 0;
    border-radius: 6px;
    box-shadow: 0 0 8px #3D3D3D;

    text-align: center;
    font-size: 1.3rem;

    transform: translate(-50%, -50%) translateZ(0);

    opacity: 0.9;
    transition: opacity 0.3s cubic-bezier(0.45, 0.22, 1, 1), transform 0.3s;
}

#exhibitionWindow > div:hover > span {
    opacity: 0;
    transform: translate(-50%, -50%) translateZ(6px);
}

#exhibitionMainView {
    position: absolute;
    left: 14.4vw;
    top: 7.3vh;

    width: 15vw;
    height: 41.8vh;
}

#exhibitionEditor {
    position: absolute;
    left: 56vw;
    top: 8.8vh;

    width: 12vw;
    height: 33vh;
}

#exhibitionList {
    position: absolute;
    left: 62.4vw;
    top: 49.2vh;

    width: 11.5vw;
    height: 28vh;
}

#exhibitionDarkMode {
    position: absolute;
    left: 32vw;
    top: 29.6vh;

    width: 16.5vw;
    height: 46.7vh;
}

#exhibitionWidgets {
    position: absolute;
    left: 7.2vw;
    top: 55vh;

    width: 15vw;
    height: 33.75vh;
}

/* MARK: functionIntroducingProjection */
#functionIntroducingProjection {
    display: flex;
    justify-content: center;
    align-items: center;

    position: absolute;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background-color: var(--gray-for-background);

    opacity: 0.0;
}

#functionsWindow {
    height: 75vh;

    z-index: 3;
}

/* To load image once */
.villageBackground {
    background-image: url(../resources/background-village.png);
    background-size: cover;
}

#thirdProjectionBackground {
    position: absolute;

    width: 65vh;
    height: 65vh;

    /* background-image: url(../resources/background-village.png);
    background-size: cover; */

    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);

    z-index: 1;

    opacity: 0.0;
}

#thirdProjectionBackgroundBackup {
    position: absolute;

    width: 100vw;
    height: 100vh;

    /* background-image: url(../resources/background-village.png);
    background-size: cover; */

    z-index: 1;

    opacity: 0.0;
}

#functionsContainer {
    position: absolute;
    top: 15vh;

    width: 60vw;

    opacity: 0.0;

    z-index: 5;
}

#functionsHeadersContainer {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
    
    gap: 2rem;
    font-size: 2.5rem;
}

#functionsHeadersContainer > div {
    width: 4rem;
    writing-mode: vertical-rl;

    opacity: 0.6;

    transition: opacity 0.3s;
}

#functionsHeadersContainer > div::before {
    content: "。";
    margin-bottom: 1rem;
}

#functionsTextContainer {
    width: 60vw;
    height: 25vh;
    writing-mode: vertical-rl;

    font-size: 1.3rem;
    line-height: 1.8rem;

    margin: 1.5rem 0 0 auto;

    overflow: scroll;
}

/* MARK: aboutProjection */
#aboutProjection {
    display: flex;
    justify-content: center;
    align-items: center;

    position: absolute;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background-color: var(--gray-for-background);

    opacity: 0.0;
}

#aboutProjectionIntroducingButterfly {
    position: absolute;
    top: 100vh;
    left: 0;

    width: 15vh;
    height: 15vh;

    transform: translate(-50%, -50%);

    background-image: url(../resources/image-butterfly-0.png);
    background-size: contain;

    z-index: 9;
}

#aboutProjectionBackground {
    position: absolute;

    width: 105vw;
    height: 100vh;

    background-image: url(../resources/background-city.png);
    background-size: cover;

    opacity: 0.5;
}

#aboutProjectionIcon {
    position: fixed;
    right: 1rem;
    bottom: 0;
}

#aboutProjectionIcon img {
    height: 4rem;
}

#informationContainer {
    text-align: center;

    font-size: 1.5rem;
    line-height: 2rem;

    z-index: 1;
}