

.history { 
    padding: 100px 0;
 }
.history-item {
    border-top: solid 4px rgba(87, 162, 237, 1);
    background: rgba(255, 251, 222, 0.75);
    border-bottom: solid 4px rgba(87, 162, 237, 1);
    margin: 50px 0 50px;
    clear: both;
}
.history-name div {
    margin: 0px auto 0;
    padding: 10px 10px 0px 100px;
    color: rgb(60, 112, 163);
    font-style: italic;
    white-space: nowrap;
    font-weight: 700;
    font-size: 18px;

}
.history-message {
    padding: 10px 200px 20px 100px;
    color: rgba(0,0,0,0.75);
    text-align: left;
    font-weight: 500;
    font-size: 18px;
    min-height: 100px;
}
.history-portrait {
    position: relative;
    display: block;
    right: 0px;
    height: 200px;
    margin-top: -200px;
}
.history-portrait-div {
    margin: 0 0 0 auto; 
    width: 200px;
}

.history-thinker {
    margin: 100px 0 50px;
    min-height: 20px;
    opacity: 0.5;
}
.history-thinker .history-portrait {
    height: 100px;
    margin-left: 100px;
    margin-top: 100px;
}
.history-thinker .is-typing {
    position: relative;
    font-size: 13px;
    width: 100%;
    text-align: right;

}
.history-thinker .is-typing > div {
    position: absolute;
    width: 100%;
    box-sizing: border-box;
}
.history-thinker .is-typing div div {
    padding: 5px 15px;
    display: inline-block;
    border-top: solid 1px rgba(255,255,255, 0.5);

}


.history-counterpart.history-item {
    border-top: solid 4px rgba(209, 119, 103, 1);
    background: rgba(255, 242, 186, 0.75);
    border-bottom: solid 4px rgba(209, 119, 103, 1);
    margin-top: 90px;
}

.history-counterpart .history-portrait-div {
    margin: 0; width: 100%;
}
.history-counterpart .history-name div {
    color: rgb(209, 98, 75);  
    padding-left: 137px;  
}
.history-counterpart .history-message {
    padding: 10px 50px 20px 137px;
    min-height: 75px;

}
.input .history-portrait,
.history-counterpart .history-portrait {
    position: relative;
    display: block;
    left: 0px;
    height: 200px;
    margin-top: -200px;
}

.input .history-portrait {
    height: 170px;
    margin-top: -170px;
}


.history-narrator {
    margin: 25px 50px -25px;
    padding: 5px 10px;
    clear: both;
}
.history-item:has(+.history-narrator) {
    margin-bottom: 0;
}
.history-narrator .narrator-message {
    text-align: center;
    font-style: italic;
    color: rgba(255,255,255, 0.6);
    font-size: 18px;
}
.history-narrator .narrator-message b {
    color: #4175AA;
    font-weight: bold;
}

.history-audio {
    clear: both;
    margin: 5px auto;
    text-align: center;
    color: rgba(255,255,255,0.5);
}


.history-thoughts {
    position: relative;
}
.history-goals {
    position: absolute;
    margin-top: -20px;
    margin-left: -110px;
    background: rgba(0,0,0, 0.95);
    display: inline-block;
    padding: 10px 15px;
    font-size: 15px;
    z-index: 2000;
    border-radius: 5px;
    white-space: nowrap;
    line-height: 20px;
    font-style: italic;
}
.large-thoughts .history-goals {
    margin-top: -50px;
    margin-left: -250px;
}

.history-finale {
    clear: both;
    margin: 50px;
    padding: 25px 50px 30px;
    background: rgba(255, 242, 186, 0.75);
    color: rgba(0,0,0,0.8);
    font-style: italic;
    font-size: 20px;
    border-radius: 2px;
}

.history-narrator + .log-line { margin-top: 30px }

.log-line { 
    clear: both;
}
.log-line-title { 
    display: inline-block;
    border-radius: 3px;
    background: rgba(87, 162, 237, 1);
    color: #fff;
    font-family: monospace;
    padding: 3px 7px;
    margin-right: 5px;
    margin-top: 5px;
}
.log-line-metrics-final .log-line-title {
    background: rgba(237, 87, 87, 1);   
}
.log-line-metrics-stable .log-line-title,
.log-line-tokens .log-line-title {
    background: #666;
}
.log-line-details {
    padding: 7px;
    background: rgba(0,0,0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(4px);
    font-size: 10px;    
}
