@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


.roboto {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}


* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
    font-family: 'roboto';
}

body {
    width: 100%;
    height: 100svh;
}
body > nav,
body > main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px;
}
body > nav {
    display: flex;
    justify-content: center;
}
body > nav > h1 {
    font-size: 4em;
}
@media screen and (max-width: 350px) {
    body > nav > h1 {
        font-size: 2em;
    }
}

.pokemon-container > div:first-child {
    width: 100%;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.pokemon-container > div:first-child > button {
    min-width: 250px;
    width: 48%;
    padding: 20px 0;
    border-radius: 8px;
    border-width: 4px;
    font-size: 2em;
    font-weight: bold;

    background-color: burlywood;
    border-color: burlywood;
    border-style: solid;
}
.pokemon-container > div:first-child > button:hover {
    cursor: pointer;
    background-color: transparent;
}
@media screen and (max-width: 600px) {
    .pokemon-container > div:first-child > button {
        width: 100%;
    }
    .pokemon-container > div:first-child > button:last-child {
        margin-top: 10px;
    }
}
@media screen and (max-width: 350px) {
    .pokemon-container > div:first-child > button {
        min-width: 100%;
        font-size: 1em;
    }
}

.pokemon-container > ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.pokemon-container > ul > li {
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    border-width: 4px;

    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    background-color: burlywood;
    border-color: burlywood;
    border-style: solid;
}
.pokemon-container > ul > li:hover {
    cursor: pointer;
    background-color: white;
}
.pokemon-container > ul > li:hover > img {
    background-color: burlywood;
}
.pokemon-container > ul > li > img {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    
    background-color: white;
}
.pokemon-container > ul > li > span {
    padding: 5px 10px;
    border-radius: 8px;

    position: absolute;
    top: 10px;
    right: 10px;

    background-color: #00c8ff;
}
@media screen and (max-width: 350px) {
    .pokemon-container > ul {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .pokemon-container > ul > li > img {
        width: 100%;
    }
    .pokemon-container > ul > li > h3 {
        font-size: 1em;
    }
}
@media screen and (max-width: 270px) {
    .pokemon-container > ul > li > span {
        font-size: 0.5em;
    }
}
@media screen and (max-width: 270px) {
    .pokemon-container > ul {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .pokemon-container > ul > li > h3 {
        font-size: 0.5em;
    }
}