@import url('https://fonts.googleapis.com/css2?family=Oxanium&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    background: linear-gradient(to bottom, rgb(183, 0, 255), #fffa73);
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Oxanium', cursive;
}

.container{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    flex-direction: column;
}

.pokemon__data{
    position: absolute;
    z-index: 99;
    top: 54vh;
    font-weight: 600;
    font-size: clamp(16px, 2vw, 28px);
    left: 42vw;
    color: #aaa;
}

.pokemon__name{
    text-transform: capitalize;
    color: #3a444d;
}

.form{
    position: absolute;
    width: 20vw;
    min-width: 100px;
    top: 65%;
    left: 38.9%;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input__search{
    width: 100%;
    max-height: 50px;
    max-width: 350px;
    padding: 2%;
    outline: none;
    border: 2px solid #333;
    border-radius: 5px;
    font-weight: 600;
    color: #3a444d;
    font-size: clamp(16px, 1vw, 20px);
    box-shadow: -3px 4px 0 #888, -5px 7px 0 #333;
}

.pokedex{
    height: 80vh;
    position: relative;
}

.pokeImage{
    position: absolute;
    height: 20%;
    top: 32vh;
    z-index: 99;
}

.buttons{
    position: absolute;
    bottom: 15%;
    left: 39%;
    z-index: 99;
    width: 20vw;
    display: flex;
    justify-content: space-between;
}

.button{
    padding: 2%;
    margin: 1%;
    flex-grow: 1;
    cursor: pointer;
    border-radius: 5px;
    font-size: clamp(16px, 1vw, 20px);
    font-weight: 600;
    color: white;
    background-color: #444;
    box-shadow:  -2px 3px 0 #222, 4px 6px 0 #000;
}

.button:active{
    box-shadow: inset -4px 4px 0 #222;
    font-size: 0.9rem;
}

@media(max-width:767px){
   .pokedex{
    width: 90%;
    min-height: fit-content;
   }
   .form{
    width: 50vw;
    left: 25%;
    top: 68%;
   }
   .input__search{
    width: 100%;
   }

   .buttons{
    width: 50vw;
    left: 25%;
   }

   .pokeImage{
    height: 15%;
    top: 35vh;
   }
}