:root {
    --primary: #4406a8;
    --light: #ffffff;
    --dark: #181050;
    --secondary: #0519f8;
    --grey: #76767a;
    --grey-bold: #4e4e4e;
    background: var(--light);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav {
    position: relative;
    top: 0;
    left: 0;
    right: 0;

    background-color: var(--dark);
    padding: 16px 32px;
}

nav h1 {
    color: var(--light);
    font-size: 29px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: default;
}

.menu {
    display: flex;
    flex: 1 1 0%;
    justify-content: flex-end;
    margin: 0 -16px;
}

.menu a {
    color: var(--light);
    margin: 0 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.4s;
    padding: 8px 16px;
    border-radius: 99px;
}

.menu a.is-active,
.menu a:hover {
    background-color: var(--primary);
}

.hamburger {
    display: none;
}

.container {
    display: flex;
    flex-wrap: wrap;
    margin: 25px;
}

.card {
    max-width: 300px;
    margin: 15px;
    padding-top: 15px;
    background-color: var(--primary);
    border-radius: 25px;
}

.card:hover {
    transition: all 300ms;
    box-shadow: 0 15px 20px 1px var(--secondary);
    transform: translateY(-10px);
}

.card-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.card-body {
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
    color: var(--light);
    font-weight: 900;
    text-transform: capitalize;
    cursor: default;
}

.card-body button {
    background-color: var(--dark);
    border-radius: 15px;
    border: 1px solid var(--secondary);
    font-size: medium;
    font-weight: 900;
    color: var(--light);
    height: 25px;
}

.card-body button:hover {
    background-color: var(--primary);
    border-radius: 20px;
    border: 1px solid var(--dark);
    font-size: large;
    font-weight: bolder;
    color: var(--light);
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 15px 20px 1px var(--secondary);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    margin-top: auto;
    background-color: var(--dark);
    padding: 16px 32px;
}

.pokemon-view {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 25px;
}

.pokemon-view p {
    font-size: larger;
    font-weight: bolder;
    text-transform: capitalize;
    text-align: center;
    color: var(--light);
    background-color: var(--primary);
    border-radius: 45px;
    width: 150px;
    margin: 25px;
}

.pokemon-view li {
    font-weight: 900;
    text-transform: capitalize;
    font-size: medium;
    list-style-type: square;
    margin-left: 45px;
}

.pokemon-view table {
    font-weight: 800;
    text-transform: capitalize;
    font-size: medium;
    border: 1px solid var(--dark);
    cursor: default;
}

.pokemon-view table th {
    background-color: var(--primary);
    color: var(--light);
}

.pokemon-view table tr:nth-child(even) {
    color: var(--light);
    background-color: var(--grey);
}

.pokemon-view table tr:hover {
    background-color: var(--grey-bold);
}

.pokemon-view table tr td {
    width: 175px;
    text-align: right;
    padding-right: 12px;
}

@media(max-width: 640px) {

    .hamburger {
        display: block;
        position: relative;
        z-index: 1;

        user-select: none;

        appearance: none;
        border: none;
        outline: none;
        background: none;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 33px;
        height: 4px;
        margin-bottom: 5px;
        position: relative;

        background-color: var(--light);
        border-radius: 6px;
        z-index: 1;

        transform-origin: 0 0;

        transition: 0.4s;
    }

    .hamburger:hover span:nth-child(2) {
        transform: translateX(10px);
        background-color: var(--primary);
    }

    .hamburger.is-active span:nth-child(1) {
        transform: translate(0px, -2px) rotate(45deg);
    }

    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
        transform: translateX(15px);
    }

    .hamburger.is-active span:nth-child(3) {
        transform: translate(-3px, 3px) rotate(-45deg);
    }

    .hamburger.is-active:hover span {
        background-color: var(--primary);
    }

    .menu {
        display: none;
        flex: 1 1 0%;
        justify-content: flex-end;
        margin: 0 -16px;
    }

    .menu a {
        color: var(--light);
        margin: 0 16px;
        font-weight: 600;
        text-decoration: none;
        transition: 0.4s;
        padding: 8px 16px;
        border-radius: 99px;
    }

    .menu.is-open {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .container {
        justify-content: center;
    }

    .pokemon-view {
        flex-direction: column;
    }
}

.loader-countainer {
    display: flex;
    justify-content: center;
    margin: 20px;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(365deg);
    }
}

#loader {
    border: var(--primary) solid 5px;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    border-left: var(--light);
    animation: rotate 1s linear infinite;
}