:root {
  --font-family: system-ui, -apple-system, serif;
  --color-action: #00c25a;
  --panel-bgr: rgb(137 173 193 / 13%);
}

body {
  background: linear-gradient(
    194deg,
    rgb(7 6 4) 0%,
    rgb(25 23 51) 47%,
    rgb(99 42 37) 100%
  );
  /* background-size: contain; */
}

h4 {
  background: -webkit-linear-gradient(-70deg, #9fb3bb 0%, #2aabd4 100%);
  -webkit-background-clip: text;
  /* background-clip: text; */
  -webkit-text-fill-color: rgba(0, 0, 0, 0);
  -webkit-box-decoration-break: clone;
}

hr {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 3em 0;
}
dl {
  display: flex;
  flex-flow: column wrap;
  max-height: 3em;
}
dt {
  flex-basis: 20%;
  padding: 2px 4px;
  background: #333;
  text-align: right;
  color: #fff;
}
dd {
  flex-basis: 70%;
  flex-grow: 1;
  margin: 0;
  padding: 2px 4px;
  border-bottom: 1px solid #333;
}

.grid {
  display: grid;
  grid-auto-flow: column;
  grid-column-gap: calc(20px * 2);
  grid-template-rows: auto;
}

blockquote {
  border-left-color: #764462;
}
.center {
  text-align: center;
}

.tag {
  display: inline-block;
  padding: 0.5em 1em;
  border-radius: 0.5em;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0 0.5em;
  /* text-transform: uppercase; */
}

button.warning {
  background-color: rgb(141, 138, 125);
  border: 0;
}

.btn-small {
  padding: 0.5em 1em;
  border-radius: 0.5em;
  /* background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5); */
  font-size: 0.7em;
  /* font-weight: 600; */
  letter-spacing: 0.05em;
  width: auto;
  /* margin: 0 0.5em; */
  /* text-transform: uppercase; */
}

.btn-action {
  background: #4fa777;
  color: white;
  border: 0;
}
/* .CodeMirror {
  resize: vertical;
  overflow: auto !important;
  padding: 10px;
} */

.danger {
  background-color: rgb(134 125 102);
  border-color: rgb(123 114 88);
}

.secondary {
  background-color: transparent;
  width: fit-content;
}

li {
  margin: 1.5em 0;
}

li * {
  /* margin: 0.3em 0; */
}

.share-buttons {
  margin-top: 3em;
  width: 400px;
}

.smallBtn {
  background: transparent;
  text-decoration: none;
}

[role='search'] {
  background-image: var(--icon-search);
  background-size: 1rem auto;
  background-repeat: no-repeat;
  padding: 0 1em;
}

#gcf {
  zoom: 1.5;
}

#good:checked {
  background-color: #fad606;
  border-color: #6e6e6e;
}

#fast:checked {
  background-color: #ed5656;
  border-color: #6e6e6e;
}

#cheap:checked {
  background-color: #3787ef;
  border-color: #6e6e6e;
}

.badge {
  background: #405f7140;
  color: #895170;
  padding: 0.4em 0.7em;
  border-radius: 0.5em;
  font-size: 0.7em;
  margin: 0 0.5em;
}

.neo4jd3-info {
  position: absolute;
}

.panel {
  border-radius: 0.5em;
  background: rgb(137 173 193 / 13%);
  h5 {
    font-size: 1.2em;
  }
  padding: 1em;
  margin-bottom: 2em;
  p {
    margin-bottom: 0.8em;
  }
}

.info-panel img {
  height: 50px;
  border-radius: 0.5em;
}

.graph-head {
  display: flex;
  flex-direction: row;
}

.graph-head {
  border-bottom: 1px solid #051a2e;
  .thumb {
    text-align: left;
    /* margin-right: 0.5em; */
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
    height: 3em;
    width: 3em;
    margin-right: 0.5em;
    margin-bottom: 0.5em;
    border: 4px solid #4a4c4c;
    background: aqua;
  }
  h4 {
    font-size: 0.8em;
    margin: 0;
    color: blue;
  }
  a {
    /* text-decoration: underline; */
  }
  summary {
    font-size: 0.7em;
    margin: 0.5em 0;
    span {
      font-weight: bold;
      padding-right: 0.5em;
    }
  }

  img {
    /* max-height: 300px; */
    object-fit: scale-down;
  }
  display: flex;
}

.graph-head.selected {
  background-color: var(--panel-bgr);
}

.highlight {
  padding: 0.5em;
  background: #1a1b1c;
  border-radius: 0.5em;
  border: 0;
}

/* Graph */

.node.node-highlighted .ring {
  filter: alpha(opacity=50);
  opacity: 0.5;
  stroke: #888;
  stroke-width: 12px;
}
.node .outline {
  cursor: pointer;
  fill: #a5abb6;
  pointer-events: all;
  stroke: #9aa1ac;
  stroke-width: 2px;
}
.node .ring {
  fill: none;
  filter: alpha(opacity=0);
  opacity: 0;
  stroke: #6ac6ff;
  stroke-width: 8px;
}
.node.selected .ring,
.node:hover .ring {
  filter: alpha(opacity=30);
  opacity: 0.3;
}
.relationship {
  cursor: default;
}
.relationship line {
  stroke: #aaa;
}
.relationship .outline {
  cursor: default;
}
.relationship .overlay {
  cursor: default;
  fill: #6ac6ff;
  filter: alpha(opacity=0);
  opacity: 0;
}
.relationship text {
  cursor: default;
  fill: #fff;
}
.relationship.selected .overlay,
.relationship:hover .overlay {
  filter: alpha(opacity=30);
  opacity: 0.3;
}
svg {
  /* cursor: move; */
}

.relationships {
  margin-bottom: 1em;
  p {
    background: #83838347;
    font-size: 0.6em;
    padding: 0.3em 1em;
    border-radius: 0.5em;
  }
  strong {
    color: white;
  }
  a {
    color: #6ec4e0;
  }
}

.result-list {
  padding: 0;
}

.result-item {
  position: relative;
  list-style: none;
  font-size: 0.7em;
  a.link {
    color: #839798;
  }
  a {
    text-align: left;
  }
  h3 {
    font-size: 1.3em;
    margin: 0;
  }
  p {
    font-size: 1em;
    text-align: justify;
  }
}

.result-item:hover {
  background-color: black;
}

.getUrl {
  position: absolute;
  top: 0;
  right: 0;
  color: white;
  display: none;
  background-color: #c75835fc;
  padding: 10px;
  border-radius: 0.5em;
}
.result-item:hover .getUrl {
  display: block;
}

.favicon {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 0.3em;
  background-color: white;
  display: inline-block;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  padding: 6px;
}

.infobox {
  h3 {
    font-size: 1.1em;
    margin-bottom: 1em;
  }
  p {
    font-size: 0.7em;
  }
  strong {
    color: #d7d2d2;
    padding-right: 0.5em;
  }
}

.add-to-node {
  width: auto;
  float: right;
  font-size: 0.7em;
  position: relative;
  padding: 0.3em 0.6em;
  margin-right: -1.3em;
  margin-top: -1.3em;
  border-radius: 0;
}
.profiles {
  font-size: .7rem;
  a {
    margin-right: 0.7em;
    line-height: 2.3em;
    white-space: nowrap;

    :hover {
      opacity: 1;
    }
  }
  img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 0.3em;
    background-color: white;
    display: inline-block;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    padding: 3px;
    opacity: 0.6;
  }
}

.dddd {
  background-image: linear-gradient(
    120deg,
    #fefd82 0%,
    #10a804 29.94%,
    #8fffce 66.98%,
    #99f7ff 100%
  );
}

.query_graph {
}

.node-summary {
  text-align: center;
  img {
    background-color: white;
    margin: 0.6em 0;
    max-height: 300px;
  }
  p {
    text-align: left;
    font-size: 0.8em;
  }
}

.prompter {
  display: flex;
  flex-direction: row;
  gap: 1em;
}

.actions {
  display: flex;
  flex-direction: row;
  padding: 0;
  align-content: flex-start;
  gap: 1em;
  button {
    background-color: #3c5e7847;
    border-color: #394a57;
    color: #91b8bf;
    width: 100%;
    height: 4.5em;
  }
}

.Toastify__toast-container {
  font-family: 'Arial', sans-serif;
}

/* Style for the toasts */
.Toastify__toast {
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Specific styles for success toasts */
.Toastify__toast--success {
  background-color: #4caf50;
  color: white;
}

/* Specific styles for error toasts */
.Toastify__toast--error {
  background-color: #f44336;
  color: white;
}

/* Specific styles for info toasts */
.Toastify__toast--info {
  background-color: #2196f3;
  color: white;
}

/* Specific styles for warning toasts */
.Toastify__toast--warning {
  background-color: #ff9800;
  color: white;
}

/* Close button style */
.Toastify__close-button {
  color: white;
  opacity: 0.7;
}

.Toastify__close-button:hover,
.Toastify__close-button:focus {
  opacity: 1;
}

.node_list_actions {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 1em;
  border-bottom: 1px solid #707e8b;
  padding-left: 0.5em;
}
.node_list {
  max-height: 900px;
  overflow: auto;
  padding: 0;
  li {
    padding: 0.5em;
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
  }
}
.add_property {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 0.5em;
  gap: 0.2em;
  input {
    font-size: 0.7em;
    height: 2em !important;
    border-radius: 0;
  }
  input[name='name'] {
    width: 30%;
  }
  button {
    font-size: 0.8em;
    background: #111920;
    color: white;
    border-radius: 0;
    height: 2em !important;
    line-height: 1em !important;
    width: 3.2em !important;
    text-align: center;
    padding: 0;
    border-radius: 1.5em;
    background-color: var(--primary);
  }
}

#new_node {
  footer {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
    justify-content: space-between;
    gap: 0.5em;
  }
}

.search-bar {
  margin-bottom: 1em;
  position: relative;
  display: flex;
  flex-direction: row;
  input {
    width: 100%;
    padding: 0.5em;
    border-radius: 0.5em;
    border: 0;
    background: #1a1b1c;
    color: white;
  }
  button {
    position: absolute;
    width: auto;
    right: 0;
    border-radius: 2em;
  }
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.loader {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.toast {
  width: 400px;
  padding: 1em;
  text-align: left;
  border-radius: 0.5em;
  background-color: #ffffff1f;
}
.spinner {
  display: flex;
  align-items: center;
  font-size: 0.8em;
  > img {
    color: #cb7979;
    animation: rotate 4s linear infinite;
    margin-right: 1em;
  }
}

.web_preview {
  margin-top: 1em;
  img {
    width: 100%;
  }
  h4 {
    font-size: 0.9em;
    margin-top: 0.7em;
    margin-bottom: 0.5em;
    text-align: center;
  }
  summary {
    font-size: 0.8em;
  }
}

dialog > article {
  position: relative;
  overflow: hidden;
}

.btn-close {
  width: auto;
  color: rgb(119, 119, 143);
  font-size: 0.8em;
  /* margin-top: -3.5em; */
  position: absolute;
  background: transparent;
  border: 0;
  color: #2595c1;
  right: 0;
  top: 0;
  padding: 0;
  :hover {
    color: #a4bfc9;
  }
}

.btn-rec {
  padding: .6em;
  border-radius: 2em;
}

h2.source {
  font-size: 1.1em;
  text-align: lter;
  margin-top: 1em;
}

[aria-busy]:not(input):not(select):not(textarea)::before {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  border: 0.1875em solid currentColor;
  border-radius: 1em;
  border-right-color: transparent;
  content: '';
  vertical-align: text-bottom;
  vertical-align: -0.125em;
  -webkit-animation: spinner 0.75s linear infinite;
  animation: spinner 0.75s linear infinite;
  opacity: var(--loading-spinner-opacity);
}

#respond {
  article {
    margin: 0;
  }
  h3,
  h4 {
    font-size: 0.9em;
    margin: 0.8em 0;
  }
  p,
  li {
    font-size: 0.8em;
    margin: 0.7em 0;
  }
  .content {
    max-height: 600px;
    overflow: auto;
    padding: 0;
  }
}

#note {
  article {
    padding: 2em;
  }
  div {
    display: flex;
    justify-content: flex-end;
  }
  textarea {
    width: 30em;
    height: 200px;
    padding: 0.5em;
    margin: 0.5em 0;
  }
}

label.rec {
  display: flex;
  align-items: center;
  span {
    padding-right: .5em;
  }
}