:root {
  --anchor-text-color: rgba(255, 114, 0, 1);
  --border-color: #999;
  --border-left: #444;
  --border-right: #151515;
  --box-bg: #f3f3f3;
  --light-border: #dbdbdb;
  --hover: #8282823b;
  --main-background: #fff;
  --main-color-dark: rgba(228, 137, 13, 1);
  --main-color-lighten: rgba(255, 132, 3, 1);
  --main-color: rgba(255, 175, 3, 1);
  --secondary-color-hover: rgba(0, 0, 0, 0.85);
  --secondary-color: rgba(21, 21, 21, 1);
  --secondary-gradient: rgba(68, 68, 68, 1);
  --supress-text-color: #666;
  --text-color: #575757;
  --text-shadow: #000;
  --white-color-hover: rgba(255, 255, 255, 0.2);
  --white-color: white;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@import url("https://fonts.cdnfonts.com/css/roboto");

body {
  background: var(--main-background);
}

body,
a {
  font-family: "Roboto", sans-serif;
  color: var(--text-color);
}

img,
iframe {
  max-width: 100%;
}

a {
  text-decoration: none;
  color: var(--anchor-text-color);
}

input:not([type="radio"]),
textarea,
select {
  outline: none;
  display: block;
  max-width: 100%;
  padding: 5px 10px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--white-color);
  background-clip: padding-box;
  border: 1px solid var(--border-color);
  appearance: none;
  border-radius: 0.25rem;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

button,
.btn {
  padding: 0px 15px;
  font-size: medium;
  cursor: pointer;
  display: grid;
  place-content: center;
}

label {
  font-weight: bold;
}

fieldset {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
}

form,
.grey-box {
  /* margin: 1.5em 0; */
  padding: 10px 20px;
  border: 1px solid var(--light-border);
  border-radius: 5px;
  background: var(--box-bg);
}

header {
  display: grid;
  grid-template-rows: 1fr 15px 15px;
  grid-template-columns: 1fr;
}

footer {
  text-align: center;
  color: var(--supress-text-color);
  text-decoration: none;
  font-size: 11px;
  margin: 10px auto;
}

nav,
button,
.btn {
  background: linear-gradient(
    180deg,
    var(--secondary-color) 0%,
    var(--secondary-gradient) 100%
  );
  border-radius: 5px;
  color: var(--white-color);
  border: 1px solid var(--secondary-color);
  height: 30px;
  line-height: 30px;
}

nav {
  display: grid;
  align-content: center;
  grid-row: 2/3;
  grid-column: 1/2;
  box-shadow: 0px 1px 2px var(--secondary-color);
}

footer a {
  color: var(--supress-text-color);
}

nav ul {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0px, auto));
  justify-content: left;
  padding: 0px 15px;
}

nav li {
  border-left: 1px solid var(--border-left);
  border-right: 1px solid var(--border-right);
  height: 30px;
  display: grid;
  align-content: center;
  padding: 0px 10px;
  overflow: hidden;
}

nav li:hover {
  background: var(--white-color-hover);
}

button:hover,
.btn:hover {
  background: var(--secondary-color-hover);
}

nav li a {
  color: var(--white-color);
  text-shadow: 1px 1px 1px var(--text-shadow);
}

.head-bg {
  /* background: var(--main-color-lighten); */
  background: var(--main-color) url("../img/header.jpg") top repeat-x;
  display: grid;
  min-height: 160px;
  justify-content: center;
  align-content: center;
  border-bottom: var(--text-shadow) solid 1px;
  grid-row: 1/3;
  grid-column: 1/2;
}

.brand-container,
.content-wrapper,
nav {
  width: 95vw;
  max-width: 1200px;
  justify-self: center;
  margin: 0 auto;
}

.content-wrapper {
  padding: 25px 0;
}

.brand-container {
  color: var(--white-color);
  text-shadow: var(--text-shadow) 0 0 2px;
  grid-row: 1/1;
  grid-column: 1/2;
  align-self: center;
}

.input-area {
  margin: 18px 10px 10px 10px;
  display: grid;
  grid-template-columns: 1fr;
}

.input-area input,
.input-area label {
  grid-column: 1/2;
  grid-row: 1/2;
  font-weight: normal;
}

.input-area input + label,
.input-area input:focus + label {
  transform: translateY(-25px);
  transition: all 0.3s ease-in;
  font-size: small;
  color: var(--text-color);
  padding: 10px 0px;
  font-weight: normal;
  opacity: 0.8;
  z-index: 1;
}

.input-area input:placeholder-shown + label {
  transform: none;
  padding: 10px;
  pointer-events: none;
  color: var(--text-color);
  font-weight: normal;
}

.login-box {
  width: 300px;
  margin: 0 auto;
}

.center-box {
  display: grid;
  justify-items: center;
}

.center-box .input-area small {
  justify-self: end;
  margin-top: 5px;
}

.center {
  text-align: center;
}

.center > * {
  margin: 0 auto;
}

.danger {
  color: red;
}

/* new-edit form */

form.new-form {
  margin: 10px;
  padding: 0px;
  background: none;
  border: none;
}

.input-title {
  font-size: 25px;
  width: calc(100% - 20px);
}

/* Tabs */

.tabs {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  grid-auto-flow: column;
  justify-content: left;
  border-left: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-top-left-radius: 5px;
  margin-bottom: -1px;
}

.tabs li {
  text-align: center;
  border: 1px solid var(--border-color);
  border-left: none;
  background: var(--secondary-color);
  cursor: pointer;
  color: var(--anchor-text-color);
  height: 31px;
  line-height: 31px;
  font-weight: bold;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.tabs li div {
  border: 1px solid var(--white-color);
  border-bottom: none;
  overflow: hidden;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  overflow: hidden;
  height: 31px;
}

.tabs li.active,
.tabs li.active > div {
  background: var(--white-color);
  border-bottom: 1px solid var(--white-color);
}

.tab_container {
  display: grid;
  grid-gap: 10px;
  border: 1px solid var(--border-color);
  /* border-top: none; */
  background: var(--white-color);
  padding: 15px;
  word-wrap: break-word;
  word-break: break-all;
}

.show_container {
  border: 1px solid var(--border-color);
  padding: 15px;
}

.tab_container button {
  justify-self: center;
}

.tab_content {
  display: none;
}

.tab_content.active {
  display: block;
  animation: fade-in 0.5s;
}

.tab_content input {
  justify-self: center;
}

.tab_content textarea {
  font-family: "Roboto", sans-serif;
  width: calc(100% - 30px);
  min-height: 50vh;
  padding: 10px;
}

.bbuttons {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.bbuttons .btn {
  margin-bottom: 5px;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.bottom-badge {
  list-style-type: none;
  display: grid;
  grid-gap: 5px;
  padding: 10px;
  border: 1px solid var(--border-color);
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
}

/* Home */

.content-home {
  display: grid;
  justify-items: center;
  grid-gap: 30px;
}

.paste-list {
  list-style-type: none;
  border: 1px solid var(--light-border);
  min-width: 300px;
}

.paste-list li {
  border-top: 1px solid var(--light-border);
  font-size: 25px;
  padding: 10px 20px;
  font-weight: 500;
}

.paste-list li:nth-child(1) {
  border-top: none;
}

/* Pagination */

.pagination {
  list-style-type: none;
  display: grid;
  grid-auto-flow: column;
  grid-gap: 5px;
  text-align: center;
}

.pagination.right {
  justify-content: right;
}

.pagination.left {
  justify-content: left;
}

.pagination a {
  /* border: 1px solid var(--white-color); */
  text-align: center;
  padding: 10px;
  /* border-radius: 5px; */
  font-weight: 300;
  cursor: pointer;
}

.paginate_button {
  border: 1px solid var(--border-color);
  border-radius: 3px;
}

.pagination .active a,
.pagination .current a,
.pagination .active,
.pagination .current {
  font-weight: bold;
}

/* Config */

.config-container {
  display: grid;
  grid-template-columns: 150px 1fr;
  border: 1px solid var(--border-color);
  border-radius: 5px;
}

.config-container > form {
  background: var(--main-background);
  border: none;
}

.config-container aside {
  border-right: 1px solid var(--border-color);
}

.config-container aside ul {
  list-style-type: none;
  display: grid;
}

.config-container aside ul li {
  display: grid;
  border-bottom: 1px solid var(--border-color);
}

.config-container aside ul li:hover {
  background: var(--hover);
}

.config-container aside ul li a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 5px 10px;
}

/* Ads */

.ad-container {
  margin: 10px 0px;
  display: grid;
  justify-items: center;
}

/* Botón Jdownloader y Bloqueo VIP */

.jdbtn {
  height: 35px;
  width: 300px;
  border: 1px solid;
  border: 1px solid var(--main-color-dark) !important;
  color: var(--main-color-dark) !important;
  background: var(--box-bg) !important;
  cursor: pointer;
}

.jd {
  width: 300px;
  background: none;
  margin-top: 10px;
}

.vip {
  border: 1px solid var(--light-border);
  border-radius: 5px;
  padding: 5px;
  background: var(--box-bg);
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  justify-items: center;
  align-items: center;
}

/* Tablas (Nativetables) */

table,
th,
td {
  border: none;
}

table {
  width: 100%;
  display: table;
  border-collapse: collapse;
  border-spacing: 0;
}

table.striped tr {
  border-bottom: none;
}

table.striped > tbody > tr:nth-child(odd) {
  background-color: rgba(242, 242, 242, 0.5);
}

table.striped > tbody > tr > td {
  border-radius: 0;
}

table.highlight > tbody > tr {
  -webkit-transition: background-color 0.25s ease;
  transition: background-color 0.25s ease;
}

table.highlight > tbody > tr:hover {
  background-color: rgba(242, 242, 242, 0.5);
}

table.centered thead tr th,
table.centered tbody tr td {
  text-align: center;
}

tr {
  border-bottom: 1px solid var(--light-border);
}

td,
th {
  padding: 15px 5px;
  display: table-cell;
  text-align: left;
  vertical-align: middle;
  border-radius: 2px;
}

.left {
  justify-self: start;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 5px;
}

.right {
  justify-self: end;
}

.native-table-head,
.native-table-footer {
  display: grid;
  grid-template-columns: auto auto;
}

.native-table-head {
  padding: 0px !important;
  align-items: center;
}

.native-table-head #search {
  width: 100%;
}

.native-table-footer {
  align-items: baseline;
}

#table {
  padding: 10px 20px;
  border-radius: 5px;
  overflow-x: scroll;
}

.list-container {
  display: grid;
  padding: 30px 10px;
}

/* Fix Swal buttons */

.swal2-actions button {
  height: auto;
}

/* Mobile */

@media (max-width: 768px) {
  .config-container {
    grid-template-columns: 1fr;
  }

  .config-container aside {
    border-right: none;
    transition: 0.3s;
    height: 32px;
    overflow: hidden;
  }

  .config-container aside.show {
    height: 100% !important;
  }

  .config-container aside.active {
    display: block;
  }

  .config-container aside ul {
    border-bottom: 1px solid var(--border-color);
  }

  .config-container aside ul li:last-child {
    border-bottom: none;
  }

  .hamburger-menu-button {
    display: block;
    font-size: 25px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    padding: 0px 5px;
    cursor: pointer;
    background: var(--box-bg);
    border-radius: 5px 5px 0px 0px;
    height: 32px;
  }
}

@media (min-width: 769px) {
  .hamburger-menu-button {
    display: none;
  }
}
