@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/quicksand-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/quicksand-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/quicksand-latin.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: #000;
  color: var(--text-main);
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
}

.backgrounds {
  position: fixed;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: var(--background-overscan);
  height: var(--background-overscan);
  transform: translate(-50%, -50%);
}

.background-item {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity var(--background-fade) ease-in;
}

.background-item.is-active {
  opacity: 1;
}

.overlay {
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--overlay-color);
}

#info-block {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 15px;
}

.community-name {
  margin: 15px 0 10px;
  font-size: 48px;
  font-weight: 300;
  line-height: normal;
  white-space: nowrap;
}

#info-block p {
  margin: 16px 0;
}

.loading-center {
  position: fixed;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: var(--content-width);
  margin: 0;
  padding: 0;
  text-align: center;
  transform: translate(-50%, -50%);
}

.loading-status,
.messages {
  margin: 16px 0;
  min-height: 0;
}

.loading-track {
  width: 100%;
  height: var(--bar-height);
  overflow: hidden;
  border-radius: var(--bar-radius);
  background: var(--track-color);
}

.loading-bar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
  transition: width 0.25s linear;
}

.messages {
  height: 0;
  opacity: 1;
  transition: opacity 1s;
}

@media (max-width: 700px) {
  #info-block {
    right: 15px;
  }

  .community-name {
    overflow: hidden;
    font-size: clamp(27px, 7vw, 48px);
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  .background-item,
  .loading-bar,
  .messages {
    transition-duration: 0.01ms;
  }
}
