html, body {
  font-family: sans-serif;
  margin: 0;
}

html {
  scrollbar-color: silver transparent;
}

strong {
  color: black;
}

body.embed strong {
  color: dodgerblue;
}

body.embed {
  color: white;
  background-color: #1e1e1e;
}

body.embed input,
body.embed textarea {
  color: white;
}

body.embed .no-embed {
  display: none;
}

/** public *************************************/
/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}
a {
  text-decoration: none;
}
/* Header */
.public header h1 {
  font-size: 24px;
}
/* Hero Section */
.public .hero {
  background: url('img/hero2.jpg') no-repeat center center/cover;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}
.public .hero h2 {
  font-size: 48px;
  margin-bottom: 20px;
}
.public .hero p {
  font-size: 20px;
  margin-bottom: 30px;
  text-align: center;
}
.public .cta {
  background-color: #ff9900;
  color: #fff;
  padding: 15px 30px;
  font-size: 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
}
.public .cta:hover {
  background-color: #e88e00;
}
/* Secciones generales */
.public section {
  padding: 60px 20px;
}
.public .container {
  max-width: 900px;
  margin: 0 auto;
}
.public section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  text-align: center;
}
.public section p {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: justify;
  line-height: 1.5;
}
/* Estilos específicos para cada sección */
.public .motivation {
  background-color: #f4f4f4;
}
.public .overview {
  background-color: #fff;
}
.public .performance {
  background-color: #f4f4f4;
}
/* Footer */
.public footer {
  background-color: #232f3e;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/** link *************************************/
.link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.link:hover {
  color: dodgerblue;
  text-decoration: underline;
}

/** icons ************************************/
.icon-database {
  height: 28px;
  width: 28px;
  display: inline-block;
  float: left;
  margin: 0;
  background: url('img/icon-database.svg') center center no-repeat;
  background-size: contain;
  filter: contrast(0.5);
}

.icon-collection {
  height: 28px;
  width: 28px;
  display: inline-block;
  float: left;
  margin: 0;
  background: url('img/icon-collection.svg') center center no-repeat;
  background-size: contain;
  filter: contrast(0.5);
}

/** list ************************************/
.list {

}

.list > .list-item {
  color: inherit;
  text-decoration: none;
  display: block;
  border: solid gray 1px;
  border-radius: 3px;
  padding: 4px;
  margin: 4px;
  cursor: pointer;
}

.list > .list-item:hover {
  color: dodgerblue;
  border-color: dodgerblue;
  box-shadow: 0 0 4px;
}

/** button ************************************/
.button {
  display: inline-block;
  color: inherit;
  background-color: transparent;
  border: solid 1px;
  padding: 8px 32px;
  margin: 0;
  font-weight: bold;
  border-radius: 3px;
  text-decoration: none;
}

.button:hover {
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
  cursor: pointer;
}

.button-small {
  padding: 8px;
  font-size: 80%;
}

.button-white {
  color: silver;
  border-color: silver;
  background-color: white;
}

.button-white:hover {
  color: #333333;
  border-color: #333333;
}

.button-red {
  color: red;
}

.button-red:hover {
  background-color: rgba(255, 0, 0, 0.2);
}

.button-blue {
  color: dodgerblue;
}

.button-blue:hover {
  background-color: rgba(30, 144, 255, 0.2);
}

.button-noborder {
  border: 0;
}

.button-action {
  color: white;
  background-color: #3C64B1;
}

.button:disabled {
  opacity: 0.5;
  border-width: 1px;
  padding: 8px 32px;
  background-color: transparent;
  cursor: inherit;
}

.buttons  {
  padding: 16px 4px;
  text-align: center;
}

.buttons > * {
  vertical-align: top;
}

/** inputs ********************************************************************/
.pretty-input {
  min-height: 29px;
  font-family: monospace;
  padding: 6px 4px;
  background-color: transparent;
  border-radius: 3px;
  border: solid silver 1px;
  resize: vertical;
}

.embed .pretty-input {
  color: white;
  background-color: transparent;
}

/** outputs */
.pretty-output {
  min-height: 29px;
  font-family: monospace;
  padding: 12px 8px;
  border-radius: 3px;
  border: solid silver 1px;
}

.pretty-output.error {
  color: red;
  border-color: red;
  background-color: rgba(255,0,0,0.2);
}

/** page: collection **********************************************************/
#page-collection {

}

#page-collection .navigation {
  display: block;
  border-bottom: solid silver 0px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  position: sticky;
  top: 0;
  background-color: white;
}

#page-collection .cooltable table{
  width: 100%;
  max-width: 100%;
  border-spacing: 1px;
  border-collapse: collapse;
}

#page-collection .cooltable thead {
  font-weight: bold;
  position: sticky;
  top: 46px;
  color: white;
  background-color: #1e90ffa3;
  backdrop-filter: blur(2px);
}

#page-collection .cooltable thead th {
  padding: 4px 8px;
}

#page-collection .row a {
  cursor: pointer;
  color:dodgerblue;
}

#page-collection .row a:hover {
  color: orange;
}

#page-collection .buttons {
  position: sticky;
  bottom: 0;
  background-color: rgb(255,255,255,0.58);
  backdrop-filter: blur(2px);
}

@keyframes go-out {
  to {
    opacity: 0;
    display: none;
    /*margin-left: 100vw;*/
  }
}

#page-collection .row {
  /*overflow: hidden;*/
  /*text-overflow: ellipsis;*/
  white-space: nowrap;
  xdisplay: block;
}

#page-collection .row:hover {
  background-color: rgba(240,240,255);
}

#page-collection .row .td-buttons {
  text-align: center;
}

#page-collection .row .td-buttons span {
  display: none;
  cursor: pointer;
}

#page-collection .row:hover .td-buttons span {
  display: inline-block;
}

#page-collection .row .td-json {
  font-family: monospace;
  font-size: 16px;
}

#page-collection .row-buttons {
  padding: 2px;
  float: left;
  display: none;
  cursor: pointer;
}

#page-collection .row.pretty .row-buttons,
#page-collection .row:hover .row-buttons {
  display: block;
}

#page-collection .row-json {
  font-family: monospace;
  margin-left: 50px;
  padding: 4px;
  /*border-top: solid .5px #333;*/
  border-bottom: solid 1px #333;
  background-color: rgba(255,255,255,0.01);
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

#page-collection .row.pretty .row-json {
  white-space: pre-wrap;
  cursor: auto;
}

#page-collection .row:hover .row-json {
  /*box-shadow: 0 0 2px white;*/
  background-color: rgba(128,128,128,0.3);
  /*background-color: #303030;*/
}

#page-collection .edit-row {
  z-index: 99;
  position: fixed;
  top:0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
}
/*#page-collection .row:nth-child(odd) .row-json {*/
/*  background-color: rgba(128,128,128,0.3);*/
/*}*/

body.embed #page-collection .edit-row {
  background-color: rgba(0,0,0, 0.9);
}

#page-collection .row.deleted {
  animation: go-out .3s forwards;
}

#page-collection .redborder {
  box-shadow: 0 0 4px red;
  background-color: rgba(255,0,0,0.1);
}

/** source: https://cssloaders.github.io/ *************************************/
.loader:before {
  content: '';
  width: 24px;
  height: 24px;
  border: 4px solid dodgerblue;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  vertical-align: middle;
  margin-right: 12px;
}

.loader.small:before {
  width: 12px;
  height: 12px;
  margin-right: 0;
  border-width: 3px;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (prefers-color-scheme: dark) {

  body {
    color: #F0F0F0;
    background-color: black;
  }

  strong {
    color: white;
  }

  .top-frame {
    color: white;
    background-color: #1e2740 !important;
  }

  .pretty-input {
    color: white;
  }

  #page-collection .navigation {
    color: silver;
    background-color: #1e1e1e;
  }

  #page-collection .row:hover {
    background-color:#1f264b;
  }

  #page-collection .row {
    color: silver;
  }

  #page-collection .row a {
    cursor: pointer;
    color:#4baaf5;
  }

  #page-collection .row a:hover {
    color: orange;
  }

  #page-collection .cooltable thead {
    color: silver;
    background-color: rgba(30, 30, 30, 0.58);
  }

  #page-collection .buttons {
    background-color: rgb(0, 0, 0, 0.58);
  }

  #page-collection .edit-row {
    background-color: rgba(0,0,0,0.9);
  }

}

