@font-face {
  font-family: "Bitcount Prop Single";
  src: url("/assets/BitcountPropSingle-300-d1d4f117.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}
:root {
  --bg: #14213a;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: aliceblue;
}
body {
  position: relative;
  isolation: isolate;
}
.domov {
  position: relative;
  z-index: 1;
}

.domov h1 {
  font-family: "Bitcount Prop Single", system-ui, sans-serif;
  font-weight: 300;
  text-align: center;
  font-size: 3rem;
  color: hsl(240, 25%, 97%);
  margin: 0;
  background-color: hsla(243, 75%, 89%, 0.074);
  /* background: #0c145e; */
  background: radial-gradient(
    circle,
    rgba(110, 116, 169, 0.228) 0%,
    rgba(156, 176, 187, 0.237) 50%,
    rgba(89, 67, 216, 0.084) 100%
  );
  border-radius: 30px;
  /* padding-top: 30px; */
}

.wrapper {
  max-inline-size: 500px;
  /* padding-inline: 5px;
  padding-block: 10px;
  margin-inline: auto;
  margin-block: 10px; */
  margin-block: 10px;
  margin-inline: auto;
  text-align: center;
  /* background-color: hsla(0, 0%, 77%, 0.059); */
  /* border-radius: 20px; */
  min-height: 300px;
}
.background {
  padding-inline: 10px;
}
img {
  max-inline-size: 100%;
  display: block;
}
.domov img {
  width: 80%;
  height: 80%;
  object-fit: cover;
  image-rendering: pixelated;
  margin-inline: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  /* background:
    radial-gradient(
      circle at 18% 18%,
      rgba(111, 104, 238, 0.38),
      transparent 42%
    ),
    radial-gradient(circle at 82% 24%, rgb(45 212 191 / 0.38), transparent 38%),
    radial-gradient(circle at 55% 82%, rgba(37, 165, 39, 0.22), transparent 80%); */
}

.ambient-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.ambient-light {
  position: absolute;
  width: max(60vw, 60vh);
  height: max(60vw, 60vh);
  border-radius: 50%;
  /* filter: blur(30px); */
  /* background: radial-gradient(
    circle,
    rgba(100, 80, 255, 0.5) 0%,
    rgba(100, 80, 255, 0) 70%
  ); */
}
@media (max-width: 600px) {
  .ambient-light {
    width: max(30vw, 30vh);
    height: max(30vw, 30vh);
    /* filter: blur(50px); */
  }
}

.ambient-light--indigo {
  top: -10%;
  left: -15%;
  background: radial-gradient(
    circle,
    rgba(184, 70, 229, 0.28) 0%,
    rgba(184, 70, 229, 0.18) 25%,
    rgba(184, 70, 229, 0.06) 50%,
    rgba(184, 70, 229, 0) 75%
  );
}

.ambient-light--teal {
  top: -8%;
  right: -15%;
  background: radial-gradient(
    circle,
    rgba(247, 125, 243, 0.18) 0%,
    rgba(247, 125, 243, 0.12) 25%,
    rgba(247, 125, 243, 0.04) 50%,
    rgba(247, 125, 243, 0) 75%
  );
}

.ambient-light--peach {
  bottom: -10%;
  left: 25%;
  background: radial-gradient(
    circle,
    rgba(118, 136, 160, 0.3) 0%,
    rgba(118, 136, 160, 0.18) 25%,
    rgba(118, 136, 160, 0.06) 50%,
    rgba(118, 136, 160, 0) 75%
  );
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  pointer-events: none;

  /* background: white; */
  opacity: 0.05;
  mix-blend-mode: soft-light;

  background: url("/assets/noise-d2f1a40e.webp") repeat;
}
.tree-scene {
  position: relative;
  width: 180px;
  height: 300px;
  margin-inline: auto;
  animation: fade-in 3s;
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.snow-front,
.snow-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.snow-back {
  z-index: 1;
}

.tree {
  position: absolute;
  inset: 0;
  z-index: 2;

  background: url("/assets/sprite-drevo-e25e0ecb.png") no-repeat;
  background-position: 0 0;
  image-rendering: pixelated;
  opacity: 1;
  visibility: visible;

  animation: sway 3.2s steps(6) infinite;
}

.korak {
  position: absolute;

  width: 180px;
  height: 180px;

  left: 50%;
  transform: translateX(-50%);

  background: url("/assets/sprite-korak-2b2fd571.webp") no-repeat;
  image-rendering: pixelated;
  background-size: 1620px auto;

  animation: path 14s steps(8) forwards;
}
@keyframes path {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -1440px 0;
  }
}

.snow-front {
  z-index: 3;
}

.snowflake {
  position: absolute;
  will-change: transform;
  left: 0;
  top: 0;

  border-radius: 50%;
  background: white;

  z-index: 10;
}
@keyframes sway {
  from {
    background-position-x: 0;
  }

  to {
    background-position-x: -1080px;
  }
}

.link {
  position: relative;
  text-decoration: none;
  font-size: 1.6rem;
  color: aliceblue;

  /* margin-left: -20px; */
}
.link2 {
  position: relative;
  text-decoration: none;
  font-size: 1.6rem;
  color: aliceblue;
  width: 180px;
  padding: 10px;
  margin-top: 30px;
  background-color: hsla(243, 75%, 89%, 0.214);
  border-radius: 5px;

  /* margin-left: -20px; */
}
.povezave {
  position: relative;
  margin-top: 30px;
}

.link2:active,
.link2:hover {
  color: rgb(59, 170, 218);
  background-color: hsla(243, 15%, 48%, 0.214);
}

.turbo-progress-bar {
  background-color: rgb(253, 254, 253);
}

/* * {
  filter: none !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
} */

/* * {
  animation: none !important;
  transition: none !important;
} */
