:root {
    --default-game-img-width: 262px;
    --default-game-img-heigth: 148px;
    --default-gradient: linear-gradient(135deg, #8844ee, #B07DFB);
}

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

body {
    font-family: 'Poppins', sans-serif;
}

section {
    height: 100vh;
    background: #fafbfc;
}

img {
    display: block;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

/* GLOBAL LAYOUT */
.layout {
    display: grid;
    grid-template-areas:
        "header"
        "content"
        "footer"
    ;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(60px, 75px) auto minmax(40px, 60px);
}

/* HEADER */
.header {
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: #FFFFFF;
    background: var(--default-gradient);

}

.header .logo {
    margin: auto;
    display: flex;
    cursor: pointer;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: 0.1s;
    line-height: 0px;
    padding: 8px;
    color: #FFF;
    gap: 1em;
}

.header .logo:hover {
    background: rgba(0, 0, 0, 0.5);
}

.content {
    grid-area: content;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: scroll;
}

.content .container {
    max-width: 650px;
    margin: 0 auto;
    padding: 0px 10px;
    gap: 10px;
}

.container .user-library-games {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.game-library-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease-in-out;
    background: var(--default-gradient);
    border-radius: 0.25rem;
    padding: 1rem;
}

.game-library-item:hover {
    transform: scale(1.05);
}

.game-library-item figure {
    display: flex;
    align-items: center;
    width: 320px;
}

.game-library-item figure img {
    width: 157px;
    height: 89px;
}

.game-library-item figure figcaption {
    font-weight: bold;
    color: #FFFFFF;
    padding: 10px 8px;
}

.game-library-item .container-holder {
    flex: 1;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.container-holder .extra-info {
    display: flex;
    gap: 1rem;
}

.extra-info .game-genre {
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
    background: rgba(212, 183, 255, 0.5);
    color: #8844ee;
}

.game-library-item .btn-remove-game-library {
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: 0.1s;
    line-height: 0px;
    padding: 8px;
    color: #FFF;
    background: rgba(0, 0, 0, 0.1);
}

.btn-remove-game-library:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* FOOTER */
.footer {
    grid-area: footer;
    display: flex;
    justify-content: space-between;
    background: var(--default-gradient);
    padding: 0px 40px;
}

.footer a {
    display: flex;
    align-items: center;
    color: #FFFFFF;
}

@media (max-width: 650px) {
    .container h2 {
        text-align: center;
    }

    .game-library-item {
        display: flex;
        flex-direction: column;
        margin: 0 auto;
        width: 400px;
        transition: all 0.2s ease-in-out;
        background: var(--default-gradient);
        border-radius: 0.25rem;
        padding: 1rem;
    }

    .game-library-item .container-holder {
        justify-content: space-between;
        width: 365px;
    }

    .game-library-item figure {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .game-library-item figure img {
        transition: all 0.125s ease-in-out;
        width: 365px;
        height: 206px;
    }

    .game-library-item figure figcaption {
        text-align: center;
    }
}