/* CSS written by Jessica Seapno */

/* Global Styles (MOBILE FIRST) */
body {
    display:block;
    grid-template-columns: 1fr;
    background-color: palegoldenrod;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#types ul {
    column-count: 1;
    column-gap: 20px;
    list-style-position: inside;
}

@media screen and (min-width: 800px) {
    body {
        flex-direction: row;
        gap:20px;
        justify-content: center;
        background-color: lightcoral;
        align-items: flex-start;
    }
    #types ul {
        column-count: 2;
    }
}
@media screen and (min-width: 1200px) {
    body {
        flex-wrap: wrap;
        grid-template-rows: auto;
        background-color: orange;
    }
    
}

header {
    background-color: lightblue;
    text-align: center;
    padding: 20px;
    border: g5px groove whitesmoke
}
nav {
    background-color: lightgray;
    padding: 10px;
    text-align: center;
    font-size: 17px;
    border-style: groove;
}
nav ul {
    list-style-type: none;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
    background: red;
    border-radius: 50px;;
}   
nav a {
    text-decoration: none;
    color: whitesmoke;
    font-weight: bold;
    font-family: monospace;
    transition: 0.5s;
}
nav a:hover {
    color: yellow;
    text-shadow: 1px 1px 2px black;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}
main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-style: groove;
    padding: 20px;
    text-align: center;
}
section {
    flex: 1;
    min-width: 280px;
    border: 1px groove black;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
section img {
    max-width: 100px;
    height: auto;
    margin-bottom: 20px;
}
section:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}
section:hover img {
    animation: bounce 0.5s infinite alternate;
}
@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}
li {
    list-style-type: none;
    position: relative;
    padding-left: 20px;
}
li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 10px;
    height: 10px;
    background-image: url('images/pokeball.png');
    background-size: contain;
    background-repeat: no-repeat;
}

nav ul li {
    display: inline;
    margin-right: 10px;
    list-style-type: none;
}
nav ul li a {
    text-decoration: none;
    color: black;
}
footer {
    background-color: lightblue;
    text-align: center;
    padding: 10px;
}
