/*
    AI Chat Text and Image Style CSS
*/

body,
html {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: row;
    overflow: none;
}

/* 3d */

#render-canvas {
    width: 100vw;
    height: 100vh;
    position: absolute;
}

#three-d-loading-screen-div {
    background-color: black;
    width: 100vw;
    height: 100vh;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

#loading-logo {
    width: 20vh;
    height: 20vh;
}

.loader {
    position: absolute;
    border: 2vh solid #f3f3f300;
    border-top: 2vh solid #ffffff;
    border-radius: 50%;
    width: 25vh;
    height: 25vh;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* scrollbar */

::-webkit-scrollbar {
    background-color: transparent;
}

::-moz-scrollbar {
    background-color: transparent;
}

::-ms-scrollbar {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgb(150, 150, 150);
    border-radius: 5px;
    width: 5px;
}

::-moz-scrollbar-thumb {
    background-color: rgb(150, 150, 150);
    border-radius: 5px;
    width: 5px;
}

::-ms-scrollbar-thumb {
    background-color: rgb(150, 150, 150);
    border-radius: 5px;
    width: 5px;
}


/* chat */

#main-chat {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: none;
}

#chat-div {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    padding-top: 8px;
    padding-bottom: 50px;
}

#question-div button {
    background-color: transparent;
    border: none;
    outline: none;
    color: white;
    height: 45px;
    width: 45px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    z-index: 10;
    transition: background-color 0.3s;

    display: flex;
    justify-content: center;
    align-items: center;
}

#question-div button:hover {
    background-color: rgb(0, 0, 0, 0.1)
}

#question-div textarea {
    width: 80%;
    height: 50px;
    resize: none;
    background-color: rgb(240, 240, 240);
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);
    margin-right: 10px;
    font-size: 16px;
    padding-right: 140px;
    padding-top: 8px;
    padding-left: 8px;

    outline: 2px solid #000;
    border: 2px solid #fff;
}

#question-div {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    /* align-items: center; */
    padding-left: 8px;
    padding-right: 8px;
    z-index: 2;
    pointer-events: none;
}

#question-div * {
    pointer-events: auto;
}

#attachments-div {
    position: absolute;
    width: 80%;
    height: 50px;
    padding-left: 8px;
    /* padding-right: 140px; */
    bottom: 8px;
}

#attachments-div .attachment {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 8px;
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);
    background-color: transparent;
    overflow: hidden;

}

#attachments-div .attachment img {
    width: 100%;
    height: 100%;
}

.topbar-button {
    position: absolute;
    top: 8px;
    left: 145px;
    width: 120px;
    height: 35px;
    border-radius: 10px;
    border: none;

    background-color: white;
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);
}

.topbar-button:hover {
    cursor: pointer;
}

#ask-button {
    position: absolute;
    left: 50%;
}

#upload-button {
    position: absolute;
    left: 50%;
}

#use-microphone-button {
    position: absolute;
    left: 50%;
}

.question-div-button-icon {
    width: 70%;
    height: 70%;
    filter: brightness(0);
}

.image {
    max-width: 350px;
    max-height: 350px;
}

.message {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);
    color: black;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 12px;
    margin-bottom: 32px;
    max-width: 80vw;
    width: 90%;
    min-width: 80%;
    white-space: pre-wrap;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.message.right {
    background-color: white;
    /* margin-left: auto; */
}

.message video {
    max-width: 350px;
    max-height: 350px;
}

.chat-message-paragraph {
    margin-left: 14px;
    margin-bottom: 0;
}

.chat-message-paragraph p {
    margin: 0;
    margin-top: 4px;
    margin-bottom: 4px;
}

.chat-message-paragraph pre {
    margin: 0;
}

.chat-message-paragraph ol {
    margin: 0;
}

.chat-message-paragraph ul {
    margin: 0;
}

.chat-message-person-name-paragraph {
    margin-left: 6px;
    margin-bottom: 0px;
}

.message-profile-picture {
    width: 32px;
    height: 32px;
    margin-top: 8px;
    border-radius: 50%;
}

.like-message-button {
    margin-left: 10px;
}

.message-button {
    border: none;
    outline: none;
    background-color: transparent;

    width: 35px;
    height: 35px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;

    transition: background-color 0.3s;
}

.message-button:hover {
    background-color: rgb(0, 0, 0, 0.1);
    cursor: pointer;
}

.message-button-icon {
    filter: brightness(0);
    width: 25px;
    height: 25px;
    margin: 0;
}

.message-button:disabled {
    opacity: 0.5;
}

.popup {
    position: absolute;
    width: 160px;
    height: 200px;
    background-color: white;
    color: black;
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);
    z-index: 500;
}

.popup.character-menu-popup {
    height: 160px;
}

.popup.add-character-menu-popup {
    height: 80px;
}

.popup-button {
    width: 160px;
    height: 40px;
    background-color: rgb(0, 0, 0, 0);
    border: none;
    outline: none;
    font-size: 16px;
    transition: background-color 0.3s;
    color: inherit;
}

.popup-button:hover {
    background-color: rgb(0, 0, 0, 0.1);
    cursor: pointer;
}

.filler {
    flex-grow: 1;
    min-width: 16px;
}

.hl {
    width: 100%;
    height: 1px;
    background-color: white;
    margin: auto;
}

/* slider */

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
}

/* Hide default HTML checkbox */
.switch input[type="checkbox"] {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* The slider */
.switchSlider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.switchSlider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .2s;
    transition: .2s;
}

input[type="checkbox"]:checked+.switchSlider {
    background-color: #2196F3;
}

input[type="checkbox"]:focus+.switchSlider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.switchSlider:before {
    -webkit-transform: translateX(21px);
    -ms-transform: translateX(21px);
    transform: translateX(21px);
}

/* Rounded sliders */
.switchSlider.round {
    border-radius: 34px;
}

.switchSlider.round:before {
    border-radius: 50%;
}


/* settings page */
#settings-page {
    position: fixed;
    display: flex;
    flex-direction: column;
    overflow-y: auto;

    left: 0;
    top: 0;
    /* padding: 10px;
    padding-left: 50px; */

    width: 100vw;
    height: 100vh;

    background-color: rgb(0, 0, 0, 0.6);
    color: white;

    z-index: 1000;
}

#settings-page input {
    max-width: 400px;
    width: 80vw;
    height: 30px;
    margin-bottom: 20px;
    margin-left: 50px;
}

#settings-page select {
    max-width: 400px;
    width: 80vw;
    height: 40px;
    margin-bottom: 20px;
    margin-left: 50px;
}

#settings-page select:hover {
    cursor: pointer;
}

#settings-page label {
    margin-bottom: 4px;
    margin-left: 58px;
}

#settings-page .slider-container {
    /* margin-left: 50px; */
    width: 80vw;
    max-width: 400px;
}

#settings-page .colorpicker {
    margin-left: 50px;
    margin-bottom: 4px;
}

#settings-page input {
    width: 400px;
    max-width: 80vw;
    margin-left: 50px;
}

#settings-page textarea {
    width: 400px;
    max-width: 80vw;
    max-height: 25vh;
    margin-left: 50px;
    margin-bottom: 8px;
}

#settings-page h1 {
    margin-top: 20px;
    margin-left: 50px;
    margin-bottom: 20px
}

#settings-page h2 {
    margin-left: 50px;
}

#settings-page button {
    width: 20%;
    max-width: 145px;
    height: 28px;
}

#settings-page button:hover {
    cursor: pointer;
}

.floating-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgb(0, 0, 0, 0.5);
    z-index: 1100;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
}

.floating-button img {
    width: 30px;
    height: 30px;
    user-select: none;
}

.three-d-bottom-bar-button {
    margin-right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgb(0, 0, 0, 0.5);
    z-index: 1100;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
}

.three-d-bottom-bar-button img {
    width: 30px;
    height: 30px;
    user-select: none;
}

#settings-button {
    top: 10px;
}

#ai-page-button {
    top: 60px;
    font-size: 20px;
    color: white;
}

#phone-button {
    top: 210px;
}

#back-to-main-website-button {
    top: 260px;
}

#user-profile-picture-button {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-width: 150px;
    min-height: 150px;
    width: 150px;
    height: 150px;
    margin-left: 50px;
    margin-bottom: 4px;
    padding: 0;
    border-radius: 50%;
    background-color: white;
    overflow: hidden;
}

#user-profile-picture-image-preview {
    width: 100%;
    height: 100%;
    grid-column: 1;
    grid-row: 1;
}

#user-profile-picture-button-overlay {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgb(0, 0, 0, 0.5);
    opacity: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    transition: opacity 0.15s;
}

#user-profile-picture-button-overlay:hover {
    opacity: 1;
}

#user-profile-picture-button-overlay p {
    color: white;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
    user-select: none;
}


#enable-global-speak {
    top: 310px;
}

#toggle-3d-button {
    top: 360px;
}

input[type="range"]::-webkit-slider-thumb {
    background-color: #4CAF50;
    /* green */
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 10px rgb(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 2;
}

input[type="range"]::-webkit-slider-runnable-track {
    background-color: #f7f7f7;
    /* light gray */
    border-radius: 10px;
    box-shadow: 0 0 10px rgb(0, 0, 0, 0.1);
}

.row {
    display: flex;
    flex-direction: row;
}

.column {
    display: flex;
    flex-direction: column;
}

/* chat history sidebar */
#chat-history-button {
    top: 110px;
}

#new-chat-button {
    top: 160px;
}

#chat-history-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background-color: white;
    color: black;
    z-index: 200;
    box-shadow: 0 -1px 6px rgb(0 0 0 / 12%), 0 -1px 4px rgb(0 0 0 / 24%);
    overflow-y: auto;
    overflow-x: hidden;
}

#chat-history-sidebar .saved-chat-button {
    width: 100%;
    height: 60px;
    font-size: 16px;

    background-color: transparent;
    outline: none;
    border: none;
    color: inherit;
    transition: background-color 0.3s;
}

#chat-history-sidebar .saved-chat-button:hover {
    background-color: rgb(0, 0, 0, 0.1);
    cursor: pointer;
}

.saved-chat-latest-message {
    margin: 0;
    margin-top: 8px;
    font-size: 14px;
    padding-left: 16px;
    padding-right: 16px;
    text-align: left;
    text-wrap: nowrap;
    overflow: hidden;
    color: inherit;
}

.saved-chat-title {
    margin: 0;
}

.saved-chat-delete-button {
    height: 40px;
    min-height: 40px;
    width: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 50%;

    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;

    transition: background-color 0.3s;
}

.saved-chat-delete-button:hover {
    background-color: rgb(0, 0, 0, 0.1);
}

.saved-chat-delete-button img {
    height: 70%;
    width: 70%;
    filter: brightness(0);
}

/* new character page */

.top-left-icon-button {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 35px;
    height: 35px;
    top: 16px;
    left: 16px;
    border-radius: 50%;

    background-color: transparent;
    outline: none;
    border: none;
    box-shadow: none;
}

.top-left-icon-button:hover {
    cursor: pointer;
}

.top-left-icon-button img {
    width: 30px;
    height: 30px;
    filter: brightness(0);
}

#new-character-page {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;

    background-color: white;
    z-index: 52;
    overflow-y: auto;
}

#new-character-page input {
    outline: none;
    border: none;

    width: 80%;
    max-width: 400px;
    height: 40px;
    min-height: 40px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
    border-radius: 10px;
    margin-bottom: 24px;

    background-color: rgb(250, 250, 250);
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);
}

#new-character-page textarea {
    outline: none;
    border: none;

    width: 80%;
    max-width: 400px;
    height: 40px;
    min-height: 40px;
    padding: 10px;
    font-size: 16px;
    border-radius: 10px;
    margin-bottom: 24px;

    background-color: rgb(250, 250, 250);
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);

    resize: none;
}

#new-character-page select {
    outline: none;
    border: none;

    width: 80%;
    max-width: 420px;
    height: 50px;
    min-height: 50px;
    padding: 10px;
    font-size: 16px;
    border-radius: 10px;
    margin-bottom: 24px;

    background-color: rgb(250, 250, 250);
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);
}

#new-character-page label {
    width: 80%;
    max-width: 400px;
    margin-bottom: 4px;
}

#new-character-page button {
    width: 50%;
    max-width: 100px;
    height: 45px;
    min-height: 45px;
    font-size: 16px;
    margin-bottom: 24px;
    border-radius: 10px;

    outline: none;
    border: none;
    background-color: rgb(250, 250, 250);
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);
}

#new-character-page button:hover {
    cursor: pointer;
}

#character-profile-picture-button {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-width: 150px;
    min-height: 150px;
    width: 150px;
    height: 150px;
    margin-bottom: 4px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
}

#character-profile-picture-image-preview {
    width: 100%;
    height: 100%;
    grid-column: 1;
    grid-row: 1;
}

#character-profile-picture-button-overlay {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgb(0, 0, 0, 0.5);
    opacity: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    transition: opacity 0.15s;
}

#character-profile-picture-button-overlay:hover {
    opacity: 1;
}

#character-profile-picture-button-overlay p {
    color: white;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
    user-select: none;
}

#new-character-page #character-description-input {
    height: 80px;
    min-height: 80px;
}

#new-character-page #character-additional-information-input {
    height: 80px;
    min-height: 80px;
}

.loading-animation {
    width: 100%;
    height: 20px;
    background-color: transparent;
    border-radius: 8px;
    overflow-x: hidden;
    display: flex;
}

.loading-animation div {
    width: 70%;
    height: 100%;
    background-image: linear-gradient(to right,
            rgb(0, 150, 255, 0) 0%,
            rgb(0, 150, 255, 1) 50%,
            rgb(0, 150, 255, 0) 100%);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-150%);
    }

    100% {
        transform: translateX(150%);
    }
}

/* ai settings page */
#ai-settings-page {
    position: absolute;
    width: 100vw;
    height: 100vh;

    background-color: white;
    z-index: 50;
}

.ai-page-button {
    width: 80%;
    max-width: 250px;
    height: 35px;
    min-height: 35px;
    font-size: 16px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);

    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.ai-page-button:hover {
    background-color: rgb(240, 240, 240);
}

.ai-settings-sub-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100%;
    overflow-y: auto;
}

.ai-settings-cards-container {
    display: flex;
    flex-wrap: wrap;
    width: 85%;
    height: fit-content;
}

/* characters page */
.selected-ai-settings-page-card-div {
    border: 2px solid rgb(255, 255, 0);
}

.ai-settings-page-card-div {
    height: auto;
    width: 300px;
    padding: 16px;
    margin: 8px;
    border-radius: 10px;

    background-color: white;
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.ai-settings-page-card-div:hover {
    cursor: pointer;
}

.ai-settings-page-card-div .row {
    align-items: center;
}

.ai-settings-page-card-div-profile-picture {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    margin-right: 16px;
    border-radius: 50%;
    filter: none !important;
}

.ai-settings-page-card-div img {
    width: 35px;
    height: 35px;
    filter: brightness(0);
}

.ai-settings-page-card-div-name-p {
    margin: 0;
    margin-bottom: 8px;
    width: 100%;
}

.ai-settings-page-card-div-description-p {
    margin: 0;
    width: 100%;
}

.ai-settings-page-card-div button {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    outline: none;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;

    transition: background-color 0.3s;
}

.ai-settings-page-card-div button:hover {
    background-color: rgb(0, 0, 0, 0.1);
    cursor: pointer;
}

.ai-settings-page-card-div-edit-button img {
    filter: brightness(0);
}

.ai-settings-page-card-div-delete-button img {
    filter: brightness(0);
}

#save-layout-button {
    position: absolute;
    width: 90vw;
    height: 40px;
    font-size: 16px;
    bottom: 8px;
    left: 5vw;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);
    z-index: 100;
    outline: none;
    border: none;
    cursor: pointer;
}

/* confirm delete popup */
.modal-page {
    width: 100vw;
    height: 100vh;

    background-color: rgb(0, 0, 0, 0.8);
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 1200;
}

.modal {
    width: 78vw;
    max-width: 350px;
    padding: 16px;
    padding-left: 32px;
    padding-right: 32px;
    border-radius: 10px;
    background-color: white;
    text-align: center;
    color: black;
}

.modal textarea {
    width: 100%;
    height: 60px;
    outline: none;
    border-radius: 10px;
    padding: 8px;
    font-size: 16px;
    resize: none;
}

.modal p {
    color: inherit;
    margin-bottom: 32px;
}

.modal .row {
    color: inherit;
    margin-bottom: 16px;
}

.modal button {
    width: 48%;
    height: 35px;
    border-radius: 10px;
    font-size: 16px;
    color: inherit;
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);
    outline: none;
    border: none;
}

.modal button:hover {
    cursor: pointer;
}

.modal .close-modal-button {
    width: 25px;
    height: 25px;
    font-size: 20px;
    color: inherit;
    background-color: transparent;
    box-shadow: none;
    outline: none;
    border: none;
}

.modal .full-width-modal-button {
    width: 100%;
    height: 40px;
    min-height: 40px;
    font-size: 16px;
    margin-bottom: 24px;
    color: inherit;
    background-color: rgb(250, 250, 250);
    outline: none;
    border: none;
}

#confirm-delete-modal-yes-button {
    color: white;
    background-color: red;
}

#confirm-delete-modal-no-button {
    color: white;
    background-color: #00d91d;
}

#confirm-override-modal-yes-button {
    color: white;
    background-color: red;
}

#confirm-override-modal-no-button {
    color: white;
    background-color: #00d91d;
}

#profile-picture-modal-close-button {
    color: white;
    background-color: #00d91d;
}

#profile-picture-modal-picture {
    width: 250px;
    height: 250px;
}

/* tooltip */
.tooltip-text {
    position: absolute;
    display: none;
    width: 80px;
    background-color: rgb(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    padding: 4px 0;
    border-radius: 8px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;

    z-index: 100;

    opacity: 0;
    transition: opacity 0.3s;
}

/* 3d */
#three-d-bottom-bar-buttons {
    position: absolute;
    bottom: 82px;
    left: 5px;
    z-index: 4;
}

#three-d-bottom-left-page {
    width: 90%;
    max-width: 300px;
    position: absolute;
    height: 60%;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    bottom: 124px;
    left: 42.5px;
}

#three-d-bottom-left-page .page {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#three-d-bottom-left-page .page button {
    width: 100%;
    height: 40px;
    min-height: 35px;
    font-size: 16px;
    margin-bottom: 16px;
    border: none;
    outline: none;
    border-radius: 10px;
    background-color: white;

    transition: background-color 0.3s;
}

#three-d-bottom-left-page .page button:hover {
    background-color: rgb(240, 240, 240);
}

/* connect wallet */
.connect-metamask-wallet-button {
    margin-bottom: 16px;
    height: 55px;
    min-height: 55px;
    font-size: 16px;
    width: 80%;
    max-width: 400px;
    background-color: white;

    outline: none;
    border: none;
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);
    border-radius: 10px;
    transition: background-color 0.3s;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.connect-metamask-wallet-button:hover {
    background-color: rgb(240, 240, 240);
}

.ai-settings-sub-page input {
    outline: none;
    border: none;

    width: 80%;
    max-width: 400px;
    height: 40px;
    min-height: 40px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
    border-radius: 10px;
    margin-bottom: 24px;

    background-color: rgb(250, 250, 250);
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);
}

.ai-settings-sub-page label {
    width: 80%;
    max-width: 400px;
    margin-bottom: 4px;
}

.page-button {
    width: 80%;
    max-width: 250px;
    height: 45px;
    min-height: 45px;
    font-size: 16px;
    margin-bottom: 24px;
    border-radius: 10px;
    color: white;

    outline: none;
    border: none;
    background-color: blue;
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);
}

.page-button:hover {
    cursor: pointer;
}

.column .ai-settings-page-card-div-buy-button {
    width: 50px;
    height: 35px;
    font-size: 16px;
    background-color: green;
    border-radius: 10px;
    color: white;
}

.column .ai-settings-page-card-div-buy-button:hover {
    background-color: rgb(0, 143, 0);
}

#loading-overlay-screen {
    position: fixed;
    z-index: 2001;
    width: 100vw;
    height: 100vh;
    background-color: rgb(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* login/register page */

.register-login-page {
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: 1500;
    background-color: white;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow-y: auto;
}

.register-login-page input {
    width: 80%;
    max-width: 300px;
    height: 35px;
    min-height: 35px;
    font-size: 16px;
    padding-left: 8px;
    margin-bottom: 24px;
    outline: none;
    border: none;
    border-radius: 10px;
    color: inherit;
    background-color: rgb(250, 250, 250);
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%);
}

.register-login-page label {
    width: 80%;
    max-width: 300px;
    margin-bottom: 8px;
    padding-left: 8px;
    color: inherit;
}

.register-login-page .button {
    width: 60%;
    max-width: 100px;
    height: 45px;
    background-color: blue;
    font-size: 16px;
    color: white;
    outline: none;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}

.register-login-page .button.wide {
    width: 80%;
    max-width: 160px;
}

.register-login-page .button.no-text-decoration {
    text-decoration: none;
    align-items: center;
    text-align: center;
}

#resend-code-button {
    max-width: 160px;
}

.link-p {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.link-p:hover {
    color: blueviolet;
}

/* report message */
#report-message-modal {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#report-message-modal .spacer {
    width: 16px;
}

#report-message-modal-category-row {
    flex-wrap: wrap;
}

#report-message-modal-category-row button {
    width: 130px;
    margin-bottom: 16px;
}

#report-message-modal-report-button {
    max-width: 100px;
    min-width: 100px;
    background-color: blue;
    color: white;
}

#report-message-modal-cancel-button {
    max-width: 100px;
    min-width: 100px;
    background-color: green;
    color: white;
}

#coming-soon-modal-page {
    z-index: 3000;
}

#coming-soon-modal-ok-button {
    background-color: blue;
    color: white;
}

@media only screen and (max-width: 768px) {
    #chat-div {
        margin-bottom: 70px;
    }
    
    #settings-page-mobile-spacer {
        height: 70px;
        min-height: 70px;
    }
}

/* THEMES */

/* dark theme */
body.dark-theme .register-login-page {
    background-color: rgb(10, 10, 10);
    color: white;
}

body.dark-theme .register-login-page input {
    background-color: rgb(15, 15, 15);
    box-shadow: 0 1px 6px rgb(255 255 255 / 12%), 0 1px 4px rgb(255 255 255 / 24%);
}

body.dark-theme .ai-settings-sub-page input {
    background-color: rgb(15, 15, 15);
    color: white;
    box-shadow: 0 1px 6px rgb(255 255 255 / 12%), 0 1px 4px rgb(255 255 255 / 24%);
}

body.dark-theme .modal {
    background-color: rgb(10, 10, 10);
    color: white;
}

body.dark-theme .modal button {
    background-color: rgb(15, 15, 15);
    box-shadow: 0 1px 6px rgb(255 255 255 / 12%), 0 1px 4px rgb(255 255 255 / 24%);
}

body.dark-theme .modal button.close-modal-button {
    background-color: transparent;
    box-shadow: none;
}

body.dark-theme .ai-page-button {
    background-color: rgb(15, 15, 15);
    box-shadow: 0 1px 6px rgb(255 255 255 / 12%), 0 1px 4px rgb(255 255 255 / 24%);
    color: white;
}

body.dark-theme .ai-page-button:hover {
    background-color: rgb(25, 25, 25);
}

body.dark-theme .connect-metamask-wallet-button {
    background-color: rgb(15, 15, 15);
    box-shadow: 0 1px 6px rgb(255 255 255 / 12%), 0 1px 4px rgb(255 255 255 / 24%);
    color: white;
}

body.dark-theme .connect-metamask-wallet-button:hover {
    background-color: rgb(25, 25, 25);
}

body.dark-theme .ai-settings-page-card-div img {
    filter: none;
}

body.dark-theme .saved-chat-delete-button img {
    filter: none;
}
body.dark-theme .ai-settings-page-card-div-edit-button img {
    filter: none;
}

body.dark-theme .ai-settings-page-card-div-delete-button img {
    filter: none;
}

body.dark-theme #chat-history-sidebar {
    background-color: rgb(10, 10, 10);
    color: white;
    box-shadow: 0 -1px 6px rgb(255 255 255 / 12%), 0 -1px 4px rgb(255 255 255 / 24%);
}

body.dark-theme #attachments-div .attachment {
    box-shadow: 0 1px 6px rgb(255 255 255 / 12%), 0 1px 4px rgb(255 255 255 / 24%);
}

body.dark-theme #question-div textarea {
    background-color: rgb(15, 15, 15);
    box-shadow: 0 1px 6px rgb(255 255 255 / 12%), 0 1px 4px rgb(255 255 255 / 24%);
    color: white;
}

body.dark-theme #question-div button:hover {
    background-color: rgb(255, 255, 255, 0.1)
}

body.dark-theme #new-character-page input {
    background-color: rgb(15, 15, 15);
    box-shadow: 0 1px 6px rgb(255 255 255 / 12%), 0 1px 4px rgb(255 255 255 / 24%);
    color: white;
}

body.dark-theme #new-character-page textarea {
    background-color: rgb(15, 15, 15);
    box-shadow: 0 1px 6px rgb(255 255 255 / 12%), 0 1px 4px rgb(255 255 255 / 24%);
    color: white;
}

body.dark-theme #new-character-page select {
    background-color: rgb(15, 15, 15);
    box-shadow: 0 1px 6px rgb(255 255 255 / 12%), 0 1px 4px rgb(255 255 255 / 24%);
    color: white;
}

body.dark-theme #save-layout-button {
    background-color: rgb(15, 15, 15);
    box-shadow: 0 1px 6px rgb(255 255 255 / 12%), 0 1px 4px rgb(255 255 255 / 24%);
    color: white;
}

body.dark-theme #new-character-page button {
    background-color: rgb(20, 20, 20);
    box-shadow: 0 1px 6px rgb(255 255 255 / 12%), 0 1px 4px rgb(255 255 255 / 24%);
    color: white;
}

/* body.dark-theme #question-div {
    background-color: rgb(10, 10, 10);
    box-shadow: 0 1px 6px rgb(255 255 255 / 12%), 0 1px 4px rgb(255 255 255 / 24%);
} */

body.dark-theme #confirm-delete-modal {
    background-color: rgb(10, 10, 10);
    color: white;
}

body.dark-theme .question-div-button-icon {
    filter: none;
}

body.dark-theme #chat-div {
    background-color: rgb(10, 10, 10);
}

body.dark-theme #new-character-page {
    background-color: rgb(10, 10, 10);
    color: white;
}

body.dark-theme #ai-settings-page {
    background-color: rgb(10, 10, 10);
    color: white;
}

body.dark-theme .ai-settings-page-card-div {
    background-color: rgb(15, 15, 15);
    box-shadow: 0 1px 6px rgb(127 127 127 / 12%), 0 1px 4px rgb(127 127 127 / 24%);
}

body.dark-theme .top-left-icon-button img {
    filter: none;
}

body.dark-theme .message {
    background-color: rgb(15, 15, 15);
    box-shadow: 0 1px 6px rgb(127 127 127 / 12%), 0 1px 4px rgb(127 127 127 / 24%);
    color: white;
    overflow-wrap: anywhere;
}

body.dark-theme .message.right {
    background-color: rgb(15, 15, 15);
}

body.dark-theme .message-button:hover {
    background-color: rgb(255, 255, 255, 0.1);
}

body.dark-theme .message-button-icon {
    filter: none;
}

body.dark-theme .popup {
    background-color: rgb(20, 20, 20);
    box-shadow: 0 1px 6px rgb(255 255 255 / 12%), 0 1px 4px rgb(255 255 255 / 24%);
}

body.dark-theme .popup-button {
    color: white;
}

body.dark-theme .popup-button:hover {
    background-color: rgb(255, 255, 255, 0.1);
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background-color: rgb(50, 50, 50);
}

body.dark-theme ::-moz-scrollbar-thumb {
    background-color: rgb(50, 50, 50);
}

body.dark-theme ::-ms-scrollbar-thumb {
    background-color: rgb(50, 50, 50);
}


/* colorful theme */

/* body.colorful-theme #question-div {
    background-color: darkblue;
} */

body.colorful-theme .message {
    background-color: yellow;
    box-shadow: 0 1px 6px rgb(127 127 127 / 12%), 0 1px 4px rgb(127 127 127 / 24%);
    color: black;
}

body.colorful-theme .message.right {
    background-color: lightgreen;
}