* {
    box-sizing: border-box;
}
body {
    font-family: 'Open Sans', sans-serif;
    text-align: center;
}
.pokeball {
    width: 100%;
    height: 100px;
    background-image: url(../img/pokeball.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
form {
    background-color: #eee;
    padding: 20px 0;
}
input, button {
    padding: 10px;
    border: none;
}
button {
    background-color: cadetblue;
    color: white;
}
.pokemon-text {
    font-weight: bold;
    font-size: 24px;
}
ul {
    padding: 0;
    list-style-type: none;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}
.pokemon {
    display: grid;
    margin-bottom: 5px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 50px;
    width: 25%;
}

.pokemon > * {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pokemon-image {
    height: 150px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    grid-column: 2/3;
    grid-row: 1/2;
}
.pokemon-name {
    flex-grow: 1;
    background-color: #eee;
    padding: 10px 0;
    grid-column: 1/2;
    grid-row: 2/3;
}
@media screen and (min-width: 640px) {
    .pokeball {
        width: 100px;
        position: absolute;
        left: 10px;
        top: 10px;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg)
    }
    to {
        transform: rotate(360deg);
    }
}
.loader {
    border: 5px solid crimson;
    border-top: 5px solid #ccc;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}