:root{
    /* iFairy brand system, adopted from ifairy.co.uk (magic-purple / neural-blue / arcade / amber) */
    --magic-purple: #b800ff;
    --magic-purple-dark: #a300e6;
    --neural-blue: #22d3ee;
    --neural-blue-dark: #18b6ad;
    --arcade-magenta: #ff00ea;
    --brand-amber: #FFB41E;
    --surface-warm: #FAFAF9;
    --surface-warm-dim: #F5F4F2;

    /* Per-subject accent families - remapped onto the 5 Brand Grimoire v4.0 tokens
       (+1 new orange for Enterprise) now that dark is the single permanent theme. */
    --accent-stem: #22d3ee;          /* Maths / Computing / AI / Media -> secondary */
    --accent-science: #2dd4bf;       /* Science / Geography / Environment -> success */
    --accent-arts: #ff00ea;          /* Art / Design / Drama / Music -> accent */
    --accent-humanities: #fbbf24;    /* History / Civics / Curriculum -> warning */
    --accent-wellbeing: #b800ff;     /* Mindfulness / PE / Ethics -> primary */
    --accent-enterprise: #fb923c;    /* Business */

    /* Semantic tokens ported 1:1 from ifairy.co.uk's :root (light theme) - used for the
       neo-brutalist header/footer. Dark-mode overrides live in dark-mode.css (.dark-mode). */
    --primary: #b800ff;
    --secondary: #1fd3c6;
    --accent: #fe656e;
    --bg: #fafaf9;
    --text: #1c1917;
    --border: #18181b;
    --muted: #78716c;
    --subtle: #a8a29e;
    --surface: #f0eeed;
    --surface-soft: #e8e5e3;
    --card-bg: #fff;
}
.chunky-shadow{
    box-shadow: 6px 6px 0 var(--border);
}
.chunky-shadow-sm{
    box-shadow: 3px 3px 0 var(--border);
}

/* iFairy Brand Grimoire v4.0 - neo-brutalist component kit (single, permanent theme) */
.chunky-border{
    border: 2px solid rgba(255,255,255,.1);
    box-shadow: 4px 4px 0 0 var(--primary);
    transition: all .3s cubic-bezier(.175,.885,.32,1.275);
}
.chunky-border:hover{
    transform: translate(-4px,-4px);
    box-shadow: 8px 8px 0 0 var(--secondary);
}
.chunky-border-solid{
    border: 3px solid var(--bg, #05000d);
    box-shadow: 4px 4px 0 0 rgba(34,211,238,.8);
    animation: float-small 3s ease-in-out infinite;
}
@keyframes float-small{
    0%{ transform: translateY(0) rotate(-2deg); }
    50%{ transform: translateY(-5px) rotate(-2deg); }
    100%{ transform: translateY(0) rotate(-2deg); }
}
.glass-panel{
    background: rgba(22,10,38,.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.08);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.glass-panel:hover{
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(184,0,255,.25);
}
.text-glow-cyan{
    text-shadow: 0 0 15px rgba(34,211,238,.8), 0 0 30px rgba(34,211,238,.4);
}
.text-glow-magenta{
    text-shadow: 0 0 15px rgba(184,0,255,.8);
}
.bg-cyber-grid{
    background-image:
        linear-gradient(rgba(184,0,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184,0,255,.06) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: grid-move 20s linear infinite;
}
@keyframes grid-move{
    0%{ transform: translateY(0); }
    100%{ transform: translateY(30px); }
}
.site-bg-fx{
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.site-bg-fx .bg-cyber-grid{
    position: absolute;
    inset: -30px 0 0 0;
    height: calc(100% + 30px);
    opacity: 0.5;
}
.site-blob{
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    animation: heroFloat 16s ease-in-out infinite;
}
.site-blob-1{
    width: 50vw;
    height: 50vw;
    top: -20%;
    left: -10%;
    background: var(--primary);
}
.site-blob-2{
    width: 50vw;
    height: 50vw;
    bottom: -20%;
    right: -10%;
    background: var(--secondary);
    animation-delay: -8s;
}
@media (prefers-reduced-motion: reduce){
    .chunky-border-solid, .bg-cyber-grid, .site-blob{
        animation: none;
    }
}
*{
    outline: none;
}
html{
    overflow-x: hidden;
}
body{
    background: var(--surface-warm);
}
p, a, span, button, label, small, textarea, select, option, em, strong {
  font-family: 'Outfit', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bangers', cursive;
  letter-spacing: .03em;
  font-weight: 700;
}
/* Generic header/footer fallback kept for documentation-ifairy.html, which still uses
   the plain markup this template originally shipped with. index.html's header/footer
   are redesigned below via the #site-header/#site-footer-scoped rules. */
header{
    background: linear-gradient(135deg, var(--magic-purple) 0%, var(--neural-blue) 100%);
    padding: 20px 0;
    border-bottom: 1px solid var(--magic-purple-dark);
}
.header-slogan{
    color: #FFF;
    font-size: 20px;
    font-weight: lighter;
    display: flex;
    gap: 0 10px;
}
.color-purple{
    color: var(--magic-purple);
}

/* Floating pill nav, ported from ifairy.co.uk */
.scroll-progress-track{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1051;
    pointer-events: none;
}
.scroll-progress-bar{
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.1s ease;
}
header#site-header{
    background: none;
    padding: 0;
    border-bottom: 0;
    position: fixed;
    top: 1.25em;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: 92%;
    max-width: 1100px;
    transition: top 0.3s ease;
}
.nav-pill{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    border: 3px solid var(--border);
    border-radius: 16px;
    padding: 0.6em 1em;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 3px 3px 0 var(--border);
    transition: padding 0.3s ease, box-shadow 0.2s ease;
}
.nav-brand{
    display: flex;
    align-items: center;
}
.nav-brand #logo{
    height: 36px;
    width: auto;
    transition: height 0.3s ease;
}
.nav-actions{
    display: flex;
    align-items: center;
    gap: 0.6em;
}
.nav-icon-btn{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--surface);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--border);
    transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.nav-icon-btn i{
    font-size: 1.1rem;
}
.nav-icon-btn:hover{
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--border);
    color: var(--primary);
}
.nav-icon-btn:active{
    transform: translate(0, 0);
    box-shadow: 1px 1px 0 var(--border);
}
header#site-header.header-min .nav-pill{
    padding: 0.4em 0.9em;
}
header#site-header.header-min .nav-brand #logo{
    height: 28px;
}
#landing-page{
    transition: opacity 0.35s ease;
}
#landing-page.hero-exit{
    opacity: 0;
    pointer-events: none;
}
#hero{
    position: relative;
    background: radial-gradient(120% 120% at 20% 15%, #1a0330 0%, #0a0416 45%, #050308 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    overflow: hidden;
}
.hero-fx{
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.hero-orb{
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    animation: heroFloat 14s ease-in-out infinite;
}
.hero-orb-1{
    width: 420px;
    height: 420px;
    top: -120px;
    left: -100px;
    background: var(--magic-purple);
    animation-delay: 0s;
}
.hero-orb-2{
    width: 360px;
    height: 360px;
    bottom: -140px;
    right: -80px;
    background: var(--neural-blue);
    animation-delay: -5s;
}
.hero-orb-3{
    width: 280px;
    height: 280px;
    top: 40%;
    left: 55%;
    background: var(--arcade-magenta);
    animation-delay: -9s;
    opacity: 0.4;
}
@keyframes heroFloat{
    0%, 100%{ transform: translate(0, 0) scale(1); }
    50%{ transform: translate(30px, -25px) scale(1.08); }
}
#hero .container{
    position: relative;
    z-index: 1;
}
.hero-enter-hint{
    margin-top: 1em;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    animation: heroHintPulse 2.4s ease-in-out infinite;
}
@keyframes heroHintPulse{
    0%, 100%{ opacity: 0.45; }
    50%{ opacity: 1; }
}

/* Landing page content sections (all pre-gate, inside #landing-page) */
.trust-strip{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    margin-top: 3em;
    position: relative;
    z-index: 1;
}
.trust-item{
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 1em 1.2em;
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.trust-item i{
    font-size: 1.3rem;
    color: var(--secondary);
    flex-shrink: 0;
}
.landing-section-title{
    color: #fff;
    margin-bottom: 1.2em;
}
.landing-steps{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5em;
}
.landing-step{
    background: rgba(22,10,38,.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2em 1.5em;
    text-align: center;
}
.landing-step-num{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: 1.4rem;
    margin-bottom: 0.6em;
}
.landing-step h3{
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.4em;
}
.landing-step p{
    color: rgba(255,255,255,.65);
    font-size: 14px;
    margin: 0;
}
.landing-ages-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5em;
}
.landing-age-card{
    border-radius: 24px;
    padding: 2em 1.5em;
}
.landing-age-card h3{
    font-size: 1.3rem;
    margin-bottom: 0.5em;
}
.landing-age-card p{
    color: rgba(255,255,255,.65);
    font-size: 14px;
    margin: 0;
}
.landing-safe-panel{
    border-radius: 32px;
    padding: 3em 2em;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}
.landing-safe-icon{
    font-size: 2.5rem;
    color: var(--success);
    margin-bottom: 0.5em;
    display: block;
}
.landing-safe-panel p{
    color: rgba(255,255,255,.75);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}
.landing-why-text{
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255,255,255,.7);
    font-size: 17px;
    line-height: 1.7;
}
.landing-faq-list{
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}
.landing-faq-item{
    background: rgba(22,10,38,.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1em 1.4em;
}
.landing-faq-item summary{
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.landing-faq-item summary::-webkit-details-marker{
    display: none;
}
.landing-faq-item summary::after{
    content: '+';
    float: right;
    color: var(--secondary);
    font-size: 1.3rem;
    line-height: 1;
}
.landing-faq-item[open] summary::after{
    content: '−';
}
.landing-faq-item p{
    color: rgba(255,255,255,.65);
    font-size: 14px;
    margin: 0.8em 0 0;
}
#landing-final .btn{
    margin-top: 0.5em;
}
.app-gate{
    display: none;
}
#ai-team{
    min-height: 100vh;
    min-height: 100dvh;
    animation: aiTeamIn 0.5s ease-out;
    padding-top: 6.5em;
}
#chat-background{
    padding-top: 6.5em;
}
@keyframes aiTeamIn{
    from{ opacity: 0; transform: translateY(16px); }
    to{ opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce){
    #ai-team{
        animation: none;
    }
}
@media (prefers-reduced-motion: reduce){
    .hero-orb, .hero-enter-hint{
        animation: none;
    }
}
#hero h1{
    color: #FFFFFF;
}
#hero h1 span{
    font-family: 'Bangers', cursive;
  letter-spacing: .03em;
    margin-bottom: 1em;
    background: linear-gradient(90deg, var(--magic-purple), var(--neural-blue), var(--arcade-magenta), var(--magic-purple));
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroGradientText 6s linear infinite;
}
@keyframes heroGradientText{
    to{ background-position: 300% center; }
}
@media (prefers-reduced-motion: reduce){
    #hero h1 span{
        animation: none;
    }
}
#hero p{
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 1.5em;
}
#hero .btn{
    font-family: 'Bangers', cursive;
  letter-spacing: .03em;
    background: linear-gradient(135deg, var(--magic-purple) 0%, var(--arcade-magenta) 100%);
    border-radius: 6px;
    padding: 12px 1.5em;
    font-size: 18px;
    font-weight: bold;
    border:0;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
#hero .btn:hover{
    box-shadow: 0px 1px 19px var(--magic-purple-dark);
    transform: translateY(-2px);
}
#hero .btn:active{
    transform: translateY(0);
}
.hero-call-action-img img{
    position: relative;
    bottom: -23px;
}
.default-title{
    font-weight: bold;
    color: var(--magic-purple);
}
.section-spacing{
    padding-top: 3em;
    padding-bottom: 3em;
}
p{
    font-size: 20px;
    color: #434343;
}
.card-ai{
    --card-accent: var(--magic-purple);
    border-radius: 10px;
    overflow: hidden;
    background: #FFFFFF;
    margin-bottom: 2em;
    border: 1px solid #ececec;
    border-top: 4px solid var(--card-accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-ai:hover{
    box-shadow: 4px 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}
.card-ai-image{
    background: #EAEAEA;
}
.card-ai-image img{
    width: 100%;
    max-height: 325px;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.card-ai-image img:hover{
    cursor: pointer;
    transform: scale(1.03);
}
.card-ai-bottom{
    padding: 0.5em 1em 0.1em 1em;
    text-align: center;
    min-height: 170px;
    align-items: center;
    justify-content: space-evenly;
    display: flex;
    flex-direction: column;
}
.card-ai-name h3{
    color: var(--card-accent, #0180DE);
    font-size: 20px;
    margin-bottom: 0.2em;
}
.card-ai-job span{
    font-size: 16px;
    color: #434343;
}
.card-ai .btn{
    font-family: 'Bangers', cursive;
  letter-spacing: .03em;
    background: var(--card-accent, var(--magic-purple));
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    border: 0;
    width: 100%;
    padding: 12px;
    margin-top: 0.5em;
    transition: filter 0.2s ease, transform 0.15s ease;
}
.card-ai .btn:hover{
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.card-ai .btn:active{
    transform: translateY(0);
}
.chat-background{
    background: #FFF;
    border:1px solid #E0E4E7;
    border-radius: 10px;
    overflow: hidden;
}
.ai-contacts-item-active{
    background: #E6F1FA;
}
.ai-contacts-item:hover{
    cursor: pointer;
}

.ai-contacts-top, .ai-chat-top{
    padding: 1em;
    border-bottom: 1px solid #E0E4E7;
    min-height: 103px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ai-contacts-top strong{
    font-size: 18px;
    color: var(--magic-purple);
    font-weight: bold;
    display: block;
}
.ai-contacts-top span{
    font-size: 18px;
    color: #434343;
    display: block;
}
.ai-contacts-scroll{
    overflow-y: auto;
    height: 696px;
}
.ai-contacts-scroll::-webkit-scrollbar {
  width: 4px; 
}
.ai-contacts-scroll::-webkit-scrollbar-thumb {
  background-color: #888; 
  border-radius: 5px; 
}
.ai-contacts-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #555; 
}
.ai-contacts-scroll::-webkit-scrollbar-track {
  background-color: #eee; 
}
.ai-contacts-scroll::-webkit-scrollbar-track:hover {
  background-color: #ddd; 
}

.ai-contacts-item{
    padding: 1em;
    display: flex;
    gap:1em;
    align-items: center;
    border-bottom: 1px solid #ebf7ff;
    border-left: 3px solid var(--card-accent, transparent);
    transition: background 0.15s ease;
}
.ai-contacts-item:hover{
    background: #f3f3f3;
}
.ai-contacts-item-active:hover{
    background: #E6F1FA;
}
.ai-contacts-name{
    color: #070707;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Bangers', cursive;
  letter-spacing: .03em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;  
  overflow: hidden;    
}
.ai-contacts-job{
    color: #7E7E7E;
    font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;  
  overflow: hidden;    
}
.ai-contacts-image{
    overflow: hidden;
    width: 55px;
    min-width: 55px;
    height: 55px;
    border-radius: 50%;
}
.ai-contacts-image img{
    width: 100%;
}
.col-contacts-border{
    border-right: 1px solid #E0E4E7;
}
.col-main-chat{
    box-shadow: -13px 0px 13px #087dd414;
}
.wrapper-ai-chat-top{
    display: flex;
    gap: 0 16px;
    align-items: center;
}
.ai-chat-top-image{
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--magic-purple);
}
.ai-chat-top-image img{
    width: 100%;
}
.ai-chat-top-name h4{
    color: var(--magic-purple);
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 0;
}
.ai-chat-top-job{
    display: block;
    font-size: 16px;
    color: #0E0E0E;
}
.online-bullet{
    background: #02D00A;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}
.icons-options .dropdown-toggle{
    padding: 0;
}
.icons-options{
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: flex-end;
}
.icons-options img{
    padding: 0 4px;
}
.icons-options img:hover{
    cursor: pointer;
}
.chat-frame{
    background: url(../img/chat-pattern.png) #F3F3F3;
    padding-left: 1em;
}
.conversation-thread{
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin:1.5em 0;
    position: relative;
}
.user-image{
    width: 45px;
    min-width: 45px;
    height: 45px;
    min-height: 45px;
    border-radius: 50%;
    overflow: hidden;
}
.user-image img{
    width: 100%;
}
.message-container{
    background: #FFF;
    border-radius: 15px;
    padding: 1.2em;
    min-width: 310px;
    position: relative;
}
.thread-ai .message-container{
    margin-right: 7em;
    border-bottom: 4px solid #e3e3e3;
}
.thread-user{
        justify-content: flex-end;
}
.thread-user .message-container{
    background: #F3E7FF;
    border-bottom: 4px solid #D9B8F0;
}
.thread-user .message-text::before{
    display: none;
}
.chat-response{
    white-space: pre-wrap;
}
.message-container .user-name h5{
    font-size: 18px;
    font-weight: bold;
    color: var(--card-accent, var(--magic-purple));
    margin-bottom: 0.3em;
}
.chat-response{
    font-family: 'Outfit', sans-serif;
}
.message-container .message-text{
    color: #2c2c2c;
    font-size: 16px;
    position: relative;
}
.message-container::before{
    content: '';
    position: absolute;
    bottom: 13px;
    left: -9px;
    border-top: 10px solid transparent;
    border-right: 10px solid #ffffff;
    border-bottom: 10px solid transparent;
}
.date-chat{
    font-size: 14px;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
    color: #787878;
}
.date-chat img{
    height: 14px;
}
#overflow-chat {
    overflow-y: auto;
    overflow-x: hidden;
    height: 550px;
    padding-right: 1em;
}
.message-area-bottom{
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid #E0E4E7;
    padding: 1em;
    position: relative;
}
.character-typing{
    position: absolute;
    z-index: 2;
    top: -32px;
    left: 0;
    right: 0;
    margin: 0 auto;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.character-typing div{
    background: #2e2e2ede;
    text-align: center;
    border-radius: 6px;
    color: #FFF;
    padding: 6px 16px;
    font-weight: 300;
    display: inline-block;
    font-size: 16px;  
}
.chat-input{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}
.chat-input textarea{
    width: 100%;
    margin-bottom: 0;
    border: 1px solid #E0E4E7;
    resize: none;
    border-radius: 10px;
    color: #4E4E4E;
    display: flex;
    padding: 0.5em 1em;
    font-size: 18px;
}
.chat-input textarea:focus{
    border: 1px solid #a5d8ff;
}

.btn-send-chat, .btn-cancel-chat{
    background: linear-gradient(135deg, var(--magic-purple) 0%, var(--neural-blue) 100%);
    border-radius: 8px;
    padding: 1em 1.5em;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Bangers', cursive;
  letter-spacing: .03em;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: filter 0.2s ease, transform 0.15s ease;
}
.btn-send-chat:hover, .btn-cancel-chat:hover{
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.btn-send-chat:active, .btn-cancel-chat:active{
    transform: translateY(0);
}
.btn-cancel-chat{
    background: linear-gradient(180deg, #db2020 0%, #c50d00 100%);
}
.btn-cancel-chat:hover{
    background: #ff3434;
}
#overflow-chat::-webkit-scrollbar {
  width: 8px; 
}
#overflow-chat::-webkit-scrollbar-thumb {
  background-color: #1995f0; 
  border-radius: 5px; 
}
#overflow-chat::-webkit-scrollbar-thumb:hover {
  background-color: #555; 
}
#overflow-chat::-webkit-scrollbar-track {
  background-color: #eee; 
}
#overflow-chat::-webkit-scrollbar-track:hover {
  background-color: #ddd; 
}
#toast-container>div{
    opacity: 1;
}
#toast-container>div:hover{
    box-shadow: none !important;
}
.toast{
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}
.copy-code, .copy-text{
    position: absolute;
    top: 6px;
    font-size: 14px;
    color: #0478cd;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 5px;
    padding: 0.3em 0.6em;
    gap: 0 5px;
}
.copy-code{
    background: transparent;
    color: #FFF;
    border: 1px solid #EAEAEA;
    border-radius: 7px;        
}
.copy-text{
    background: transparent;
    top: auto;
    bottom: 13px;
    border: 1px solid #2196f3;
    font-size: 14px;
    color: #0478cd;
    border-radius: 8px;
    right: 11px;
}
.copy-text:hover{
    background: #017cb4;
}
.copy-text:hover{
    background: transparent;
    cursor: pointer;
    color: #0478cd;
}
.no-white-space{
    white-space: inherit;
}
.chat-audio{
    position: absolute;
    right: 15px;
    top: 16px;   
}
.chat-audio img{
    height: 24px;
}
.chat-audio img:hover{
    cursor: pointer;
}
.copy-text{
    display: none;
}
.message-container:hover .copy-text{
    display: block;
}    
.chat-response-highlight{
    background: #03a9f4;
    color: #FFF;
}
.no-white-space{
    white-space: inherit;
}
.expire-img-message{
    background: #2196f3;
    padding: 7px;
    border-radius: 7px;
    margin-top: 1em;
    font-size: 14px;
    color: #fff;
}

#loading{
    background: linear-gradient(135deg, var(--magic-purple) 0%, var(--neural-blue) 100%);    position: fixed;
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    display: flex;
}
#loading .spinner{
    width: 100px;
    height: 100px;
}
.wrapper-name-and-chat{
    width: 100%;
}
.wrapper-image-ia{
    position: relative;
    border: 1px solid #EAEAEA;
    padding: 1em;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    min-height: 300px;
}

.image-ia{
    background-color: #e9e9e9;
    border-radius: 5px;
    overflow: hidden;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-ia img{
    object-fit: cover;
    width: 100%;
}

/* width */
.wrapper-image-ia::-webkit-scrollbar {
  width: 10px;
}

/* Track */
.wrapper-image-ia::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
.wrapper-image-ia::-webkit-scrollbar-thumb {
  background: #888; 
}

/* Handle on hover */
.wrapper-image-ia::-webkit-scrollbar-thumb:hover {
  background: #555; 
}
.ia-image-prompt-label{
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 16px;
    color: #2196f3;
    display: block;
    border: 1px solid #2196f3;
    margin-top: 6px;
}
.wrapper-image-ia svg{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    transform: scale(3.5);
}
#load-character{
    padding-bottom: 4em;
}
code{
    white-space: pre-wrap;
    border-radius: 8px;
}
pre{
    border-radius: 8px;
    border: 2px solid #9c27b0;
    color: #d5d5d5;
    background: #1d2021;
    margin: 0;
    position: relative;
    padding: 0.5em 1em;
}
.dropdown-item{
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 0 5px;
}
.thread-user .message-container::before{
    display: none;
}
footer{
    background: linear-gradient(135deg, var(--magic-purple) 0%, var(--neural-blue) 100%);
    padding: 20px 0;
    border-top: 1px solid #249ef7;
}
footer img:hover{
    cursor: pointer;
}

/* Neo-brutalist footer, ported from ifairy.co.uk. Scoped to #site-footer so it doesn't
   affect the plain gradient footer used on documentation-ifairy.html. */
footer#site-footer{
    background: var(--bg);
    border-top: 0;
    position: relative;
    padding: 3em 0 2em;
    overflow: hidden;
}
.footer-gradient-bar{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary), var(--accent));
}
.footer-inner{
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-bottom: 1.5em;
}
.footer-icon-btn{
    color: var(--text);
    text-decoration: none;
}
.footer-copyright{
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--subtle);
    font-weight: 700;
    margin: 0;
}
.cursor {
  display: inline-block;
  width: 0.2em;
  height: 1.2em;
  margin-left: 0.2em;
  background-color: #323232;
  animation: blink 0.5s infinite;
}

@keyframes blink {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.conversation-thread{
  animation: messageIn 0.25s ease-out;
}
#microphone-button{
    height: 60px;
}
#microphone-button:hover{
    cursor: pointer;
}
.col-options-input{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 10px;
}
.form-floating{
    width: 100%;
    padding-bottom: 7px;
}
.form-floating>label{
    color: #0478ce;
    font-weight: bold;
    opacity: 1 !important;    
}
.btn-options-input{
    display: none;
}
.theme-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1em;    
}
.theme-icon i{
    color: #FFF;
}
.theme-icon:hover{
    cursor: pointer;
}
/*/ Small devices (landscape phones, 576px and up)/*/
@media (max-width: 767px){
    header#site-header{
        top: 0.8em;
        width: 94%;
    }
    .nav-pill{
        padding: 0.5em 0.8em;
        border-radius: 14px;
    }
    .nav-brand #logo{
        height: 30px;
    }
    .nav-icon-btn{
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }
    #ai-team, #chat-background{
        padding-top: 5.2em;
    }
    .footer-copyright{
        letter-spacing: 0.15em;
        padding: 0 1em;
    }
    #hero{
        text-align: center;
        padding: 2em 0;
    }
    #hero h1{
        font-size: 34px;
    }
    #hero p{
        font-size: 17px;
    }
    #hero .btn{
        width: 100%;
    }
    .hero-orb{
        filter: blur(45px);
        opacity: 0.4;
    }
    .hero-orb-1{ width: 260px; height: 260px; }
    .hero-orb-2{ width: 220px; height: 220px; }
    .hero-orb-3{ width: 180px; height: 180px; }
    .btn-options-input{
        background: #0072c6;
        position: absolute;
        right: 20px;
        width: 50px;
        height: 35px;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        top: -36px;
        border-radius: 10px 10px 0 0;
    }    
    .form-floating{
        display: none;
    }
    .arrow-down {
      width: 0;
      height: 0;
      border-left: 10px solid transparent;
      border-right: 10px solid transparent;
      border-bottom: 10px solid #FFFFFF;
     transform: rotate(0deg);
    }    
    .arrow-up {
      width: 0;
      height: 0;
      border-left: 10px solid transparent;
      border-right: 10px solid transparent;
      border-bottom: 10px solid #FFFFFF;
     transform: rotate(180deg);
    }       
   .col-options-input{
        display: flex;
        flex-wrap: wrap;
        position: absolute;
        bottom: 64px;
        left: 0;
        padding: 11px;
        background: #FFF;
        border-top: 2px solid #0072c6;
        z-index: 10;
        box-shadow: 0 -26px 21px -5px #0180de42;
        width: 100%;
    }    
    .character-typing {
        top: -42px;
        right: auto;
        margin: initial;
    }    
    .character-typing div{
        font-size: 14px;
        padding: 4px 16px;
    }
    #microphone-button{
        height: 45px;
    }    
    .ai-chat-top-name h4{
        font-size: 16px;
    }
    .ai-chat-top-job{
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;  
      overflow: hidden;         
    }
    .col-main-chat{
        box-shadow: none;
        border:none;
    }
    .ai-contacts-top{
        display: none;
    }
    .ai-contacts-top{
        border:0;
        display: none;
    }
    footer{
        display: none;
    }
    .toggle_ifairy_list, .ai-contacts-scroll{
        display: none;
    }
    .icons-options img {
        padding: 0 2px;
    }    
    body{
        background: url(../img/chat-pattern.png) #F3F3F3;
    }
    .chat-frame, .chat-background{
        background: transparent;
        border:0;
    }
    .ai-contacts-top, .ai-chat-top{
        min-height: auto;
    }
    #overflow-chat{
        padding-right: 10px;
        padding-left: 10px;
        height: auto;
        padding-bottom: 7em;
        padding-top: 5em;
    }
    .copy-text{
        display: block;
    }
    .user-image {
        width: 35px;
        min-width: 35px;
        height: 35px;
        min-height: 35px;
        border-radius: 50%;
        overflow: hidden;
        position: absolute;
        top: -15px;
        z-index: 1;
        left: -9px;
    }    
    .thread-ai .message-container{
        margin-right: 0;
    }
    .message-area-bottom{
        position: fixed;
        bottom: 0;
        width: 100%;
        background: #FFF;
        z-index: 2;
        box-shadow: 1px -6px 58px 1px #0069b778;
    }
    .chat-input textarea{
        padding:5px;
        font-size: 16px;
        height: 46px;
        border-radius: 3px;
    }
    .chat-input{
        gap:10px;
    }
    .btn-send-chat, .btn-cancel-chat{
        padding: 0.6em 1em;
        font-size: 16px;        
        border-radius: 3px;
    }
    .message-area-bottom{
        padding: 0.5em;
    }
    .btn-send-chat span, .btn-cancel-chat span{
        display: none;
    }
    .header-min{
        display: none;
    }
    .col-contacts-border{
        display: none;
    }
    .ai-chat-top-image{
        min-width: 45px;
        width: 45px;
        height: 45px;
    }
    .ai-chat-top{
        top:0;
        padding: 0.5em;
        position: fixed;
        z-index: 2;
        background: #FFF;
        border-radius: 0;
        width: 100%;
        box-shadow: 1px 1px 14px 3px #ccc;
    }
    .card-ai-bottom {
        padding: 1em;
        display: flex;
        flex-direction: column;
        align-items: center;
    }    
    #hero .btn{
        font-size: initial;
    }
    .card-ai-image img{
        max-height: initial;
    }
    .card-ai .btn{
        padding: 8px;
    }
    #hero p{
        padding-right: 0;
    }
    #hero{
        background-repeat: no-repeat;
        background-size: cover;
        padding-top: 3em;
        text-align: center;
        height: auto;
    }
    .hero-call-action-img img{
        width: 100%;
    }
    .justify-content-sm-center{
        justify-content: center!important;
    }
    .header-slogan{
        margin-top: 10px;
    }
    #hero p{
        font-size: inherit;
    }
    .container{
        max-width: 100%;
    }     
}

/*/ Medium devices (tablets, 768px and up)/*/
@media (min-width: 768px) and (max-width: 991px){
    .form-floating{
        display: flex;
    }
    #microphone-button{
        height: 45px;
    }    
    .container{
        max-width: 90%;
    }
    .card-ai-image img{
        max-height: initial;
    }
    .card-ai .btn{
        padding: 8px;
    }
    #hero p{
        padding-right: 0;
    }
    #hero{
        background-repeat: no-repeat;
        background-size: cover;
        padding-top: 3em;
        text-align: center;
        height: auto;
    }
    #chat-background .container{
        max-width: 100%;
    }
    .col-contacts-border{
        display: none;
    }
    .copy-text{
        display: block;
    }

}

/*/Large devices (desktops, 992px and up)/*/
@media (min-width: 992px) and (max-width: 1199px) {
    .form-floating{
        display: flex !important;
    }    
    #hero p{
        padding-right: 4.5em;
    }
    .ai-contacts-job{
    -webkit-line-clamp: 1;
    }
    .card-ai-image{
        min-height: 230px;
    }        
    #microphone-button{
        height: 45px;
    }    
}

/*/ X-Large devices (large desktops, 1200px and up)/*/
@media (min-width: 1200px) and (max-width: 1399px){
    .form-floating{
        display: flex !important;
    }    
    .card-ai-image{
        min-height: 280px;
    }
}

/*/// XX-Large devices (larger desktops, 1400px and up)/*/
@media (min-width: 1400px) {
    .form-floating{
        display: flex !important;
    }    
    .card-ai-image{
        min-height: 300px;
    }
}