header {
    background-color: rgb(19, 53, 98);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 8px;
    height: 80px;
    margin: 0 auto; 
    width: 100%; 
}

  .header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 24px;
    color: white;
  }

  .search-container {
    margin-right: 10px;
    display: inline-block;
    width: 250px;
    height: 30px;
    border-radius: 5px;
    text-align: center;
    border: 2px solid black;
    text-align: center;
  }


  .pokeball {
    width: 40px;
    height: 40px;
  }

  main {
    display: flex;
    flex-direction: column;
    background-color: hsl(197, 60%, 18%);
    flex: 1;
    align-items: center; 
    position: relative;
  }

  .main-content {
    width: 100%;
    max-width: 1600px;
    background-color: hsl(197, 60%, 18%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    flex: 1;
  }

  .loading-button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  #pokemon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#overlay-close-button {
    height: 40px;
    width: 40px;
    margin-top: 10px;
    margin-left: 400px;
    cursor: pointer;
}

.loading-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 50%;
}

.loading-spinner img {
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.no-search-results {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-top: 20px;
  color: red;
}


