* {
    box-sizing: border-box;
}
body {
    font-family: 'Open Sans', sans-serif;
}
hr {
    border-style: solid;
    border-color: #eee;
}
button {
    border: 1px solid transparent;
    height: 42px;
    padding: 0 20px;
    cursor: pointer;
    background-color: cadetblue;
    color: white;
}
button:hover {
    background-color: rgb(46, 93, 95);
}
header, main, footer {
    margin: 0 auto;
    text-align: center;
}
.form-row {
    padding: 20px 0;
    background-color: #eee;
}
input {
    height: 42px;
    padding: 0 10px;
    border: 1px solid transparent;
}
#pokemon-list {
    list-style-type: none;
    padding: 0;
    min-height: 400px;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1366px;
}
.pokemon {
    text-align: left;
    width: 100%;
    border: 10px solid transparent;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 2px 0;
}
.pokemon-image {
    width: 50%;
    height: 150px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    grid-column: 1/5;
    grid-row: 1/4;
}
.pokemon-stats {
    width: 50%;
    font-size: 14px;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pokemon-stats p {
    margin: 5px;
}
.pokemon-row {
    display: flex;
}
.pokemon-name {
    background-color: #f1f1f1;
    flex-grow: 1;
    padding: 10px;
    grid-column: 1/3;
    font-weight: bold;
}
.pokemon-name:hover {
    background-color: #ccc;
}
.pokemon-name.selected {
    background-color: #a4e6d1;
}
.pokemon-delete {
    grid-column: 3/5;
}
button, .pokemon-name {
    transition: background-color .2s ease;
}
.pokeball {
    width: 100%;
    height: 100px;
    background-image: url(../img/pokeball.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

@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;
}
@media screen and (min-width: 640px) {
    .pokemon {
        width: 50%;
    }
    .pokeball {
        width: 100px;
        position: absolute;
        top: 10px;
        left: 10px;
    }
}
@media screen and (min-width: 1024px) {
    .pokemon {
        width: calc(100% / 3);
    }
}
@media screen and (min-width: 1366px) {
    .pokemon {
        width: 25%;
    }
}