body {
  padding: 15px;
  padding-top: 50px;
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}

li {
  margin: 2px;
}

a {
  color: #00B7FF;
}

/* OSMBC Link warning for tested and not found links in article texts. */
a.osmbc-nonexist {
  color: white ;
  background-color: #d9534f ;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-right: 7px;
  padding-left: 7px
}

/* OSMBC Marker for not formulated article texts */
.osmbc-not-formulated {
  color: #000 !important;
  background-color: #FFF8C6;  /* Salmon Chiffon */
}

/* OSMBC Marker for texts, that are automated translated, but not reviewed */
.osmbc-automated-translation {
  color: #000 !important;
  background-color: RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1)) !important;
}

/* OSMBC Content marker style: white background + left color bar (10px). */
.osmbc-automated-translation:not(.progress-bar):not(.badge),
.osmbc-not-formulated:not(.progress-bar):not(.badge) {
  background-color: #fff !important;
  border-left: 10px solid transparent;
  padding: 0.25rem 0.5rem;
}

.osmbc-automated-translation:not(.progress-bar):not(.badge) {
  border-left-color: RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1));
}

.osmbc-not-formulated:not(.progress-bar):not(.badge) {
  border-left-color: #FFF8C6;
}

.hide-text {
  font-size: 0;
}


.glyphicon-refresh-animate {
  -animation: spin .7s infinite linear;
  -webkit-animation: spin2 .7s infinite linear;
}

@-webkit-keyframes spin2 {
  from { -webkit-transform: rotate(0deg);}
  to { -webkit-transform: rotate(360deg);}
}

@keyframes spin {
  from { transform: scale(1) rotate(0deg);}
  to { transform: scale(1) rotate(360deg);}
}

.wp-caption {
border: 1px solid #ddd;
text-align: center;
background-color: #f3f3f3;
padding-top: 4px;
margin: 10px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.wp-caption img {
margin: 0;
padding: 0;
border: 0 none;
}


.wp-caption p.wp-caption-text {
  color: #888;
  font-size: 12px;
  margin: 5px;
}
pre-code {
  word-wrap: normal;
  white-space: pre;
}


table {
  border: 1px solid #e7e7e7;
  margin: 0 -1px 24px 0;
  text-align: left;
  width: 100%;
}



/* OSMBC Language badges: Primary color for chosen language. */
.osmbc-badge-lang {
  background-color: #d7d711;
  color:white;
}
/* OSMBC Color for the first (left) language */
.osmbc-label-lang {
  background-color: #d7d711;
  color:white;
}

/* OSMBC Vote buttons: Active/inactive vote status. */
.osmbc-btn-voted {
  background-color: white;
  color:black;
}
.osmbc-btn-not-voted {
  background-color: white;
  color:lightgrey;
}

/* OSMBC Text colors only (without badge background). */
.osmbc-color-lang {
  color: #d7d711;
}

.osmbc-badge-lang2 {
  background-color:  #5a5af2;
  color:white;
}
.osmbc-label-lang2 {
  background-color:  #5a5af2;
  color:white;
}

/* OSMBC User indicator badge with red accent color. */
.osmbc-badge-user {
  background-color:  red;
  color:white;
}

.osmbc-color-lang2 {
  color:  #5a5af2;
}

.osmbc-deleted-inverted {
  background-color: var(--bs-danger, #dc3545);
  color: white;
}

.osmbc-inserted-inverted {
  background-color: var(--bs-primary, #0d6efd);
  color: white;
}
.osmbc-deleted {
  color: var(--bs-danger, #dc3545);
}

.osmbc-inserted {
  color: var(--bs-primary, #0d6efd);
}

.osmbc-label-markdown {
  color: white;
  background-color: #5cb85c;
}
.osmbc-label-collect {
  color: white;
  background-color: lightblue;
}
.osmbc-label-no-translation {
  color: white;
  background-color: grey;
}
.osmbc-label-user-full {
  color:white;
  background-color:grey;
}
.osmbc-label-user-guest {
  color:black;
  border-style:solid;
  border-width:1px;
  background-color:lightgrey;
}
.osmbc-label-user-denied {
  color:black;
  border-style:solid;
  background-color:darkgrey;
}
.osmbc-label-user-self {
  color:white;
  background-color:red;
}

/* OSMBC Role/permission markers for user/guest status. */
.osmbc-label-guest-indicator {
  color:white;
  background-color:#e5720d;
}

/* OSMBC Blog-Statuslabels (open/edit/review/closed). */
.osmbc-label-openblog {
  color:white;
  background-color:#D0D0D0  ;
}

.osmbc-label-editblog {
  color:white;
  background-color:#B8B8B8;
}

.osmbc-label-reviewblog {
  color:white;
  background-color:#1a75ff;
}

.osmbc-label-closedblog {
  color:white;
  background-color:#39e600;
}


.osmbc-color-user {
  color:red;
}

.small-margin {
  margin-top: 0px;
  margin-bottom: 0px;
  margin-right: 1px;
  margin-left: 1px;
}

.no-margin {
  margin-top: 0px;
  margin-bottom: 0px !important;
  margin-right: 0px;
  margin-left: 0px;
}

.osmbc-help-text {
  font-style: italic;
  color: var(--bs-secondary-color, #6c757d);
  margin-top: 4px;
  margin-bottom: 4px;
}
.table-header-rotated th.row-header{
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.table-header-rotated td{
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  border-top: 1px solid #dddddd;
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
  vertical-align: middle;
  text-align: center;
}

.table-header-rotated th.rotate-45{
  height: 80px;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  position: relative;
  vertical-align: bottom;
  padding: 0;
  font-size: 12px;
  line-height: 0.8;
}

.table-header-rotated th.rotate-45 > div{
  position: relative;
  top: 0px;
  left: 40px; /* 80 * tan(45) / 2 = 40 where 80 is the height on the cell and 45 is the transform angle*/
  height: 100%;
  -ms-transform:skew(-45deg,0deg);
  -moz-transform:skew(-45deg,0deg);
  -webkit-transform:skew(-45deg,0deg);
  -o-transform:skew(-45deg,0deg);
  transform:skew(-45deg,0deg);
  overflow: hidden;
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
  border-top: 1px solid #dddddd;
}

.table-header-rotated th.rotate-45 span {
  -ms-transform:skew(45deg,0deg) rotate(315deg);
  -moz-transform:skew(45deg,0deg) rotate(315deg);
  -webkit-transform:skew(45deg,0deg) rotate(315deg);
  -o-transform:skew(45deg,0deg) rotate(315deg);
  transform:skew(45deg,0deg) rotate(315deg);
  position: absolute;
  bottom: 30px; /* 40 cos(45) = 28 with an additional 2px margin*/
  left: -25px; /*Because it looked good, but there is probably a mathematical link here as well*/
  display: inline-block;
  width: 85px; /* 80 / cos(45) - 40 cos (45) = 85 where 80 is the height of the cell, 40 the width of the cell and 45 the transform angle*/
  text-align: left;
  /* white-space: nowrap; *//*whether to display in one line or not*/
}

/* This style is used in article editor preview to limit size of pictures */
.preview > p > img {
  max-height: 350px;
  max-width: 300px;
  object-fit: cover;
}
/* This style is used in blog full view to limit size of pictures */
.preview > div.wp-caption > p.wp-caption-text > img {
  max-height: 350px;
  max-width: 300px;
  object-fit: cover;
}
/* This style is used in blog full view to limit size of picture caption */
.preview > div.wp-caption  {
  max-width: 320px;
}

.table-responsive .blog-status-table.blog-status-table-compact {
  width: max-content;
  min-width: 100%;
  margin-bottom: 0.4rem;
  border-collapse: separate;
  border-spacing: 0;
}

.blog-status-table.blog-status-table-compact td {
  padding: 0.16rem 0.24rem;
  line-height: 1.05;
  vertical-align: middle;
  border: 1px solid #e4e9ef;
  background-color: #ffffff;
}

.blog-status-table.blog-status-table-compact tr.blog-status-header td {
  background-color: #f4f7fb;
}

.blog-status-table.blog-status-table-compact td.blog-status-lang-head {
  min-width: 3.2rem;
  white-space: nowrap;
  font-weight: 600;
  background-color: #f7fafc;
}

.blog-status-table.blog-status-table-compact td.blog-status-blog-head {
  min-width: 4.5rem;
  max-width: 6.5rem;
  font-size: 0.85rem;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

.blog-status-table.blog-status-table-compact td.blog-status-blog-head a {
  color: #2a5f93;
  text-decoration: none;
}

.blog-status-table.blog-status-table-compact td.blog-status-blog-head a:hover {
  text-decoration: underline;
}

.blog-status-table.blog-status-table-compact td.blog-status-value {
  min-width: 3rem;
}

.blog-status-table.blog-status-table-compact td.blog-status-value > .badge {
  display: inline-block;
  margin: 0.04rem;
  padding: 0.14em 0.3em;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 0.35rem;
}

.blog-status-table.blog-status-table-compact tr.blog-status-row:hover td {
  background-color: #f9fbff;
}
