/*        RESET        */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*        VARIABLES        */
:root {
    --primary-color: #a2e8f5;
    --secondary-color: #faebd7;
    --tertiary-color: #ffdb0c;
    --font-family: Arial, sans-serif;
}

/*        GENERAL STYLES        */

body {
    font-family: var(--font-family);
}

h1, h2 {
    color: var(--tertiary-color);
    text-shadow: 1px 0 2px #000000;
}

/*        HEADER        */
.header {
    height: 45px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    margin-bottom: 20px;
}

nav {
    height: 100%;
}

.nav__ul {
    display: flex;
    list-style: none;
    height: 100%;
}

.nav__li {
    display: flex;
    align-items: center;
    padding: 5px;
    background-color: var(--secondary-color);
}

.nav__li:hover {
    background-color: #c1c1c1;

    .li__link {
        color: white;}

}

.li__link {
    text-decoration: none;
    color: black;
    font-weight: bold;
    text-shadow: 1px 0 2px var(--tertiary-color);
}

/*        BODY        */
.container {
    display: grid;
    grid-template-columns: 20% 80%;
    grid-template-rows: 90vh;
    overflow: hidden;
}
/* ASIDE */
.aside {
    margin: 0 auto;
    background-color: #c1c1c1;
    border-radius: 5px;
    display: inline-flex;
    flex-direction: column;
    width: 70%;
    height: 100%;
}

.cards {
    padding: 4px;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 1px 1px 2px #bbbbbb;
    cursor: pointer;
}

.item {
    background-color: var(--primary-color);
    color: black;
    padding: 4px;
    margin: 0;
    width: 100%;
    box-shadow: 1px 1px 2px #bbbbbb;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    padding-left: 40px;
}

/* MAIN */
.content {
    display: grid;
    grid-template-columns: 72vw;
    margin: 0 auto;
    overflow: scroll;
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 5px;
}

.category__title {
    text-align: center;
    margin: 10px;
    font-size: 7vh;
}

.category {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    height: 100%;
    justify-items: center;
    row-gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    border: 10px solid var(--tertiary-color);
    border-radius: 5px;
    width: 250px;
    height: 350px;
    padding: 10px;
}

.pok__img {
    height: 70%;
}

.card__title {
    font-size: 5vh;
}

.plant {
    background-color: rgb(147, 235, 147);
}

.fire {
    background-color: rgb(245, 110, 57);
}

.water {
    background-color: #69dbf0;
}

.card1 {
    border: 10px solid rgb(0, 0, 0);
    border-radius: 5px;
    width: 250px;
    height: 350px;
}

.ygo__img {
    height: 100%;
    width: 100%;
}

/*        MEDIA QUERIES        */

/* TABLET */
@media (max-width: 768px) {
    .category {
        grid-template-columns: 1fr 1fr;
    }
    .item {
        padding: 4px;
    }
}

/* MOBILE */
@media (max-width: 480px) {

    .header {
        width: 100%;
        padding: 0 10px;
    }
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
        margin-bottom: 90px;
    }
    .aside {
        height: fit-content;
        position: fixed;
        bottom: 0;
        width: 80%;
        margin: 0 10%;
        
    }
    .content {
        width: 90%;
        justify-content: center;
        overflow: auto;
    }
    .category {
        grid-template-columns: 100%;
    }
}