header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 25px;
  padding-top: 20px;
  gap: 10px;
  font-size: 30px;
  color: #fff;
  max-width: 400px;
  margin: 0 auto;
}

header img {
  width: 80px;
  height: 80px;
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.loading-spinner {
  width: 140px;
  height: 140px;
  animation: rotate 1s linear infinite;
}

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

#load-more {
  background: #ef1519;
  color: white;
  clear: both;
  display: block;
  margin: 30px auto;
  padding: 10px 20px;
  font-size: 22px;
  border-radius: 12px;
  cursor: pointer;
}

#load-more:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.dialog-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  z-index: 10;
}

#dialog-prev {
  left: 16px;
}

#dialog-next {
  right: 16px;
}

#search-input {
  display: block;
  margin: 0 auto 50px auto;
  width: 100%;
  max-width: 400px;
  padding: 8px 16px;
  font-size: 16px;
  border: 4px solid #000000;
  border-radius: 0;
  text-align: center;
  box-shadow: 4px 4px 0px #000000;
}

#pokemon-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
}

.noscroll {
  overflow: hidden;
  height: 100vh;
}

#no-results-message {
  text-align: center;
  font-size: 1rem;
  color: white;
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

@media (max-width: 545px) {
  header h1 {
    font-size: 36px;
  }

  header img {
    width: 45px;
    height: 45px;
  }

  #search-input {
    width: 70%;
    font-size: 14px;
    padding: 4px 8px;
  }
}
