html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

.clear::after {
    content: "";
    clear: both;
    display: table;
}

html,
body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #000;
}

nav {
    background-color: #fff;
    color: #000;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16);
    margin: 0px 0px 16px 0px;
    border-bottom-left-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
}

nav>a {
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background-color: #206E32;
    color: #fff;
    border-bottom-left-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
}

nav a:hover {
    background-color: #2f9e49;
}

main {
    background-color: #fff;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    border-radius: 1em;
    min-height: 1200px;
    padding: 20px;
}

body {
    margin-top: 0;
}

h1 {
    text-align: center;
}

section {
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(1000px, 3fr) minmax(0, 1fr);
}

.grid-2c {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 15px;
    place-items: center;
}

.container-half {
    padding: 10px;
    text-align: center;
    min-height: 200px;
}

.card {
    border: 1px solid #adadad8a;
    box-shadow: 4px 4px 4px 4px rgba(0, 0, 0, 0.062);
}

.center {
    margin-left: auto;
    margin-right: auto;
}

button {
    background-color: #206E32;
    border: none;
    color: white;
    padding: 15px;
    font-size: 16px;
    border-radius: 0.5em;
}

button:active {
    background-color: #2f9e49;
}

.txt-center {
    text-align: center;
}

.buttonRow {
    margin: 10px 0;
}

/* The grid container: 1 column on small screens, scaling up to 3.
   auto-fit + minmax makes it responsive without media queries —
   columns wrap based on available width. */
#ex3content {
    min-height: 500px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Cards are now plain grid items: no float, no fixed width.
   The grid controls placement; the card controls its own look. */
.poke-panel {
    position: relative;
    text-align: center;
    min-height: 500px;
    border: 1px solid #adadad8a;
    box-shadow: 4px 4px 4px 4px rgba(0, 0, 0, 0.062);
    border-radius: 1em;
}

.poke-icon {
    width: 100%;
    height: 380px;
    margin: 20px 0;
}

.poke-name {
    width: 100%;
    font-size: 300%;
}

.poke-type {
    width: 100%;
    font-size: 250%;
}

.poke-loader {
    position: absolute;
    background-color: #4e4c4c;
    width: 100%;
    height: 100%;
    border-radius: 1em;
    z-index: 100;
    align-content: center;
    visibility: visible;
}

.poke-loader .loader {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: animloader 1s linear infinite;
}

@keyframes animloader {
    0% {
        box-shadow: -150px 0 #FFF inset;
    }

    100% {
        box-shadow: 100px 0 #FFF inset;
    }
}