/* Admin pages */
.cbaiPageWrapper{
    background: #fff;
    padding: 25px;
    margin-top: 20px;
    margin-right: 20px;
    border-radius: 5px;
    border: 1px solid #d0d3db !important;
}

.cbaiPageHead{
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    justify-content: space-between;
}

.cbaiPageHeading{
    display: flex;
    align-items: center;
}

.cbaiPageHead img{
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.cbaiPageHead h1{
    margin: 0;
}

.cbaiPageWrapper .submit {
    padding: 0 !important;
}

.cbai-input{
    border: 1px solid #d0d3db !important;
    margin-bottom: 20px;
}

input::placeholder, textarea::placeholder {
    color: #ccc;
}

input#cbai_apikey{
    margin: 0 !important;
}

p#apikey-description {
    font-size: 12px;
}

#cbai_unlink {
    background: #dc3545;
    border-color: #dc3545;
}

#cbai_unlink:hover{
    background: #ac2835;
}



/* Help page */
.cbaiRow {
    padding-top: 10px;
    margin-bottom: 40px;
}

.cbaiRow:last-of-type{
    margin-bottom: 0;
}

.cbaiOverviewContainer{
    background: #f0f0f1;
    padding: 5px 10px 10px 25px;
    border-radius: 5px;
    border: 1px solid #d0d3db;
    margin-bottom: 15px !important;
}

.cbaiQuestion{
    font-weight: bold;
}

.cbaiAnswer {
    padding: 0 22.5px;
}

ul.cbaiOverviewQuestionsList {
    list-style: inside;
}

.cbaiGif{
    border: 1px solid #ccc;
    max-width: calc(100% - 100px);
    height: 500px;
}

.cbaiGif-half{
    max-width: calc(50% - 100px);
    margin-right: 25px;
}

.cbaiGifContainer{
    display: flex;
    margin-left: 25px;
    max-width: 100%;
}

@media screen and (max-width: 1225px){
    .cbaiGifContainer{
        flex-direction: column;
    }

    .cbaiGif {
        max-width: 100% !important;
        height: auto;
        width: max-content;
    }

    .cbaiGif-half{
        margin-right: 0 !important;
        margin-bottom: 25px;
    }
}



/* Getting Started page -> Sits in the actual file */

/* Welcome page */
div#content-bot-welcome-page {
    background-color: #fff;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

:not(.cbai-no-flex) .cbai-flex {
    display: flex;
    align-items: center;
}

.feature-heading{
    padding: 0 30px;
}

.feature-section {
    text-align: center;
}

.cbai-flex-grid__item {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

.cbai-flex-grid__item .cbai-card {
    height: 100%;
}

.cbai-card {
    display: block !important;
}

.cbai-card {
    background: #fff;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 3px;
    position: relative;
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 3px rgb(0 0 0 / 4%);
}



/* Instruct page */
#cbaiInstructPage{
    padding: 0;
}

#cbaiInstructPage .cbaiPageHead{
    padding: 20px;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #e3e6f0;
}

.cbaiInstructDisplay{
    border-bottom: 1px solid #d0d3db;
    width: 100%;
    min-height: 500px;
}

.cbaiInstructRow {
    display: flex;
    border-bottom: 1px solid #e3e6f0;
}

.cbaiInstructRowInner {
    display: flex;
    flex-direction: row;
    padding: 10px 20px;
    margin: 0 auto;
    width: 50%;
}

@media screen and (max-width: 1300px){
    .cbaiInstructRowInner{
        width: 75%;
    }
}

@media screen and (max-width: 1150px){
    .cbaiInstructRowInner{
        width: 100%;
    }
}

.cbaiInstructDisplay .cbaiInstructRow:last-of-type {
    margin: 0!important;
}

.cbaiInstructThinkingRow .cbaiInstructRowOutput {
    width: 75px;
    display: flex;
    align-items: center;
}

.cbaiInstructRowLeft{
    background-color: #f5f5f5;
}

.cbaiInstructRowLeft .cbaiInstructRowInner{
    flex-direction: row;
}

.cbaiInstructRowRight .cbaiInstructRowInner{
    flex-direction: row-reverse;
}

.cbaiInstructRowIcon {
    margin: 0 15px;
    padding-top: 5px;
}

.cbaiInstructRowLeft .cbaiInstructRowIcon {
    margin-left: 0!important;
}

.cbaiInstructRowRight .cbaiInstructRowIcon {
    margin-right: 0!important;
}

.cbaiInstructRowIcon img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.cbaiInstructRowRight .cbaiInstructRowOutput{
    text-align: right;
}

.cbaiInstructRowOutput {
    padding: 15px;
    width: 100%;
}

.cbaiInstructRowOutput pre {
    display: block;
    font-size: 87.5%;
    color: #3a3b45;
    word-wrap: break-word;
    white-space: pre-wrap;
    margin: 0
}

/* .cbaiInstructTopRow {
    display: flex;
    justify-content: end;
}
*/

.cbaiInstructBottomRow{
    padding: 20px;
}

.cbaiInstructBottomRow .cbaiInstructButtons{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.cbaiInstructInputOptions{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

.cbaiInstructInputOptions > div:first-of-type {
    margin-bottom: 15px;
}

.cbaiInstructInput{
    display: flex;
    align-items: center;
}

.cbaiInstructInput, .cbaiInstructInputOptions {
    width: 100%;
    margin-bottom: 17.5px;
}

#cbaiInstructInputField {
    font-size: 16px;
    padding: 10px 15px!important;
    width: -webkit-fill-available;
    margin: 0 17.5px 0 0;
    resize: none;
    height: 45px;
    min-height: 45px;
    max-height: 600px;
}

.cbaiInstructInputExtras .cbai-input{
    padding: 5px 15px !important;
    width: 100%;
}

.cbaiVariable {
    text-decoration: underline;
}

.cbaiInstructView {
    height: fit-content;
}

.cbaiInstructLengthOptions {
    display: flex;
    width: 225px;
}

.cbaiInstructLengthOptions span{
    margin-right: 10px;
}

.cbaiInstructLengthOptions > div, .cbaiInstructLengthOptions input{
    width: -webkit-fill-available;
}

div#cbaiInstructOutputLengthSliderUpdate {
    text-align: right;
}

input#cbaiInstructKeepContext {
    position: relative;
    top: 2.5px;
}

.cbai-dot-flashing {
    position: relative;
    left: 30px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #db2fdb4d;
    color: #db2fdb4d;
    animation: dot-flashing 1s infinite linear alternate;
    animation-delay: .5s
}

.cbai-dot-flashing::before,.cbai-dot-flashing::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0
}

.cbai-dot-flashing::before {
    left: -30px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #db2fdb4d;
    color: #db2fdb4d;
    animation: cbai-dot-flashing 1s infinite alternate;
    animation-delay: 0s
}

.cbai-dot-flashing::after {
    left: 30px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #db2fdb4d;
    color: #db2fdb4d;
    animation: cbai-dot-flashing 1s infinite alternate;
    animation-delay: 1s
}

@keyframes cbai-dot-flashing {
    0% {
        background-color: #db2fdbbb
    }

    50%,100% {
        background-color: #db2fdb4d
    }
}

@media screen and (max-width: 1200px){
    .cbaiInstructLeftCol{
        width: 70% !important;
    }
    .cbaiInstructRightCol{
        width: 30% !important;
    }
}

@media screen and (max-width: 1000px){
    .cbaiInstructLeftCol{
        width: 60% !important;
    }
    .cbaiInstructRightCol{
        width: 40% !important;
    }
}

@media screen and (max-width: 700px){
    .cbaiInstructLeftCol{
        width: 50% !important;
    }
    .cbaiInstructRightCol{
        width: 50% !important;
    }
    .cbaiInstructInputOptions{
        flex-direction: column !important;
        align-items: start !important;
    }
    .cbaiInstructLengthOptions{
        width: 100%;
        margin: 15px 0 !important;
    }
    .cbaiInstructSidebar{
        min-height: 505px !important;
    }
    .cbaiInstructBottomRow{
        position: relative;
        width: calc(100vw - 97.5px) !important;
    }
    #cbaiInstruct{
        float: right;
    }
}

@media screen and (max-width: 678px){
    .cbaiInstructLeftCol{
        width: 100% !important;
    }
    .cbaiInstructRightCol{
        display: none;
    }
}