/* @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100;300;400;500;700;900&family=Noto+Sans+TC:wght@100;300;400;500;700;900&family=Noto+Serif+SC:wght@200;300;400;500;600;700;900&family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap'); */

:root {
    --background-color: #202122;
    --cover-color: #4c5f70;
    --maintransparent-color: #7598b900;
    --main-color: #97b3ce;
    --scrollbar-color: #515b64;
    --date-color: #95a0aa;
    --mainline-color: #c7c7c7;
    --logo-filter: invert(76%) sepia(48%) saturate(266%) hue-rotate(179deg) brightness(86%) contrast(86%);
}

.light-theme {
    --background-color: #f0f5fa;
    --cover-color: #081d30;
    --maintransparent-color: #33577800;
    --main-color: #335778FF;
    --scrollbar-color: #b4c2cf;
    --date-color: #78848f;
    --mainline-color: black;
    --logo-filter: invert(29%) sepia(14%) saturate(1752%) hue-rotate(167deg) brightness(98%) contrast(87%);
}

@font-face {
    font-family: 'Noto Sans SC';
    src: url('assets/fonts/NotoSansSC-VariableFont_wght.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/Outfit-VariableFont_wght.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans TC';
    src: url('assets/fonts/NotoSansTC-VariableFont_wght.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    font-size: 13px;
}

body {
  font-family: 'Outfit', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
  margin: 0;
  background-color: var(--background-color);
  transition: all 0.5s cubic-bezier(0.56, 0.01, 0.08, 0.99);
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.Photography {
    display: flex;
    height: 100vh;
}

.largeImage {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0;
    backdrop-filter: none;
    pointer-events: none;
    transition: all 0.5s;
}

.largeImageOn {
    z-index: 12;
    opacity: 1;
    backdrop-filter: blur(32px);
    pointer-events: all;
}

.largeImageCloseButton {
    float: right;
    position: fixed;
    right: 10vw;
    top: 10vh;
    cursor: pointer;
    z-index: 14;
}

.largeImageContainer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 13;
    opacity: 0;
    padding: 12px;
    background-color: var(--background-color);
    transform: translateY(20vh);
    transition: opacity 0.5s, transform 0.5s cubic-bezier(0.56, 0.01, 0.08, 0.99);
    overflow: hidden;
}

#largeImageLoadingText {
    color: var(--background-color);
    position: fixed;
    transform: translate(-32px, -32px);
    font-size: 1.2rem;
    line-height: 100%;
    text-align: center;
    opacity: 1;
    transition: all 0.5s;
}

.largeImageInside {
    display: block;
    opacity: 0;
    transition: all 0.5s;
}

.largeImageInfoOn {
    filter: blur(16px) opacity(0.4) saturate(1.5);
}

.infoElement {
    opacity: 0;
    transition: all 0.5s;
    cursor: pointer;
    color: var(--main-color);
}

#noticeElement {
    color: var(--main-color);
    opacity: 0;
    transition: all 0.5s;
}

.largeImageLoaded {
    transform: translate(0) !important;
    opacity: 1 !important;
}

.infoElement:hover > #moreDetailsText {
    opacity: 1 !important;
}

#moreDetailsLogo {
    filter: var(--logo-filter);
}

.cover {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: var(--cover-color);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
}

.coverOn {
    opacity: 0.75;
    z-index: 11;
}

@media (orientation: portrait) {
    .logoPage {
        font-size: 0.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 5rem;
        min-width: 60vw;
        box-sizing: border-box;
        height: 100vh;
        z-index: 1;
        /* background-color: var(--background-color); */
    }

    #largeImageInfo {
        margin: 0px 0px 0px 20px !important;
        font-size: 0.9rem !important;
        color: var(--main-color);
    }
}

@media (orientation: landscape) {
    .logoPage {
        font-size: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 5rem;
        min-width: 33vw;
        box-sizing: border-box;
        height: 100vh;
        z-index: 1;
        /* background-color: var(--background-color); */
    }

    #largeImageInfo {
        color: var(--main-color);
    }
}

.logoPageLoaded {
    transform: translateX(0rem) !important;
    opacity: 1 !important;
}

.logoImg {
    transform: translateX(10rem);
    opacity: 0;
    position: relative;
    pointer-events: none;
    z-index: 0;
    transition: all 1.5s cubic-bezier(0.56, 0.01, 0.08, 0.99);
    width: 100px;
    height: 100px;
}

.logoImg > svg {
    position: absolute;
    width: 100px;
}

#largeImageLoadingText > svg {
    position: absolute;
    width: 64px;
    filter: brightness(100);
    opacity: 0.8;
}

@-moz-keyframes spin { 
    100% { -moz-transform: rotate(360deg); } 
}
@-webkit-keyframes spin { 
    100% { -webkit-transform: rotate(360deg); } 
}
@keyframes spin { 
    100% { 
        -webkit-transform: rotate(360deg); 
        transform:rotate(360deg); 
    } 
}

#arc0 {
    -webkit-animation:spin 8s linear infinite;
    -moz-animation:spin 8s linear infinite;
    animation:spin 8s linear infinite;
}

#arc1 {
    -webkit-animation:spin 16s linear infinite;
    -moz-animation:spin 16s linear infinite;
    animation:spin 16s linear infinite;
    -webkit-animation-direction: reverse;
    -moz-animation-direction: reverse;
    animation-direction: reverse;
}

#arc2 {
    -webkit-animation:spin 32s linear infinite;
    -moz-animation:spin 32s linear infinite;
    animation:spin 32s linear infinite;
}

#arc3 {
    -webkit-animation:spin 64s linear infinite;
    -moz-animation:spin 64s linear infinite;
    animation:spin 64s linear infinite;
    -webkit-animation-direction: reverse;
    -moz-animation-direction: reverse;
    animation-direction: reverse;
}

#arc0Loading {
    -webkit-animation:spin 16s linear infinite;
    -moz-animation:spin 16s linear infinite;
    animation:spin 16s linear infinite;
}

#arc1Loading {
    -webkit-animation:spin 8s linear infinite;
    -moz-animation:spin 8s linear infinite;
    animation:spin 8s linear infinite;
    -webkit-animation-direction: reverse;
    -moz-animation-direction: reverse;
    animation-direction: reverse;
}

#arc2Loading {
    -webkit-animation:spin 4s linear infinite;
    -moz-animation:spin 4s linear infinite;
    animation:spin 4s linear infinite;
}

#arc3Loading {
    -webkit-animation:spin 2s linear infinite;
    -moz-animation:spin 2s linear infinite;
    animation:spin 2s linear infinite;
    -webkit-animation-direction: reverse;
    -moz-animation-direction: reverse;
    animation-direction: reverse;
}

.logoPage > h1 {
    margin: 0;
    line-height: 100%;
    font-size: 1.15rem;
}

.subline {
    line-height: 150% !important;
    font-weight: 900;
    color: var(--main-color);
    transform: translateX(10rem);
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.56, 0.01, 0.08, 0.99) 0.2s;
    font-family: "Outfit", 'Noto Sans SC', sans-serif;
}

@media (orientation: portrait) {
    .mainline {
        color: var(--mainline-color);
        font-size: 5rem !important;
        font-weight: 900;
        letter-spacing: 6px;
        writing-mode: vertical-rl;
        transform: translateX(10rem);
        opacity: 0;
        transition: all 1.5s cubic-bezier(0.56, 0.01, 0.08, 0.99) 0.1s;
    }

    .englishMainTitle {
        margin-top: -40px !important;
        margin-bottom: 40px !important;
        font-size: 0.8rem !important;
        font-weight: 900 !important;
        font-family: "Outfit", sans-serif;
    }
    
    .englishTitle {
        font-size: 0.8rem !important;
        font-weight: 500;
        font-family: "Outfit", sans-serif;
    }
}

@media (orientation: landscape) {
    .mainline {
        color: var(--mainline-color);
        font-size: 8rem !important;
        font-weight: 900;
        letter-spacing: 6px;
        writing-mode: vertical-rl;
        transform: translateX(10rem);
        opacity: 0;
        transition: all 1.5s cubic-bezier(0.56, 0.01, 0.08, 0.99) 0.1s;
    }

    .englishMainTitle {
        margin-top: -60px !important;
        margin-bottom: 40px !important;
        font-size: 1rem !important;
        font-weight: 900 !important;
        font-family: "Outfit", sans-serif;
    }
    
    .englishTitle {
        font-size: 1rem !important;
        font-weight: 500;
        font-family: "Outfit", sans-serif;
    }
}

.mainline > span {
    font-weight: 100;
}

@media (orientation: portrait)  {
    .introPageContainer {
        position: absolute;
        height: calc(100vh - 80px);
        opacity: 0;
        bottom: 0;
        overflow-y: hidden;
        z-index: 10;
    }

    .introPage {
        position: relative;
        height: 100vh;
        background-color: var(--maintransparent-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(calc(100% - 80px));
        transition: transform 1s cubic-bezier(0.56, 0.01, 0.08, 0.99), background-color 0.3s 0.7s;
        z-index: 10;
    }

    .introText {
        height: calc(100% - 150px);
        margin-left: 10px;
        margin-right: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        z-index: 10;
        text-align: center;
    }

    .introText > p {
        color: var(--background-color);
        font-weight: 400;
        font-size: 0.85rem;
        line-height: 130%;
        margin: 0;
    }

    .englishIntro {
        font-size: 0.835rem !important;
        font-family: 'Outfit', sans-serif;
    }

    .introText a {
        color: var(--background-color);
        font-weight: 400;
        font-size: 0.85rem;
        line-height: 180%;
    }

    .introLogoImg {
        margin-bottom: 1.5rem;
        filter: brightness(1000);
        position: unset;
        pointer-events: none;
    }

    .introArrowContainerOpened {
        transform: translateY(50px) rotate(-180deg) !important;
        z-index: 11;
    }
}

@media (orientation: landscape) {
    .introPageContainer {
        position: absolute;
        width: 33vw;
        height: calc(100vh - 80px);
        opacity: 0;
        bottom: 0;
        overflow-y: hidden;
        z-index: 10;
    }

    .introPage {
        position: relative;
        width: 33vw;
        height: 100vh;
        background-color: var(--maintransparent-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(calc(100% - 80px));
        transition: transform 1s cubic-bezier(0.56, 0.01, 0.08, 0.99), background-color 0.3s 0.7s;
        z-index: 10;
    }

    .introText {
        height: calc(100% - 80px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        z-index: 10;
        text-align: center;
    }

    .introText > p {
        color: var(--background-color);
        font-weight: 400;
        font-size: 1.3rem;
        line-height: 150%;
        margin: 0;
    }

    .englishIntro {
        font-size: 1.15rem !important;
        font-family: 'Outfit', sans-serif;
    }

    .introText a {
        color: var(--background-color);
        font-weight: 400;
        font-size: 1.1rem;
        line-height: 100%;
    }

    .introLogoImg {
        margin-bottom: 4rem;
        filter: brightness(1000);
        position: unset;
        pointer-events: none;
    }

    .introArrowContainerOpened {
        transform: rotate(-180deg) !important;
        z-index: 11;
    }
}

.introPageContainerLoaded {
    opacity: 1;
    height: 100vh;
    transition: all 1.5s cubic-bezier(0.56, 0.01, 0.08, 0.99) 0.8s;
}

.introPageOpened {
    background-color: var(--main-color);
    transform: translateY(0);
    transition: transform 1s cubic-bezier(0.56, 0.01, 0.08, 0.99), background-color 0.3s;
}

.introArrowContainer {
    transform: rotate(0deg); 
    transition: all 0.2s cubic-bezier(0.56, 0.01, 0.08, 0.99) 0.8s;
}

.introArrow {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.56, 0.01, 0.08, 0.99) 0.8s;
}

.photoFlow {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 30px;
    padding-right: 100px;
}

@media (orientation: portrait) {
    #scrollbar {
        background-color: var(--scrollbar-color);
        position: fixed;
        top: 6vh;
        width: 25rem;
        max-width: 20vw;
        height: 5px;
        left: 50%;
        opacity: 0;
        transform: translateX(-50%) translateY(-9vh);
        transition: all 1.5s cubic-bezier(0.56, 0.01, 0.08, 0.99);
    }
}

@media (orientation: landscape) {
    #scrollbar {
        background-color: var(--scrollbar-color);
        position: fixed;
        top: 6vh;
        width: 25rem;
        max-width: 20vw;
        height: 5px;
        left: 50%;
        opacity: 0;
        transform: translateX(-50%) translateY(-9vh);
        transition: all 1.5s cubic-bezier(0.56, 0.01, 0.08, 0.99);
    }
}

#scrollbarInside {
    background-color: var(--main-color);
    min-width: 6px;
    height: 5px;
}

.scrollbarLoaded {
    transform: translateX(-50%) !important;
    opacity: 1 !important;
}

@media (orientation: portrait) {
    #dateDisplay {
        display: flex;
        align-items: center;
        font-size: 1.6rem;
        font-weight: 100;
        color: var(--main-color);
        position: fixed;
        bottom: 3vh;
        left: 50%;
        transform: translateX(-50%) translateY(9vh);
        opacity: 0;
        transition: all 1.5s cubic-bezier(0.56, 0.01, 0.08, 0.99);
    }

    #dateDisplayText {
        font-size: 1.6rem;
        font-weight: 300;
        margin-left: 1rem;
        margin-right: 1rem;
        color: #78848f;
        font-family: "Outfit", sans-serif;
    }
}

@media (orientation: landscape) {
    #dateDisplay {
        display: flex;
        align-items: center;
        font-size: 2rem;
        font-weight: 100;
        color: var(--main-color);
        position: fixed;
        bottom: 3vh;
        left: 50%;
        transform: translateX(-50%) translateY(9vh);
        opacity: 0;
        transition: all 1.5s cubic-bezier(0.56, 0.01, 0.08, 0.99);
    }

    #dateDisplayText {
        font-size: 2rem;
        font-weight: 300;
        margin-left: 1rem;
        margin-right: 1rem;
        color: var(--date-color);
        font-family: "Outfit", sans-serif;
    }    
}

#dateDisplay:hover > .dateArrow {
    opacity: 1 !important;
    cursor: pointer;
    pointer-events: all;
}

#dateDisplayText > b {
    color: var(--main-color);
    font-weight: 800;
}

@media (orientation: portrait) {
    .dateArrow {
        transform: translateX(0);
        margin: 1rem 1rem;
        opacity: 0;
        cursor: default;
        pointer-events: none;
        transition: all 0.5s cubic-bezier(0.56, 0.01, 0.08, 0.99);
    }
}

@media (orientation: landscape) {
    .dateArrow {
        transform: translateX(0);
        margin: 1rem 1rem;
        opacity: 1;
        cursor: default;
        pointer-events: none;
        transition: all 0.5s cubic-bezier(0.56, 0.01, 0.08, 0.99);
    }
}

.dateArrowLeft:hover {
    transform: translateX(-2px);
}

.dateArrowRight:hover {
    transform: translateX(2px);
}

.dateDisplayLoaded {
    transform: translateX(-50%) !important;
    opacity: 1 !important;
}

@media (orientation: portrait) {
    #mouseReminder {
        position: absolute;
        line-height: 95% !important;
        font-weight: 400;
        font-size: 0.7rem;
        opacity: 0;
        margin: 0;
        padding-bottom: 78vh;
        padding-left: 5vh;
        color: var(--main-color);
        transition: all 1.5s cubic-bezier(0.56, 0.01, 0.08, 0.99);
    }

    #mouseReminderLoaded {
        position: absolute;
        line-height: 95% !important;
        font-weight: 400;
        font-size: 0.7rem;
        opacity: 1;
        margin: 0;
        padding-bottom: 78vh;
        padding-left: 2vh;
        color: var(--main-color);
        transition: all 1.5s cubic-bezier(0.56, 0.01, 0.08, 0.99);
    }
}

@media (orientation: landscape) {
    #mouseReminder {
        position: absolute;
        line-height: 50% !important;
        font-weight: 400;
        font-size: 1rem;
        opacity: 0;
        margin: 0;
        padding-bottom: 78vh;
        padding-left: 5vh;
        color: var(--main-color);
        transition: all 1.5s cubic-bezier(0.56, 0.01, 0.08, 0.99);
    }

    #mouseReminderLoaded {
        position: absolute;
        line-height: 50% !important;
        font-weight: 400;
        font-size: 1rem;
        opacity: 1;
        margin: 0;
        padding-bottom: 78vh;
        padding-left: 2vh;
        color: var(--main-color);
        transition: all 1.5s cubic-bezier(0.56, 0.01, 0.08, 0.99);
    }
}

#flow1, #flow2 {
    display: flex;
    gap: 2vh;
}

#flow1 {
    margin-bottom: 2vh;
}

.photo {
    opacity: 0;
    margin-left: 100px;
    position: relative;
    transition: all 1s cubic-bezier(0.56, 0.01, 0.08, 0.99);
}

.photoLoaded {
    opacity: 1;
    margin-left: 0;
}

.imageInside {
    margin: 0;
    position: absolute;
    z-index: 7;
    transform: translateY(0);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.56, 0.01, 0.08, 0.99);
}

/* img:hover {
    height: 28vh;
} */

.imageBackground {
    background-color: var(--main-color);
    position: absolute;
    height: 100%;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.56, 0.01, 0.08, 0.99);
}

.photo:hover > .imageInside {
    transform: translateY(-0.5vh);
}

.fullscreenIcon {
    position: absolute;
    z-index: 10;
    opacity: 0;
    transform: none;
    left: calc(50% - 30px);
    top: calc(50% - 30px);
    filter: drop-shadow(0 6px 0 var(--main-color));
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.56, 0.01, 0.08, 0.99);
}

.photo:hover > .fullscreenIcon {
    transform: translateY(-0.5vh);
    opacity: 1;
}

.photo:hover > .imageBackground {
    margin-top: 0.5vh;
}

#endPageStarCitizenLogo {
    opacity: 0;
    margin-top: 50px;
}

.noticeNode:hover > #noticeElement {
    opacity: 1 !important;
}

.linkShareNode:hover > #noticeElement {
    opacity: 1 !important;
}

.arcsLoading {
    fill: var(--cover-color);
    transition: all 0.5s;
}

.arcsLarge {
    fill: var(--main-color);
    transition: all 0.5s;
}

#linkIcon {
    fill: var(--main-color);
    transition: all 0.5s;
    display: initial;
}

#downloadIcon {
    fill: var(--main-color);
    transition: all 0.5s;
}

#checkIcon {
    display: none;
    transition: all 0.5s;
}

#introOpener {
    fill: var(--main-color);
    transition: all 0.5s;
}

#lightModeButton {
    position: fixed;
    top: calc(6vh - 9px);
    left: calc(50% + 10vw + 2.5rem);
    display: initial;
    pointer-events: all;
    opacity: 0;
    transform: translateX(-50%) translateY(-9vh);
    transition: all 1.5s cubic-bezier(0.56, 0.01, 0.08, 0.99);
    cursor: pointer;
}

#darkModeButton {
    position: fixed;
    top: calc(6vh - 9px);
    left: calc(50% + 10vw + 2.5rem);
    display: none;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(-9vh);
    transition: all 1.5s cubic-bezier(0.56, 0.01, 0.08, 0.99);
    cursor: pointer;
}