.still-loading {
  container-type: inline-size;
}

.still-loading:before {
  content: "";
  display: block;
  position: absolute;
  border: 5px solid var(--bg-grey);
  border-top: 5px solid var(--border-grey);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin_load 2s linear infinite;
}

@container (max-width: 100px) {
  .still-loading:before {
    border-width: 3px;
    width: 20px;
    height: 20px;
  }
}

@keyframes spin_load {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
