* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto';
}

body {
    text-align: center;
    background: linear-gradient(to bottom, rgb(75, 75, 75), black);
    min-height: 100vh;
}

main {
    display: inline-block;
    margin-top: 6%;
    padding: 15px;
    position: relative;
}

.pokedex {
    width: 100%;
    max-width: 425px;
}

.pokemon_image {
    position: absolute;
    bottom: 52%;
    left: 50%;
    transform: translate(-63%, 20%);
    height: 22%;
}

.pokemon_image, .pokemon_data {
    transition: opacity 0.4s ease-in-out;
}

.pokemon_data {
    position: absolute;
    font-weight: 600;
    color: #aaa;
    top: 54.5%;
    right: 24%;
    font-size: clamp(8px, 5vw, 25px);
}

.pokemon_data_type {
    position: absolute;
    font-weight: 600;
    color: #000000;
    top: 74.5%;
    right: 31%;
    font-size: clamp(10px, 10vw, 25px);
    padding: 1.5%;
    border-radius: 5px;
}

.pokemon_type {
    padding: 0.3em 1em;
    border-radius: 15px;
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-transform: capitalize;
}

.pokemon_name{
    color: #3a444d;
    text-transform: capitalize;
}

.form {
    position: absolute;
    width: 65%;
    top: 65%;
    left: 13.5%;
}

.input_search {
    width: 100%;
    padding: 4%;
    outline: none;
    border: 2px solid #333;
    border-radius: 5px;
    font-weight: 600;
    color: #3a444d;
    font-size: clamp(8px, 5vw, 1rem);
    box-shadow: -3px 4px 0 #888, -5px 7px 0 #333;
}

.buttons {
    position: absolute;
    bottom: 10%;
    left: 50%;
    width: 65%;
    transform: translate(-57%, 0);
    display: flex;
    gap: 20px;
}

.button {
    width: 50%;
    padding: 4%;
    border-radius: 5px;
    font-size: clamp(5px, 5vw, 1rem);
    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;
}