body {
    background-color: orangered;
    margin: 0;
    font-family: 'Rubik', sans-serif;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.running-pika {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.title-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.title-container h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 3rem;
    color: #FFCB05;
    text-shadow: 
        3px 3px 0 #3c5aa6, 
        -1px -1px 0 #3c5aa6, 
        1px -1px 0 #3c5aa6, 
        -1px 1px 0 #3c5aa6, 
        1px 1px 0 #3c5aa6;
    margin: 0;
    letter-spacing: 4px;
}

#control-panel {
    margin-bottom: 30px;
    padding: 10px 15px;
    text-align: center;
}

.gen-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.special-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

#searchbar {
    display: block;
    margin: 0 auto;
    width: 60%;
    max-width: 500px;
    padding: 15px;
    border-radius: 30px;
    border: 2px solid #ddd;
    font-family: 'Rubik', sans-serif;
    font-size: 1.1rem;
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#searchbar:focus {
    border-color: #ef5350;
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.3);
}

.gen-btn button {
    background-color: #3b4cca;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gen-btn button:hover, .gen-btn button.active {
    background-color: #fc0;
    color: black;
    transform: translateY(-3px) scale(1.05);
}

.type-btn, .shiny-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Rubik', sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    color: white; 
}

.type-btn {
    background-color: #ff5555;
}

.shiny-btn {
    background-color: #FFD700;
    color: #333;
    border: 2px solid #DAA520;
}

#pokedex {
    padding: 0 30px 50px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: white;
    color: #222;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-7px);
}

.card-image {
    height: 160px;
    width: 160px;
    object-fit: contain;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
}

.card h2 {
    margin-top: 15px;
    font-size: 22px;
    text-transform: capitalize;
    color: #333;
}

.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.visible {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 30px;
    cursor: pointer;
}

.evo-flex {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
