/**
 * 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.
 */
 #map {
  height: 100%;
  max-height: 100%;
}

#map .material-icons{
  background-color:#4dab77;
  color:white;
  border-style:solid;
  border-width:2px;
  border-color:#4dab77;
  font-size:smaller;
  padding: 0 5px 0 5px;
  border-radius: 40px
}

.mapbutton {
  white-space: nowrap;
  background-color:#4dab77;
  color:white;
  border-style:solid;
  border-width:2px;
  border-color:#4dab77;
  font-size:smaller;
  border-radius: 40px
}

.mapbutton2{
  white-space: nowrap;  
  background-color:white;
  border-style:solid;
  border-width:2px;
  border-color:#d3d3d3;
  font-size:smaller;
  border-radius: 40px
}

.mapbutton3 {
  white-space: nowrap;
  border-style:solid;
  border-width:2px;
  color:black;
  border-color:#689cf4;
  border-radius:35%;
  font-size:smaller;
  border-radius: 40px;
  background-color: rgb(104,156,244);
  background-color:rgba(104, 156, 244, 0.1);
}

.mapbutton4{
  font-weight:bold;color:#689cf4
}

.mapMedia{
  margin:3px;
  background-color:rgb(104,156,244, 0.2);
  border-color:rgb(104,156,244, 0.8);
/*  font-weight: bold;*/
  border-style:solid;
  color:black;
  border-width:1px;
  float:right
}

.mapMedia2{
  margin:3px;
  background-color:rgb(104,156,244, 0.2);
  border-color:rgb(104,156,244, 0.8);
/*  font-weight: bold;*/
  border-style:solid;
  color:black;
  border-width:1px;
  width:33%;
  min-width: fit-content;
  float:left
}
.mapInfo2{
  /*
style='padding:10px;border-color:red;margin-left:auto;margin-right:auto;max-width:100%;width:fit-content;border:solid;font-size=60px;font-weight:bold;text-align:center;background-color:#2c3c8c;color:white'  
  */
  margin:3px;
  background-color:#2c3c8c;
  border-color:#2c3c8c;
/*  font-weight: bold;*/
  border-style:solid;
  color:white;
  border-width:1px;
  width:33%;
  min-width: fit-content;
  float:right;
}
.mapMute{
  margin:3px;
  background-color:transparent;
  border-style:none;
  width: 12px;
  height: 12px;
}

.mapExpand{
  margin:3px;
  background-color:transparent;
  border-style:none;
  width: 12px;
  height: 12px;
}

.mapInfo{
  margin:3px;
  background-color:transparent;
  text-decoration: underline;
  font-weight: bold;
  border-style:solid;
  border-color:transparent;
  border-width:1px;
  float:left
}

.marker-label {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.gm-style-iw button {display: none !important;}
/* .gm-style .gm-style-iw-d::-webkit-scrollbar-track, 
.gm-style .gm-style-iw-d::-webkit-scrollbar-track-piece,
.gm-style .gm-style-iw-c,
.gm-style .gm-style-iw-t::after { 
  background: #36454F;
  color:white;
}
.gm-style .gm-style-iw-tc::after {   
  background: #36454F;
  color:white;
 } */


 html, body {
  font-family: 'Roboto', 'Helvetica', sans-serif;
  height:100%;
  margin: 0;
  padding: 0;
  z-index:0
}

main, 
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 4 !important; /* Sit on top */
  left: 0;
  top: 0;
  margin: auto;
  width: 100%; /* Full width */
  height: calc(100% - 50px); /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 5% auto 100px auto; /* 15% from the top and centered */
  padding: 5px;
  border: 1px solid #888;
  /*width: 90%; /* Could be more or less, depending on screen size */
}
.dark {
  background-color: black !important;
  color: white !important;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#messages-card {
  overflow-x: hidden;
  padding: 0px;
  width: calc(100%);
  margin-top: 0px;
}
#messages-card-container {
  z-index:1;
  display:inline-grid;
  position:fixed;
  top: calc(60%);
  left: calc(50% - 8px);
  transform: translate(-50%);
  width:  calc(100% + 16px);
  height: calc(40%);
  padding-top: 0;
  margin-top:0;
  opacity: 0.95;
  overflow-y: hidden;
  overflow-x: hidden
}
#messages-card-container.dark-mode {
  background-color: black;
  color: white;
}
.mdl-layout__header-row span {
  margin-left: 15px;
  margin-top: 17px;
}
.mdl-grid {
  max-width: 800px;
  margin: auto;
  overflow-x:auto;
  margin-top:0px;
}
.material-icons {
  font-size: 36px;
  /*margin-top: 2.5px;
   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-top:0px;
  margin-bottom: 0px;
  margin-left:-16px;
  margin-right:0px;
  height: calc(100%);
  width: calc(100% + 32px);
  display: flex;
  flex-direction: column;
}
#messages.dark-mode {
  background-color: black;
  color: white;
}
#message-form {
  margin-bottom:-20px;
  display: flex;
  flex-direction: row;
  width: calc(100% - 48px);
  float: left;
}
#image-form {
  display: flex;
  flex-direction: row;
  width: 48px;
  float: right;
}
#phoneNumber-form {
  margin-bottom:-20px;
  display: flex;
  flex-direction: row;
  width: calc(100%);
  float: left;
}
#phoneNumber-form .mdl-textfield {
  width: calc(100% - 50px);
}
#phoneNumber-form button {
  width: 200px;
  margin: 15px 0 0 10px;
}
#code-form {
  margin-bottom:-20px;
  display: flex;
  flex-direction: row;
  width: calc(100%);
  float: left;
}
#code-form .mdl-textfield {
  width: calc(100% - 50px);
}
#code-form button {
  width: 200px;
  margin: 15px 0 0 10px;
}
#message-form .mdl-textfield {
  width: calc(100% - 100px);
}
#message-form button, #image-form button {
  width: 100px;
  margin: 15px 0 0 10px;
}
#message-filler {
  flex-grow: 1;
}
.messageInstructions {
  display: inline-block;
  width: calc(100% - 40px);
/*  padding: 5px 0 5px 10px;*/
  font-size: 24px;
  line-height: 1;
}
.message-container:first-of-type {
  background-color: #4dab77;
  color: white !important;
  margin-top: 10px;
  /*background-color: #ebebeb;
  color: black;
  font-size:24px;
  border-top-width: 0;
  border-style:solid;
  border-width:1px;
  border-color:#A9A9A9*/
}
.message-container:first-of-type .name {
  display: inline-block;
  width: 100%;
  padding-left: 40px;
  color: white;
  font-style: italic;
  font-size: 18px;
  box-sizing: border-box;
}
.message-container:first-of-type .message {
  display: table-cell;
  width: calc(100% - 40px);
  padding: 5px 0 5px 10px;
  font-size: 24px;
}
.message-container {
  display: block;
/*  margin-top: 10px;*/
  border-top: 1px solid #f3f3f3;
/*  padding-top: 10px;*/
  opacity: 0;
  transition: opacity 1s ease-in-out;
  width: calc(100% - 2px);
}
.message-container.visible {
  opacity: 1;
}
.message-container .pic {
  background-image: url('/images/profile_placeholder.png');
  background-repeat: no-repeat;
  width: 30px;
  height: 30px;
  background-size: 30px;
  border-radius: 20px;
}
.message-container .spacing {
  display: table-cell;
  vertical-align: top;
}
.message-container .message {
  display: table-cell;
  width: calc(100% - 40px);
  padding: 5px 0 5px 10px;
}
.message-container .name {
  display: inline-block;
  width: 100%;
  padding-left: 40px;
  color: #bbb;
  font-style: italic;
  font-size: 12px;
  box-sizing: border-box;
}
.mdl-card {
  min-height: 0;
}
.mdl-card {
  background: linear-gradient(white, #f9f9f9);
  justify-content: space-between;
}
.mdl-layout__content{
  height: 100%;
  background-color: rgba(201, 76, 76, 0.0);
}
#user-container {
  display: inline-block;
  width: 100%;
  justify-content: center;
}
#user-container #user-pic {
  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;
}
#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;
}

footer {
  overflow-x: none;
  -webkit-box-shadow: 0px -5px 15px 5px rgba(0,0,0,0.2); 
  box-shadow: 0px -5px 15px 5px rgba(0,0,0,0.3);
    position:fixed;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    left:0px;
    bottom:0px;
    width:100%;
    height: 50px;
    text-align:left;
    background-color:white;
    z-index:5
  }

  #must-signin-snackbar {
    z-index: 9999;
  }

  .bottomui {
    width: 24%;
    height:45px;
    color:black;
    background-color:white;
    border-style: none none none solid;
    border-width:1px;
    border-color:#d3d3d3;
    font-size:large;
/*    border-radius: 40px;*/
    outline:none;
    margin-top: 2.5px;
  }
  .bottomuiMute {
    width: 24%;
    height: 45px;
    color: black;
    background-color: white;
    border-style: none none none solid;
    border-width: 1px;
    border-color: #d3d3d3;
    font-size: large;
    outline: none;
    margin-top: 2.5px;
    position: relative; /* Add position relative to the button */
    overflow: hidden; /* Add overflow hidden to hide the overflowed line */
  }
  
  .bottomuiMute i {
    position: relative; /* Add position relative to the icon */
    z-index: 1; /* Set z-index to 1 to place the icon in front of the line */
  }
  
  .bottomuiMute:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform: rotate(45deg) scaleY(0.1) scale(0.3); /* Rotate the line to form the diagonal */
    background-color: red;
    z-index: 6; /* Set z-index to 0 to place the line behind the icon */
  }
  .bottomuiSpeak {
    width: 24%;
    height: 45px;
    color:white;
    background-color:#689cf4;
    border-style: none none none solid;
    border-width: 1px;
    border-color: #d3d3d3;
    font-size: large;
    outline: none;
    margin-top: 2.5px;
    position: relative; /* Add position relative to the button */
    overflow: hidden; /* Add overflow hidden to hide the overflowed line */
  }
  .bottomuiNoSpeak {
    width: 24%;
    height: 45px;
    color:white;
    background-color:#689cf4;
    border-style: none none none solid;
    border-width: 1px;
    border-color: #d3d3d3;
    font-size: large;
    outline: none;
    margin-top: 2.5px;
    position: relative; /* Add position relative to the button */
    overflow: hidden; /* Add overflow hidden to hide the overflowed line */
  }
  
  .bottomuiNoSpeak i {
    position: relative; /* Add position relative to the icon */
    z-index: 1; /* Set z-index to 1 to place the icon in front of the line */
  }
  
  .bottomuiNoSpeak:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform: rotate(45deg) scaleY(0.1) scale(0.3); /* Rotate the line to form the diagonal */
    background-color: red;
    z-index: 6; /* Set z-index to 0 to place the line behind the icon */
  }
  
  .bottomuiNav {
    width: 25%;
    height:45px;
  background-color:#4dab77;
  color:white;  
  border-style:solid;
    border-width:2px;
    border-color:white;
    font-size:large;
    border-radius: 40px;
    outline:none;
    margin-top: 2.5px;
  }
  
  .pulsate {
    width: 25%;
    height:45px;
  background-color:#4dab77;
  color:white;  
  border-style:solid;
    border-width:2px;
    border-color:#4dab77;
    font-size:large;
    border-radius: 40px;
    outline:none;
    margin-top: 2.5px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    animation: pulse 0.9s infinite;
    animation-timing-function: linear;   
  }
  
  @keyframes pulse {
    0% { transform: scale(1)}
    50% { transform: scale(1.08)}
    100% { transform: scale(1)}
  }

  .loadingAnimate {
    display: inline-block;
    width: 50px;
    height: 50px;
    color:black;
    background-color:white;
    border: 10px solid #4dab77;
    border-top-color: #689cf4;
    border-radius: 50%;
    animation: spin 1s infinite linear;
  }
  .loadingAnimateNav {
    display: inline-block;
    width: 50px;
    height: 50px;
    color:black;
    background-color:white;
    border: 10px solid #4dab77;
    border-top-color: #689cf4;
    border-radius: 50%;
    animation: spin 1s infinite linear;
  }
  

  @keyframes spin {
    0% { transform: rotate(0deg)}
    100% { transform: rotate(360deg)}
  }
