/* BASE OVERRIDES */

/* karma Custom Css */

.karmaLogo {
  background: url(karmaDocumentation_white.png) center;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 0;
  padding: 0;
  margin: 10px 0 5px 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
}
.prose p > img{
  max-width: 320px;
}

.important{
  color: red;
}

@media only screen and (min-width:961px) {
  .karmaLogoContainer {
    height: 110px;
  }
  .karmaLogo + div {
    width: 100%;
    height: 100%;
  }
}

@media only screen and (max-width: 960px) {
  .karmaLogo{
    background: none;
    background-position: left center;
    background-size: 90%;
    width: 90px;
    padding: 0;
    margin: 0 0 0 5px;
  }
  .karmaLogo + div.space-left3, .karmaLogo + div.space-left2 {
    margin-left:5px;
  }
}

table {
  table-layout: fixed;
  width: 100%;
}

table tbody tr td {
  word-wrap: break-word;
}

table thead tr th:first-child {
  width: 25%;
}

@media only screen and (max-width:960px) {
  table {
    table-layout: fixed; 
    width: 100%
  }
}

@media only screen and (max-width:960px) {
  .events .pad0 {
      padding: 15px;
  }
}

@media only screen and (max-width:640px) {
  .events {
      display: none;
  }
}


/* Add buffer for nicer anchor links */
.prose h2:first-child {
  padding-top: 20px;
}

.prose h3:first-child {
  padding-top: 20px;
}

/* Header gets big */
@media only screen and (max-width:960px) {
  .prose h2:first-child {
    padding-top: 60px;
  }

  .prose h3:first-child {
    padding-top: 60px;
  }
}

/* Header gets bigger */
@media only screen and (max-width:640px) {
  .prose h2:first-child {
    padding-top: 100px;
  }

  .prose h3:first-child {
    padding-top: 100px;
  }
}


/* tables are too giant */
.prose table,
.prose table code {
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 1.5;
}

.prose table th, .prose table td {
  padding: 5px;
}

.dark.keyline-top,
.dark.keyline-bottom {
  border-color: #313131;
}

html, body, #app, .container {
  height: 100%;
}

body pre {
  padding: 0;
}

/* BASE ADDONS */
.fill-dark2 { background-color: #313131; }
.fill-dark2 .rounded-toggle input[type=radio]:checked + label,
.fill-dark2 .rounded-toggle .active { background-color: #313131; }
.space-top3 { margin-top: 30px;}
.space-top5 { margin-top: 50px;}
.line-height15 { line-height: 15px; }
.pad00y { padding-top: 2px; padding-bottom: 2px; }
.space-bottom00 { margin-bottom: 3px;}

.endpoint {
  width: 100%;
  display: flex;
}
.endpoint-url {
  flex-grow: 1;
  word-wrap: break-word;
}

.endpoint-url a {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  font-weight:bold;
  padding: 2px;
  color: #fff;
}

.endpoint-url a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

a.hljs-linked {
  border-radius: 2px;
  color: #a5c261;
  background: #383C2F;
  padding: 2px;
}

body .prose blockquote {
  padding: 5px 10px;
  background: #232323;
}

.preview {
  background-image: -webkit-linear-gradient(#F1F075, #F1F075);
  background-size: 10px 10px;
  background-repeat: repeat-y;
}

.preview h2::after,
.preview h3::after {
  content: 'PREVIEW';
  background-color: #F1F075;
  border-radius: 2px;
  font-size: 9px;
  font-weight: normal;
  padding: 2px 5px;
  color: rgba(0, 0, 0, 0.5);
  margin-left: 10px;
  vertical-align: middle;
}

@media (prefers-color-scheme: dark) {
  body{
    background: #222;
    color: rgba(255, 255, 255, 0.75);
  }
  .fill-light {
    background: #333;
  }
  .quiet{
    color: rgba(255, 255, 255, 0.5);
  }
  .rounded-toggle{
    background: #000;
    color: rgba(255, 255, 255, 0.5);
  }
  .fill-light .rounded-toggle .active{
    background: #080808;
    color: rgba(255, 255, 255, 0.75);
  }
  table.prose th, table.prose td, .prose table th, .prose table td {
    border-color: #555;
  }
  .keyline-top {
    border-top: 1px solid rgba(255,255,255,0.10);
  }
  a, a > code {
    color: #9aabdf;
  }
  .important{
    color: salmon;
  }
}