/* styles.css */

/* Estilos para el botón "Inicio" */
.nav-link#back-to-top {
  background-color: #ff6f00;
  color: white !important;
  font-weight: bold;
  border: 2px solid #ff6f00;
  border-radius: 5px;
  padding: 10px 20px;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.nav-link#back-to-top:hover {
  background-color: #ff6f00;
  color: white;
  transform: scale(1.1);
}

/* Otros estilos */

body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
  margin: 0;
}

header {
  background-color: #1abc9c;
  color: white;
  padding: 20px 10;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-size: 2em;
}

.navbar {
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.nav-link {
  color: white !important;
  padding: 10px 20px;
  margin: 5px 5px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover {
  background-color: #16a085;
  color: white;
}

.nav-link.active {
  background-color: #16a085;
  color: white;
}

/* Estilos para el botón "Limpiar" */
.search-bar {
  display: flex;
  align-items: center;
  margin-top: 20px;
  max-width: 400px;
  margin: 20px auto;
  padding: 0 10px;
}

.search-bar button {
  margin-left: 10px;
  background-color: #ff6f61;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.search-bar button:hover {
  background-color: #e65550;
  transform: scale(1.05);
}

.search-bar button:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(255, 111, 97, 0.8);
}


main {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

section {
  margin-bottom: 40px;
}

section h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

section h2:hover {
  transform: scale(1.05);
}

ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

li {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s, background-color 0.3s, transform 0.3s;
}

li:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

li.checked {
  background-color: #1abc9c;
  color: white;
  transition: background-color 0.3s, color 0.3s;
}

label {
  margin-left: 10px;
  font-size: 0.9em;
  transition: color 0.3s;
}

.pokemon-image {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.pokemon-image:hover {
  transform: rotate(10deg);
}

input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 10px;
  transition: transform 0.3s;
}

input[type="checkbox"]:checked {
  transform: scale(1.5);
}


/* Media Queries para la Responsividad */
@media (min-width: 576px) {
  li {
    width: 50%;
  }
}

@media (min-width: 768px) {
  li {
    width: 33.33%;
  }
}

@media (min-width: 992px) {
  li {
    width: 25%;
  }
}

@media (max-width: 575px) {
  header {
    padding: 10px 5px;
  }

  header h1 {
    font-size: 1.5em;
  }

  .nav-link {
    padding: 5px 10px;
    margin: 2px 2px;
  }

  .search-bar {
    padding: 0 5px;
  }

  li {
    width: 100%;
  }
}
