@media only screen and (min-width: 300px) {
    .home-image{
        width: 350px;
    }
    .margin-class{
        margin-right: 0;
        margin-top: 20px;
    }
    .bottom-area {
        margin: 25px 0;
    }
    .navbar-nav{
        margin-top: 10px;
    }
    .navbar {
        padding: 0;
    }
    .navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
        color: #5d5d5d;
    }
    .navbar-light .navbar-nav .show > .nav-link,
    .navbar-light .navbar-nav .active > .nav-link,
    .navbar-light .navbar-nav .nav-link.show,
    .navbar-light .navbar-nav .nav-link.active {
        color: #ffffff;
        width: 100%;
        height: 47px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        font-size: 12px;
        text-align: center;
        background: #dd544a;
        line-height: 14px;
        letter-spacing: 0;
    }
    .navbar-light .navbar-nav .nav-link {
        color: #5d5d5d;
        width: 100%;
        height: 47px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        font-size: 12px;
        text-align: center;
        background: #e9d3c2;  /* fallback for old browsers */
        background: -webkit-linear-gradient(to right, #e9d3c2, #fdefe3);  /* Chrome 10-25, Safari 5.1-6 */
        background: linear-gradient(to right, #e9d3c2, #fdefe3); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
        line-height: 14px;
        border-radius: 15px;
        letter-spacing: 0;
        margin-bottom: 10px;
    }
    .navbar-light .navbar-nav .nav-link:hover {
        color: #ffffff;
        width: 100%;
        height: 47px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        font-size: 12px;
        text-align: center;
        background: #dd544a;
        line-height: 14px;
        letter-spacing: 0;
    }
    .navbar-light .navbar-toggler {
        color: #fff;
        border-color: rgba(225, 225, 225, 0);
    }
    .navbar-light .navbar-toggler-icon{
        background-image: url("../images/cardicare-menu.svg");
    }

    .nav-bottom {
        border-bottom: 5px solid #E9D3C2;
    }
    .drug-interaction{
        position: relative;
        display:block;
        width: 100%;
    }
    .fileUpload{
        margin-bottom: 80px;
    }

    .container-new{
        position: absolute;
        left: 50%;
        top: 0%;
        transform: translate(-50%,-50%);
        width: 80%;
    }
    .image-like-msg img {
        width: 27px;
        text-align: center;
    }
    .image-like-msg .center {
        display: block;
        margin-left: auto;
        margin-right: auto;
        /*width: 50%;*/
    }
    .image-like.image-like-msg {
        background-color: #e9ebed;
        padding: 5px 0px;
        margin: 5px 3px 5px 6px;
        cursor: pointer;
        border-radius: 7px;
    }
    .image-msg.image-like-msg {
        background-color: #e9ebed;
        padding: 6px 0px;
        margin: 5px 6px 5px 3px;
        cursor: pointer;
        border-radius: 7px;
    }
    .col-12.linkcomment {
        background-color: white;
        margin: 10px;
        border-radius: 10px;
        border: 1px solid #dd4642;
    }
    span.linkcnt {
        position: absolute;
        left: 59%;
        top: 13px;
    }
    .lds-dual-ring:after {
        content: " ";
        display: block;
        width: 64px;
        height: 64px;
        margin: 90% auto;
        border-radius: 50%;
        border: 6px solid #fff;
        border-color: #fff transparent #fff transparent;
        animation: lds-dual-ring 1.2s linear infinite;
    }
    .userCommentImg img{
        width: 60px;
        margin-top: 3px;
    } 

    .userCommentText{
        margin-left: 30px;

    }
    .userCommentText1{
        margin-left: 10px;

    }
    .userCommentText textarea{
        border-radius: 37px;

    }
    .perviewbutton {
        margin-bottom: 0px !important;
        padding-bottom: 0px !important;
    }
    .previewc-image{
        width:10%;
    }
    .previewc-text{
        width:80%;
    }
    .previewc-send{
        width:10% ;
    }

}

@media only screen and (min-width: 1300px) {
    .w-lg-50{
        width: 100% !important;
    }
    .navbar-nav{
        margin-top: 0;
    }
    .navbar {
        padding: 0;
        margin-left: 65px;
        margin-right: 65px;
    }
    .navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
        color: #5d5d5d;
    }
    .navbar-light .navbar-nav .show > .nav-link,
    .navbar-light .navbar-nav .active > .nav-link,
    .navbar-light .navbar-nav .nav-link.show,
    .navbar-light .navbar-nav .nav-link.active {
        color: #fff;
        width: 190px;
        height: 47px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        font-size: 12px;
        text-align: center;
        background: #e33530;  /* fallback for old browsers */
        line-height: 14px;
        letter-spacing: 0;
    }
    .navbar-light .navbar-nav .nav-link {
        color: #5d5d5d;
        width: 148px;
        height: 47px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        font-size: 12px;
        text-align: center;
        background: #e9d3c2;  /*fallback for old browsers */
        background: -webkit-linear-gradient(to right, #e9d3c2, #fdefe3);  /* Chrome 10-25, Safari 5.1-6 */
        background: linear-gradient(to right, #e9d3c2, #fdefe3); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
        border-radius: 15px 15px 0 0;
        line-height: 14px;
        letter-spacing: 0;
        margin-bottom: 0;
    }
    .navbar-light .navbar-nav .nav-link:hover {
        color: #e33530;
        width: 190px;
        height: 47px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        font-size: 12px;
        text-align: center;
        background: #e9d3c2;  /* fallback for old browsers */
        background: -webkit-linear-gradient(to right, #e9d3c2, #fdefe3);  /* Chrome 10-25, Safari 5.1-6 */
        background: linear-gradient(to right, #e9d3c2, #fdefe3); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
        line-height: 14px;
        letter-spacing: 0;
    }
    .navbar-light .navbar-toggler {
        color: #fff;
        border-color: rgba(225, 225, 225, 0);
    }
    .navbar-light .navbar-toggler-icon{
        background-image: url("../images/cardicare-menu.svg");
    }

    .nav-bottom {
        border-bottom: 5px solid #E9D3C2;
    }

    .margin-class{
        margin-right: 100px;
    }

    .margin-class-right{
        margin-left: 100px;
    }

    .home-image{
        width: 490px;
    }
    .bottom-area {
        margin: 0;
    }
    .drug-interaction{
        position: absolute;
        display: inline;
        width: 39%;
    }
    .fileUpload{
        margin-bottom: 70px;
    }
    .container-new{
        position: absolute;
        left: 50%;
        top: 0%;
        transform: translate(-50%,-50%);
        width: 60%;
    }
    .caseBox {
        margin-bottom: 20px;
    }
    .caseBox .caseBoxDate {
        background: gray;
        color: white;
        padding: 2px 10px;
        font-family: system-ui;
    }

    .caseBox .caseBoxtitle {
        font-weight: 600;
        color: #e33530;
        padding: 0px 10px;
    }
    .caseBox .caseBoxAuthor {
        padding: 0px 10px;
        font-weight: 600;
    }
    .caseBox .caseBoxview {
        padding: 0px 10px;
        font-weight: 600;
    }
    .image-like-msg img {
        width: 27px;
        text-align: center;
    }
    .image-like-msg .center {
        display: block;
        margin-left: auto;
        margin-right: auto;
        /*width: 50%;*/
    }
    .image-like.image-like-msg {
        background-color: #e9ebed;
        padding: 5px 0px;
        margin: 5px 3px 5px 6px;
        cursor: pointer;
        border-radius: 7px;
    }
    .image-msg.image-like-msg {
        background-color: #e9ebed;
        padding: 6px 0px;
        margin: 5px 6px 5px 3px;
        cursor: pointer;
        border-radius: 7px;
    }
    .col-12.linkcomment {
        background-color: white;
        margin: 10px;
        border-radius: 10px;
        border: 1px solid #dd4642;
    }
    span.linkcnt {
        position: absolute;
        left: 59%;
        top: 13px;
    }

    .userCommentImg img{
        width: 70px;
        margin-top: -3px;
    } 

    .userCommentText{
        margin-left: 20px;

    }
    .userCommentText1{
        margin-left: 10px;

    }
    .userCommentText textarea{
        border-radius: 37px;

    }
}

.previewc-send .userCommentText1{
    margin-top: 15px;
    cursor: pointer;
}

.image-like-msg img {
    width: 27px;
    text-align: center;
}
.image-like-msg .center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    /*width: 50%;*/
}
.image-like.image-like-msg {
    background-color: #e9ebed;
    padding: 5px 0px;
    margin: 5px 3px 5px 6px;
    cursor: pointer;
    border-radius: 7px;
}
.image-msg.image-like-msg {
    background-color: #e9ebed;
    padding: 6px 0px;
    margin: 5px 6px 5px 3px;
    cursor: pointer;
    border-radius: 7px;
}
.col-12.linkcomment {
    background-color: white;
    margin: 10px;
    border-radius: 10px;
    border: 1px solid #dd4642;
}
span.linkcnt {
    position: absolute;
    left: 59%;
    top: 13px;
}


.lds-dual-ring.hidden { 
    display: none;
}
.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}
.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 22% auto;
    border-radius: 50%;
    border: 6px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,.8);
    z-index: 999;
    opacity: 1;
    transition: all 0.5s;
}


.userCommentText textarea{
    border-radius: 37px;
    height: 45px;
    margin-top:10px;
}


/* chat bot */

.chatMsg {
    padding: 15px;
    overflow-y: auto;
    height: calc(100% - 45px); }
.chatMsg ul {
    margin: 0;
    padding: 0;
    list-style: none; }
.chatMsg ul li {
    position: relative;
    margin-bottom: 15px; }

.msg, .msg-reply {
    display: block;
    margin-left: 45px;
    background: #fce3d0;
    padding: 10px 15px;
    position: relative;
    border-radius: 11px;
    box-shadow: 0 2px 6px 0px rgb(0 0 0 / 25%);
}
.msg::before, .msg-reply::before {
    border-left: 12px solid #fce3d0;
    position: absolute;
    left: -12px;
    top: 12px;
    content: "";
    display: block;
    border-right: 12px solid #fff;
    border-bottom: 15px solid transparent; }

.msg-reply {
    margin-left: inherit;
    margin-right: 45px;
    background: #dd544a;
    color: #fff; }

.msg-reply::before {
    left: inherit;
    right: -12px;
    border-right: inherit;
    border-left: 12px solid #dd544a; 
}
.msg::before {
    left: -12px;
    right: inherit;
    border-left: inherit;
    border-right: 12px solid #fce3d0; 
}

.avatar, .avatar-reply {
    position: absolute;
    left: 0;
    overflow: hidden;
    width: 30px;
    height: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px; }
.avatar img, .avatar-reply img {
    max-width: 30px; }

.avatar-reply {
    left: inherit;
    right: 0; }

.chatBox {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0; }
.chatBox .mdi-attachment {
    position: absolute;
    z-index: 2;
    left: 10px;
    font-size: 20px;
    bottom: 15px;
    color: #dd544a;
    cursor: pointer; }
.chatBox .mdi-send {
    width: 32px;
    height: 32px;
    line-height: 32px;
    position: absolute;
    z-index: 2;
    bottom: 8px;
    right: 10px;
    font-size: 16px;
    color: #fff;
    background: #dd544a;
    text-align: center;
    cursor: pointer;
    -webkit-border-radius: 32px;
    -moz-border-radius: 32px;
    border-radius: 32px; }
.chatBox .mdi-send.disabled {
    opacity: 0.5;
    pointer-events: none; }
.chatBox textarea {
    display: block;
    resize: none;
    width: 100%;
    border: 0;
    border-top: 1px solid #ccc;
    background: #fff;
    padding: 12px 50px 12px 40px;
    position: absolute;
    bottom: 0;
    min-height: 45px;
    overflow: hidden; }

.hiddendiv {
    display: none; }
