h3 {
    text-align: center;
}

#demented_thoughts {
    font-weight: 700
}

fieldset, .avatar_info {
    font-size: 1.1em;
    padding: 0.5em;
    margin-bottom: 0.5em;
    border-radius: 1em;
    border-color: brown;
    font-family: sans-serif;
}

.avatar_pictures {
    text-align: center;
}

.avatar_button {
    width: 26% !important;
    padding: 5px;
}

.avatar_pic {
    width: 100%;
}

fieldset.edit_tab_elements {
    border: 0px;
}

label, input, button, textarea {
    font-size: inherit;
    padding: 0.5em;
    margin: 0.1em 0.2em;
    /* the following ensures they're all using the same box-model for rendering */
    -moz-box-sizing: content-box; /* or `border-box` */
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

#demented_label, .bot_name {
    font-weight: 800;
    margin-left: 5px;
}

p.persona_name {
    width: 100% !important;
    font-size: x-small;
    font-weight: 500;
}

button#private_history {
    font-size: medium;
    background-color: rgb(185, 68, 92);
    border-radius: 5px;
    border: darkgray 1px solid;
}

button#private_refresh {
    font-size: medium;
    background-color: rgb(208, 255, 196);
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: darkgray;
    border-image: initial;
}

button#private_restore {
    font-size: medium;
    background-color: rgb(176, 196, 222);
    border-radius: 5px;
    border: darkgray 1px solid;
}

button.manage_history:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.archive_card {
    border: 1px solid brown;
    border-radius: 0.5em;
    padding: 0.75em;
    margin-bottom: 0.5em;
    background-color: antiquewhite;
}

.archive_card_dates {
    font-weight: bold;
    font-size: medium;
    margin-bottom: 0.25em;
}

.archive_card_summary {
    font-style: italic;
    margin-bottom: 0.5em;
    font-size: medium;
}

.archive_card .restore_btn, .delete_btn, .btnYes, .btnNo {
    font-size: small;
    padding: 0.3em 0.8em;
    min-width: 87px;
}

.archive_browser_cancel {
    margin-top: 0.5em;
    text-align: center;
}

.modal_confirm_title {
    font-size: medium;
}

.ui-dialog {
    width: 550px !important;
    min-width: 455px;
    left: calc(50vw - 550px / 2) !important;
}

.modal_confirm_buttons {
    width: 100%;
    display: block;
    text-align: center;
}

.modal_confirm_button {
    margin: 10px;
}

.btnYes i.fa-solid.fa-check {
    color: green;
    font-size: small;
}

.btnNo i.fa-solid.fa-xmark {
    color: red;
    font-size: small;
}

#ask_demented {
    padding: .5em 0 0 .5em;
    width: calc(100% - 142px);
    margin-left: .5em;
}

.bot_name_div {
    width: fit-content;
}

.demented_img {
    float: left;
}

#demented_thoughts, .bot_response {
    display: flow;
    margin-left: 50px;
    width: 100%;
    font-size: 1.5em;
}

.img_holder {
    z-index: 0;
    float: inline-start;
    display: relative;
    padding-right: 1em;
}

.left_side {
    width: fit-content;
    float: left;
}

span.user_question {
    display: block;
    margin-left: 60px;
    margin-right: 18px;
    font-size: larger;
}

.right_side, #user_says, .inner_boundaries_of_chat_user, .right_side_guest {
    float: right;
}

.right_side {
    width: 80px;
    display: table;
}

.right_side button {
    margin: 3px;
}

.chat_window, #chat_tab, #manage_avatar_tab {
    max-width: 90vw;
    min-width: 846px;
    margin-left: calc((100% - 90vw) / 2);
    margin-right: calc((100% - 90vw) / 2);
    font-size: .75em;
}

.inner_boundaries_of_chat_bot, .inner_boundaries_of_chat_system {
    min-width: 85%;
    max-width: 85%;
    width: 85%;
}

.chat_wrapper, .inner_boundaries_of_chat_bot, .inner_boundaries_of_chat_user {
    border: black solid 1px;
    border-radius: .5em;
    padding: .75em .75em .75em 0;
    margin-right: .6em;
    display: inline-block;
}

.inner_boundaries_of_chat_user {
    max-width: 65%;
    width: 65%;
    background-color: aliceblue;
}

.bot_name_div {
    display: flex;
}

#user_says, .chat_blurb_user {
    text-align: left;
    padding: .75em;
    background-color: aliceblue;
    width: 100%;
    font-size: larger;
}

.inner_boundaries_of_chat_bot {
    background-color: antiquewhite;
    margin: .6em;
}

.inner_boundaries_of_chat_system {
    background-color: #ee8b8b;
    margin: .6em;
    border: black solid 1px;
    border-radius: .5em;
}

#demented_wrapper, .chat_blurb_bot {
    /* float: left; */
    max-width: calc(100% - 45px);
    text-align: left;
    margin-top: .75em;
    margin-left: .75em;
    padding-left: .75em;
    /* float: right; */
}

.chat_blurb_system {
    /* float: left; */
    max-width: calc(100% - 45px);
    text-align: left;
    margin: .75em;
    padding-left: .75em;
    /* float: right; */
}

#chat_block {
    height: 100%;
}

.fixed-content {
    overflow-y:scroll;
    overflow-x:hidden;
}

div#chat_constraint {
    height: 100%;
}

#chat_console {
    padding: 8px;
    margin-left: 10%;
    margin-right: 10%;
    min-width: 580px;
    height: calc(100% - 50px);
}

textarea#ask_demented {
    font-size: 1.5em;
}

form#persona_options {
    height: 160px;
}

.ask_demented_div {
    height: 100%;
}

.demented_chat {
    height: 100%;
}

.ask_demented_div form {
    height: 100%;
}

.demented_chat_fieldset {
    height: calc(100% - 50px);
}

.conversation_window {
    height: calc(100% - 200px);
}

#allow_enter {
    margin-left: 2.2em;
    vertical-align: sub;
}

#allow_enter_div {
    float: right;
    align-items: center;
}

/*
.who_responds {
    border-width: 0;
    width: fit-content;
    padding-right: 0px;
    float: right;
}
*/

.outer_boundaries_of_chat_bot, .outer_boundaries_of_chat_user, .outer_boundaries_of_chat_system {
    width: 100%;
    height: fit-content;
}

.mask {
    width: 0px;
    height: 0px;
    border-radius: 100%;
/*    background: url(/static/img/logo.png) center; */
    background-size: 50px 50px;
    padding: 25px;
}


.mask_settings {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    background-size: 50px 50px;
    padding: 2px;
    background-color: brown;
}

.bot_img_div {
    width: 50px;
    float: left;
}

.who_responds_to_user button {
    background-color: antiquewhite;
}

div.who_responds_to_user, div.who_responds_to_bot {
    height: 100%;
    width: 100%;
    border: black solid 2px !important;
    padding: .25em;
    background-color: #A52A2A16;
    border-radius: 0 0 15px 15px;
}

.demented_chat p {
    font-weight: 700;
    text-align: center;
}

.who_responds_to_bot button {
    background-color: #90c9f7;;
}

.bot_option {
    padding: 6px 6px 0 6px;
}

img.btn_bot_img {
    width: 65px;
    height: 65px;
}

.tab {
    /* overflow: hidden; */
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    /* margin-left: calc((100% - 65em) / 2); */
    /* margin-right: calc((100% - 65em) / 2); */
    width: 100%;
}

/* Style the buttons that are used to open the tab content */
.tab button {
    font-size: 1.55em;
    background-color: inherit;
    /* float: left; */
    border: none;
    outline: none;
    cursor: pointer;
    padding: 19px 26px;
    transition: 0.3s;
    font-weight: 600;
    margin: 0 0;
    border-radius: 25px 0;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

.tab .type_group {
    font-size: 1.35em !important;
    padding: 18px 20px;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
    margin-left: calc((100% - 65em) / 2);
    margin-right: calc((100% - 65.1em) / 2);
}

.welcome {
    font-size: x-large;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site_description {
    color: #bd8800;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 10px #432c22, 0 0 20px #4a2c1a;
}

#account_settings_tab {
    padding: 1em;
    min-height: 400px;
    display: block;
    overflow-y: auto;
    max-height: calc(90vh - 150px);
    margin-left: calc((100% - 90vw) / 2);
    margin-right: calc((100% - 90vw) / 2);
    min-width: 846px;
}

.user_settings {
    float: right;
    padding: 5px;
}

.user_img_holder {
    position: relative;
}

.avatar-hint-icon {
    position: absolute;
    bottom: 3px;
    right: 3px;
    color: #cc0000;
    font-size: 14px;
    background: #dfc9c9;
    border-radius: 50%;
    padding: 1px 3px;
    pointer-events: none;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.user_name_div {
    width: 100%;
}

p#left_side_message {
    margin: 0;
}

.user_img_holder img {
    display: block;
    max-width: 35px;
    max-height: 35px;
    width: auto;
    height: auto;
}

* {box-sizing: border-box;}

/* Button used to open the contact form - fixed at the bottom of the page */
.open-button {
  background-color: #555;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  position: fixed;
  bottom: 23px;
  right: 28px;
  width: 280px;
}

/* The popup form - hidden by default */
.form-popup {
  display: none;
  position: fixed;
  bottom: 0;
  right: 15px;
  border: 3px solid #f1f1f1;
  z-index: 9;
}

/* Add styles to the form container */
.form-container {
  width: 36em;
  padding: 10px;
  background-color: white;
}

/* When the inputs get focus, do something */
.form-container input[type=text]:focus, .form-container input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for the submit/login button */
.form-container .btn {
    background-color: #04AA6D;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 30%;
    margin-bottom: 10px;
    opacity: 0.8;
    align-items: center;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
  background-color: red;
}

.cancel {
    float: right;
}

/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
  opacity: 1;
}

.container{
    width: 500px;
    height: 500px;
    border: 1px solid black;
    margin: 0 auto;
    position:relative;
}

.login_button{
    width: 10px;
    height: 10px;
    background-color: blue;
    position:absolute;
    bottom:0;
    left:0;
}

.modal {
    position: fixed;
    z-index: 1;
    left: calc(50% - 150px);
    top: calc(20%);
    width: fit-content;
    height: 100%;
    /* background-color: aliceblue; */
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    /* padding: 1.5em; */
    height: fit-content;
}

.form-container input[type=text], .form-container input[type=password] {
    width: calc(100% - 2em);
    padding: 15px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
}

.full_view {
    top: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10;
    left: 0;
    position: fixed;
    width: 100vw;
    height: 100vh;
}

.chat_type_tab {
    display: block;
    padding-top: 0;
}

#chat_tab {
    padding-top: 0;
    height: calc(90vh - 150px);
}

#chat_options {
    font-size: 0.85em;
}

.bot_group_config, .bot_private_config {
    text-align: center;
    font-size: .8em;
    float: left;
    border: brown solid 1px;
    margin-left: .25em;
    width: 84px;
    padding: 5px;
}

.bot_private_config:hover {
    cursor: pointer;
}

.bot_private_config {
    text-align: center;
    padding: .25em .25em .5em .25em;
    margin: 0 .5em;
}

.bot_private_config p {
    min-block-size: fit-content;
    width: max-content;
}

.left_side_msg {
    font-size: 1.5em;
    text-align: center;
    width: 100%;
    font-weight: 800;
    border-bottom: brown solid 1px;
    margin-bottom: 5px;
}

.respond_to_title i {
    float: right;
    font-size: 1.7em;
}

.respond_to_title {
    height: 2em;
    font-size: 1.25em;
    padding-top: .2em;
    margin: .25em;
    font-weight: 600;
}

/* Style The Dropdown Button */
.dropbtn {
    background-color: #4CAF50;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

/* The container <div> - needed to position the dropdown content */
.dropbtn {
  background-color: #4CAF50;
  color: white;
  padding: 5px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 1.75em;
}

.login-container a {
  color: black;
  text-decoration: none;
  display: inline-flex;
  font-size: 1.25em;
  padding: 0px;
  background-color: silver;

}

.dropdown-content a:hover {background-color: #cccccc;}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #3e8e41;
  padding: 5px;
}

.dropbtn {
    padding: 5px !important;
}

/* Avatar Live Preview */
#avatar_preview_container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    padding: 0.5em;
}

.avatar-fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.avatar_preview_placeholder {
    width: 26%;
    aspect-ratio: 1;
    background-color: #e0d0c0;
    border-radius: 0.5em;
    border: 1px dashed brown;
}

.avatar_preview_status {
    width: 100%;
    text-align: center;
    padding: 0.5em;
    font-style: italic;
    color: brown;
}

.about_image {
    text-align: center;
    padding: 10px;
}

.about_image img {
    max-width: 80%;
}

.about_icon_holder {
    font-size: 50px;
    color: #00000047;
}

.informational_chat_text {
    background-color: aquamarine !important;
}

span.informational_notice {
    display: block;
    font-style: italic;
    padding: 10px 40px;
    font-size: small;
    color: cadetblue;
}

span.archives-loading {
    font-size: medium;
    text-align: center;
    width: 100%;
    display: block;
}


#say_something {
    color: #085ab2 !important;
}

/* Emoji Picker */
#emoji_picker_btn {
    color: #ffb23a;
}

#emoji_picker_btn, #say_something {
    font-size: 2.25em;
    padding: .45em;
    float: right;
    margin-inline: 2px;
    border-width: 2px;
    border-style: groove;
    border-color: threedface;
    border-image: initial;
    padding-inline: 0.6em;
    background: none;
    cursor: pointer;
    border-radius: 5px;
    background-color: #f0f8ff !important;
}

#emoji_picker_overlay {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 360px;
    height: 380px;
    border: 2px solid brown;
    background-color: antiquewhite;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-radius: 0.5em;
    overflow-y: auto;
    padding: 6px;
}

#emoji_grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
}

.emoji-cell {
    cursor: pointer;
    text-align: center;
    font-size: 2em;
    padding: 2px;
    border-radius: 4px;
}

.emoji-cell:hover {
    background-color: wheat;
}

.badge-loading-percent {
    font-size: large;
    font-family: sans-serif;
}

/* Verification Notes — bot verse verification (Requirements 3.1, 3.2, 4.1) */
.verification-notes-container {
    margin-top: 0.75em;
    padding-top: 0.5em;
    border-top: 1px solid #d2b48c;
}

.verify-note {
    display: block;
    font-size: 0.8em;
    color: #b8860b;
    cursor: pointer;
    margin-bottom: 0.35em;
}

.verify-note:hover {
    text-decoration: underline;
    color: #8B4513;
}

.verify-note.verified {
    opacity: 0.5;
    cursor: default;
    text-decoration: none;
}

button.delete_msg {
    background-color: #cc0000;
    border-radius: 4px;
    border-width: 1px;
    border-style: solid;
    border-color: darkgray;
    border-image: initial;
    color: white;
}

.inner_boundaries_of_chat_user {
    position: relative;
}

.trash_div_of_chat_user {
    position: absolute;
    right: 10px;
}
