/* Style the overall app container */
div.css-k1ih3n.egzxvld4 {
    padding: 1rem 1rem 1rem;
    display: flex;
    overflow: visible;
    flex-grow: 1; /* This allows the chat window to be anchored at the bottom */
}
/* Hide the streamlit injected data-iframe-height div */
div.css-qcqlej.egzxvld3 {
    display: none;
}
.css-ocqkz7 {
    flex-grow: 0;
}

/* Style the app so the scrollbar is anchored to the bottom */
section.css-k1vhr4.egzxvld5 {
    display: flex;
}

/* Style prompt_json_view_placeholder header so it is aligned. */
div.css-k1ih3n.egzxvld4 > div:nth-child(1) > div:nth-child(1) > div:nth-child(7) > div:nth-child(1) p {
    margin-left: 8px;
}

/* Style prompt_json_view_placeholder so overflow is scrollable */
div.css-k1ih3n.egzxvld4 > div:nth-child(1) > div:nth-child(1) > div:nth-child(7) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(2) {
    overflow-x: hidden;
    overflow-y: scroll;
    max-height: 955px;
    margin-top: 8px;
    margin-left: 8px;
}

/* Style prompt_string_placeholder so overflow is scrollable */
div.css-k1ih3n.egzxvld4 > div:nth-child(1) > div:nth-child(1) > div:nth-child(7) > div:nth-child(2) .stCodeBlock {
    overflow-x: hidden;
    overflow-y: scroll;
    max-height: 955px;
    margin-top: 8px;
}

/* Remove "Press enter to apply" from text input */
.stTextInput div.css-1if5ada.effi0qh1 {
    visibility: hidden;
}

/* Make markdown code wrapped */
code.language-markdown {
    white-space: pre-wrap !important ;       
}

/* Make padding smaller on st.sidebar */
div.css-1vq4p4l.e1fqkh3o4 {
    padding-top: 2rem;
}