
@font-face {
  font-family: Gotham;
  src: url(../Fonts/Gotham-Light.otf);
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: Gotham;
  src: url(../Fonts/Gotham-Medium.otf);
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: GothamMedium;
  src: url(../Fonts/Gotham-Medium.otf);
}

@font-face {
  font-family: GothamBold;
  src: url(../Fonts/Gotham-Bold.otf);
}

@font-face {
  font-family: CaeciliaLight;
  src: url(../Fonts/CaeciliaLTStd-LightItalic.otf);
}

@font-face {
  font-family: Caecilia;
  src: url(../Fonts/CaeciliaLTStd-Italic.otf);
}

/*
  We don't need any italic variation for custom fonts (like Gotham) in css.
  It affects font size calculation of webkit, as a result tiny fonts will be shown for italic in some languages,
  e.g. Chinese, Japanese, Korean, ..., see CP-1149 for the details.
  Italic variation should be included in bundle but should NOT be defined in css.
*/

hr {
  background-color: rgb(126, 126, 126);
  height: 0.09rem;
  border: 0;
}

*:focus {
  outline: none;
}

div.encp-no-title {
  padding-top: 6.8rem;
}

div.encp-note-title {
  font-family: "CaeciliaLight";
  line-height: 1.8rem;
  font-size: 1rem;
  color: rgb(67, 67, 67);
  text-align: center;
  padding-top: 6.8rem;
  padding-bottom: 5.6rem;
  font-weight: bold;
  /* TODO: Probably we should remove box because it's a bit unstable at the moment. */
  display: box;
  display: -moz-box;
  display: -webkit-box;
  box-orient: horizontal;
  box-orient: -webkit-horizontal;
  box-pack: center;
  -webkit-box-pack: center;
}

div.encp-note-title > div.encp-title-container {
  max-width: 70%;
}

div.encp-note-title > div.encp-title-container > h1.title {
  font-family: "CaeciliaLight";
  font-weight: normal;
  font-size: 1.8666rem;
  color: rgb(67, 67, 67);
  line-height: 2.5333rem;
  word-break: normal;
  word-wrap: break-word;
  margin-bottom: 0.4rem;
  -webkit-nbsp-mode: space;
  -webkit-line-break: after-white-space;
}

.encp-media-preview img {
  cursor: pointer;
}

img.encp-predefined-preview {
  background-size: contain;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

img.encp-preview-encrypted-content {
  background-image: url(../Images/encryptedContent.svg);
}

img.encp-preview-default {
  background-image: url(../Images/brokenNote.svg);
}

div.encp-attachment-box {
  text-align: center;
  opacity: 0.5;
  margin: 0 auto;
  border: 0.1111rem solid rgb(204, 204, 204);
  border-radius: 0.9rem;
  margin-bottom: 3.0rem;
  width: 12.5rem;
  max-width: 70%;
  overflow: hidden;
  background-size: 2.125rem 2.125rem;
  background-position: 100% 0;
  background-repeat: no-repeat;
}

div.encp-can-open-attachment div.encp-attachment-box {
  opacity: 1.0;
}

div.encp-can-open-attachment div.encp-attachment-box.encp-attachment-previewing {
  background-image: none;
}

div.encp-attachment-box .encp-media-preview {
  margin-top: 0;
}

div.encp-attachment-box div.encp-attachment-info {
  display: none;
  padding: 0.3rem 0;
  margin: 0;
  height: 1.2rem;
  line-height: 1.2rem;
  font-size: 0.6rem;
}

div.encp-attachment-box img.encp-attachment-icon {
  margin-top: 0.8rem;
  width: auto;
  height: auto;
  opacity: 1.0;
}

div.encp-attachment-box img.encp-attachment-icon.encp-attachment-progress {
  opacity: 0.4;
  width: 3.333rem;
}

div.encp-attachment-box div.encp-attachment-filename {
  font-family: "Gotham";
  font-size: 0.8rem;
  color: rgb(142, 142, 142);
  margin-bottom: 0.8rem;
  margin-top: 0.7rem;
  padding: 0 1rem;
  line-height: 1rem;
  word-break: normal;
  word-wrap: break-word;
  -webkit-nbsp-mode: space;
  -webkit-line-break: after-white-space;
}

div.encp-attachment-box div.encp-attachment-filename em {
  font-style: normal;
  font-weight: bold;
  color: rgb(1, 197, 251);
  margin-bottom: 0.7rem;
}

div.encp-attachment-box div.encp-attachment-filename span.encp-attachment-filename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

div.encp-attachment-box.encp-attachment-previewing {
  width: auto;
  max-width: 70%;
}

div.encp-attachment-box.encp-attachment-previewing img.encp-attachment-icon {
  margin-top: 0;
  margin-bottom: 0;
  background-color: rgb(0, 0, 0);
}

div.encp-attachment-box.encp-attachment-previewing div.encp-attachment-filename {
  display: none;
}

div.encp-attachment-box.encp-attachment-previewing div.encp-attachment-info,
div.encp-attachment-box div.encp-attachment-info span,
div.encp-attachment-box div.encp-attachment-info img,
div.encp-attachment-box div.encp-attachment-filename span,
div.encp-attachment-box div.encp-attachment-filename em {
  display: block;
}

div.encp-attachment-box + div.encp-attachment-box {
  margin-bottom: 2.777rem;
}

div.encp-attachment-box div.encp-attachment-info img {
  float: left;
  height: 1.2rem;
  padding-left: 0.6rem;
}

div.encp-attachment-box div.encp-attachment-info span.encp-attachment-info-detail {
  float: right;
  padding-right: 0.6rem;
}

div.encp-attachment-box div.encp-attachment-info span.encp-attachment-info-title,
div.encp-attachment-box div.encp-attachment-filename span.encp-attachment-filename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

div.encp-attachment-box div.encp-attachment-info span.encp-attachment-info-title {
  width: 50%;
  text-align: left;
  padding-left: 0.6rem;
}

div.encp-attachment-box div.encp-attachment-filename span.encp-attachment-filename {
  width: 100%;
}

div.encp-attachment-box.encp-attachment-playable div.encp-media-preview {
  position: relative;
}

div.encp-attachment-box.encp-attachment-playable div.encp-media-preview:before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: 4rem 4rem;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-image: url(../Images/thumbnailPreviewPlayButton.svg);
}

div.encp-media-container.encp-attachment-touched div.encp-attachment-box.encp-attachment-playable div.encp-media-preview:before {
  background-image: url(../Images/thumbnailPreviewPlayButtonPressed.svg);
}
