/* © 2016-present FlowCrypt a.s. (human@flowcrypt.com). All rights reserved. */

i.small_spinner { display: inline-block; width: 40px; height: 15px; text-align: center; position: relative; }
i.small_spinner img { position: absolute; left: 0; right: 0; margin-left: auto; margin-right: auto;
  width: 26px; margin-top: -4px; }
i.large_spinner { display: block; width: 75px; height: 75px; text-align: center; position: relative; }
i.large_spinner img { position: relative; width: 75px; height: 75px; }
body, h1, label, p { font-family: Helvetica, sans-serif; font-weight: 300; font-size: 18px;
   background-color: #fafafa; text-align: center; }
h1 { margin-top: 50px; margin-bottom: 40px; font-size: 32px; font-weight: 300; }
input, textarea { border-radius: 2px; display: inline-block; }
.button { text-transform: uppercase; font-size: 18px !important; }
.dim { opacity: 0.5 !important; }
.dim:hover { opacity: 1 !important; }

/* body.decrypt */
body.decrypt #loading { margin-top: 80px; }
body.decrypt #loading i { display: inline-block; }
body.decrypt { overflow-x: hidden; width: 100%; scroll-behavior: smooth; }
body.decrypt #content { width: 80%; margin: 0 auto;}
body.decrypt .pgp_block {
  border: 1px solid #e0e0e0; border-left: 4px solid #31A217; padding-left: 10px; background-color: white;
  /* overridden in web-portal-message.kte */
  background-image: url(../img/lock-seamless-bg-alpha.png);
  padding-top: 6px; padding-bottom: 6px; width: 100%; display: none; margin-top: 12px; min-height: 100px;
  text-align: left;
}
body.decrypt .pgp_block_visible {
  border: 1px solid #e0e0e0; border-left: 4px solid #31A217; padding-left: 10px; background-color: white;
  /* overridden in web-portal-message.kte */
  background-image: url(../img/lock-seamless-bg-alpha.png);
  padding-top: 6px; padding-bottom: 6px; width: 100%; display: block; margin-top: 12px; min-height: 100px;
  text-align: left;
}
body.decrypt #attachments { display: flex; flex-wrap: wrap; padding: 20px 0; }
body.decrypt .attachment { display: inline-flex; align-items: center; color: #333; font-weight: bold;
  height: 36px; background: #f8f8f8; border: 1px solid #ccc; border-left: 4px solid #31a217;
  margin-right: 12px; margin-bottom: 5px; padding: 8px; text-decoration: none; }

body.decrypt #decrypt_form { display: none; margin-top: 50px; }
body.decrypt #decrypt_form .future_expiration { display: none; font-size: 14px; text-align: left; }
body.decrypt #decrypt_form .subject { display: block; text-align: left; }
body.decrypt #decrypt_form input.decrypt_answer { width: 250px; height: 50px; padding-left: 20px;
  border: 1px solid #999; border-top-left-radius: 5px; border-bottom-left-radius: 5px; border-right: none; display: inline; }
body.decrypt #decrypt_form input.decrypt_answer:focus { outline: none !important; }
body.decrypt #decrypt_form .action_decrypt { border-top-right-radius: 5px; border-bottom-right-radius: 5px;
  font-size: 18px; padding-bottom: 15px; margin: 0 0 0 -5px; }
body.decrypt #decrypt_form div#attachments { width: 100%; display: inline-block; text-align: left; padding-top: 20px; }
body.decrypt #decrypt_form div#attachments div.attachment { cursor: pointer; display: inline-block;
  border: 1px solid #e0e0e0; background: white; padding: 5px 20px; margin-right: 20px;
  margin-bottom: 20px; border-left: 4px solid #31A217; }
body.decrypt #decrypt_form div#attachments div.attachment b { color: #2199e8; font-weight: 400;
  padding-right: 20px; display: inline-block; }

body.decrypt #reply_form { display: none; text-align: left; margin-top: 20px; }
body.decrypt #reply_form .reply_header { display: none; margin-bottom: 10px; margin-top: 40px; font-weight: 400; }
body.decrypt #reply_form #input_text {
  padding-top: 8px; padding-left: 8px; outline: none; -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important; box-shadow: none !important; height: 100%; word-wrap: break-word;
  display: none; min-height: 150px;
  background-color: white;
  /* overridden in web-portal-message.kte */
  background-image: url(/img/lock-seamless-bg-alpha.png);
  overflow-y: auto;
  padding-bottom: 16px; border: 1px solid #e0e0e0; }
body.decrypt #reply_form .action_send { display: none; margin-top: 20px; }
body.decrypt #reply_form #reply_type { display: none; margin-top: 10px; }
body.decrypt #reply_form #reply_type #reply_single_input { display: none; }
body.decrypt #reply_form #reply_type #reply_single_label { display: none; }
body.decrypt #reply_form #reply_type #reply_all_input { display: none; }
body.decrypt #reply_form #reply_type #reply_all_label { display: none; }
body.decrypt #reply_form .add_attachments { display: none; float: right; margin: 18px 10px 0 0; cursor: pointer; }
.decrypt-table { border-collapse: separate; border-spacing: 0; }
.decrypt-td { padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; background-color: #fafafa; }

/* body.decrypt mobile */
@media (max-width: 480px) {
  body.decrypt #content { width: 100%; }
  body.decrypt #decrypt_form input.decrypt_answer { padding-left: 10px; padding-right: 10px; width: 100%;
    border-radius: 0; display: block; margin: 0 auto;
    margin-top: 20px; border: 1px solid #cacaca; border-bottom: none; border-top-right-radius: 5px;
    text-align: center; border-top-left-radius: 5px; }
  body.decrypt #decrypt_form .action_decrypt { padding-right: 10px; padding-left: 10px; border-radius: 0;
    width: 100%; border-top: none;
    border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; margin: 0 auto; }
  body.decrypt #decrypt_form .decrypt-td { display: block; }
  body.decrypt #decrypt_form .decrypt_controls { margin-top: 80px; padding: 0 15px; }
  body.decrypt h1 { display: none; }
  body.decrypt #decrypt_form #content { width: 100%; font-size: 16px !important; }
  body.decrypt #decrypt_form div#attachments .attachment b { display: block !important; }
  body.decrypt #reply_form { margin-bottom: 200px; }
  body.decrypt #reply_form #input_text { min-height: 100px; }
  body.decrypt #reply_form .reply_header { margin-bottom: 0; text-align: center;}
  body.decrypt #reply_form .action_send { margin-top: 0; width: 100%; margin-bottom: 0; }
  body.decrypt #reply_form #reply_type { display: block; text-align: center; }
  body.decrypt #reply_form .add_attachments { margin: 16px; }
}

/* Uppy */
.uppy-DashboardContent-bar { height: 0 !important; }
.uppy-Dashboard-AddFilesPanel .uppy-DashboardContent-bar { height: 50px !important; }
.uppy-DashboardContent-addMore {
  background: #fafafa !important;
  position: absolute;
  top: 200px;
  right: 15px;
}

.i--invisible { position:absolute; top: -1000px; }

html { width: 100%; overflow-x: hidden; }

.div--white-border-1px { border:1px solid white; }
.div--font-12px { font-size:12px; }

.pre--300px { height:300px; overflow:auto; }

.a--block-center { display:block; text-align:center; }

.div--hidden {
  display: none;
}

.div--block {
  display: block;
}

.div--warning {
  color: red;
  font-weight: bold;
  text-align: start;
}

.div--warning-centered {
  color: red;
  font-weight: bold;
  text-align: center;
}

.pgp_badge {
  margin-bottom: 1em;
  display: inline-block;
  text-transform: none;
  padding: 1px 3px 2px;
  font-size: 13px;
  font-weight: normal;
  margin-right: 6px;
  border-radius: 4px
}

.green_label, .red_label, .gray_label {
  color: #fff;
}

.red_label {
  background-color: #d14836;
}

.green_label {
  background-color: #31a217;
}

.gray_label {
  background-color:#808080;
}
