/* Base styles */
@font-face {
  font-family: 'AmericanTypeWriter';
  src: url('/fonts/American_Typewriter.woff2') format('woff2'),
       url('/fonts/American_Typewriter.woff') format('woff'),
       url('/fonts/American_Typewriter.ttf') format('truetype');
  font-weight: normal; /* or 400 */
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'AmericanTypeWriter';
  src: url('/fonts/American_Typewriter_Bold.woff2') format('woff2'),
       url('/fonts/American_Typewriter_Bold.woff') format('woff'),
       url('/fonts/American_Typewriter_Bold.ttf') format('truetype');
  font-weight: bold; /* or 700 */
  font-style: normal;
  font-display: swap;
  -webkit-font-smoothing: antialiased;
}

@font-face {
  font-family: 'CrimsonText';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/CrimsonText-Regular.woff2') format('woff2'),
       url('/fonts/CrimsonText-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'CrimsonText';
  font-style: bold;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/CrimsonText-SemiBold.woff2') format('woff2'),
       url('/fonts/CrimsonText-SemiBold.ttf') format('truetype');
}


@font-face {
  font-family: 'ComicSansMS';
  src: local('Comic Sans MS'),
       url('/fonts/ComicSansMS.woff2') format('woff2'),
       url('/fonts/ComicSansMS.woff') format('woff'),
       url('/fonts/ComicSansMS.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ComicSansMS';
  src: local('Comic Sans MS Bold'),
       url('/fonts/ComicSansMS_Bold.woff2') format('woff2'),
       url('/fonts/ComicSansMS_Bold.woff') format('woff'),
       url('/fonts/ComicSansMS_Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
  -webkit-font-smoothing: antialiased;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: monospace, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-y: auto;
}


@media print {
    body {
        background-color: white;
        color: black;
    }
    .noprint {
        display: none;
    }
    .progress-container {
        display: none;
    }
    .dev-env,
    #dogHeader,
    #resume_button{
        display: none;
    }
}

.resume-content{
    border-top: solid 1px grey;
    border-bottom: solid 1px grey;
}
.story-content{
    font-family: 'CrimsonText', 'serif';
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 2.5rem;
}

.story-content-header{
    font-weight: bold;
    margin: 1rem 0;
}

.story-content-date{
    text-align: right;
    margin: 1rem 0;
}

.story-content-para{
    margin: 1rem 0;
}
.dropcap::first-letter {
  font-size: 3em;       /* Enlarges the first letter */
  font-weight: bold;    /* Makes it bold */
  float: left;          /* Floats the letter to the left of the paragraph */
  line-height: 2rem;       /* Adjust line height */
  margin-right: 0.1em;  /* Adds some space after the letter */
  margin-top: 1.4rem;
}

/*#storybookView img{
  filter: url(#line-art) url(#sharpen-filter);
}*/

#storybookView img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 240, 230, 0.25); /* warm pastel overlay */
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.progress-container {
    width:100%;
    margin: 10px 0;
    padding: 15px 15px 15px 15px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #4CAF50;
    display:none;
    position: relative;
    /*height:8rem;*/
    overflow-y: scroll;
}

.progress-message {
    margin: 5px 0;
    /*padding-right:4rem;*/
    font-family: monospace;
    color: #333;
    transition: transform 0.2s;
    white-space: nowrap;
    width: 30%;
    display: block;
    float: left;
    text-align: right;
    padding-right: 0.5rem;
}

.progress-error {
    border-left-color: #dc3545;
    color: #dc3545;
}

/* Container - mobile first */
.container {
    /*max-width: 600px;*/
    margin: 0 auto;
    padding: 5px;
    padding-bottom: 60px;
    overflow-y: visible;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

/* Header - mobile first */
.header {
    text-align: center;
    height: 75px;
    padding-top: 5px;
    margin-bottom: 0;
    top: 0;
}

.header, .tab-navigation {
    position: sticky;
    z-index: 1000;
    background-color: #f5f5f5;
    width: 100%;
}

.logo {
    /*width: 50px;*/
    height: 60px;
    /*margin-bottom: 10px;*/
    float:left;
}
.brand{
    font-family: 'AmericanTypeWriter', 'American Typewriter', 'Courier New', monospace;
    font-size: 18px;
    color: #312313; /* dark brown */
}
.brand-bold{
    font-weight:bold;
}

.icon-home, .icon-poo, .icon-refresh, .icon-share{
    width: 50px;
    height: 50px;
    float: right;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.15));
    transition: transform 0.2s;
    padding: 5px;
    cursor: pointer;
}
.icon-share{
    padding:0;
}
.icon-share2{
    height: 25px;
    width: 25px;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.15));
    transition: transform 0.2s;
    float:left;
    margin: 0 5px 0 0;
}
.icon-share3{
    height: 25px;
    width: 25px!important;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.15));
    margin: 0 5px 0 0;
    position: absolute;
    bottom: 6px;
    right: -23px;
}

.admin{
    background-color: rgb(173 216 230 / 35%) !important;
}

.icon-home{
    float:left;
}
.icon-settings{
    margin: 0 0 0 15px;
    padding: 0;
    height: 24px;
    width: 24px;
    float: right;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.15));
    transition: transform 0.2s;
    cursor: pointer;
}


.dev-env{
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
    background-color: darkseagreen;
}

.share-modal{
    display:none;
    float:left;
    text-align:right;
    transform: transition: all 0.5s ease;
    background-color: #f5f5f5;
    border: solid 1px #333;
    border-radius: 5px;
    width:100%;
}

#instagramSharePopup{
    margin-top:5px;
    padding:15px;
    text-align:left;
}

.refresh-button2{
    position: absolute;
    right: 10px;
    bottom: 10px;
    background-color: unset;
}
#instagramSharePopup button{
    width:unset;
}
.share-text{
    width: 50px;
    float: right;
    line-height: 1rem;
    text-align: right;
    margin-top: 3px;
    margin-right: 0px;
}
.icon-home:hover, .icon-poo:hover .icon-rehresh:hover{
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(3px 3px 1px rgba(0,0,0,0.3));
}
.app-name {
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    font-weight: bold;
    color: #444;
    float:left;
}

.itemselector {
    font-family: monospace;
    font-size: 1.0rem;
    font-weight: bold;
    padding: 10px 20px;
    width: 100%;
    margin-bottom: 10px;
    background: #4CAF50;
    color: white;
    border-radius: 5px;
}
#dogSelect {
    font-size: 1.2em;
    width: fit-content;
    position: absolute;
    margin:0;
    bottom: 0;
    right: 0;
}

#imageStatus, #processingStatus{
    font-size: 0.9rem;
}
/* Upload section - mobile first */
.upload-section {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom:10px;
}

.upload-box {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    right: 10px;
    width: calc(50% - 10px);
    margin-right:10px;
    height:200px;
    float:left;
    cursor: pointer;
}
.upload-box-p {
    color: #666;
    font-size: 0.8rem;
    line-height: 0.9rem;
    padding-top: 15px;
}

.upload-box:hover {
    border-color: #999;
}

#description{
    width:50%;
}
/* Images - mobile first */
#previewImageContainer{
    display:none;
}

#sceneDatetime, #sceneLocation, #sceneLat, #sceneLon{
    width:48%;
    margin-bottom: 10px;
    display:none;
}
#sceneDescription, #sceneName{
    display:none;    
}
.preview-image {
    max-width: 100%;
    max-height: 300px;
    margin: 10px 0;
}
.scene-container ul {
    list-style-type: disc;
    padding-left: 0px;
}
.scene-container li {
    list-style: disc;
    margin-left: 20px;
    padding-left: 10px;
}

.scene-image {
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 5px;
    display: block;
    cursor:pointer;
}

.known-image{
    width:25%;
    margin: -10px 10px -10px -10px;
    border-radius: 5px;
    float:left;
    display: block;
}


.highlight-container {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #FF9800;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #FF9800; }
    50% { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #2196F3; }
    100% { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #FF9800; }
}

#entityCircleContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width:100%;
    justify-content: flex-start;
    z-index: 100;
    margin-bottom:10px;
}

.entity-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    padding: 5px;
    box-shadow: 4px 4px 9px rgba(0,0,0,0.2);
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.entity-circle:hover {
    transform: scale(1.1) !important;
}

.entity-circle.selected-circle {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #000;
}

.circle-text {
    font-weight: bold;
    font-size: 1rem;
    line-height:1rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.circle-status {
    font-size: 9px;
    opacity: 0.8;
}

.new-entity {
    border: 2px dashed white;
}

.known-entity {
    border: none;
}

.insta-step{
    width:100%;
    /*margin-left:7%;*/
    padding: 0.5rem 0;
    float:left;
    text-align:left;
    border-bottom:1.5px solid darkgray;
}

.text-pre{
    margin-left:-7%;
    margin-top:-0.25rem;
    float:left;
    text-align: center;
    font-size:1.5rem;
}
.text-expl{
    /*
    width:100%;
    padding:0.5rem;
    line-height:1.0rem;
    padding-left:2rem;
    */
}


/* --- button fancy ------ */
button {
    all: unset;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    position: relative;
    border-radius: 999vw;
    background-color: rgba(0, 0, 0, 0.75);
    box-shadow: -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.25),
        0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.1);
}

.share-btn{
    background-color: unset;
    box-shadow: none;
    margin: 7px 12px;
}

button::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: calc(100% + 0.3em);
    height: calc(100% + 0.3em);
    top: -0.15em;
    left: -0.15em;
    border-radius: inherit;
    background: linear-gradient(-135deg,
            rgba(5, 5, 5, 0.5),
            transparent 20%,
            transparent 100%);
    filter: blur(0.0125em);
    opacity: 0.25;
    mix-blend-mode: multiply;
}

button .button-outer {
    position: relative;
    z-index: 1;
    border-radius: inherit;
    transition: box-shadow 300ms ease;
    will-change: box-shadow;
    box-shadow: 0 0.05em 0.05em -0.01em rgba(5, 5, 5, 1),
        0 0.01em 0.01em -0.01em rgba(5, 5, 5, 0.5),
        0.15em 0.3em 0.1em -0.01em rgba(5, 5, 5, 0.25);
}

button:hover .button-outer {
    box-shadow: 0 0 0 0 rgba(5, 5, 5, 1), 0 0 0 0 rgba(5, 5, 5, 0.5),
        0 0 0 0 rgba(5, 5, 5, 0.25);
}

.button-inner {
    --inset: 0.035em;
    position: relative;
    z-index: 1;
    border-radius: inherit;
    padding: 0.5rem 1.0rem;
    background-image: linear-gradient(135deg,
            rgba(230, 230, 230, 1),
            rgba(180, 180, 180, 1));
    transition: box-shadow 300ms ease, clip-path 250ms ease,
        background-image 250ms ease, transform 250ms ease;
    will-change: box-shadow, clip-path, background-image, transform;
    overflow: clip;
    clip-path: inset(0 0 0 0 round 999vw);
    box-shadow:
        /* 1 */
        0 0 0 0 inset rgba(5, 5, 5, 0.1),
        /* 2 */
        -0.05em -0.05em 0.05em 0 inset rgba(5, 5, 5, 0.25),
        /* 3 */
        0 0 0 0 inset rgba(5, 5, 5, 0.1),
        /* 4 */
        0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.25),
        /* 5 */
        0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 1),
        /* 6 */
        0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25),
        /* 7 */
        -0.075em -0.25em 0.25em 0.1em inset rgba(5, 5, 5, 0.25);
}

button:hover .button-inner {
    clip-path: inset(clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) round 999vw);
    box-shadow:
        /* 1 */
        0.1em 0.15em 0.05em 0 inset rgba(5, 5, 5, 0.75),
        /* 2 */
        -0.025em -0.03em 0.05em 0.025em inset rgba(5, 5, 5, 0.5),
        /* 3 */
        0.25em 0.25em 0.2em 0 inset rgba(5, 5, 5, 0.5),
        /* 4 */
        0 0 0.05em 0.5em inset rgba(255, 255, 255, 0.15),
        /* 5 */
        0 0 0 0 inset rgba(255, 255, 255, 1),
        /* 6 */
        0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25),
        /* 7 */
        -0.075em -0.12em 0.2em 0.1em inset rgba(5, 5, 5, 0.25);
}

button .button-inner span {
    position: relative;
    z-index: 4;
    letter-spacing: -0.05em;
    font-weight: 500;
    color: rgba(0, 0, 0, 0);
    background-image: linear-gradient(135deg,
            rgba(25, 25, 25, 1),
            rgba(75, 75, 75, 1));
    -webkit-background-clip: text;
    background-clip: text;
    transition: transform 250ms ease;
    display: block;
    will-change: transform;
    text-shadow: rgba(0, 0, 0, 0.1) 0 0 0.1em;
    -webkit-user-select: none; 
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

button:hover .button-inner span {
    transform: scale(0.975);
}

button:active .button-inner {
    transform: scale(0.975);
}
/* --- knowns --------- */



.item-container {
    padding: 10px;
    margin: 10px 0;
    /*border: 1px solid #ddd;*/
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
    position: relative;
    width: 100%;
    background: white;
    border-radius: 10px;
    transition: transform 0.2s;
}


#entitiesContainer, #locationContainer {
    float:left;
    width:100%;
}

#entitiesContainer .item-container, #locationContainer .item-container {
    margin:0;
    padding:5px 0;
    float:left;
}

#entitiesContainer .item-container .entity-name-container, #locationContainer .item-container .entity-name-container {
    margin:0;
    padding: 0;
    width:100%;
}

input, textarea{
    font-family: monospace, sans-serif;
    font-size: 1.0rem;
    padding: 5px;
    margin: 2px 0;
    border: 1px solid #999;
    border-radius: 5px;
    width:100%;
    position: relative;
}

textarea {
    min-height: 100px;
}



input.entity-name {
    font-weight: bold;
    width:90%;
}

.entity-name-container{
    text-align:right;
    float:left;
    width:75%;
}

input.entity-type, input.entity-rel {
    width: 50%; /*calc(50% - 5px);*/
    float:right;
    display: inline-block;
}
input.entity-fam, input.entity-sen {
    width: 2rem;
    display: inline-block;
}

input:focus, textarea:focus {
    outline: none;
    background: #4caf5066;
}

.save-msg, .refresh-msg{
    position: absolute;
    right:0;
    font-size: 0.8rem;
    color: #555;
    background-color: #88888870;
    padding: 5px;
    border-radius: 5px;
}

.known-details{
    display:none;
    padding-top: 1rem;
    position: relative;
}

.known-status{
    font-size: 0.8rem;
    color: #666;
    /*float: right;
    margin: 0.5rem;*/
}
/* Form elements - mobile first */
.profile-basic-info input[type="text"],
.profile-basic-info input[type="date"] {
    margin-bottom: 10px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}


.saleslead-container{
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    padding: 0;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.saleslead{
    font-family: monospace, sans-serif;    
    font-size: 1.0rem;
    width:200px;
    flex: 0 0 200px;
    padding: 3px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.saleslead-step{
    width: calc(100% - 6px);
    margin:3px;
    float:left;
    overflow: hidden;
    white-space: nowrap;
    border-radius: 5px;
    background-color: #e7e7e7;
}


.saleslead p, .saleslead select, .saleslead input, .saleslead textarea{
    border-radius: 5px;
    padding: 5px;
    margin: 0;
    width: 100%;
    font-family: monospace, sans-serif;    
    font-size: 1.0rem;
    background-color: unset;
    display: block;
}

.activated{
    background-color: lightgreen;
}
.missing{
    background-color: lightpink!important;
}

p.saleslead-label{
    font-size: 0.8rem;
    padding:0 0 0 3px;
    margin:0;
}

h1 input {
    font-size: inherit;
    font-weight: inherit;
    border: none;
    background: transparent;
    width: calc(100% - 2.5rem)!important;
    float:right;
    padding: 5px;
}

.voice-div{
    margin-bottom:10px;
    float: left;
    width: 100%;
    display:none;
    padding:10px;
    text-align: left;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}
.think-button{
    background-color: #4CAF50; /* Green color when enabled */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 40%;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align:center;
}
.add-button{
    background-color: #4CAF50; /* Green color when enabled */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.add-button2{
    background-color: #4CAF50; /* Green color when enabled */
    color: white;
    padding: 10px 20px;
    margin:0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 40%;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    float:left;
}
.think-button:disabled, .add-button2:disabled{
    background-color: #cccccc;  /* Grey color when disabled */
    cursor: not-allowed;
    opacity: 0.6;
}


.think-button:hover, .add-button:hover, .add-button2:hover{
    background-color: #45a049;
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(3px 3px 1px rgba(0,0,0,0.3));
}


/* Output section - mobile first */
.output-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

/* Session view styles - mobile first */
#sessionView {
    background: white;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: visible;
}

.scene-meta {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.scene-section,
.thoughts-section {
    margin: 20px 0;
}

/* Headings in session view */
#sessionView h2 {
    top: 15px;
    font-size: 1.5em;
}

#sessionView h3 {
    color: #444;
    margin: 15px 0;
    font-size: 1.2em;
}

/* Content sections */
.scene-description-container,
.scene-thoughts-container {
    background-color: #f9f9f9;
    padding: 0 15px;
    border-radius: 5px;
    margin: 0;
    float:left;
    width:100%;
}

.scene-thoughts {
    font-family: 'Comic Sans MS', ComicSansMS, 'Chalkboard SE', sans-serif;
    color: #312313;
    font-size: 1.4rem;
    line-height: 1.9rem;
    margin: 12px 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


#sceneName{width: 46%;}

.not-saved-border{
    border: 2px solid maroon;
}
.not-saved-text{
    color: maroon;
}

.newentity-border{
    border: 2px solid cadetblue;
}
.newentity-text{
    color: cadetblue;
}
.header .dog-name{
    text-align:right;
}
.dog-name {
    font-weight: bold;
}

.timestamp {
    color: #888;
}

.image-thoughts-container {
    position: relative;
    width: 100%;
    margin: 0 0;
    float:left;
}

.image-title {
    /*position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: white;
    */
    padding: 5px;
    text-shadow: 2px 2px 8px grey;
    margin: 0;
    font-family: 'AmericanTypeWriter', 'American Typewriter', 'Courier New', monospace;
    font-size: 1.8em;
    line-height: 1.8rem;
    z-index: 10;
    text-align: center;
}



/* Thought bubbles container and positioning */

.thought-bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.thought-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 12px 18px;
    max-width: 280px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(0);
    left: 20px;
    z-index: 100;
    color: #312313;
    font-size: 1.4rem;
    line-height: 1.9rem;
    margin: 12px 0;
    font-family: 'Comic Sans MS', ComicSansMS, 'Chalkboard SE', sans-serif;
}

.thought-bubble::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 20px;
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.thought-bubble::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 15px;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-family: 'Comic Sans MS', ComicSansMS, 'Chalkboard SE', sans-serif;
    font-size: 1.4rem;
    line-height: 1.6rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;    
}


.production-footer {
    text-align: right;
    width:100%;
    padding: 10px 5px;
    font-family: AmericanTypeWriter, 'American Typewriter', 'Courier New', monospace;
    font-weight: normal;
    color: #312313;
    /*border-top: 1px solid #eee;*/
}
.audio-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100; /* Ensure it's above the image but below thought bubbles */
}

.audio-container2 {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100; /* Ensure it's above the image but below thought bubbles */
}

.word-group{
    display: flex;
    justify-content: space-between;
    line-height: 1.0rem;
    width: calc(100% + 1.0rem);
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.1);
}

.gender-container2, .voice-container2, .word-container2, .privacy-container2 {
    float:left;
    margin: calc(4px + 0.5rem);
    padding:0.5rem;
    text-align: center;
    border: 1px solid darkgray;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 10px;
    z-index: 100; /* Ensure it's above the image but below thought bubbles */
}
.privacy-container2 {
    margin: calc(4px + 0.25rem);
    padding:0 0.25rem;
}

.gender-container2-selected, .voice-container2-selected, .word-container2-selected, .privacy-container2-selected {
    border: 5px solid #4CAF50;
    background-color: bisque;
    margin:0.5rem;
}
.privacy-container2-selected {
    margin:0.25rem;
}

.play-button {
    /*background: #444;*/
    /*border: none;*/
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    background: rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid grey;

}

.play-button:hover {
    /*background: #555;*/
    transform: scale(1.1);
    /*background: rgba(0, 0, 0, 0.9);*/
}

.play-button:active {
    transform: scale(0.75);
}

.play-icon {
    color: white;
    font-size: 36px;
    line-height: 1;
    margin-left: 3px; /* Slight adjustment for the play symbol */
}

.play-button.playing .play-icon {
    /*content: "⏸";*/
    background: unset;
    border: none;
    box-shadow: none;
    margin-left: 0; /* Reset margin when showing pause */
}

/* Optional loading state */
.play-button.loading {
    opacity: 0.7;
    cursor: wait;
}

.play-button.loading .play-icon {
    animation: pulse 1.5s infinite;
}



/* Show play button more prominently before first play */
.audio-container:not(.played) .play-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.section-header{
    background-color: white;
}


/* Section content styling */
.section-content {
    display: none; /* Initially hidden */
    padding: 20px;
    border: 1px solid #dee2e6;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #fff;
}

.section-content.expanded {
    display: block;
}

.form-group {
    clear: both;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}
.form-group label {
    float: left;
    width: 33%;
    text-align: right;
    padding-right: 15px;
}

.form-group .slider, .form-group .slider-labels, .form-group .slider-values{
    float: right;
    width: 66%;
}

.profile-header {
    padding: 5px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.profile-image {
    float: left;
    width: 50%;
    padding-right: 10px;
    border-radius: 8px;
    position: relative;
}
.profile-image2 {
    float: left;
    width: 100%;
    padding-right: 10px;
    border-radius: 8px;
}



.profile-basic-info {
    float: left;
    width: 50%;
}

/* Clear the float */
.profile-header::after {
    content: '';
    display: table;
    clear: both;
}

/* Expandable narrative section */
.profile-narrative {
    padding: 10px;
    background: #f9f9f9;
    overflow: hidden;
    margin: 0;
    line-height: 1.2;
    white-space: pre-line; /* This preserves line breaks */
}

.profile-narrative.expanded {
    max-height: none;
}

.profile-basic-info h1 {
    margin: 0;
    color: #333;
}

.profile-basic-info input[type="text"],
.profile-basic-info input[type="date"] {
    margin-bottom: 10px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    border: 5px solid #4CAF50;
    background-color: bisque;
}

.profile-basic-info p, .narrative-container p, .known-details p{
    width:100%;
    float:left;
    font-size: 0.9rem;
    color: rgb(102, 102, 102);
    margin: 0 0 -3px 5px;
}

h1 input {
    font-size: inherit;
    font-weight: inherit;
    border: none;
    background: transparent;
    width: calc(100% - 2.5rem)!important;
    float:right;
    padding: 5px;
}


/* Save button styling */
.form-actions {
    position: absolute;
    top: 20px;
    right: 10px;
    z-index: 100;
}

.save-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.save-button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}


.slider-group {
    position: relative;
    padding-top: 25px;  /* Make room for the value display */
    margin-bottom: 30px;

}

.slider {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    background: #ddd;
    outline: none;
    border-radius: 3px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.slider-value {
    position: absolute;
    /*background: #4CAF50;*/
    color: black;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 16px;
    transform: translateX(-50%);
    top: -5px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8em;
    color: #666;
}

.paw-parent {
    position: relative;
    overflow: show;
}
.msg-div{
    float:left;
    width: 100%;
}

.paw {
    position: absolute;
    pointer-events: none;
}
.paw-span{
    float:right;
    width: 70%;
    margin-bottom: -0.5rem;
}
.paw-rotated {
  display: inline-block;
  transform: rotate(90deg);
  /*animation: paw-blink 0.5s linear alternate 6; /* 0.5s per cycle, 6 times = 3s */
}
.bone{
    font-size:2.0rem;
    float: right;
    margin-top: -0.8rem;
}

.allscenes-container, .tab-pane{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    width:100%;
}

.scene-container{
    width: 100%;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    position:relative;
}

.scene-container:hover, .item-container:hover{
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


.scene-link {
    display:block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 1;
}

.icon-link {
    text-decoration:none; 
    white-space:nowrap; 
    float:left; 
    margin:0.5rem;
}


.profile-image img, .profile-image2 img  {
    width: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    margin:0;
}
.profile-image2 img  {
    height:unset;
}
.dog-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.payoption{
    width: 100%;
    padding: 1.0rem;
    float: left;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.1);    
}

.tandcbutton{
    float:left;
}

.tandcpopup{
    float:left;
}
.tandcpopup ul{
    padding:revert;
}
.tandcpopup li{
    font-size: 1.0em;
    line-height: 1.1em;
    margin: 0.5rem 0;
}


.text-hdg {
    font-size: 18px;
    font-weight: bold;
    color: #333;   
}
.text-std {
    color: #333;
    margin: 10px 0;
    font-size: 16px;
    line-height: 22px;
}

.text-std2 {
    color: #333;
    margin: 10px 0;
    font-size: 16px;
    line-height: 22px;
    width:100%;
    float:left;
    font-size:0.8rem;
}

.text-blt{
    color: #333;
    margin: 10px 0;
    font-size: 16px;
    line-height: 16px;
    padding-left:1rem;
}
.text-blt::before{
    content: '•';
}

.narrative-container{
    position: relative;
    display: inline-block;
    width: 100%;
}
.deleteScene-button, 
.deleteKnownDbase-button, 
.deleteKnownfromScene-button{
    border: none;
    background: none;
    margin: 5px;
    cursor: pointer;
    position: absolute;
    right: 0;
    bottom:0;
    transition: transform 0.2s ease, filter 0.2s ease;
    z-index: 2;
    box-shadow:none;
}
.deleteKnownDbase-button{
    margin:0 -5px -25px 0;
}
.deleteKnownfromScene-button{
    /*position: relative;
    float: right;
    width:unset;*/
    bottom:unset;
    top:0;
}


.deleteScene-button:not([disabled]):hover,
.deleteKnownDbase-button:not([disabled]):hover {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
}

.deleteScene-button[disabled],
.deleteKnownDbase-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
/*  tab styles */
.tab-navigation {
    display: flex;
    /*overflow-x: auto;*/
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 0;
    gap: 2px;
    border-bottom: 5px solid #4CAF50;
    background: none;
}

.resume-button{
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.0em;
    font-weight: bold;
    transition: all 0.3s ease;  
    float: right;
}
.resume-button:hover {
    background-color: #45a049;
    transform: scale(1.1);
}
.resume-button:active  {
    background: #4CAF50;
    color: white;
    transform: scale(1.1);
    z-index: 1000;
}

.tab-button {
    font-family: monospace, sans-serif;
    padding: 8px 12px;
    margin-top: 22px;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    border: 0.5px solid grey;
    border-bottom:none;
    border-radius: 5px 5px 0 0;
    flex: 0 0 auto;
}

.tab-button:hover {
    background: #e9ecef;
    color: #4CAF50;
    transform: scale(1.1);
}

.tab-button.active {
    background: #4CAF50;
    color: white;
    transform: scale(1.1);
    font-weight: bold;
    z-index: 1000;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4CAF50;
}


.tab-pane {
    display: none;
    padding: 8px 0;
}

.tab-pane.active {
    display: flex;
}


.setup-step, .setup-step2 {
    position: absolute;
    left: -5px;
    top: -22px;
    font-size: 1.3rem;
    color: white;
    border-radius: 1.0rem;
    background-color: rgb(165 42 42 / 85%);
    padding: 0.25rem 0.75rem;
    font-weight: normal;
}

.setup-step2{
    right: 0;
    left: unset;
    top: 0;
}
.setup-msg, .setup-msg2, .setup-msg3{
    font-size: 1.3rem;
    line-height: 1.5rem;
    /*
    color: white;
    border-radius: 1.0rem;
    background-color: rgb(165 42 42 / 85%);
    padding: 0.5rem 1.0rem;
    font-weight: normal;
    */
}

.setup-msg2{
    padding: 1rem 0;
    border-bottom: solid 1.5px darkgray;
}
.setup-msg3{
    text-indent: -2rem;
    padding-left: 3rem;
    margin-left: 11%;
}
.transaction-row{
    width:100%;
    display:flex;
    font-size: 0.9rem;
    padding:0.2rem 0;
}
.transaction-row .date-time{
    width:15%;
    line-height: 0.95rem;
}
.transaction-row .desc{
    width:37%;
    line-height: 0.95rem;
}
.transaction-row .value{
    width:12%;
    text-align: right;
}


.transaction-row:nth-child(odd) {
    background-color: #f8f9fa;
}


/* --- ios styles  --- */
.add-to-homescreen {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.5);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /*display: flex;
    align-items: center;
    gap: 12px;*/
    /*max-width: 340px;*/
    width: 95%;
    height:95%;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(16px); /* For Safari/iOS support */
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.add-to-homescreen-logo {
    height: 70px;
    float: left;
    background: white;
    border-radius: 10px;
    padding: 3px;
    box-shadow: 2px 2px 10px rgba(255, 255, 255);
    border: 0.5px solid darkgray;
    margin-bottom: 1.0rem;
}


.add-to-homescreen-close {
    padding: 0.5rem 1.0rem;
    cursor: pointer;
    color: #999;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.add-to-homescreen-steps {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}


/* stripe button and logo */
.btn-subscribe {
  background-color: #635BFF;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
}

.btn-subscribe-poweredby {
    font-size: 11px;
    margin-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    padding-left: 8px;
    display: flex;
    align-items: center;
    text-align: right;
    line-height: 0.8rem;
}

.btn-subscribe-poweredby img {
  height: 26px;
  margin-left: 4px;
  filter: brightness(0) invert(1);
}


.extbrowser {
    position:fixed;
    display: none;
    top:0;
    left:0;
    height:35%;
    width:100%;
    background:#fffae6;
    color:#333;
    padding:10px;
    z-index:9999;
    text-align:center;
    font-weight:bold;
}


/* Desktop styles */
@media (min-width: 769px) {
    .scene-container, .item-container{
        width: 49%;
    }
    .container {
        /*max-width: 800px*/;
        padding-bottom: 80px;
        overflow-y: visible;
        height: auto;
    }

    .header {
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .logo {
        /*width: 60px;*/
        height: 60px;
        margin-right: 15px;
        margin-bottom: 0;
    }

    .app-name {
        font-size: 1.5em;
    }

    .think-button {
        width: auto;
        min-width: 200px;
        margin: 0 auto;
    }

    /* Desktop specific session view improvements */
    #sessionView {
        padding: 30px;
    }

    /*.scene-description,
    .scene-thoughts {
        padding: 20px;
    }*/

    .scene-image {
        max-height: 500px;
        object-fit: contain;
    }
    .thought-bubble {
        max-width: 300px; /* Larger for desktop */
        font-size: 14px;
        left: 20px;
    }
    
    .thought-left {
        left: 10px;
    }
    
    .thought-right {
        right: 10px;
    }
    .image-title {
        font-size: 1.4em;
        padding: 10px;
    }

    .tab-navigation {
        justify-content: flex-start;
        gap: 5px;
    }

    .tab-button {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .tab-content {
        margin: 20px 0;
        padding: 20px;
    }

    .tab-pane {
        padding: 20px;
    }

}

/* Additional utility classes */
.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Error states */
.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

/* Success states */
.success {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}
