@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700&display=swap');

:root {
    --clr-bg-guest2: #d8cfd7; /*#cea7ff*/ /*logo背景色，淡紫色*/
    --clr-bg-2: #d8cfd7; /* 第一背景色，淡紫灰 */
    --clr-html-bg: #ebe6eb; /* 預設背景色 */
    --clr-text-1: black; /* 黑色 */
    --clr-text-2: #001e45; /* 深藍 */
    --clr-content-bg: #f4f2ec; /* 米色*/
    --clr-chat-bg: #211122; /* 深紫灰 */ /*#443642*/
    --clr-btn-yellow: #ede7d6; /* 粉黃色 */
    --clr-btn-purple: #c2b4c0;
    --clr-btn-iphone: #8d4e72;
    --clr-gold: #ffd046;
    --clr-gold-light: #f6d7b3;
    --clr-gold-dark: #4f2c04;
    --clr-nav-border: #80808020;
    --clr-nav-bg: #6d566aa0;
    --iphone-hair-height: 32px;
    --nav-top-height: 96px;
    --nav-bottom-height: 76px; /*這個值是觀察所以，還不準確，儘量少用*/
    --multi-line-height: 1em;
}

/* User Agent Begin */

/*From Web*/
img, video {
    max-width: 100%;
    height: auto;
}

audio, canvas, embed, iframe, img, object, svg, video {
    display: block;
    vertical-align: middle;
}

button, input:where([type=button]), input:where([type=reset]), input:where([type=submit]) {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

button, select {
    text-transform: none;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

*, ::after, ::before {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

/* From Mobile */
body {
    display: block;
    /*margin: 8px;*/
    margin: 0px;
}

/* User Agent End */

* {
    /*font-size: max(1em, 24px);*/
}

html {
    background: var(--clr-bg-2);
    width: 100%;
    height: var(--display-height);
    overflow: hidden;
}

a, [onclick], .cursor-pointer {
    cursor: pointer;
}

.cursor-grab {
    cursor: grab;
}

.vertical-line {
    width: 2px;
    border: 1px inset var(--clr-nav-border);
}

.full-page {
    width: 100%;
    height: var(--display-height);
}

.validation-message, .validation-summary-valid, .validation-summary-errors {
    color: red; /* 將 Validation錯誤信息設為紅色 */
}

.page-gradient-0 {
    background: linear-gradient(135deg, #ffffff 0%, #d8cfd7 30%, #d8cfd7 70%, #a996a7 100%);
}

.page-gradient-1 {
    background: linear-gradient(135deg, #d8cfd7 0%, #ffffff 15%, #ffffff 85%, #d8cfd7 100%);
}

.page-gradient-2 {
    background: linear-gradient(135deg, #ffffff 0%, #d8cfd7 30%, #d8cfd7 80%, #a996a7 100%);
}

.full-page {
    /*max(1em, 20px);*/
    font-family: 'Cinzel', 'Microsoft JhengHei', 'Noto Sans TC';
}

    .full-page h3 {
        font-size: clamp(16px, 1.4em, 24px);
    }

body {
    width: 100%;
    height: var(--display-height);
    font-size: clamp(16px, 4.2vw, 24px);
}

.normal-font {
    font-family: 'Microsoft JhengHei', 'Noto Sans TC';
}

/* 約束畫面為直式 start */
html {
    display: flex;
    justify-content: center;
}

body {
    position: relative; /*為了約束absolute*/
    max-width: var(--display-height);
}
/* 約束畫面為直式 end */


iframe {
    scale: 105%;
    border: none;
}

.iframe-item {
}

input[type="button"], button {
    padding: 8px;
    border-radius: 8px;
    min-width: 80px;
    background-color: white;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input:not([type]),
textarea {
    width: 100%;
    border-left: none;
    border-top: none;
    border-right: none;
    outline: none;
    background-color: var(--clr-content-bg);
    border-radius: 15px;
    padding: 5px 8px 3px 8px;
    font-family: 'Microsoft JhengHei', 'Noto Sans TC';
}

input[type="checkbox"] {
    height: 1em;
    width: 1em;
    vertical-align: middle;
}

input::placeholder {
    color: gray;
    font-family: 'Cinzel', 'Microsoft JhengHei', 'Noto Sans TC';
}

.image-box-bg {
    width: 0;
    padding: 5%; /* 改變此屬性 */
    background-image: url(''); /* 改變此屬性 */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid #ddd;
}

.line-break {
    white-space: pre-wrap;
}

.nav-bar-top {
    width: 100%;
    height: var(--nav-top-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    position: relative; /*為了after的border*/
    /*border-bottom: 1px inset var(--clr-nav-border);*/
    /*background: linear-gradient(to bottom right, #a47ca0 5%, rgba(255, 255, 255, 0) 50%);*/
    /*color: var(--clr-content-bg);*/
    padding-top: var(--iphone-hair-height); /* 為了手機螢幕邊緣 */ /*手機沒效?*/
}

/*顯示部分寬度的border*/
.nav-bar-top::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 85%;
    border-bottom: 1px inset var(--clr-btn-iphone);
}

.page-container-ver {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(var(--display-height) - var(--nav-top-height));
}

.page-container-vertop {
    height: calc(var(--display-height) - var(--nav-top-height));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 48px;
}

.page-container-vertop-scroll {
    /*height: 65%; 手機上無效*/
    height: calc(var(--display-height) - var(--nav-top-height));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 48px;
    overflow-y: auto;
    scrollbar-width: none;
}

.page-container-hor {
    padding-left: 10%;
    padding-right: 10%;
    text-align: center;
    height: 100%;
}

.page-container-horleft {
    padding-left: 10%;
    padding-right: 10%;
    width: 100%;
    height: 100%;
}

.page-title-mine {
    text-align: center;
    margin-top: 28px;
}

.required-star {
    position: relative;
}

.required-star::before {
    content: "*";
    color: darkred;
    position: absolute;
    left: -10px;
    pointer-events: none;
}

.hint-text {
    font-size: clamp(16px, 0.8em, 24px);
    color: darkred;
}

.nav-back {
    position: absolute;
    top: -44px;
    left: -12px;
    color: #808080;
    background-color: transparent;
    font-size: 2.4em;
}

.nav-set {
    display: block;
    width: 48px;
    right: 64px;
    top: -24px;
    filter: hue-rotate(45deg) brightness(0.3);
}

.page-title {
    font-size: clamp(16px, 1.4em, 24px);
    font-family: 'Cinzel';
    /*border-bottom: solid 1px var(--clr-nav-border);*/
    white-space: nowrap;
}

.nav-bar-bottom {
    position: fixed; /* absolute會跟著上下捲動*/
    bottom: 0;
    width: 100%;
    max-width: var(--display-height);
    display: flex;
    justify-content: space-around;
    padding-top: 8px;
    /*background-color: var(--clr-nav-bg);*/
    /*background: linear-gradient(to top, #90828f, #90828f80 50%, #90828f00);*/
    padding-bottom: 8px; /* 為了手機螢幕邊緣 */
}

.nav-vertical-line {
    width: 2px;
    border: 1px inset var(--clr-nav-border);
    margin-bottom: 16px;
}

.notify-badge {
    position: relative;
}

.notify-badge[data-badge]:not([data-badge=""]):not([data-badge="0"])::after {
    content: attr(data-badge);
    display: flex;
    width: 25px;
    height: 25px;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -5px;
    right: -5px;
    color: white;
    background-color: red;
    border-radius: 50%;
    font-size: 0.6em;
    font-weight: bold;
}

.content-scroll {
    height: 65dvh;
    overflow-y: auto;
    scrollbar-width: none;
}

.confirm-bar-prev {
    /*flex-grow: 1;*/
}

.confirm-bar {
    width: 100%;
    text-align: right;
    padding-top: 48px;
    padding-bottom: 48px;
}

.confirm-bar-abs {
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 80%;
    text-align: right;
}

.spread-confirm-bar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.iphone-btn-mine {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-btn-iphone);
    border: none;
    color: white;
    height: 40px;
    border-radius: 8px;
    line-height: var(--multi-line-height);
}

.disabled-btn {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin: 2px;
    border: solid 2px var(--clr-nav-bg);
    line-height: var(--multi-line-height);
}

.hidden-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.purple-btn {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-bg-2); /*#005bc1*/
    border-radius: 8px;
    margin: 2px;
    border: solid 2px var(--clr-nav-bg);
    line-height: var(--multi-line-height);
}

.chat-page {
    color: var(--clr-content-bg);
    background-color: var(--clr-chat-bg);
}

.bubble-right {
    position: absolute;
    left: 10%;
    border: 1px solid black;
    border-radius: 10px;
    padding: 10px;
    color: var(--clr-text-2);
    background-color: var(--clr-content-bg);
}

.bubble-left {
    position: absolute;
    right: 10%;
    border: 1px solid black;
    border-radius: 10px;
    padding: 10px;
    color: var(--clr-text-2);
    background-color: var(--clr-content-bg);
}

.hobby-container {
    display: flex;
    flex-wrap: wrap;
}

.hobby-tag {
    background-color: var(--clr-content-bg);
    border: 1px solid grey;
    border-radius: 20px;
    margin: 8px;
    padding: 8px;
}

.hobby-select {
    background-color: cadetblue;
}

.photo-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 8px;
}

.photo-grid {
    margin: 4px;
}

.back-btn {
    min-width: 0;
    padding: 12px 12px 8px 16px;
    color: #00000060;
    background-color: #00000030;
    line-height: var(--multi-line-height);
}

.button-next {
    min-width: 0;
    padding: 12px 12px 8px 16px;
    color: var(--clr-chat-bg);
    background-color: transparent
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-content {
    color: var(--clr-text-1);
    font-size: clamp(16px, 0.8em, 24px);
    background: white;
    padding: 20px;
    margin: 24px;
    max-width: calc(var(--display-height) - 24px * 2);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.popup-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
}

/* Modify frameowrk7 */
.item-content {
    width: 100%;
}

.logo-box-bg {
    position: absolute;
    padding: 102%;
    left: -51%;
    top: -10%;
    border: 0px;
    width: 0;
    background-image: url(''); /* 改變此屬性 */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/*Animation*/
.animated-logo {
    display: inline-block;
    animation: rotateAndScale 4s infinite;
    position: absolute;
    width: 8%;
    right: 29%;
    top: 36%;
}

.logo-text {
    display: inline-block;
    position: relative;
    width: 110%;
    top: 0;
}

/* 定義旋轉和縮放的動畫 */
@keyframes rotateAndScale {
    0% {
        top: 36%;
        transform: rotate(0deg) scale(1); /* 初始狀態：無旋轉，大小正常 */
    }

    50% {
        top: 33%;
        transform: rotate(180deg) scale(1.5); /* 中間狀態：旋轉180度，縮小至50% */
    }

    100% {
        top: 36%;
        transform: rotate(360deg) scale(1); /* 結束狀態：旋轉360度，恢復正常大小 */
    }
}



.shadow-drop-center {
    -webkit-animation: shadow-drop-center 1.5s linear infinite alternate backwards;
    animation: shadow-drop-center 1.5s linear infinite alternate backwards;
}
/* ----------------------------------------------
 * Generated by Animista on 2024-10-14 10:36:45
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation shadow-drop-center
 * ----------------------------------------
 */
@-webkit-keyframes shadow-drop-center {
    0% {
        -webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }

    100% {
        -webkit-box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.35);
        box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.35);
    }
}

@keyframes shadow-drop-center {
    0% {
        -webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }

    100% {
        -webkit-box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.35);
        box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.35);
    }
}


/* Metallic */
.gold {
    border: 2px solid var(--clr-gold-light);
    background-color: var(--clr-btn-yellow);
    box-shadow: inset 0 0 0px var(--clr-gold-dark), inset 0 0px 20px var(--clr-gold), 0 0 0px rgba(0, 0, 0, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.gold-btn {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--clr-gold-light);
    background-color: var(--clr-btn-yellow);
    border-radius: 8px;
    margin: 2px;
    line-height: var(--multi-line-height);
}

.gold-edit {
    border: 2px solid var(--clr-gold-light);
    border-radius: 15px;
    background-color: var(--clr-content-bg);
    box-shadow: inset 0 0 0px var(--clr-gold-dark), inset 0 0px 20px #fffaf0, 0 0 0px rgba(0, 0, 0, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin: 2px;
    padding: 5px 8px 3px 8px;
}

.badge {
    overflow: hidden;
    /* transition: 500ms transform linear; */
    border-radius: 50%; /*20%*/
    width: 80px;
    height: 80px; /*50px*/
}

.badge-rect {
    overflow: hidden;
    /* transition: 500ms transform linear; */
    border-radius: 10%; /*20%*/
    width: 80px;
    height: 80px; /*50px*/
}

.glossy {
    display: block;
    position: absolute;
    height: 200%;
    width: 50%;
    top: 0;
    right: 0;
    background: linear-gradient(to right, #ffffff60, #ffffff00);
    background-size: 200%;
    transform-origin: top right;
    transform: rotate(45deg);
    transform-style: preserve-3D;
    animation: MoveBackgroundPosition 6s ease-in-out infinite;
}

@keyframes MoveBackgroundPosition {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* For Icons*/
.icon-sport {
    position: relative;
    top: 6px;
    /*border: 1px solid var(--clr-text-2);*/
    border-radius: 50%;
    /*padding: 2px;*/
    width: 24px;
    /*background-color: var(--clr-chat-bg);*/
    filter: hue-rotate(45deg) brightness(0.3);
}

.icon-sport-gold {
    position: relative;
    top: 6px;
    /*border: 1px solid var(--clr-gold);*/
    border-radius: 50%;
    /*padding: 2px;*/
    width: 24px;
}

/*不知為何手機上的icon會跑掉，先在此蓋回來*/
.icon-sport, .icon-sport-gold {
    display: initial;
    top: 0px;
}

.icon-sport-nav {
    position: relative;
    top: 0px;
    border: none;
    border-radius: 50%;
    padding-bottom: 12px;
    width: 48px;
    /*background-color: var(--clr-chat-bg);*/
    filter: hue-rotate(45deg) brightness(0.3);
}

.icon-sport-nav-gold {
    position: relative;
    top: 0px;
    border: none;
    border-radius: 50%;
    padding-bottom: 12px;
    width: 40px;
    /*background-color: var(--clr-chat-bg);*/
}

.icon-white {
    filter: invert(0) brightness(2);
}
