/* ----- CONV.CSS ------ *
/
/* ================================
   GLOBAL PAGE LAYOUT
   ================================ */
:root{
    --bg: #f5f5f5;
    --primary: #005bbb;
    --primary-dark: #00408a;
    --accent: #ffb300;
    --danger: #c62828;
    --text: #111;
    --text-light: #fff;
    --card-bg: #ffffff;
    --border: #d0d0d0;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --font-lg: 2.0rem;
    --font-xl: 2.2rem;
    --font-xxl: 2.8rem;
    --button-height: 3.5rem;
}

* {
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f9f9f0; 
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}
/* =========================
   NAV
   ========================= */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;      
    gap: 10px;    
    background: #003f66;
    margin-top: 0;
    margin-bottom: 0;
    padding: 10px;
}

nav a {
    color: #f9f9f0;        /* original white */
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

nav a.active {
    color: #FFFF00;        /* yellow */
    text-decoration: underline;
    background-color: #005f99;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
}

header {
    margin-top: 0;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    padding: 0px, 20px;  
    background-color: #003f66;
    color: #FFFF00;
    position: relative;
}

 .header-title {
   flex: 1;
   min-width: 0;
   text-align: center;
   overflow-wrap: break-word;
   font-size: 2.5rem;
   font-weight: bold;
   color: yellow;
   margin-bottom: 20px;
}

 .header-subtitle {
   margin-top: 0;
   font-size: 1.5rem;
   font-weight: bold;
   color: white;
   background-color: #003f66;
   text-align: center;
   margin-bottom: 20px;
}

.header-row {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
/*    width: 100%; 
    flex-wrap: nowrap;
*/
}

/* ===== LANGUAGE BUTTON ==== */

#langToggle {
 /*   position: absolute;
    top: 0px;
    right: 20px;
*/
    position: static;
    margin-left:auto;  
    right: 15px;
    top: 0;
    bottom: 0;
    margin: auto 0;
 /*   transform: translateY(-50%);  * vertically centered */
    z-index: 9999;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
}

#langToggle img {
    display: block;
}

/* ================================
   AVATAR WINDOW + STATUS
   ================================ */

#ai-agent-card {
    width: 100%;
    max-width: 480px;
    margin: 20px auto;
    text-align: center;
}

#did-video {
    width: 100%;
    max-width: 480px;
    height: auto;
    background-color: black;
    border-radius: 10px;
    border: 3px solid #005f99;
}

#agent-status {
    margin-top: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #005f99;
}

/* ================================
   START / END TOGGLE BUTTON
   ================================ */

#agent-controls {
    margin-top: 25px;
    text-align: center;
}

/* Default START button style */
#agent-start,
#agent-end {
    width: 160px;
    padding: 14px 0;
    font-size: 22px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* START state */
#agent-start {
    background-color: #ffcc00; /* yellow */
    color: black;
}

/* END state */
#agent-end {
    background-color: #cc0000; /* red */
    color: white;
}

/* Disabled END button at page load */
#agent-end:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 480px) {
    nav a {
        font-size: 16px;
        margin: 4px 8px;
    }

    #langToggle {
        padding: 6px 10px;
        font-size: 14px;
    }

    #agent-start,
    #agent-end {
        width: 140px;
        font-size: 20px;
    }
}

