.logo {
    font-size: 3rem;
    color: #ffcb05;
    text-transform: uppercase;
    font-weight: 900;
    text-align: center;
    letter-spacing: 2px;
    -webkit-text-stroke: 2px #2a75bb;
    text-shadow: 2px 2px 0 #2a75bb, 4px 4px 0 #2a75bb;
    font-family: 'Press Start 2P', 'Impact', sans-serif;
    margin-bottom: 1.5rem;
}

.pokemons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
}

.normal {
    background-color: #a6a877;
}

.grass {
    background-color: #77c850;
}

.fire {
    background-color: #ee7f30;
}

.water {
    background-color: #678fee;
}

.electric {
    background-color: #f7cf2e;
}

.ice {
    background-color: #98d5d7;
}

.ground {
    background-color: #dfbf69;
}

.flying {
    background-color: #a98ff0;
}

.poison {
    background-color: #a040a0;
}

.fighting {
    background-color: #bf3029;
}

.psychic {
    background-color: #f65687;
}

.dark {
    background-color: #725847;
}

.rock {
    background-color: #b8a137;
}

.bug {
    background-color: #a8b720;
}

.ghost {
    background-color: #6e5896;
}

.steel {
    background-color: #b9b7cf;
}

.dragon {
    background-color: #6f38f6;
}

.fairy {
    background-color: #f9aec7;
}

.modal-content.fire {
    background-color: #ee7f30;
    color: #000000;
}

.modal-content.grass {
    background-color: #77c850;
    color: #000000;
}

.modal-content.water {
    background-color: #678fee;
    color: #000000;
}

.modal-content.electric {
    background-color: #f7cf2e;
    color: #000000;
}

.modal-content.ice {
    background-color: #98d5d7;
    color: #000000;
}

.modal-content.ground {
    background-color: #dfbf69;
    color: #000000;
}

.modal-content.flying {
    background-color: #a98ff0;
    color: #000000;
}

.modal-content.poison {
    background-color: #a040a0;
    color: #000000;
}

.modal-content.fighting {
    background-color: #bf3029;
    color: #000000;
}

.modal-content.psychic {
    background-color: #f65687;
    color: #000000;
}

.modal-content.dark {
    background-color: #725847;
    color: #000000;
}

.modal-content.rock {
    background-color: #b8a137;
    color: #000000;
}

.modal-content.bug {
    background-color: #a8b720;
    color: #000000;
}

.modal-content.ghost {
    background-color: #6e5896;
    color: #000000;
}

.modal-content.steel {
    background-color: #b9b7cf;
    color: #000000;
}

.modal-content.dragon {
    background-color: #6f38f6;
    color: #000000;
}

.modal-content.fairy {
    background-color: #f9aec7;
    color: #000000;
}

.modal-content.normal {
    background-color: #a6a877;
    color: #000000;
}


.pokemon {
    margin: 0.5rem;
    padding: 1.5rem 1rem;
    border-radius: 1.2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.pokemon:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.pokemon .name {
    color: #fff;
    font-weight: bold;
    font-size: 1.0rem;
    margin-bottom: 0.25rem;
    text-transform: capitalize;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.pokemon .number {
    color: #000;
    opacity: 0.7;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 500;

}

.pokemon .detail {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}


.pokemon .detail .types {
    padding: 0;
    margin: 0;
    list-style: none;
}

.pokemon .detail .types .type {
    color: #fff;
    padding: .25rem .5rem;
    border-radius: 1rem;
    margin: 0.25rem 0;
    font-size: 0.625rem;
    filter: brightness(1.1);
    text-align: center;

}

.pokemon .detail img {
    max-width: 100%;
    height: 110px;
    align-self: flex-end;
}

.pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem;
}

.pagination button {
    color: #fff;
    background-color: #6c79db;
    border: none;
    border-radius: 0.61rem;
    padding: .25rem .5rem;
    font-size: 1.125rem;
    margin: .25rem 0;

}

.pagination button:hover {
    filter: brightness(1.7);
}

.pagination button:active {
    filter: brightness(0.9);
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-header {
    position: relative;
    text-align: center;
    padding-top: 40px;
    background-image: url('../img/d2joc5j-c2562d13-9dbe-4747-b70b-03e25d3abb80.png');
    background-size: cover;
    background-position: center;
}

.modal-content {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    width: 95%;
    max-width: 500px;
    height: auto;
    max-height: 90vh;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
    overflow-y: auto;
    overflow-x: auto;
}

@keyframes fadeIn {
    from {
        transform: scale(0.1);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal.hidden {
    display: none;
}

.modal-close {
    padding: 5px 5px;
    border-radius: 15px;
    color: #fff;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 30px;
    font-weight: bold;
    z-index: 9999;
}



.modal-img {
    width: 120px;
    height: 120px;
    margin: auto;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}


.modal-name {
    margin-top: 60px;
    font-size: 1.5rem;
    text-transform: capitalize;
    font-style: italic;
}




.modal-number {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 10px;
    font-size: larger;
}



.modal-types {
    margin-top: 0.5rem;
}


.type-tag {
    display: inline-block;
    background-color: gray;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    color: white;
    font-weight: bold;
    margin: 0 4px;
    text-transform: uppercase;
}


.type-tag.normal {
    background-color: #a6a877;
    filter: brightness(1.2);

}

.type-tag.grass {
    background-color: #77c850;
    filter: brightness(1.2);

}

.type-tag.fire {
    background-color: #ee7f30;
    filter: brightness(1.2);

}

.type-tag.water {
    background-color: #678fee;
    filter: brightness(1.2);

}

.type-tag.electric {
    background-color: #f7cf2e;
    filter: brightness(1.2);

}

.type-tag.ice {
    background-color: #98d5d7;
    filter: brightness(1.2);

}

.type-tag.ground {
    background-color: #dfbf69;
    filter: brightness(1.2);

}

.type-tag.flying {
    background-color: #a98ff0;
    filter: brightness(1.2);

}

.type-tag.poison {
    background-color: #a040a0;
    filter: brightness(1.2);

}

.type-tag.fighting {
    background-color: #bf3029;
    filter: brightness(1.2);

}

.type-tag.psychic {
    background-color: #f65687;
    filter: brightness(1.2);

}

.type-tag.dark {
    background-color: #725847;
    filter: brightness(1.2);

}

.type-tag.rock {
    background-color: #b8a137;
    filter: brightness(1.2);

}

.type-tag.bug {
    background-color: #a8b720;
    filter: brightness(1.2);

}

.type-tag.ghost {
    background-color: #6e5896;
    filter: brightness(1.2);

}

.type-tag.steel {
    background-color: #b9b7cf;
    filter: brightness(1.2);

}

.type-tag.dragon {
    background-color: #6f38f6;
    filter: brightness(1.2);

}

.type-tag.fairy {
    background-color: #f9aec7;
    filter: brightness(1.2);

}


.modal-info-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    text-align: left;
    background-color: #eeeeee;
    border-radius: 5px;

}

.modal-info-list li {
    margin-bottom: 8px;
    padding: 15px;
    border-bottom: 1px solid #000000;
    display: flex;
    justify-content: space-between;
    font-size: 1.0rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 2px;
    background-color: #eee;
    padding: 1px;
    border-radius: 5px;
    font-weight: bold;

}

.stat-bar {
    height: 10px;
    border-radius: 5px;
    background-color: #ddd;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background-color: #4caf50;
    transition: width 0.4s ease-in-out;
}

.modal-tabs {
    display: flex;
    justify-content: center;
    margin-top: 0.8rem;
    
}

.tab-button {
    background: #eee;
    color: #333;
    font-size: 0.8rem;
    outline: none;
    border: none;
    padding: 0.2rem 1.0rem;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.4s;
    margin: 0 0.5rem;
    border-radius: 15px 15px 0 0;
    text-transform: capitalize;

}

.tab-button.active {
    border-color: #333;
}

.tab-content {
    margin-top: 1rem;
    text-align: center;

}

.hidden {
    display: none;
}

.modal-moves-list {
    list-style: none;
    margin-top: 1rem;
    display: grid;
    columns: 2;
    padding: 0;
    gap: 0.1rem;
    max-height: 180px;
    overflow-y: auto;
}

.modal-moves-list li {
    background: #eee;
    padding: 0.2rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    text-transform: capitalize;
}

.modal-evolution-list {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0px 5px 0px;
    color: #000000;
    border-radius: 40px;
    gap: 5.2rem;
    margin-top: 1rem;
    flex-wrap: wrap;

}

.evolution-card {
    text-align: center;
    width: 120px;
    position: relative;

}

.evolution-card img {
    width: 100%;
    border-radius: 50%;
    background: white;
    border: 2px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

}

.evolution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border-radius: 50%;
}


.evolution-card span {
    font-size: 1.0rem;
    text-transform: capitalize;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}




@media screen and (min-width: 380px) {
    .pokemons {
        grid-template-columns: 1fr 1fr;
    }

}

@media screen and (min-width: 576px) {
    .pokemons {
        grid-template-columns: 1fr 1fr 1fr;
    }

}

@media screen and (min-width: 992px) {
    .pokemons {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

}

@media screen and (max-width: 480px) {
    .modal-content {
        padding: 1.5rem 1rem;
        height: auto;
    }

    .modal-img {
        width: 100px;
        height: 100px;
    }

    .modal-name {
        font-size: 1.2rem;
    }

    .modal-info-list li {
        font-size: 1rem;
    }

    .modal-moves-list li {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 500px) {
  .modal-content {
    width: 95%;
    max-width: 90vw;
    height: auto;
    max-height: 90vh;
    padding: 1rem;
    overflow-y: auto;
  }

  .modal-img {
    width: 90px;
    height: 90px;
    top: -15px;
  }

  .modal-close {
    top: 10px;
    right: 15px;
    font-size: 28px;
  }

  .tab-button {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .modal-info-list li,
  .modal-moves-list li {
    font-size: 0.9rem;
  }

  .evolution-card {
    width: 85px;
  }

  .evolution-card span {
    font-size: 0.8rem;
  }
}
