/* import google sans font */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

@font-face {
    font-family: "Google Sans", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Google Sans", sans-serif;
    font-weight: bold;
}
html,body{
    font-family: 'Google Sans', 'Open Sans',sans-serif;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overscroll-behavior-y: none;

}

#chatContainer {
    min-width: min(640px, 50vw);
    min-height: 50dvh;
    max-height: 80dvh;
    animation-delay: 1s;
    animation: fade-in 1s ease-in-out;
    background: var(--main-gradient) !important;
    position: absolute;
}

-webkit-scrollbar {
    width: 8px;
    display: none;
}

::-webkit-scrollbar:horizontal {
    height: 8px;
}

::-webkit-scrollbar-track {
    background-color: rgba(142, 142, 142, 0.05);
}

::-webkit-scrollbar-thumb {
    background-color: #000;
    border-radius: 8px;
    cursor: pointer;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #333 !important;
    transition: background-color 0.2s ease !important;
}


#chatContainer{
    width: min(640px, 50vw);
    min-height: 50dvh;
    max-height: 80dvh;
    border-radius: 1em;
    animation-delay: 1s;
    animation: fade-in 1s ease-in-out;


}
#chatContainer.justChatbot{
    animation: none;
}

@keyframes fade-in {
    0% { opacity: 0; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@media (max-width: 1024px) {
    #chatContainer{
        width: 100vw;
        flex-grow: 1;
        margin-top: 3em;
        max-height: calc(100dvh - 5em);
        height: calc(100dvh - 5em);
    }
    #chatContainer.justChatbot{
        margin-top: 0;
        max-height: 100%;
        height: 100%;
    }
}
@supports (height: 100dvh) {
    .full-viewport-height {
        height: 100dvh;
    }
}

#toolbar{
    /*Make the toolbar 100% width and 50px height on top*/
    width: 100vw;
    background-color: #33333399;
    position: fixed;
    top: 0;
    color:white;
    padding: 1em ;
    display: flex;
    flex-direction: row;
}

#toolbar ul{
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin: 0 1em;
    padding: 0;
    flex-grow: 1;
    a{
        color: white;
        margin-left: 1em;
        font-size: larger;
    }
}

#toolbar .toolbarTitle{
    margin:0 1em;
    font-size: large;
}


.bg{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    animation: darken 3s ease-in-out forwards;
}
#qrCodeContainer{
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 99999;
}

@keyframes darken {
    0% { background-color: rgba(0, 0, 0, 0.5); }
    100% { background-color: rgba(0, 0, 0, .8); }
}

#qrCodeContainer{
    background: radial-gradient( var(--primary-color) , var(--secondary-color-rgb) );
}
#qrcode{
    border-radius: 2em;
    border: 2em solid white;
    margin: 1em;
}
button {
    border-radius: 0.5em;
    border: none;
    padding: 0.5em 1em;
    background-color: var(--primary-color);
}

.qrCodeClose{
    font-size: 1.5em;
    color: var(--text-color);
    cursor: pointer;
    border:2px solid var(--text-color);
    background: linear-gradient(45deg, var(--primary-color-rgb) 0%, var(--secondary-color-rgb) 100%);
}

.qrCodeTitle{
    color: var(--text-color);
}

.trend-rider-ai-input-area svg{

    --svg-height: 32px;
    fill: none !important;
    height: var(--svg-height);
    min-height: var(--svg-height);
    max-height: var(--svg-height);

    padding: 6px;
}
.trend-rider-ai-message-text{
    padding-top: 0;
}
.trend-rider-toolbar-button > svg{
    padding-right: 0.5em;
}

.justChatbot{
    max-height: 100vh !important;
}