@import url(imports/variables.css);
@import url(imports/general.css);
@import url(imports/scrolly.css);
@import url(imports/navigation.css);
@import url(imports/about.css);
@import url(imports/sidebar.css);
@import url(imports/filters.css);
@import url(imports/trends.css);
@import url(imports/globe.css);
@import url(imports/balloons.css);
@import url(imports/details.css);
@import url(imports/questions.css);

.byline {
  margin-bottom: 24px;
}

.byline img {
  display: inline-flex;
  height: 1.2em;
  transform: translateY(25%);
}

#stars {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  height: 100vh;
  height: 100lvh;
  /* opacity: 0.25;  */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 1;
}

#stars.hidden {
  display: none;
}

#stars img {
  transform-origin: center center;
  transform: scale(2);
  height: 100vh;
  height: 100lvh;
}

#stars circle {
  fill-opacity: 0.25 !important;
  transition: fill 0.2s, fill-opacity 0.2s;
}

html[data-category="astronomy"][data-step="explore"]
  #stars
  [data-category="astronomy"],
html[data-category="physics-earth"][data-step="explore"]
  #stars
  [data-category="physics-earth"],
html[data-category="biological"][data-step="explore"]
  #stars
  [data-category="biological"],
html[data-category="math-computing"][data-step="explore"]
  #stars
  [data-category="math-computing"],
html[data-category="chemistry"][data-step="explore"]
  #stars
  [data-category="chemistry"] {
  fill-opacity: 1 !important;
}

html[data-country] #stars circle {
  fill: var(--primary) !important;
}

html[data-country="EU"] #stars circle {
  fill: var(--secondary) !important;
}

/* Background Stars */

.bg-star {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  /* transform: translate(-50%, -50%); */
  border-radius: 50%;
  width: 1px;
  aspect-ratio: 1;
  background-image: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0)
  );
}

.bg-star::before {
  content: "";
  width: 25%;
  background: white;
  border-radius: 50%;
  aspect-ratio: 1;
  display: block;
}
#stars::after {
  z-index: 999;
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
  background-image: radial-gradient(
    transparent 0%,
    transparent 25%,
    black 100%
  );
  opacity: 0.25;
}

body::after {
  z-index: 999;
  position: fixed;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
  background-image: url("../media/biased-noise.png");
  background-size: 240px 240px;
  opacity: 0.1;
  image-rendering: pixelated;
}
