@font-face {
  font-family: "Neo Sans Cyr";
  src: url("fonts/NeoSansCyr-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Neo Sans";
  src: url("fonts/NeoSans.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #09101d;
}

.scitopus-graph-page {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.scitopus-graph-frame {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #07111d;
}

.scitopus-graph-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.76);
  font: 400 32px/1.2 "Neo Sans Cyr", Arial, sans-serif;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.scitopus-graph-loading.is-hidden {
  display: none;
}

.scitopus-graph {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  text-rendering: geometricPrecision;
}

.scitopus-export-button {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background: rgba(8, 16, 27, 0.78);
  color: #fff;
  font: 400 14px/1 "Neo Sans Cyr", Arial, sans-serif;
  padding: 10px 14px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, background 160ms ease;
}

.scitopus-graph-page:hover .scitopus-export-button,
.scitopus-export-button:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.scitopus-export-button:hover {
  background: rgba(18, 38, 58, 0.88);
}

@media (hover: none) {
  .scitopus-export-button {
    opacity: 0.72;
    pointer-events: auto;
  }
}
