:root {
    --colors-background: #F2F1EF;
    --colors-menu-text-color : #2b2b2b;
    --colors-menu-background: #f8f9fa;
    --colors-menu-active : #8D0133;
    --colors-heading : #000000;
    --colors-message : #361F2A;
    --colors-button-primary : #8d0133;
    --colors-button-secondary: #6c757d;
    --colors-logout-color : #8D0133;
    --colors-sidebar-color : #8D0133;
    --colors-navbar-text : #000000;
    --colors-footer-text : #000000;
    --colors-heading-color : #000000;
    --colors-logout-text-color: #ffffff;
    --colors-avaliable-model-text : #000000;
    --colors-pagination-text : #000000;
    --colors-question-text-color : #361f2a;
    --colors-question-background-color : #f2f1ef;
    --colors-answer-text-color : #fff;
    --colors-answer-background-color : #361f2a;
    --colors-link-color : #0d6efd;
    --colors-link-color-popup: #0d6efd;
    --colors-forwarded-question-text-color: #fff;
    --colors-forwarded-question-background-color: #8d0133;
    --colors-forwarded-answer-text-color: #fff;
    --colors-forwarded-answer-background-color: #6e4c5c;


}

html {

}

body {
    background-repeat: no-repeat;
    background-color: var(--colors-background);
}

body.logo {
    background-image: url("media/dandesign/logo.png");
    background-position: center 30px;
    background-size: 200px;
}

body.btdk {
    background-image: url("media/btdk.png");
    background-size: 120px;
    background-position: center 10px;
}

.btdk nav {
    margin-top: 100px;
}

.navbar-nav .nav-link.active {
    color: var(--colors-menu-active);
    font-weight: bold;
}

h4 {
    color: #412700;
}

ul.topics {
    list-style: none;
    padding-left: 0;
}

ul.topics li {
    display: block;
    margin-bottom: 34px;
}

ul.topics li a {
    color: #412700;
    background-color: #FFF;
    text-decoration: none;
    padding: 12px;
    border-radius: 20px;
}

button.documents {
    padding: 12px;
    color: #412700;
    border-radius: 20px;
    background-color: #F1F1EF;
    margin-left: 15px;
}

button.documents:hover {
    background-color: #F1F1EF;
}

button.logout {
    padding: 12px;
    color: #FFF;
    border-radius: 20px;
    background-color: var(--colors-logout-color) !important;
    border-color: var(--colors-logout-color) !important;
    margin-left: 15px;
}

button.logout:hover {
    opacity: 0.7;
}

.message > .content {
    padding: 12px;
    text-align: left;
    border-radius: 20px;
}

.message.user > .content {
    background-color: var(--colors-question-background-color);
}

.message.system > .content {
    background-color: var(--colors-answer-background-color);
}

.message.user {
    color: var(--colors-question-text-color);
    margin-bottom: 10px;
}

.message.system,
.message.system a,
.message.system h1,
.message.system h2,
.message.system h3,
.message.system h4,
.message.system h5,
.message.system h6 {
    color: var(--colors-answer-text-color);
}

.message.system h1 {
    font-size: 20px;
}

.message.system h2 {
    font-size: 19px;
}

.message.system h3 {
    font-size: 18px;
}

.message.system h4,
.message.system h5,
.message.system h6 {
    font-size: 17px;
}
.message.system ol {
    list-style-type: decimal;
}
.message.system ul {
    list-style-type: disc;
}
.message.system ol li p {
    margin-bottom: 0;
}

.message.system {
    margin-bottom: 22px;
}

.message.user,
.message.content {
    text-align: left;
}

.card-footer.assistant {
    background: none;
}

ul.topics li a.active-topic {
    opacity: 1;
    color: #fff;
    background: var(--colors-sidebar-color);
}

.section-better-answer {
    margin-bottom: 22px;
    margin-top: 10px;
}

.content ol:last-child,
.content p:last-child {
    margin: 0;
}

.avatar {
    display: inline;
    width: 35px;
    height: 35px;
    border-radius: 20px;
    margin-top: -4px;
}

img.avatar:nth-child(1) {
    margin-left: -7px;
}

a.avatar {
    margin-bottom: 3px;
}

.btn-primary {
    background-color: var(--colors-button-primary) !important;
    border: 1px solid var(--colors-button-primary) !important;
}

.btn-primary:hover {
    background-color: #a72848;
    border: 1px solid #871633;
}

.form-control:focus {
    border-color: #aaaaaa;
    box-shadow: none;
}

.expert .avatar  {
    float: left;
    width: 70px;
    height: 70px;
    border-radius: 35px;
    margin: auto !important;
}

.expert span  {
    float: left;
    padding-top: 25px;
    padding-left: 25px;
}

.dropdown-toggle {
    white-space: normal;
    word-break: break-word;
    text-align: left;
}

form.login {

}

form.login label {
    color: #FFF;
}

form.login input,
form.login textarea,
form.login select {
    color: #FFF;
    border-radius: 20px;
    background-color: #361F2A;
}

form.login button {
    color: #FFF;
    border-radius: 30px;
    background-color: #361F2A;
    padding: 15px 30px;
}

ul.topics li .accordion a {
    padding: 0px 0px 0px 12px;
    background: none;
}

.accordion-button,
.accordion-body {
    padding: 0 !important;
    background: none;
}

.accordion-button {
    width: auto;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-block;
    padding-left: 10px !important;
}

.accordion-button:focus {
    box-shadow: none !important;
}

.accordion-item {
    border: none;
}

.denmark-flag {
    margin-top: 2px;
}

.hidden-arrow::after {
    display: none;
}

.chat-btn-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: start; /* top vertically */
    height: 100%; /* Set height to viewport height for vertical centering */
}

#chat_input {
    max-height: 25dvh;
    resize: none;
}

.page-container,
.footer {
    padding-left: 59px;
    padding-right: 59px;
}

.collapse {
    visibility: visible;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: var(--colors-heading);
}

.navbar-text {
    color: var(--colors-navbar-text);
}

.footer a.text-dark {
    color: var(--colors-menu-text-color) !important;
}

.active>.page-link, .page-link {
    color : var(--colors-pagination-text) !important;
    background-color: var(--colors-menu-background) !important;
}

.active>.page-link, .page-link.active {
    background-color: var(--colors-pagination-text) !important;
    color: var(--colors-menu-background) !important;
    border-color:   var(--colors-menu-text-color);
}

.nav-background {
    background-color: var(--colors-menu-background) !important;
}

.nav-font {
    color:  var(--colors-menu-text-color);
}

.active-topic {
    background-color: var(--colors-button-primary) !important;
}

#documents .list-group-item a {
    color: var(--colors-avaliable-model-text);
}

.btn-secondary {
    background-color: var(--colors-button-secondary) !important;
    border-color:   var(--colors-button-secondary) !important;
}

.no-history .accordion-button{
    display: none;
}

.margin-bottom-21 {
    margin-bottom: 21px !important;
}

.midjourney {
    position: relative;
    margin-left: 40px;
}

.midjourney > button {
    position: absolute;
}

.midjourney a.download {
    color: #FFF;
    position: absolute;
    left: 40%;
    bottom: -40px;
}

.btn-info.download {
    background-color: #361f2a;
    border: none;
}

span.progress {
    position: absolute;
    bottom: 104px;
    background: #361f2a;
    padding: 10px;
    border-radius: 30px;
    color: #FFF;
    font-weight: bold;
    height: 38px;
}

a {
    color: var(--colors-link-color);
}

.modal-body a {
    color: var(--colors-link-color-popup);
}

.local_additions {
    background-color: #861D1B;
    color: #ffffff;
    border-radius: 0.375rem;
}
.local_additions p:last-child {
    margin-bottom: 0;
}

@media only screen and (max-width: 576px) {
    .chat-container {
      height: 70vh !important;
    }
}

.custom-file-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
    width: 100%;
    height: 100%;
}

#mic-btn {
    font-size: x-large;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

#mic-btn.active {
    color: #8d0133;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(141, 1, 51, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(141, 1, 51, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(141, 1, 51, 0);
    }
}

.dashboard,
.profile {
    min-height: calc(100vh - 234px);
}

.dashboard {
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.dashboard .accordion {
    display: none;
}
.dashboard ul.topics li {
    display: inline-block;
}

.dashboard .main-topic {
    font-weight: 600;
}

.message.user.forwarded-msg > .content {
    background-color: var(--colors-forwarded-question-background-color);
}

.message.system.forwarded-msg > .content {
    background-color: var(--colors-forwarded-answer-background-color);
}

.message.system.forwarded-msg > .content p {
    color: var(--colors-forwarded-question-text-color);
}

.message.user.forwarded-msg > .content p {
    color: var(--colors-forwarded-answer-text-color);
}

.rsyd-chat-logo {
    max-width: 287px;
}

.rsyd-chat form.login label {
    color: #000;
}

.rsyd-chat form.login input,
.rsyd-chat form.login textarea,
.rsyd-chat form.login select {
    background-color: #fff;
    color: #000;
}
.rsyd-chat form.login button {
    background-color: #8da12c;
}

.blinking-internet-search {
    width: 32px;
    height: 30px;
    background-image: url('/media/www-internet-icon.png');
    background-size: cover;
    animation: blinkBackground 1s infinite;
}

@keyframes blinkBackground {
    0%, 100% {
    opacity: 1;
    }
    50% {
    opacity: 0;
    }
}

.btn-remove-file {
    padding: 3px;
    margin-top: 3px;
    line-height: 0px;
}

.btn-remove-file i {
    font-size: 10px;
}

.internet-search-img {
    background: no-repeat;
    opacity: 0.1;
    width: 20px;
    margin-left: 6px;
}

.rm-link-red {
    color: #871633;
    text-decoration: none;
}
