/**
 * 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;
}

.index .mdl-layout__content {
  padding: 20px 30px;
}

.index .mdl-layout__header .material-icons {
  font-size: 29px;
}

.mdl-layout__header .mdl-layout__drawer-button {
  position: absolute;
  color: white;
  background-color: initial;
}

.statusboard-logo {
  height: 90px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -70px;
}

.rtk-logo {
  width: auto;
  height: 40px;
  position: absolute;
  bottom: 60px;
  right: 90px;
}

.header-logo {
  background: url(../images/realtimeknowledge-logo-white.png) no-repeat;
  height: 45px;
  width: 90%;
  margin: 12px auto;
  background-size: 140px;
  background-position: center;
}

.mdl-layout__header-row {
  padding-left: 40px;
  background-color: #272333;
  margin: 0;
  width: 100%;
}

h2 {
  font-size: 24px;
}

.raise-incident-card .mdl-card__title  {
  background: #272333 !important;
}

.raise-incident-buttom {
  background: #4ba016 !important;
  width: 100%;
  margin-top: 40px;
  color: white !important;
}

.current-incidents .mdl-card {
  margin-bottom: 20px !important;
}

.other-information {
  height: 0;
  overflow: hidden;
}

.other-information h3 {
  font-size: 18px;
  margin-bottom: 0;
}

.current-incidents-list {
  padding: 0;
  list-style: none;
  width: 100%;
  padding-left: 6px;
}

.mdl-card {
  background: white !important;
}

.inactive-user {
  opacity: 0.5;
}

.current-incidents-list > li {
  margin-bottom: 20px;
}

.current-incidents-list li div {
  display: block;
}

.other-information.show-other-information {
  height: auto;
}

.current-incidents-list .mdl-button--raised.mdl-button--colored {
  background: rgb(86, 139, 237);
  color: rgb(255, 255, 255);
}

#cancel-full-screen {
  display: none;
}

#clear-button,
#go-full-screen,
#cancel-full-screen {
  color: white;
  font-size: 24px;
}

.mdl-spinner--single-color .mdl-spinner__layer-1,
.mdl-spinner--single-color .mdl-spinner__layer-2,
.mdl-spinner--single-color .mdl-spinner__layer-3,
.mdl-spinner--single-color .mdl-spinner__layer-4 {
  border-color: rgb(255, 255, 255);
}

.mdl-spinner {
  display: none;
  margin: 0 auto;
  margin-top: 40px;
}

.pin-container p {
  font-family: "Roboto";
  color: white;
  font-size: 20px;
  margin: 50px 0 30px;
  text-align: center;
}

.pin-field {
  width: 70px;
  display: inline !important;
  float: left;
  height: 70px;
  margin-right: 15px;
  border-radius: 9px;
  font-size: 30px;
  border: 5px solid #ca231f;
  text-align: center;
  font-weight: 500;
}

.pin-container {
  display: inline-block;
  margin: 0 auto;
  float: none;
  position: absolute;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  margin-top: 20px;
  min-width: 495px;
}

.pin-container .pin-field {
  border: 5px solid #d4231f;
  color: #444444;
}

.pin-container .form-control {
  background-color: #ffffff;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.pin-container .form-control:focus {
  color: #444444;
  background-color: #ffffff;
  border-color: #1aca9f;
  outline: 0;
  /* box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); */
}

.pin-field:nth-of-type(6) {
  margin-right: 0;
}

.pin-container button {
  background: #009688;
  color: white;
  border: 0;
  border-radius: 6px;
  text-transform: uppercase;
  font-family: "Roboto";
  margin-top: 40px;
  padding: 18px 40px;
  outline: 0;
  cursor: pointer;
  width: 100%;
}

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

#messages-card-container {
  padding-bottom: 0;
  position: absolute;
  height: 100%;
  top: 0;
  width: 390px;
  right: 0;
  padding-right: 0;
  padding-top: 0;
}

#messages-card {
  margin-top: 15px;
  width: 390px;
  height: calc(100vh - 64px);
  margin: 0;
}

.location-container {
  position: absolute;
  left: 26px;
  bottom: 16px;
  background: white;
  border-radius: 4px;
  padding: 16px 56px 16px 26px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

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

.mdl-grid {
  max-width: 1024px;
  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;
}

#messages {
  overflow-y: auto;
  margin-bottom: 10px;
  height: calc(100% - 80px);
  display: block;
  flex-direction: column;
  padding-top: 20px;
}

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

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

.message-container {
  display: block;
  margin-top: 10px;
  /* border-top: 1px solid #f3f3f3; */
  padding-top: 10px;
  opacity: 0;
  position: relative;
  transition: opacity 0.6s ease-in-out;
  padding-left: 60px;
}

.message-container.visible {
  opacity: 1;
}

.message-container.current-username.same-username {
  margin-right: 44px;
  margin-top: 0;
  text-align: right;
  padding-top: 5px;
}

.message-container.other-user.same-username {
  margin-left: 44px;
  margin-top: 0;
  padding-top: 5px;
  padding-left: 15px;
}

.message-container.other-user.latest-same-user,
.message-container.current-username.latest-same-user {
  margin-top: 0;
  padding-top: 5px;
}

.other-user .message-bubble {
  margin-right: 20px;
}

.message-container .pic {
  background-image: url("/images/profile_placeholder.png");
  background-repeat: no-repeat;
  border-radius: 20px;
  width: 40px;
  height: 40px;
  z-index: 2;

  background-size: 40px;
  position: absolute;
  bottom: 2px;
}

.message-container .spacing {
  vertical-align: bottom;
  bottom: 0;
  margin-right: 4px;
  vertical-align: bottom;
  top: 2px;
  position: absolute;
  bottom: 0;
  right: 15px;
  margin-right: 4px;
  width: 40px;
  height: 100%;
  left: 0px;
  z-index: 4;
  left: 18px;
}

.message-container.current-username .spacing {
  left: unset;
}

.message-container .message {
  display: table-cell;
  width: calc(100% - 40px);
  padding: 5px 0 5px 0px;
  /* padding: 5px 0 5px 10px; */
}

.message-container.current-username .spacing {}

.message-container.current-username .name {
  margin-right: 25px;
  text-align: right;
}

.message-container.current-username .name,
.message-container.same-username .name {
  margin-top: 15px;
}

.message-container .name {
  margin-left: 15px;
  margin-bottom: 20px;
  /* padding-left: 40px; */
  color: #616060;
  /* font-style: italic; */
  font-size: 16px;
  font-weight: 400;
  box-sizing: border-box;
  /* width: calc(100% - 96px); */
  margin-right: 15px;
}

.message-container .message-time {
  font-size: 12px;
  font-weight: 300;
  color: #3e82f7;
  margin-top: 4px;
}



.message-container.current-username .spacing {
  vertical-align: bottom;
  position: absolute;
  bottom: 0;
  right: 15px;
  margin-right: 4px;
  width: 40px;
  height: 100%;
}

#message-form {
  display: flex;
  flex-direction: row;
  width: calc(100% - 70px);
  float: left;
  padding: 0 0 0 5px;
}

#message-form .mdl-textfield--floating-label.is-dirty .mdl-textfield__label {
  font-size: 11px;
  color: rgb(66, 133, 244);
  font-family: 'Roboto';
}

#message-form .mdl-textfield__input {
  font-size: 15px;
}

#message-form .mdl-textfield__label:after {
  bottom: 13px;
}

#image-form {
  display: flex;
  flex-direction: row;
  width: 48px;
  float: left;
  margin-right: 0px;
  margin-top: -2px;
  margin-left: 6px;
}

#image-form i {
  font-size: 28px;
}

#message-form .mdl-textfield {
  width: calc(100% - 62px);
}

#message-form button,
#image-form button {
  width: 100px;
  margin: 15px 0 0 10px;
}

#message-form button {
  padding: 0;
  width: 33px;
  height: 33px;
  border-radius: 30px;
  color: white;
  background: #4285f4;
  padding: 10;
  min-width: unset;
  float: right;
}

#message-form button i {
  margin-right: 0;
  font-size: 24px;
}

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

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

#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;
}

#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 #submitImage {
  width: auto;
  padding: 0 6px 0 1px;
  min-width: 0;
  background-color: transparent !important;
  color: #888888 !important;
  box-shadow: none;
}

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

.message img {
  max-width: 300px;
  max-height: 200px;
}

#mediaCapture {
  display: none;
}

@media screen and (max-width: 610px) {
  header {
    height: 113px;
    padding-bottom: 80px !important;
  }

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

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

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

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

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

.pin-container .form-group {
  text-align: center;
}

.pin-container .pin-field.invalid {
  border: 5px solid #ff0600;
  color: white;
}

.validation {
  font-family: "Roboto";
  color: white;
  font-size: 18px;
  width: 100%;
  display: block;
  text-align: center;
  padding-top: 30px;
  position: absolute;
}

.button-spinner {
  position: absolute;
  top: 230px;
  left: 0;
  width: 100%;
}

.safari .message-container.current-username.latest-same-user,
.message-container.current-username.latest-same-user {
  padding-right: 44px;
  text-align: right !important;
}

.safari .message-container.other-user.latest-same-user {
  padding-left: 60px;
}

.safari .message-container.current-username.latest-same-user .spacing,
.safari .message-container.other-user.latest-same-user .spacing {
  position: absolute;
}

.safari .message-container.current-username .spacing {
  right: 10px;
}

.safari .message-container.other-user .spacing {
  left: 18px;
}

@media screen and (max-width: 550px) {
  .pin-field {
    width: 50px;
    display: inline !important;
    float: left;
    height: 50px;
    margin-right: 10px;
    border-radius: 7px;
    font-size: 24px;
    border: 5px solid #ca231f;
    text-align: center;
    font-weight: 500;
  }

  .pin-container {
    display: inline-block;
    margin: 0 auto;
    float: none;
    position: absolute;
    left: 50%;
    top: 43%;
    transform: translate(-50%, -50%);
    margin-top: 20px;
    min-width: 360px;
  }

  .pin-container button {
    clear: both;
  }
}

@media screen and (max-width: 534px) {
  header {
    height: 56px;
    padding-bottom: 56px !important;
  }

  .mdl-layout__header-row .material-icons {
    display: none;
  }

  #messages-card {
    height: calc(100%) !important;
  }

  .safari #messages-card {
    height: calc(100% - 0px) !important;
  }

  #messages-card-container {
    width: 100%;
    left: 0;
    right: 0;
    padding: 0;
    position: relative;
  }

  #messages-card {
    width: 100%;
  }

  #user-container {
    display: none;
  }

  .message-container {
    padding-left: 10px;
  }

  .message-container.current-username.latest-same-user {
    padding-right: 44px;
  }

  .message-container.other-user.latest-same-user {
    padding-left: 60px;
  }

  .message-container.current-username.latest-same-user .spacing,
  .message-container.other-user.latest-same-user .spacing {
    position: absolute;
  }

  .message-container.current-username .spacing {
    right: 10px;
  }

  .message-container.other-user .spacing {
    left: 18px;
  }

  .loaded.safari #messages-card-container {
    top: 201px;
  }

  #messages {
    overflow-y: auto;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
  }

  .safari #messages {
    height: calc(100% - 80px);
  }

  /* .mdl-layout__content {
    overflow: hidden;
  } */

  .location-container,
  #map {
    display: none;
  }
}