body {
    margin: 0;
    font-family: SansSerif, "Segoe UI";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #00a9e0;
}

main.games {
    width: 90%;
    margin: 0px auto;
    padding: 0;
    overflow: auto;
    text-align: center;
}

.games > .games__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    grid-template-rows: repeat(7, 160px);
    grid-gap: 1rem;
    grid-auto-flow: dense;
    margin: 0px auto;
    list-style: none;
	justify-items: start;
}

.games figure {
    margin: 0;
    padding: 0;
}

.games > .games__list .double-box {
    grid-column: span 2;
    grid-row: span 2;
}

.games > .games__list > li > figure {
    height: 100%;
    width: 100%;
}

.games > .games__list > li > figure > img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.games > .games__list > li.box img {
	max-width: 160px;
	max-height: 160px;
}

.games > .games__list > li.double-box img {
	max-width: 320px;
	max-height: 320px;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 8%;
    padding-right: 5%;
}

header h1 {
    margin-right: auto;
}

.all, .new, .top {
    background-position: top;
    background-repeat: no-repeat;
    cursor: pointer;
    padding-top: 24px;
    display: inline-block;
    margin: 1%;
    user-select: none;
	color: #5b6770;
}

.all-active, .new-active, .top-active {
	color: #00a9e0;
}

.all {
    background-image: url("images/all.png");
}

.all-active {
    background-image: url("images/all-active.png");
}

.new {
    background-image: url("images/new.png");
}

.new-active {
    background-image: url("images/new-active.png");
}
 
.top {
    background-image: url("images/top.png");
}

.top-active {
    background-image: url("images/top-active.png");
}

.search {
    height: 34px;
    border-radius: 25px;
    background-image: url("images/magnifier.png");
    background-repeat: no-repeat;
    background-position: right;
}

.search-active {
    outline-color: transparent;
    background-color: #00a9e0;
    background-image: none;
}

@media (max-width: 800px) {
    header {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .all, 
	.all-active, 
	.new, 
	.new-active, 
	.top, 
	.top-active {
        display: inline-block;
    }
}
