* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: black;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #DD092F;
  min-height: 100vh;
}

.bg-body-tertiary {
  background-color: #DD092F !important;
  max-width: 1440px;
  margin:auto ;
}

nav img {
  height: 60px;
  width: 200px;
}

.hero-image {
  display: block;
  margin: 150px auto 0 auto;
  height: 150px;
  max-width: 450px;
  width: 100%;
}

main form {
  width: 90%;
  max-width: 600px;
  margin: 0 auto 0 auto;
}

main form svg path {
  color: white;
}

#pokedex-render-container {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  max-width: 1440px;
  margin: 40px auto 0;
  padding: 0 20px;
  gap: 20px;
}

.pokemon-render-result-container {
  padding-top: 40px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 0.5 1 0%;
  margin: 60px 16px 16px;
  border-width: 2px;
  border-style: solid;
  border-color: white;
  border-image: initial;
  flex: 0 1 calc(20% - 16px);
  min-width: 200px;
  max-width: 280px;
}

.search-pokemon-image {
  position: absolute;
  top: -55px;
  transition: all 0.3s ease;
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  cursor: pointer;
}

.search-pokemon-image:hover {
  transform: translateY(-8px) scale(1.15) rotate(5deg);
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.7));
}

.pokemon-render-result-container:hover {
  transform: translateY(-5px) scale(1.1);
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4));
}

.type-container {
  font-weight: 600;
  font-size: 14px;
  opacity: 0.8;
  border-radius: 5px;
  padding: 3px 7px;
  margin: 10px 5px 5px;
}

.position-btn-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 16px auto;
  padding: 0 20px;
}

.btn-navigation {
  width: 150px;
  transition: all 0.3s ease;
  border-radius: 25px;
  font-weight: 600;
}

.btn-navigation:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.5), 0 0 25px rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.3) !important;
  border-color: white !important;
  color: white !important;
}

footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer_content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

footer li {
  color: white;
  list-style-type: none;
  text-align: center;
}

footer li a {
text-decoration: none;
color: white;
}

#loading-spinner {
  display: none;
  padding: 40px 0;
  background: rgba(221, 9, 47, 0.9);
  border-radius: 15px;
  margin: 40px auto;
  max-width: 400px;
  backdrop-filter: blur(5px);
  border: 2px solid white;
}

#loading-spinner.show {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

#pokedex-render-container.loading {
  opacity: 0.3;
  pointer-events: none;
}

.spinner-text {
  color: white;
  font-weight: bold;
  margin-top: 15px;
  font-size: 16px;
}

.no-results {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  padding: 20px;
  color: white;
}