/* Celkový obal pre loader */
#loader-background {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(252, 226, 189);
  z-index: 9998;
  flex-direction: column; /* Usporiadanie v stĺpci (kruh nad textom) */
  opacity: 0.9; /* Priehľadnosť */
  animation: fadeIn 1.5s; /* Animácia zobrazenia */
}

/* Loader (kruh) == toto som mal prve - staci pridat # namiesto class*/
.loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #8d65c5;
  width: 75px;
  height: 75px;
  animation: spin 2s linear infinite;
  z-index: 9999;
}

/* Nadpis s textom */
#loading-text-1 {
  margin-top: 15px; /* Medzera medzi kruhom a textom */
  font-size: 15px;
  font-weight: bold;
  color: #8d65c5;
  font-family: Arial, sans-serif;
  z-index: 9999;
  animation: blinking 1.0s infinite;
}

/* Animácia točenia */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Animácia blikania */
@keyframes blinking {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Skrytie loaderu po načítaní */
#content {
  display: none;
}


#loader {
  width: 70px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: 
    radial-gradient(farthest-side,#8d65c5 94%,#0000) top/8px 8px no-repeat,
    conic-gradient(#0000 30%,#8d65c5);
  -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
  animation: l13 1s infinite linear;
}
@keyframes l13{ 
  100%{transform: rotate(1turn)}
}