/*
Copyright 2018, Peter Rowntree (PR~). All rights reserved.
http://www.hdyn.com/mail/contact.php?addr=pr
*/
/*
    Created on : Jan 29, 2018, 10:11:39 PM
    Author     : Peter Rowntree (PR~)
@import url('https://fonts.googleapis.com/css?family=Libre+Baskerville');
*/
/*
@import url('https://fonts.googleapis.com/css?family=Libre+Baskerville');
* {
  font-family: 'Libre Baskerville', georgia, serif;
}
*/
@font-face {
  font-family: 'Roboto';
  font-display: swap;
  src: url('KFOmCnqEu92Fr1Mu4mxK.woff2') format('woff2');
}

/*@import url('https://fonts.googleapis.com/css?family=Roboto'); Gets Cross Origin error*/
body, select, button {
  font-family: 'Roboto', arial, sans-serif;
}

html, body, table, div, p, form, pre, a, input, img, h1, h2, button, iframe {
  margin: 0;
  margin-right: auto;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: auto;
  font-size: 16px;
}

body {
  background: #D3F5FF linear-gradient(to top, #eee, #fee, #eef);
}

p {
  margin-bottom: 0.4em;
}

.ar {
  text-align: right;
}

.ac {
  text-align: center;
}

table {
  border-collapse: collapse;
}

table a {
  display: block;
  width: 261px;
  white-space: nowrap;
}

button img {
  vertical-align: middle;
}

#questions a {
  display: block;
}

#dhh, #unprompt {
  display: block;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  /*
  left: 5%;
  resize: both;
 background-color: red;*/
  /*padding: 10px;*/
}

#dhh div {
  cursor: default;
}

#unprompt div {
  display: block;
  max-width: 400px;
  max-height: 300px;
  background-color: white;
  box-sizing: border-box;
  margin: 30px auto 0 auto;
  padding: 10px;
  cursor: default;
}

#unprompt button {
  display: block;
  margin: 10px auto 0 auto;
  padding: 4px 10px 4px 10px;
}

#unprompt input, #unprompt textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
}

#doc_title {
  font-size: 1.4em;
  text-align: center;
  width: 90%;
  background-image: linear-gradient(to right, #444, #eee, #444);
  box-sizing: border-box;
}

/* #back_arrow {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  cursor: pointer;
  width: 18px;
  height: 18px;
  z-index: 22;
}

#back_arrow:hover {
  fill:black;
  stroke:red;
  background-color: rgba(255,255,255,.75);
} */
#doc_holder, #string_holder {
  display: block;
  width: 90%;
  height: 90%;
  background-color: white;
  box-sizing: border-box;
  margin-top: -1px;
  /*transform: scale(0.25);*/
}

input, .section textarea {
  box-sizing: border-box;
  font-size: 1em;
}

.section textarea {
  width: 100%;
  height: 7.5em;
  padding: 2px;
}

input[type=text] {
  padding: 4px;
  margin: 4px auto 4px auto;
}

input[type=number] {
  width: 80px;
  font-size: 0.88em;
}

input[type=range] {
  width: 120px;
}

input[type=file] {
  height: 4px;
  margin-top: -10px;
  z-index: -1;
}

label.for_file {
  padding: 6px;
  margin-bottom: 7px;
  cursor: pointer;
  border: 2px dashed rgba(100, 100, 100, .5);
  border-radius: 4px;
}

th, td, #doc_holder, #doc_title, input[type=text] {
  border: 1px solid #777;
}

td {
  vertical-align: top;
  padding: 4px;
  box-sizing: border-box;
}

table {
  margin: auto;
  background-color: #fff;
}

h1, a.home {
  font-size: 1.4em;
  padding: 4px;
  color: white;
}

h1 {
  text-align: center;
  margin: 7px 0 7px 0;
  background-color: rgba(0, 0, 0, 0.5);
}

#question_title {
  text-align: center;
  color: #57d;
  background-color: #ddf;
  background-image: linear-gradient(to bottom, #ddf, #eee);
}

a.home {
  position: absolute;
  top: 7px;
  left: 0;
}

#warn, .warn {
  color: red;
  background-color: yellow;
  border: 1px solid red;
  max-width: 500px;
  padding: 4px;
  overflow: auto;
}

#warn {
  margin-bottom: -1px;
  z-index: 10;
}

.relCenter, label, .section, .section input, .intro, .opener {
  display: block;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.opener {
  /*background-image:linear-gradient( to top,#fed,#fdd );*/
  background: transparent url("../images/arrows.svg") top right no-repeat;
  /*max-height: 1.3em;*/
  /*background-position-y: -50px;*/
}

.opener:hover {
  color: rgb(54, 65, 162);
}

/*.opener::after {
  display: inline-block;
  vertical-align: bottom;
  transform: rotate(90deg);
  content: "▶";
}*/
.section input {
  width: 100%;
}

a, button {
  text-decoration: none;
  color: #08b;
}

.grecaptcha-badge {
  z-index: 22;
}

h1 a {
  color: inherit;
  text-decoration: underline;
}

p a:hover {
  color: rgb(54, 65, 162);
  background-color: #e9f5f5;
  background-color: transparent;
  background-image: linear-gradient(to top, transparent, #e9f5f5, transparent);
  text-decoration: underline;
  /*
background-color: transparent;
    background-image:linear-gradient( to top,transparent,rgb(250,134,138),transparent );
    text-decoration: underline;*/
}

p.warn a:hover {
  color: inherit;
  background-color: inherit;
  background-image: none;
}

.section a, button.g-recaptcha, button {
  display: block;
  box-sizing: border-box;
  font-size: 1em;
  text-align: center;
  background-color: #eed;
  background-image: linear-gradient(to left top, #fed, #eef);
  border: 1px solid #777;
  padding: 4px 2px 4px 2px;
  width: 100%;
  margin-bottom: 2px;
}

.warn_clickable, .about_private_keys, .warn a, #warn a {
  color: red;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}

#warn .dm, #warn .dmr {
  font-size: 1.1em;
  color: #021;
  overflow: auto;
}

#warn .dm {
  background-color: #cdd;
}

#warn .dmr {
  background-color: #f4fff9;
}

#warn .dmr>em.label {
  cursor: pointer;
}

#warn .dmr>em.label:hover {
  background-color: #fa3;
}

#warn .dm img, #warn .dmr img {
  display: inline;
  vertical-align: middle;
  height: 2.1em;
}

#warn .dm em, #warn .dmr em {
  /*opacity: 0.5;*/
  font-style: normal;
  color: white;
  background-color: rgba(0, 68, 68, 0.4);
  /*font-family: monospace;*/
  padding: 0 0.3em 0 0.2em;
  margin-right: 0.3em;
  /*border-right: 3px groove #eff;*/
}

.section a:hover, a.home:hover, button:hover {
  color: #e08;
  background-color: #dde;
  background-image: linear-gradient(to left top, #efe, #eef);
}

#questions a {
  padding: 2px;
  border: 1px solid transparent;
}

#questions a:hover {
  background-color: #eef;
  border: 1px solid #777;
}

.intro, #questions, #warn, #setup, #dl_public, #dl_private, #dl_signature, #dl_wrapped,
#voteSection, #settings, #contact, #all_settings, #unprompt, #dhh, #rtc, #emoji_map {
  display: none;
}

.intro {
  hyphens: auto;
}

#rtc {
  padding-bottom: 0;
}

.section, .intro, .opener, input[type=password] {
  padding: 4px;
  border: 1px solid #777;
  max-width: 500px;
  margin-bottom: -1px;
  background-color: #fff;
}

#texting {
  display: none;
  grid-template-columns: 2em 1fr;
  grid-template-rows: auto;
  margin-bottom: 2px;
  background-color: #fff;
  border: 1px solid #777;
  box-sizing: border-box;
}

#texting pre, #warn pre {
  display: inline;
  white-space: pre-wrap;
}

#quick_msg img {
  display: inline;
  vertical-align: middle;
  height: 1.7em;
}

#quick_msg {
  grid-column: 2/3;
  grid-row: 1/2;
  width: 100%;
  height: fit-content;
  padding: 0 2px 0 2px;
  line-height: 1.6em;
  box-sizing: border-box;
  overflow: hidden;
  font-size: 1.15em;
  background: url(../images/send.svg) no-repeat center center;
  margin-bottom: 0;
  overflow: auto;
}

#emoji_btn {
  grid-column: 1/2;
  grid-row: 1/2;
  width: 100%;
  /*height:2em;*/
  padding: 0;
  background: none;
  box-sizing: border-box;
  margin-bottom: 0;
  border: none;
}

#emoji_map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5) url(../images/emoji_color_thumbs.gif) no-repeat center center;
  opacity: 0.8;
  z-index: 15;
  cursor: pointer;
}

.grad1 {
  background-image: linear-gradient(to left, #ddf, #cfd);
}

.grad2 {
  background-image: linear-gradient(to left, #cfd, #ddf);
}

.grad3 {
  background-image: linear-gradient(to bottom, #eee, #ddf);
}

.grad4 {
  background-image: linear-gradient(to bottom, #ddf, #eee);
}

.grad5 {
  /*background-image:linear-gradient( to right,#b40000,#3cf0ff );*/
  background-image: linear-gradient(to right, #a11, #cfd);
}

.grad6 {
  background-image: linear-gradient(to top right, #fed, #ffd9b6);
}

.grad7 {
  background-image: linear-gradient(to bottom, #444, #aaa);
}

.disabler {
  width: 20px;
  height: 1px;
}

.disabler_td {
  cursor: pointer;
  padding: 0;
  background: #ddd url(../images/toggle_off.svg) no-repeat center center;
  background-size: contain;
}

select, button.small_btn {
  background-color: #eef;
  color: #08b;
  height: 1.5em;
  box-sizing: border-box;
  font-size: 1em;
  padding: 0 3px 0 3px;
  vertical-align: middle;
  max-width: 300px;
  border: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #aaa;
}

select[multiple=multiple] option {
  height: 1.5em;
}

select[multiple=multiple] {
  margin-top: 3px;
  height: auto;
  max-height: 12em;
}

select, button, table a, #questions a, .opener {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a, button, .closer span, .rtc button {
  cursor: pointer;
}

select, button, label, input[type=password] {
  margin-bottom: 2px;
}

button:disabled {
  color: #777;
  background-image: linear-gradient(to bottom left, #aaa, #ddd);
  cursor: default;
}

.closer {
  height: 0;
  max-width: 508px;
  z-index: 11;
  padding: 0;
  overflow: visible;
}

.mono {
  font-family: "Bitstream Vera Sans Mono", monospace;
}

#string_holder {
  padding: 4px;
}

.closer span, .close_box {
  background-color: transparent;
  background-image: url(../images/x_all.svg);
  display: inline-block;
  width: 18px;
  height: 18px;
  cursor: pointer;
  background-size: 72px 18px;
  background-position-y: 0;
}

.x1 {
  background-position-x: 0;
}

.x1:hover {
  background-position-x: -18px;
}

.x2 {
  background-position-x: -18px;
}

.x2:hover {
  background-position-x: -54px;
}

.close_box {
  position: absolute;
  top: 0;
  right: 0;
  background-position-x: -36px;
}

.close_box:hover {
  background-position-x: -18px;
}

#vhh {
  max-width: 509px;
  overflow: hidden;
  direction: rtl;
  border-left: 1px solid #777;
  /*border-right: 1px solid #777;*/
  border-collapse: collapse;
}

#votesHolder {
  direction: ltr;
  border: none;
  margin-bottom: -1px;
}

#tAll {
  width: 19px;
  height: 15px;
  margin-top: -8px;
  /*	position: absolute;
    top: 11px;
    left: 0;*/
}

.notify {
  background-image: none;
  background-color: #fed;
  animation: pulse 0.4s 3;
}

.notify2 {
  background-image: none;
  background-color: #ff3;
  color: #f33;
  animation: pulse 0.5s 2;
}

.fadeIO {
  opacity: 0;
  animation: fadeInOut 1.8s;
}

.block_eq, video {
  width: 100%;
}

.sidebar {
  position: fixed;
  z-index: 14;
  width: 96px;
  top: 0;
}

.loaded {
  font-weight: 800;
  color: #b31;
}

/*************RTC**************************/
/*200404: Chrome currently ignores display:grid or display:inline-grid in buttons
/*https://stackoverflow.com/questions/35464067/flexbox-not-working-on-button-or-fieldset-elements*/
.rtc {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-gap: 2px;
  margin-top: 4px;
}

.rtc video {
  grid-row: 1;
  border: 1px solid black;
  box-sizing: border-box;
  border-collapse: collapse;
  cursor: pointer;
}

#local_video {
  grid-column: 1/3;
  outline: 1px solid white;
  z-index: 4;
}

#remote_video, #cover {
  grid-column: 1 / 10;
}

#cover {
  grid-row: 1/2;
  width: 100%;
  display: grid;
  grid-template-rows: auto 40px 80px;
  color: #f33;
  cursor: pointer;
}

#cover svg {
  display: inline;
  grid-column: 1/2;
  grid-row: 1/2;
  width: 35%;
  justify-self: center;
  align-self: end;
}

#cover img {
  display: inline;
  grid-column: 1/2;
  grid-row: 1/4;
  width: 100%;
}

#cover div {
  grid-column: 1/2;
  grid-row: 2/3;
  font-size: 40px;
  text-align: center;
  width: 100%;
  text-shadow: -1px -1px 1px black, 1px 1px 1px black;
}

#cover path {
  fill: #f33;
  fill-opacity: 0.9;
}

.fade_out {
  opacity: 0;
  transition: opacity 1.2s ease-out;
}

#cover.green path {
  fill: #3f3;
}

#cover.green div {
  color: #3f3;
}

.rtc button, button.sidebar {
  grid-row: 3;
  fill: transparent;
  font-size: 16px;
  background-image: linear-gradient(to top, #fdd, #fff);
}

.gridder {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: 22px 1fr;
  align-items: center;
  justify-items: end;
  padding: 1px 7px 4px 7px;
  /*grid-template-areas:
    "stamp r1"
    "r2 r2";*/
}

.gridder svg {
  grid-row: 1/2;
  grid-column: 1/2;
  /*grid-area: 1/1/1/1;*/
  /*  grid-column: 1/2;
    grid-row: 1/2;
    display: inline-block;
    vertical-align: top;*/
}

.gridless {
  display: block;
  padding-top: 3px;
  height: 100%;
  text-align: center;
}

.gridder svg, .gridless svg {
  width: 22px;
  display: inline-block;
}

.gridless svg {
  margin-bottom: -5px;
}

.gridder span {
  grid-row: 1/2;
  grid-column: 2/3;
}

.gridder span.r2 {
  grid-row: 2/3;
  grid-column: 1/3;
}

/*button.h_green:hover, button.h_red:hover {
  color: blue;
}*/
button.h_red:hover path {
  fill: #f33;
}

button.h_green:hover path {
  fill: #3f3;
}

button.h_blue:hover path {
  fill: #33f;
}

#presence {
  box-sizing: border-box;
  width: 48px;
  height: 1em;
  padding: 0;
  vertical-align: middle;
  text-align: left;
  display: none;
}

#presence svg {
  box-sizing: border-box;
}

#presence svg rect {
  display: none;
}

#dl_main_pub, #edit_user {
  box-sizing: border-box;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: none;
}

#dl_main_pub svg, #edit_user svg {
  height: 27px;
  vertical-align: middle;
  margin: -5px auto -5px auto;
  opacity: 0.48;
}

.rtc button:hover {
  background-image: linear-gradient(to bottom, #fff, #dff);
  color: rgb(54, 65, 162);
  stroke: rgb(54, 65, 162);
}

.rtc button:disabled {
  background-image: linear-gradient(to top, #8bf, #000);
}

.rtc button:disabled svg path {
  fill-opacity: 1;
}

.path_red path, .fill_red {
  fill: #f33;
}

.path_green path, .fill_green {
  fill: #3f3;
}

/*.rtc svg {
  display: inline;
  width: 80%;	chrome (200107) fails to render path without width
  fill: transparent;
}*/
.rtc .wideCol svg {
  width: 40%;
}

.rtc, .sidebar, #enable_notify {
  stroke: black;
  stroke-width: 0.5px;
}

#start_call {
  grid-column: 1 / 3;
}

#end_call {
  grid-column: 3 / 5;
}

#notify {
  display: none;
  grid-column: 1 / 2;
}

#call_ctrl {
  grid-column: 1 / 5;
  font-size: 22px;
}

#call_ctrl svg {
  width: 44px;
  margin-bottom: -13px;
}

#camera_ctrl {
  grid-column: 5 / 7;
}

#mic_ctrl {
  grid-column: 7 / 9;
}

#expand {
  grid-column: 9 / 10;
}

#enable_notify {
  position: absolute;
  top: 0;
  right: 0;
  border-top-width: 0;
  border-right-width: 0;
  display: none;
  width: 48px;
  height: 48px;
  padding-top: 2px;
  fill: transparent;
}

@keyframes pulse {
  0% {
    background-color: #fed;
  }

  100% {
    background-color: #bdf;
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

#warn img.dm_img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  background-color: #ddd;
  /*background-image:linear-gradient( to bottom,#efe,#bcd );*/
}

@media (max-width: 700px) {
  #doc_holder, #string_holder, #doc_title {
    width: 100%;
  }

  .close_box {
    right: 0;
  }
}
