.loader-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  
  position: fixed;
  inset: 0;
  
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 2000;
}

.loader-overlay.hidden {
  display: none;
}

.pokeball-loader {
  width: 120px;
  height: 120px;
  position: relative;
  
  background: transparent;
  border: 4px solid #aaa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}


.pokeball-loader::before {
  content: "";
  
  width: calc(100% + 8px);
  height: 4px;
  
  position: absolute;
  top: 50%;
  left: -4px;
  
  background: #aaa;
  transform: translateY(-50%);
}

.pokeball-loader::after {
  content: "";
  
  width: 28px;
  height: 28px;
  
  position: absolute;
  top: 50%;
  left: 50%;
  
  background: transparent;
  border: 4px solid #aaa;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.small-loader {
  position: absolute;
  inset: 0;
  
  background: rgba(0,0,0,0.5);
}

.pokeball-loader.small {
  width: 60px;
  height: 60px;
  
  border-width: 3px;
}

.pokeball-loader.small::before {
  width: calc(100% + 6px);
  height: 3px;
  
  left: -3px;
}

.pokeball-loader.small::after {
  width: 20px;
  height: 20px;
  
  border-width: 3px;
}