/* HTML5 display-role reset for older browsers */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* Main CSS */

@import url('https://fonts.googleapis.com/css?family=Maven+Pro');
body {
    background-color: var(--cinza-claro);
    font-family: 'Maven Pro', sans-serif;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2em 0;
}

.search {
    width: 90%;
    display: flex;
    justify-content: center;
    padding: 1em 0;
}

.search .search-input,
.search .search-button {
    border: 0;
    padding: 1em;
}

.search .search-input {
    width: 100%;
}

.search .search-button {
    background-color: #2b75bb;
    color: #fff;
    cursor: pointer;
}

.error {
    display: none;
    font-size: 1.5em;
}

.pokemon {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*background-color: #f2f2f2;*/
    background-color: #fff;
    opacity: 1;
    color: white;
}

.pokemon .pokemon-picture {
    width: 150px;
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #FFC312;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 38px;
    margin-bottom: 38px;
}

.pokemon .pokemon-picture img {
    width: 100%;
}

.pokemon .pokemon-info {
    width: 100%;
    background-color: #163f5e;
    flex: 2;
}

.pokemon-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    box-sizing: border-box;
    padding: 1em;
}

.pokemon-info .name,
.pokemon-info .skill,
.pokemon-info .weight,
.pokemon-info .height {
    width: 100%;
    padding: .5em .2em;
    font-size: 1.7em;
}

.pokemon-info .name {
    font-size: 2.5em;
    text-align: center;
    color: #FFC312;
    font-weight: bold;
    text-transform: capitalize;
}

.pokemon-info .number {
    width: 100%;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    margin: 0;
    text-transform: capitalize;
}

.pokemon-info .skill {
    text-align: justify;
    font-size: 1em;
    margin-top: 20px;
    margin-bottom: 20px;
}

.pokemon-info .weight,
.pokemon-info .height {
    width: 100%;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
}

.fade {
    animation: fadeEfect 2s;
}

@media  screen and (min-width: 758px) {
    .pokemon {
        flex-direction: row;
    }
}

@keyframes fadeEfect {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
