/**
 * Copyright 2015 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

html,
body {
  font-family: 'Roboto', 'Helvetica', sans-serif;
  overflow: hidden;
}

#submit{
  width: auto !important;
  border: 0;
  margin-left: 0.5em;
}

button.mdl-snackbar__action{
  display: none;
}

main,
#messages-card {
  height: 100%;
  padding-bottom: 0;
}

#messages-card-container {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  order: 2;
}

#messages-card {
  margin-top: 15px;
  margin: auto;
}

.mdl-layout__header-row span {
  margin-left: 15px;
  margin-top: 17px;
}

.mdl-grid {
  margin: auto;
}

.material-icons {
  font-size: 36px;
  top: 8px;
  position: relative;
}

.mdl-layout__header-row {
  padding: 0;
  margin: 0 auto;
}

.mdl-card__supporting-text {
  width: auto;
  height: 100%;
  padding-top: 0;
  padding-bottom: 0;
  padding: 0;
  position: absolute;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}

#messages {
  padding: 0 20px 10px 15px;
  background-image: url(../images/repeatable.png);
  background-repeat: repeat;
   background-color: #F6F7F7;
  position: absolute;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
}


#themeColor {
  background-color: red;
}

#message-filler {
  flex-grow: 1;
}

.message-container:first-of-type {
  border-top-width: 0;
}

.message-container {
  display: block;
  padding-top: 10px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  /*   margin-top: 6px;
  margin-bottom: 6px; */
  margin-top: 12px;
  margin-bottom: 12px;
  position: relative;
}

.message-container.visible {
  opacity: 1;
  padding: 10px 10px;
}

.message-container .pic {
  background-repeat: no-repeat;
  width: 30px;
  height: 30px;
  background-size: cover;
  border-radius: 20px;
  background-position: center;

}

.message-container .spacing {
  display: table-cell;
  vertical-align: top;
}

.message-container .message {
  /* display: table-cell; */
  width: calc(100% - 40px);
  /*   padding: 8px 0 8px 8px;
 */
  word-wrap: break-word;
}

.message-container .name,
.message-container .userType,
.message-container .timeStamp {
  display: inline-block;
  width: 100%;
  padding-left: 8px;
  color: #6d6969;
  font-style: italic;
  font-size: 12px;
  box-sizing: border-box;
}

.message-container .timeStamp {
  padding: 4px 0 0;
}

.message-container .fullDate {
  display: inline-block;
  width: 100%;
  padding-left: 8px;
  color: #6d6969;
  font-style: italic;
  font-size: 12px;
  box-sizing: border-box;
  /*   position: absolute;
 */
  text-align: right;
}

.viewCheck {
  font-size: 16px;
  position: absolute;
  left: 5px;
  bottom: -18px;
  display: none;
}

.checkIcon {
  font-size: 16px;
  top: 4px !important;
  color: #0288D1;
  display: none;
}

.fa-check-double {
  color: #0087d1;

}

.checkIconDone {
  font-size: 16px;
  top: 4px !important;
  /*   display: none;
 */
}

.checkIconDoneAll {
  font-size: 16px;
  top: 4px !important;
  color: #0288D1;
  display: none;

}

input[type=text]:not(.browser-default):focus:not([readonly]),
input[type=textarea]:not(.browser-default):focus:not([readonly]) {
  border-bottom: 0px solid var(--my-color) !important;
  -webkit-box-shadow: 0 0px 0 0 var(--my-color) !important;
  box-shadow: 0 0px 0 0 var(--my-color) !important;
}

.checkIconFalse {
  font-size: 16px;
  top: 4px !important;
}

[contenteditable] {
  padding:12px; 
}
[data-placeholder]:empty:before {
   content: attr(data-placeholder);
   color: #888;
}

#message-form {
  display: flex;
  flex-direction: row;
  width: calc(100% - 125px);
  float: right;
  align-items: center;
  height: 100%;
}


#image-form {
  display: flex;
  flex-direction: row;
  float: left;
  width: 100px;
  align-items: center;
  position: absolute;
  margin: 0 auto;
}

#message-form .mdl-textfield {
  box-sizing: border-box;
  flex: 1 1 auto;
  width: inherit;
  min-width: 0;
  min-height: 20px;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  outline: none;
  will-change: width;
}

#image-form button {
  width: 100px;
  padding: 0px 6px 0px 6px;
}

#message-form button {
  width: 15px;
}

#message-form button span{
  color: var(--my-color);
}

#message-form button i {
  font-size: 30px;
  margin-top: 3px;
}

#message-form .mdl-button--raised[disabled][disabled] {
  color: rgba(0, 0, 0, .26) !important;
}

.mdl-card {
  min-height: 0;
}

.mdl-card {
  background: linear-gradient(white, #f9f9f9);
  justify-content: space-between;
}

#userInfo {
  position: relative;
  width: 100%;
  height: 60px;
  background-color: var(--my-color);
  border-bottom: 1px solid white;
}

#mainDiv{
  display: flex;
    flex-direction: column;
    height: 100%;
}

#userInfoDesk {
  z-index: 1000;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  flex: 0 0 auto;
  background-color: #EDEDED;
  border-bottom: 1px solid #e5e5e5;
}

#userInfoDesks {
  position: absolute;
  width: 100%;
  height: 40px;
  display: block;
  z-index: 996;
  text-align: center !important;
  margin-top: 5px;
}

#scrollToBottomSection {
  position: absolute;
  bottom: 17px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  right: 35px;
}

.spinnerWrapper{
  background-color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto;
  padding-top: 7px;
}

.BtnWrapper{
  background-color: white;
  width: inherit;
  border-radius: 50%;
  -webkit-box-shadow: 0px 0px 10px -1px #000000; 
  box-shadow: 0px 0px 10px -1px #000000;
  cursor: pointer;
}

#user-container {
  position: absolute;
  display: flex;
  flex-direction: row;
  top: 22px;
  width: 100%;
  right: 0;
  padding-left: 10px;
  justify-content: flex-end;
  padding-right: 10px;
}

.mdl-layout__header {
  background-color: rgb(40, 180, 115);
}

#user-container #user-pic {
  top: -3px;
  position: relative;
  display: inline-block;
  background-image: url('/images/profile_placeholder.png');
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
  background-size: 40px;
  border-radius: 20px;
}

#user-container #user-name {
  font-size: 16px;
  line-height: 36px;
  padding-right: 10px;
  padding-left: 20px;
}

#image-form{
  height: 100%;
}

#image-form #submitImage {
  width: auto;
  min-width: 0;
  background-color: transparent;
  border: 0;
  color: #4f4f4f;
  cursor: pointer;
}

#image-form #submitPdf {
  width: auto;
  min-width: 0;
  background-color: transparent;
  border: 0;
  color: #4f4f4f;
  cursor: pointer;
}

#image-form #submitImage .material-icons {
  top: -1px;
}

#image-form #submitPdf .material-icons {
  top: -1px;
}

.message img {
  /*   max-width: 100%;
 */
  max-width: 70%;
  height: auto;
  margin: auto;
  display: flex;
}

#mediaCapture {
  display: none;
}

#pdfCapture {
  display: none;
}

#userInfo {
  display: none;
}

#submit{
  padding-left: 0px !important;
}

@media screen and (max-width: 450px) {

  #mainDiv {
    height: 100%;
    position: fixed;
    width: 100%;
  }

  #submit{
    padding-left: 0px !important;
    padding-right: 0px !important;
    min-width: 60px !important;
  }
  #writing{
    bottom: 40px !important;
  }

  .mdl-textfield__input {
    margin-left: 5px !important;
  }

  #image-form button {
  width: 100px;
  margin: 6px 0 0 0px;
  }

  header {
    height: 113px;
    /* padding-bottom: 80px !important; */
  }

  #user-container {
    top: 72px;
    background-color: rgb(40, 180, 115);
    height: 38px;
    padding-top: 3px;
    padding-right: 2px;
  }

  #user-container #user-pic {
    top: 2px;
    width: 33px;
    height: 33px;
    background-size: 33px;
  }

  #message-form {
    width: calc(100% - 80px);
  }

  #image-form {
    width: 80px;
  }

  #userInfo {
    display: block;
  }

  #userInfoDesks {
    margin-top: 80px !important;
  }

}

.mdl-textfield__label:after {
  background-color: #0288D1;
}

.mdl-textfield--floating-label.is-focused .mdl-textfield__label {
  color: #0288D1;
}

.textfield-wrap {
  position: relative;
  width: 100%;
}

.mdl-button .material-icons {
  top: -1px;
  margin-right: 5px;
}

.logo-dronline {
  width: 100px;
}

#messague {
  float: right;
}

.mystyle {
  /*   color: #4f4f4f;
 */
  background-color: var(--my-color);
  margin-left: auto;
  width: 45%;
  padding: 5px 6px 5px 6px !important;
  border-radius: 5px;
  max-width: 45%;
  min-width: 250px;
}

.mystyle .spacing {
  float: right;
}

.mystyle .timeStamp {
  text-align: right;
  color: #fff;
}

.mystyle.message-container .message {
  color: #fff;
  padding: 2px 0px 2px 10px;
  text-align: left;
}

.mystyle .viewCheck {
  right: 5px;
  left: auto;
}

.youstyle {
  color: #4f4f4f;
  background-color: white;
  margin-right: auto;
  width: 45%;
  padding: 5px 20px 5px 6px !important;
  border-radius: 5px;
  max-width: 45%;
  min-width: 250px;
}

.youstyle .spacing {
  float: left;
}

.youstyle.message-container .message {
  padding: 2px 0px 2px 0px;
  margin-left: 40px;
}
.d-none {
  display: none !important;
}

.w-100 {
  width: 100%;
}

.barUser {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  flex: none;
  order: 3;
  border-top: 1px solid #ddd;
  background: #EDEDED;
  width: 100%;
  min-height: 62px;
  bottom: 0px;
}

.h-100vh {
  height: 100vh;
}

/* #spinnerLoad{



} */
#spinnerLoadWrap {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(128, 128, 128, 0.25);
  z-index: 1999;
}

#writing {
  position: absolute;
  bottom: 0;
  background-color: transparent;
  display: none;
  left: 20px;
  z-index: 99;
  background: rgb(255, 255, 255);
  left: 0px;
  text-align: left;
}

#writing.client {
  right: 0;
  width: 140px;
  text-align: left;
  color: var(--my-color);
  padding-left: 15px;
  /*     background-color: transparent;
 */
}

#writing.doctor {
  left: 0;
  width: 140px;
  text-align: center;
  color: #5b5050;
  /*     background-color: transparent;
 */
}

#writing.doctor p {
  /*   margin-top: 1em;
 */
  margin-bottom: 0;
}

#writing.client p {
  /*   margin-top: 1em;
   */
  margin-bottom: 0;
}

.mdl-button--raised[disabled][disabled],
.mdl-button--raised.mdl-button--disabled.mdl-button--disabled {
  background-color: transparent;
}

.mdl-button--raised {
  background-color: transparent;
  box-shadow: none !important;
}

.iconID, .fa-paper-plane{
  color: var(--my-color) !important;
}

.opponentName{
  color: white;
  font-size: 17px;
}

.center {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 15%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
.mdl-textfield__input{
  background-color: white !important;
  border-radius: 20px !important;
  border: none !important;
  padding-left: 10px !important;
  cursor: text;
  max-height: 80px;
  overflow-y: auto;
  white-space: pre-wrap;
}
.mdl-textfield__label {
  top: 30px;
  left: 10px;
}
.material-icons{
  color: #80868A;
}
main{
  background-color: var(--my-color);
}

.opponentNameDesk{
  position: absolute;
  left: 60px;
  top: 10px;
  font-weight: bold;
  font-size: 15px;
  text-transform: capitalize !important;
}

.opponentStatusDesk, .writingDesk{
  position: absolute;
  left: 60px;
  top: 27px;
}

.picDesk{
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
  background-size: cover;
  border-radius: 20px;
  background-position: center;
  float: left;
  margin: 8px;
}

.pdfImage{
  width: 30%;
  float: left;
}

.opponentNameMobile{
  position: absolute;
  left: 60px;
  top: 10px;
  font-weight: bold;
  font-size: 15px;
  text-transform: capitalize !important;
  color: white;
}

.opponentStatusMobile, .writingMobile{
  position: absolute;
  left: 60px;
  top: 27px;
  color: white;
}

.picMobile{
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
  background-size: cover;
  border-radius: 20px;
  background-position: center;
  float: left;
  margin: 8px;
}