body {
  font-family: 'Rubik', sans-serif;
  background: #f2f2f2;
  color: #333;
  text-align:center;
  margin: auto;
  padding-top: 70px;
}

.navbar {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Ensure grid columns have side spacing */
.pokemon-list > [class*='col-'] {
  padding-left: 10px;
  padding-right: 10px;
}

/* Add extra breathing room from screen edges if needed */
.pokemon-list {
  padding-left: 10px;  /* adjust as needed */
  padding-right: 10px;
  margin-top: 2rem; /* space below navbar */
}

/* Card appearance */
.pokemon-list .card {
  max-width: 200px;
  margin: 0 auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pokemon-list .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

/* Image inside card */
.pokemon-list .card img {
  max-height: 120px;
  object-fit: contain;
}

#pokemonModalLabel {
  text-transform: capitalize;
  text-align: center;
  width: 100%;
}

.type-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px; /* thin color strip */
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  z-index: 2;
}


.loading-message {
  text-align: center;
  font-weight: bold;
  padding: 10px;
  color: #555;
  font-size: 1.2em;
}

#show-modal {
  display: none; /* Hides the button but keeps it in the DOM */
}

#modal-container.is-visible {
  position: fixed;
  padding: 20px;
  box-sizing: border-box;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  
  /* to show it above other content */
  z-index: 999; 
  
  /* to allow scrolling if the screen is not high enough*/
  overflow: auto; 
  
  /* this is used to center the modal */
  display: grid;
  text-align: center;
}

.modal-close {
  float: right;
  border: 0;
  background: none;
  color: #777;
  text-decoration: underline;
  cursor: pointer;
}

.modal h1 {
  margin-top: 0;
}

.modal p {
  margin-bottom: 0;
}

.custom-search-btn {
  color: #fff;
  background-color:#ffca02;
}

.custom-search-btn:hover,
.custom-search-btn:focus {
  background-color: #c79e07;  
  color: #fff;
}


.custom-home-btn {
  color: #fff;
  background-color: #3861ac;  
}

.custom-home-btn:hover,
.custom-home-btn:focus {
  background-color: #1d2c5f;      /* Even darker blue on hover */
  color: #fff;
}

.custom-home-btn i {
  vertical-align: middle;
  margin-right: 0;
  color: inherit; /* inherit button color */
}

.scroll-to-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #3861ac;
  color: #fff;
  border: none;
  outline: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: opacity 0.3s, visibility 0.3s;
}

.scroll-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top-btn:hover,
.scroll-to-top-btn:focus {
  background-color: #1d2c5f;
}

html, body {
  overflow-x: hidden;
}

.navbar {
  min-height: 56px;
}