/* =========================================================
   SkinZenitude — Client Question — EN
   ========================================================= */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    overflow: hidden;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #f5eee4;
    font-family: inherit;
}

#question {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

html:lang(en) #question {
    background-image: url("/SZ/site/pc/EN/question/question_EN_desktop.webp");
}

/* ---------------------------------------------------------
   Question field
   --------------------------------------------------------- */

.question-panel {
    position: absolute;

    left: 29%;
    top: 56%;

    width: 40%;
    height: 41%;

    box-sizing: border-box;
}

#question-text {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 4% 5%;

    box-sizing: border-box;

    border: none;
    border-radius: 0;
    outline: none;

    resize: none;

    background: transparent;
    color: #3d3833;

    font-family: inherit;
    font-size: clamp(1rem, 1.3vw, 1.35rem);
    line-height: 1.55;

    overflow-y: auto;

    box-shadow: none;
}

#question-text::placeholder {
    color: #5c554e;
    opacity: 0.82;
}

#question-text:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

#question-text.is-typing,
#question-text.is-paused,
#question-text.is-analysing {
    border: none;
    box-shadow: none;
}

/* ---------------------------------------------------------
   Status
   --------------------------------------------------------- */

.question-status {
    position: absolute;

    left: 0;
    right: 0;
    bottom: -2.25rem;

    min-height: 1.5rem;

    font-size: 0.9rem;
    line-height: 1.4;

    opacity: 0;
    transition: opacity 0.2s ease;
}

.question-status.is-visible {
    opacity: 1;
}

/* ---------------------------------------------------------
   Accessibility
   --------------------------------------------------------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------
   Mobile — prepared for later
   --------------------------------------------------------- */

@media (max-width: 700px) {

    html:lang(en) #question {
        background-image: url("/SZ/site/pc/EN/question/question_EN_cell.webp") !important;
        background-position: center center;
        background-size: cover;
    }

    .question-panel {
        left: 16%;
        top: 61%;
        width: 50%;
        height: 38%;
    }

    #question-text {
        padding: 8% 6%;
        font-size: clamp(0.9rem, 3.1vw, 1.1rem);
        line-height: 1.5;
    }
}

/* =========================================================
   AVA — QUESTION
   Position specific to Amaya's raised hand.
   ========================================================= */

#question > #ava {
    left: 72.5% !important;
    top: 30% !important;
    width: 8% !important;
}

#question > #ava .ava-child .ava-panel {
    font-size: clamp(11px, .95vw, 16px) !important;
}

@media (max-width: 700px) {
    #question > #ava {
        left: 57% !important;
        top: 46% !important;
        width: 13% !important;
    }
}


/* =========================================================
   CELL — EN refinement
   ========================================================= */

@media (max-width: 700px) {

    html,
    body {
        -webkit-text-size-adjust: 100%;
    }

    #question-text {
        /*
         * 16px prevents automatic input zoom on iPhone/iPad.
         */
        font-size: 16px;
        line-height: 1.5;
        padding: 7% 7%;
    }

    #question > #ava {
        max-width: 64px;
    }
}


/* =========================================================
   AVA — QUESTION PC-EN (independent page component)
   ========================================================= */
#question > #ava.ava-question {
    position: absolute;
    left: 72.5%;
    top: 30%;
    width: clamp(68px, 8vw, 112px);
    height: auto;
    z-index: 20;
    cursor: pointer;
    opacity: 0;
    transform: scale(.82);
    transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1);
}
#question > #ava.ava-question.ava-visible { opacity: 1; transform: scale(1); }
#ava.ava-question .ava-lotus { display:block; width:100%; height:auto; opacity:.78; transition:opacity .3s ease,transform .3s ease,filter .3s ease; }
#ava.ava-question:hover .ava-lotus { opacity:1; transform:scale(1.08); filter:drop-shadow(0 7px 12px rgba(70,45,90,.18)); }
#ava.ava-question .ava-name { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); font-family:Georgia,serif; font-size:.55em; color:rgba(105,70,115,.38); pointer-events:none; }
#ava.ava-question:hover .ava-name { opacity:0; }
#ava.ava-question .ava-child {
    position:absolute; display:block; width:max-content; max-width:180px;
    opacity:0; visibility:hidden; pointer-events:none; text-decoration:none;
    transform:translate(-50%,-50%) scale(.78);
    transition:opacity .35s ease,transform .4s ease,visibility 0s linear .4s;
}
#ava.ava-question.ava-open .ava-child { opacity:1; visibility:visible; pointer-events:auto; transform:translate(-50%,-50%) scale(1); transition-delay:0s; }
#ava.ava-question .ava-panel {
    display:block; width:max-content; padding:.3em .68em; box-sizing:border-box;
    white-space:nowrap; border-radius:.55em;
    background:rgba(112,72,150,.24); border:1px solid rgba(255,255,255,.52);
    backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
    color:rgba(255,255,255,.96); font-family:Georgia,serif; font-size:clamp(13px,.95vw,16px);
    line-height:1.15; text-align:center; text-shadow:0 1px 3px rgba(70,45,80,.35);
    box-shadow:0 5px 18px rgba(70,45,90,.12);
    transition:background .25s ease,border-color .25s ease,box-shadow .25s ease;
}
#ava.ava-question .ava-child:hover .ava-panel,
#ava.ava-question .ava-child:focus-visible .ava-panel { background:rgba(112,72,150,.4); border-color:rgba(255,255,255,.8); box-shadow:0 8px 22px rgba(70,45,90,.2); }
@media(max-width:700px) {
    #question > #ava.ava-question { left:57%; top:46%; width:clamp(58px,13vw,78px); }
    #ava.ava-question .ava-panel { font-size:13px; }
}
