/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
  padding-top: 0;
  padding-bottom: 0;
  color: #5a5a5a;
  background-color: #dddddd;
  /*background-image: url("images/back_plug.jpg");*/
  /*background-attachment: fixed;*/
}

footer {
  background-color: #343a40;
  color: white;
  margin: 0;
  padding: 2rem;
}

.table-responsive {
  overflow-y: visible !important;
}

/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  margin-top: 15px;
  margin-bottom: 15px;
}

.carousel-caption {
  bottom: 3rem;
  z-index: 10;
  padding: 1em;
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-caption p {
  margin: 0;
}

.carousel-item {
  background-color: #777;
}

.carousel-item > a > img, .carousel-item > img {
  width: 100%;
}

.jumbotron {
  background-color: #343a40;
  color: white;
  margin: 0;
}

.btn {
  margin: 0.5rem;
}

#col_select_host > .bootstrap-select > .btn {
  margin: 0rem;
}

/* MARKETING CONTENT
-------------------------------------------------- */

.container {
  background-color: white;
  padding: 1rem;
}

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}
.marketing h2 {
  font-weight: 400;
}
.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem;
}


/* Featurettes
------------------------- */

.featurette-divider {
  margin: 3rem 0; /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
.featurette-heading {
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.05rem;
}

.featurette-image {
  border-radius: 5px;
}

.xicon {
  font-size: 24pt;
  margin: .5rem;
}


.fixed_height_dropdown
{
  height: 350px;
  overflow-y: auto;
}

#wikisearchresults pre {
  white-space: pre-wrap;
}

#wikisearchresults pre:hover {
  background-color: #f8f8f8;
}


#wiki blockquote {
  border-right: 0pt;
  border-left: 3pt;
  border-top: 0pt;
  border-bottom: 0pt;
  border-color: #00DFFF;
  border-style: solid;
  padding: 0.5em;
  background-color: #C2F2FF;
}

#wiki code {
  background-color: #4d4d4d;
  border-radius: 3px;
  color: white;
  padding: 0.25em;
  font-family:monospace;
}

#wiki pre {
  background-color: #656565;
  border-radius: 3px;
  color: white;
  padding: 0.5em;
  background-image: linear-gradient(45deg, #4d4d4d 25%, #595959 25%, #595959 50%, #4d4d4d 50%, #4d4d4d 75%, #595959 75%, #595959 100%);
  background-size: 10px 10px;
}

#wiki pre > code {
  font-family:monospace;
  padding: 0;
  background-color: transparent; 
}

#wiki :is(h1, h2, h3, h4, h5, h6) {
  color: #008FA3;
}

#wiki :is(p, ul, ol, pre, hr) + :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 2em;
}


mark { background-color: #feff9c; }

table.diff {
  margin: 1em;
  background-color: white;
}

td.diff_header {
  padding-left: 3pt;
  padding-right: 3pt;
}

span.diff_add {
  color: green;
  background-color: lightgreen;
}

span.diff_sub {
  color: red;
  background-color: pink;
}

span.diff_chg {
  color: orange;
  background-color: lightyellow;
}

/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .carousel-caption p {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 2rem;
  }
}


/* un arreglo que viene de aqui para drop down menus https://jsfiddle.net/djibe89/ja719k3u/ */
.enable-overflow {
  overflow-x: visible !important;
  overflow-y: visible !important;
}

button:not(.collapsed) span.rotate-icon {
  transform: rotate(180deg);
  display: inline-block;
}


/* para imagenes del wiki */
#wiki p > img {
  max-width: 100%;
}

#wiki p:has(img) {
  display: flex;
  justify-content: center;
}

/*
  forzar la imagen de error en wiki siempre 100px aunque la imagen es mas grande
  esto hace que si tiene que escalar la imagen no acaba tan borrosa
*/
img[src$="error-image.png"] {
  width: 100px;
  height: 100px;
}

.note-success {
  background-color: #c1f9bf;
}

.note-danger {
  background-color: #f9bfbf;
}

.note-warning {
  background-color: #dbbff9;
}

.note-info {
  background-color: #bff3f9;
}

.note-primary {
  background-color: #f9f9bf;
}

.editable_note {
  color: black;
  border-color: transparent;
  border-width: 1px;
  border-radius: 3px;
  border-style: solid;
  cursor: pointer;
  padding: 0.5rem;
}

.editable_note:hover {
  border-color: grey;
  border-style: dashed;
}

.editable_note p {
  margin: 0px;
}

.imgpreview {
  display: none;
  position: absolute;
  width: 300px;
  max-width: none !important;
  transform: translateY(-50%);
  top: 50%;
  z-index: 9999;
  pointer-events: none;
}

a:hover > .imgpreview {
  display: block;
}
