* {
    font-family: 'Ubuntu', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bluecolor: #3F61A6;
    --yellow-color: #F2B807;
    --red-color: #D94436;
    --blackcolor: #0D0D0D;
    --writeColor: #ffffff;
}

html {
    font-size: 62.5%;
}

header {
    background-image: url('./img/background.jpg');
    height: 30vh;
    justify-content: center;
    width: 100%;
}

body {
    background-color: var(--bluecolor);
}

.section-inputs {
    justify-content: space-between;
    position: relative;
}

.display {
    display: flex;
}

.inputs-position {
    gap: 15px;
}

label {
    font-size: 1.8rem;
    color: white;
    font-weight: bold;
    position: absolute;  
    top: -20px; 
}
.select{
    position: relative;
}

main {
    padding: 30px;
}

.search {
    width: 300px;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.466);
    margin-bottom: 20px;
    text-align: center;
}

.height-inputs{
    height: 50px;
    font-size: 1.8rem;
}
.calculation {
    color: white;
    font-size: 2.0rem;
    border-radius: 10px;
    padding: 15px;
    width: auto;
    height: auto;
    background-color: var(--yellow-color);
    border: 5px solid var(--yellow-color);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.466);
    text-align: center;
    justify-content: center;
    align-items: center;
}

.filter-order {
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.466);
    padding: 0 5px;
}

.card-back li {
    list-style-type: none;
  }

.aside-cards {
    gap: 20px;
    height: auto;
}

.icons {
    font-size: 2.0rem;
}

aside {
    background-color: var(--yellow-color);
    font-size: 1.6rem;
    flex-direction: column;
    line-height: 30px;
    width: 230px;
    height: 610px;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.466);
    padding: 10px;
    position: sticky;
    top:calc(50% - 305px);
    
}

h2 {
    text-align: center;
    font-size: 2.4rem;
}

.calc-card{
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.container-card {
    width: 280px;
    height: 410px;
    perspective: 1000px;
    position: relative;
}

.flipper-card {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    position: relative;
}

.container-card:hover .flipper-card {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.card {
    background-color: var(--writeColor);
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 280px;
    padding: 5px;
    height: 410px;
    border-radius: 25px;
    align-items: center;
}

.card-front{
    gap:10px;
}

.card-back {
    font-size: 2.0rem;
    justify-content: start;
    padding-top: 80px;
    transform: rotateY(180deg);
    background-image: url(./img/pokedex.png);
    background-size: cover;
    background-repeat: no-repeat;
    gap: 10px;
}

.card-back p {
    font-weight: 700;
}

.card-back span {
    font-weight: 400;
}

.card-front img {
    width: 75%;
}

.pokemom-name {
    font-weight: 800;
    font-size: 2.4rem;
}

.pokemon-type {
    font-size: 2.0rem;
    color: var(--writeColor);
    box-shadow: 1px 5px 10px #989aa2;
    border-radius: 4px;
    padding: 0px 10px;
}

footer {
    background-image: url(./img/bg-pikachu3.jpg);
    justify-content: center;
    padding: 150px;
    
}
.footer-section{
    font-size: 1.8rem;
    gap: 15px;
    flex-direction: column;
    align-items: center;
    width: 300px;
}
.info-devs{
    gap: 15px;
}

.dev {
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.icons ion-icon {
    font-size: 2.8rem;
    color: var(--red-color);
}
.line-footer{
    font-size: 20px;
}
.footer-title{
    background-color:#fcd5104b;
}

.water-type {
    background-color: #00BCF2;
}

.dragon-type {
    background-color: #466816;
}

.electric-type {
    background-color: #FCD610;
}

.fairy-type {
    background-color: #E8C6AD;
}

.ghost-type {
    background-color: #C3C3C3;
}

.fire-type {
    background-color: #F7630C;
}

.ice-type {
    background-color: #8fcfdd;
}

.bug-type {
    background-color: #B5B830;
}

.fighting-type {
    background-color: #AF0D1A;
}

.normal-type {
    background-color: #ac985e;
}

.rock-type {
    background-color: #ac7e3c;
}

.grass-type {
    background-color: #13A10E;
}

.psychic-type {
    background-color: #287bac;
}

.dark-type {
    background-color: #4E1792;
}

.ground-type {
    background-color: #6D4123;
}

.flying-type {
    background-color: #4F7EA5;
}

.poison-type {
    background-color: #82189D;
}

.steel-type {
    background-color: #979696;
    ;
}

@media (max-width: 912px) {
    header img{
        width: 80%;
    }
}

@media (max-width: 768px) {
    .section-inputs{
        flex-direction: column;
        align-items: center;
    }
    .height-inputs{
        font-size: 1.5rem;
    }
    .inputs-position{
     
        gap:5px;
    }
   
   
    main{
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    header img{
        width: 80%;
    }
    .calc-card {
        width: calc(100% - 210px);
}
    .search{
        margin-bottom: 30px;
        width: 100%;
    }
    label {
        font-size: 1.6rem;
    }
}

@media (max-width: 550px) {
    aside {
        font-size: 1.4rem;
        width: 150px;
    }
    header {
        width: 101%;
    }

    .card {
        width: 205px;
        height: 305px;
        font-size: 1.4rem;
    }
    .container-card {
        width: 205px;
        height: 305px;
    }
    .card-back{
        padding-top: 60px;
        gap: 5px;
    }
    header img {
        width: 100%;
    }
    .calc-card {
        width: calc(100% - 80px);
}
    .cards {
        display: flex;
        gap: 10px;
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .flipper-card{
        justify-content: center;
    }
}
  
@media (max-width: 376px){
    .card {
        width: 100%;
        height: 100%;
        font-size:1.1rem;
    }
    .container-card {
        width: 165px;
        height: 253px;
    }
    .card-back{
        padding-top: 45px;
    }
}