:root {
    --gray: #707070;
    --primary: #6b6bc1;
    --secondary: #e7e6f2;
    --black: #434349;
    --tertiary: #ecf1f4;
    --background: #d1e7ed;
}

@font-face { font-family: Comfortaa; 
             src: url('../font/comfortaa.ttf'); } 

html, body {
    color: var(--black);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#logo {
    max-width: 400px;
    width: 100%;
}
body {
    background-color: var(--background);
    background-position: bottom center;
    background-size: cover;
}
#canvas {
    min-height: 100vh;
    width: 100%;
    padding: 30px 20px;
    display: flex;
    align-items: center;
}

h1,h2 {
    font-family: 'Comfortaa', cursive;
}

.title {
    color: black
}
h2 {
    color: var(--gray);  
}

.main {
    /* border: 1px solid var(--gray); */
    /* border-radius: 15px; */
    margin-top: 20px;
    min-height: 100px;
    background-color: rgba(255,255,255,.75);
    box-shadow:
  0 2.8px 2.2px rgba(0, 0, 0, 0.02),
  0 6.7px 5.3px rgba(0, 0, 0, 0.028),
  0 12.5px 10px rgba(0, 0, 0, 0.035),
  0 22.3px 17.9px rgba(0, 0, 0, 0.042),
  0 41.8px 33.4px rgba(0, 0, 0, 0.05),
  0 100px 80px rgba(0, 0, 0, 0.07)
;
}

.border {
    border: 1px solid var(--gray);
    min-height: 100px;
}

.justify-center {
    display: flex;
    justify-content: center;
}

.align-center {
    display: flex;
    align-items: center;
}

.align-end {
    display: flex;
    align-items: flex-end;
}

hr {
    border-top: solid 1px var(--gray);
}

.button {
    padding: 10px 20px;
    width: 100%;
    text-align: center;
    border: solid 1px var(--gray);
    color: var(--gray);
    display: inline-block;
    border-radius: 5px;
    background-color: transparent;
    cursor: pointer;
}

.button:hover {
    background-color: rgba(112,112,112, .15)
}


.button:active, .button:hover {
    color: unset;
    text-decoration: none;
}

.time {
    font-size: 1.5em;
}

#chatbar {
    height: 100%;
    box-shadow: inset 0px 11px 8px -10px #CCC, inset 0px -11px 8px -10px #CCC; 
    height: 500px;
    overflow-y: scroll;
    /* inset -10px 3px 10px 0px rgba(0,0,0,.15),
                inset -10px -3px 10px 0px rgba(0,0,0,.15); */


        /* border-bottom: solid 1px var(--gray); */
}

#chatbar::-webkit-scrollbar {
    width: 0px;  /* Remove scrollbar space */
    background: transparent;  /* Optional: just make scrollbar invisible */
    overflow-y: auto;
    height: 500px
}

.chatbar-inner {
    padding-top: 20px;
    padding-bottom: 20px;
}

#start-new-chat {
    width: 100%;
    padding: 20px;
    text-align: center;
}



.button.no-border {
    border: unset;
    border-radius: unset;
}

.chat {
    border-radius: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    border: none;
    border-bottom: solid 1px var(--gray);
}

.chat img {
    height: 33px;
    width: 33px;
}

.chat-message, .chat-person-info, .chat-name, .chat-person-info{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-info {
    font-size: 1.5em;
}

.chat-unit {
	font-size: 0.7em;
}

#chat-screen {
    display: flex;
    flex-direction: column;
    height: 40vh;
    min-height: 200px;
    overflow-y: auto;
    box-shadow: inset 0px 0px 5px 0px rgba(0,0,0,.15), inset 0px 0px 5px 0px rgba(0,0,0,.15)
}


#chat-screen::-webkit-scrollbar {
    display: none;
}
.chat-bubble {
    padding: 10px;
    border: solid 1px var(--gray);
    border-radius: 10px;
    word-wrap: break-word;
}

.chat-screen-inner {
    padding-top: 20px;
    padding-bottom: 20px;
}

.chat-self, .chat-other, .chat-unread {
	margin-top: 10px;
}

.chat-self .chat-bubble {
    background-color: var(--secondary);
    border: solid 1px #b3aee6;
}

.chat-other .chat-bubble {
    background-color: white;
    border: solid 1px rgb(209, 209, 209);
}

.chat-self {
    display: flex;
    flex-direction: row-reverse;
}

.chat-unread {
    display: flex;
    padding: 3px;
    justify-content: center;
    align-items: center;
    background-color: rgba(230,217,233, .75);
    position: sticky;
    top: -1em;
    z-index: 10;
}

.chat-unread-bubble {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 25px;
    background-color: white;
    color: black;
    text-align: center;
}

.chat-spacing {
	width: 45px;
	display: inline-block;
}

.chat-timestamp {
	float: right;
	margin-top: -25px;
	padding-right: 5px;
	font-size: 13px;
}

.unread-no {
    position: relative;
    z-index: 1;
    color: white;
    margin-left: 10px;
    margin-right: 10px;
    display: inline-block;
    overflow: visible;
}

.unread-no::before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background-color: green;
    z-index: -1;
    border-radius: 50%;
}

.pp-icon {
    border-radius: 50%;
    height: 35px;
    width: 35px;
    object-fit: cover;
}

.pp-icon.large {
    height: 70px;
    width: 70px;
}

.text-no-wrap {
    white-space:nowrap;
}

.home-icon {
    height: 30px;
    fill: red;
}

.mail-icon {
    height: 20px;
    fill: red;
}

.mail-space, .home-space {
	/*mr-1*/
	margin-left: .25rem;
	margin-right: .25rem;
	border-radius: 50%;
}

.mail-space:hover, .home-space:hover {
	background-color: lightgray;
}

.mail-space {
	padding-left: .5rem;
	padding-right: .5rem;
}

.home-space {
	padding-left: .2rem;
	padding-right: .2rem;
}

.mail-container, .home-container {
    position: relative;
}

.mail-number {
    position: absolute;
    top: 0;
    right: -20px;
    transform: translate(-50%, -50%);
    height: 20px;
    width: 20px;
    background-color: green;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.chat {
    padding: 2em 1em;
    border-bottom: solid 1px var(--gray);
}

.last-unread {
	font-weight: bold;
}

#three-dots-button {
    padding: 15px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
  }
  
  #three-dots-button:hover,#three-dots-button:active {
    background-color: lightgray;
  }
  
  #three-dots-button:hover {
    cursor: pointer;
  }
  
  #three-dots, #three-dots:before, #three-dots:after {
    height: 5px;
    width: 5px;
    background-color: black;
    border-radius: 50%;
    position: relative;
  }
  
  #three-dots:after, #three-dots:before {
    content: '';
    transform: translateX(-50%);
    position: absolute;
    left: 50%;
  }
  
  #three-dots:after {
   top: 7px;
  }
  
  #three-dots:before {
    bottom: 7px;
  }
  
  #menu-dropdown {
    display: inline-block;
    width: auto;
    height: auto;
    transition: transform .1s linear;
    transform-origin: top right;
  }
  
  #menu-dropdown {
    padding-left: 0;
    position: absolute;
    overflow: hidden;
    border: solid 1px gray;
    top: 30px;
    right: 35px;
    background-color:white;
    box-shadow:
  0 2.8px 2.2px rgba(0, 0, 0, 0.02),
  0 6.7px 5.3px rgba(0, 0, 0, 0.028),
  0 12.5px 10px rgba(0, 0, 0, 0.035),
  0 22.3px 17.9px rgba(0, 0, 0, 0.042),
  0 41.8px 33.4px rgba(0, 0, 0, 0.05),
  0 100px 80px rgba(0, 0, 0, 0.07)
;
    z-index: 99;
    user-select: none;
    cursor: pointer;
  }

  #menu-dropdown a {
      color: black;
  }
  
  #menu-dropdown li {
    text-align: center;
    list-style: none;
    padding: 10px 20px;
  }

  #menu-dropdown a {
      text-align: center;
  }

  #menu-dropdown a:hover {
      text-decoration: none;
  }
  #menu-dropdown li:hover {
    background-color: lightgray;
  }

  
  .hide {
    transform: scale(0)
  }

  #menu-buttons {
      display: flex;
      justify-content: flex-end;
  }

  #chat-screen {
      padding-top: 1em;
      padding-bottom: 1em;
  }

  #chat-submit {
      background-color: var(--secondary);
      transition: background-color .1s linear;
       
  }

  #chat-submit[disabled="disabled"]{
      background-color: #ced4da;
      transition: background-color .3s linear;

  }
