/**
 * ==============================================
 * Chat Window in iFrame
 * ==============================================
 */
@font-face {
  font-family: 'Graphik LCG Web';
  src: url('/static/client/fonts/Graphik-BoldItalic-Cy-Gr-Web.eot');
  src: url('/static/client/fonts/Graphik-BoldItalic-Cy-Gr-Web.eot?#iefix') format('embedded-opentype'),
       url('/static/client/fonts/Graphik-BoldItalic-Cy-Gr-Web.woff2') format('woff2'),
       url('/static/client/fonts/Graphik-BoldItalic-Cy-Gr-Web.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-stretch: normal;
}

@font-face {
  font-family: 'Graphik LCG Web';
  src: url('/static/client/fonts/Graphik-Bold-Cy-Gr-Web.eot');
  src: url('/static/client/fonts/Graphik-Bold-Cy-Gr-Web.eot?#iefix') format('embedded-opentype'),
       url('/static/client/fonts/Graphik-Bold-Cy-Gr-Web.woff2') format('woff2'),
       url('/static/client/fonts/Graphik-Bold-Cy-Gr-Web.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-stretch: normal;
}

@font-face {
  font-family: 'Graphik LCG Web';
  src: url('/static/client/fonts/Graphik-MediumItalic-Cy-Gr-Web.eot');
  src: url('/static/client/fonts/Graphik-MediumItalic-Cy-Gr-Web.eot?#iefix') format('embedded-opentype'),
       url('/static/client/fonts/Graphik-MediumItalic-Cy-Gr-Web.woff2') format('woff2'),
       url('/static/client/fonts/Graphik-MediumItalic-Cy-Gr-Web.woff') format('woff');
  font-weight: 500;
  font-style: italic;
  font-stretch: normal;
}

@font-face {
  font-family: 'Graphik LCG Web';
  src: url('/static/client/fonts/Graphik-Medium-Cy-Gr-Web.eot');
  src: url('/static/client/fonts/Graphik-Medium-Cy-Gr-Web.eot?#iefix') format('embedded-opentype'),
       url('/static/client/fonts/Graphik-Medium-Cy-Gr-Web.woff2') format('woff2'),
       url('/static/client/fonts/Graphik-Medium-Cy-Gr-Web.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-stretch: normal;
}

@font-face {
  font-family: 'Graphik LCG Web';
  src: url('/static/client/fonts/Graphik-RegularItalic-Cy-Gr-Web.eot');
  src: url('/static/client/fonts/Graphik-RegularItalic-Cy-Gr-Web.eot?#iefix') format('embedded-opentype'),
       url('/static/client/fonts/Graphik-RegularItalic-Cy-Gr-Web.woff2') format('woff2'),
       url('/static/client/fonts/Graphik-RegularItalic-Cy-Gr-Web.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-stretch: normal;
}

@font-face {
  font-family: 'Graphik LCG Web';
  src: url('/static/client/fonts/Graphik-Regular-Cy-Gr-Web.eot');
  src: url('/static/client/fonts/Graphik-Regular-Cy-Gr-Web.eot?#iefix') format('embedded-opentype'),
       url('/static/client/fonts/Graphik-Regular-Cy-Gr-Web.woff2') format('woff2'),
       url('/static/client/fonts/Graphik-Regular-Cy-Gr-Web.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-stretch: normal;
}

@font-face {
  font-family: 'Graphik LCG Web';
  src: url('/static/client/fonts/Graphik-LightItalic-Cy-Gr-Web.eot');
  src: url('/static/client/fonts/Graphik-LightItalic-Cy-Gr-Web.eot?#iefix') format('embedded-opentype'),
       url('/static/client/fonts/Graphik-LightItalic-Cy-Gr-Web.woff2') format('woff2'),
       url('/static/client/fonts/Graphik-LightItalic-Cy-Gr-Web.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-stretch: normal;
}

@font-face {
  font-family: 'Graphik LCG Web';
  src: url('/static/client/fonts/Graphik-Light-Cy-Gr-Web.eot');
  src: url('/static/client/fonts/Graphik-Light-Cy-Gr-Web.eot?#iefix') format('embedded-opentype'),
       url('/static/client/fonts/Graphik-Light-Cy-Gr-Web.woff2') format('woff2'),
       url('/static/client/fonts/Graphik-Light-Cy-Gr-Web.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-stretch: normal;
}
:root {
    --primary-color: #dcdcdc ;
    --secondary-color: #8d8c8c;
    --grey-color: #f1f0f0;
    --hover-color: #e1001a;
    --border-color: #A1A1A1;
    --text-color: #222;
    --font-family-main: "Graphik LCG Web", Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-family-main);
    font-size: 16px; /* Set overall font size */
    color: var(--text-color);
}

@media (max-height: 480px) {
    body, html {
        font-size: 14px;
    }
}

h1 {
    margin: 8px 0 0 0;
    font-size: 2em;
    font-weight: 300;
    color: #e52236;
    -webkit-font-smoothing: antialiased;
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.2em;
        font-weight: 800;
    }
}

button {
    font-family: var(--font-family-main);
    font-size: 1em;
}

input {
    font-family: var(--font-family-main);
    font-size: 1em;
}

#chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 auto;
    padding: 0 5%;
}

@media screen and (max-width: 768px) {
    #chat-container {
        padding: 0 10px;
    }
}

header {
    padding: 10px 20px;
    text-align: center;
    display: none;
}

.chat__messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

.chat__messages::-webkit-scrollbar {
    display: none; /* For WebKit-based browsers (Chrome, Safari) */
}

.chat__message {
    padding: 10px 10px 35px 10px;
    border-radius: 16px;
    margin-bottom: 10px;
    max-width: 80%;
    width: fit-content;
}

@media screen and (max-width: 768px) {
    .chat__message {
        max-width: 100%;
    }
}

.chat__message--teaser {
    align-self: flex-end;
    background: #e52236 ;
    color: #ffffff;
    margin-top: 0;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    cursor: pointer;
}

.chat__message--teaser:focus {
  background-color: #e52236;
  outline: none;
  box-shadow: 0 0 0 2px #fff, /* inner white border */
              0 0 0 4px #e52236; /* outer red border */
  border: none;
}
@media screen and (max-width: 768px) {
    .chat__message--teaser {
        margin-bottom: 10px;
    }
}

.chat__message--teaser:hover {
    background: #e52236;
    color: white;
    transform: scale(1.05);
}

@media screen and (max-width: 768px) {
    .chat__messages > .chat__message--teaser:nth-child(n+4) {
        display: none;
    }
}

.chat__message--bot {
    position: relative;
    align-self: flex-start;
    background: var(--primary-color);
    color: #040404;
}

.chat__message--bot a {
    color: #2565AE;
    text-decoration: none;
}

.chat__message--user {
    align-self: flex-end;
    background: #e52236;
    color: #ffffff;
}

.chat__message--divider {
    width: 100%;
    height: 2px;
    /*background-color: rgb(122, 122, 217);*/
    margin: 25px 0;
}

@media screen and (max-width: 768px) {
    .chat__message--divider {
        margin: 10px 0;
    }
}

.dimmed {
    /*opacity: 0.7;*/
    opacity: 1;
}

.chat__message img {
    display: block;
    width: 200px;
    margin: 10px 0 10px 0;
    vertical-align: middle;
    cursor: pointer;
}

.image-description {
    font-style: italic;
}


#scroll-down-button {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 50px;
    height: 50px;
    padding: 0;
    background-color: var(--border-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

#scroll-down-button:hover {
    background-color: black;
}

@media (hover: none) {
    #scroll-down-button:hover {
        background-color: var(--border-color);
    }
}

footer {
    /*display: flex;*/
    /*justify-content: space-between;*/
    /*align-items: center;*/
    padding: 10px 20px;
}

footer .input-container {
    position: relative;
    width: 100%;
}

/* necessary for additional buttons */
footer .input-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .chat__input {
    width: 100%;
    padding: 13px 40px 13px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    color: #493727;
}

footer .chat__input:focus {
    border: 1px solid black;
}

footer .chat__input::placeholder {
    color: rgba(73, 55, 39, 0.56);
}

footer .chat__send {
    position: absolute;
    right: 0;
    top: 0;
    background-color: transparent;
    color: black;
    border: none;
    cursor: pointer;
    height: 100%;
    padding: 0 12px;
}

footer .chat__send::before {
    font-family: 'Font Awesome 6 Pro';
    font-size: 1.5em;
    content: "\f061"; /* arrow-right */
    font-weight: 900; /* 'fa-solid' style */
}

footer .chat__send:hover {
    color: var(--hover-color);
}

@media (hover: none) {
    footer .chat__send:hover {
        color: initial;
    }
}

.disclaimer {
    padding: 5px;
    text-align: center;
    font-size: 10px;
    color: #5F5F5F;
}

/**
 * ==============================================
 * Buttons Feedback & more
 * ==============================================
 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spin-around {
    animation: spin 2s infinite linear;
}

.feedback-icons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.feedback-icons .thumbs-up, .feedback-icons .thumbs-down, .feedback-icons .listen-summary, .feedback-icons .copy-clipboard {
    cursor: pointer;
    opacity: 0.7;
    background: transparent;
    border: none;
    /*color: black;*/
}

.feedback-icons .thumbs-up:hover, .feedback-icons .thumbs-down:hover, .feedback-icons .listen-summary:hover, .feedback-icons .copy-clipboard:hover {
    opacity: 1;
}

.invisible {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.thumbs-up::before {
    content: "";
    display: flex;
    width: 35px; /* Adjust size as needed */
    height: 35px; /* Adjust size as needed */
    background-image: url('../img/wien_b2c_upvote.png');
    background-size: 90%; /* Slightly smaller than container to show background */
    background-repeat: no-repeat;
    background-position: center;
    background-color: #646464 ; 
    border-radius: 50%; /* Makes it circular */
    padding: 1px; /* Creates space around the icon */
}

.thumbs-down::before {
    content: "";
    display: flex;
    width: 35px; /* Adjust size as needed */
    height: 35px; /* Adjust size as needed */
    background-image: url('../img/wien_b2c_downvote.png');
    background-size: 90%; /* Slightly smaller than container to show background */
    background-repeat: no-repeat;
    background-position: center;
    background-color: #646464 ; 
    border-radius: 50%; /* Makes it circular */
    padding: 1px; /* Creates space around the icon */
}
.feedback-modal {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #f1f1f1;
    border: 1px solid #d2d2d2;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border-radius: 10px;
}

.feedback-modal textarea {
    width: 250px;
    height: 150px;
    display: block;
    margin-bottom: 10px;
    border: 1px solid rgb(228, 225, 225);
    font-size: 14px;
}

.feedback-buttons {
    display: flex;
    justify-content: space-between;
}

.feedback-modal button {
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    border: none;
    background-color: #f4f4f4;
    border-radius: 5px;
}

.feedback-modal button:hover {
    background-color: #d9d9d9;
}

.recording-button {
    width: 40px;
    height: 48px;
    margin-right: 5px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Font Awesome 6 Pro';
    outline: none;
    color: var(--title-color);
    background-color: white;
    font-weight: 800;
    font-size: 18px;
}
.recording-button::before {
    content: '\f130'; /* FontAwesome unicode for 'microphone' icon */
}
.recording-button[data-recording-state="active"]::before {
    content: '\f04d'; /* Stop icon */
}
.recording-button:focus {
    color: #093c7d;
    border: 2px solid #093c7d;
}
.recording-button:hover {
    color: #093c7d;
    border: 2px solid #093c7d;
}
.recording_off {
    /* just for the color of the recording button when no sound detected */
    color: var(--title-color);
    background-color: #ffffff;
}
.recording_max {
    /* just for the color of the recording button when max sound detected */
    color: #ffffff;
    background-color: var(--primary-color);
}
.refresh-chat {
  width: 40px;
  height: 48px;
  margin-right: 5px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  border-radius: 8px;
  outline: none;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.refresh-chat::before {
  content: '';
  width: 35px;
  height: 40px;
  background-image: url('../img/chat_refresh.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 90%;
}
/**
 * ==============================================
 * Images
 * ==============================================
 */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    cursor: pointer;
}

.popup__button--left {
    left: 10px;
}

.popup__button--right {
    right: 10px;
}

.popup__img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: pointer;
}

/**
 * ==============================================
 * Dot Flashing
 * ==============================================
 */
.dot {
    font-size: 0.6rem;
    margin-right: 5px;
    color: #040404;
}

.dot1 {
    animation: visibility1 3s linear infinite;
}

@keyframes visibility1 {
    0% {
        opacity: 1;
    }
    65% {
        opacity: 1;
    }
    66% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.dot2 {
    animation: visibility2 3s linear infinite;
}

@keyframes visibility2 {
    0% {
        opacity: 0;
    }
    21% {
        opacity: 0;
    }
    22% {
        opacity: 1;
    }
    65% {
        opacity: 1;
    }
    66% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.dot3 {
    animation: visibility3 3s linear infinite;
}

.listen-summary::before {
    content: "\f6a8";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900; /* Solid style */
}

/* Loading spinner icon */
.listen-summary.loading {
    opacity: 1 !important;
}
.listen-summary.loading:hover {
    transform: scale(1.2);
    transition: transform 0.2s;
}
.listen-summary.loading::before {
    content: "\f110";
    font-weight: 900;
}

/* Stop icon */
.listen-summary.stop {
    opacity: 1 !important;
}
.listen-summary.stop:hover {
    transform: scale(1.2);
    transition: transform 0.2s;
}
.listen-summary.stop::before {
    content: "\f04d";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
}
/* Clipboard icon */
.copy-clipboard::before {
    content: "";
    display: flex;
    width: 35px; /* Adjust size as needed */
    height: 35px; /* Adjust size as needed */
    background-image: url('../img/wien_b2c_clipboard.png');
    background-size: 90%; /* Slightly smaller than container to show background */
    background-repeat: no-repeat;
    background-position: center;
    background-color: #646464 ; 
    border-radius: 50%; /* Makes it circular */
    padding: 1px; /* Creates space around the icon */
}

.copy-clipboard:active {
    /* scale icon on click factor 1.2 with animation */
    transform: scale(1.2);
    transition: transform 0.2s;
}

.tooltip-element {
    background-color: #f9f9f9;
    border: 1px solid #dcdcdc;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    font-size: 12px;
    z-index: 1000; /* Ensure it appears above other elements */
    white-space: nowrap; /* Prevent text wrapping */
}

@keyframes visibility3 {
    0% {
        opacity: 0;
    }
    43% {
        opacity: 0;
    }
    44% {
        opacity: 1;
    }
    65% {
        opacity: 1;
    }
    66% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}