/*----------------------------------------------------------------------
>>> TABLE OF CONTENTS:
------------------------------------------------------------------------

    0. CSS Reset
    1. CSS Grid
    2. Banner
    3. Content container
    4. Game List

------------------------------------------------------------------------*/

/*----------------------------------------------------------------------
    0. CSS Reset
    http://meyerweb.com/eric/tools/css/reset/ 
    v2.0 | 20110126
    License: none (public domain)
------------------------------------------------------------------------*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*----------------------------------------------------------------------
    1. CSS Grid
------------------------------------------------------------------------*/

body {
    background-color: #E6E1DA;
}

.container {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 250px 1fr 250px;
    grid-template-areas:
        "header header header"
        "sidebar main .";
}

.banner {
    grid-area: header;
}

.sidebar {
    grid-area: sidebar;
}

.main {
    grid-area: main;
}

/*----------------------------------------------------------------------
    2. Banner & Menu
------------------------------------------------------------------------*/

.bannerImg {
    z-index: 0;
    width: 100%;
    height: auto;
}

.mainMenu {
    display: flex;
    justify-content: center;
    gap: 40px;
    height: 1.3em;
    margin-top: -1.5em;
}

.mainMenuElement {
    height: 1.3em;
    font-size: 1.3em;
    font-weight: bold;
    font-family: "Droid Sans", sans-serif;
}

.mainMenuLink {
    text-decoration: none;
    color: #AA8C62;
    font-style: normal;
}

.mainMenuLink:hover {
    color:#5580BA;
}

/*----------------------------------------------------------------------
    3. Content Container
------------------------------------------------------------------------*/

.blocInfo {
    text-align: center;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.8;
    /*background-color: #D8CDC1;*/
    background-color: #8aaad4;
    margin-top: 0.8em;
    padding-top: 1em;
    border-radius: 5px;
}

.blocTitle {
    font-family: "Droid Sans", sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    color: #111;
    margin-bottom: 0.5em;
}

.blocLoanGroup {
    width: max-content;
    margin: auto;
}

.blocLoan {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    padding-bottom: 1em;
}

.liloan {
    padding-left: 2em;
}

.blocLoanTitle {
    font-family: "Droid Sans", sans-serif;
    font-size: 1em;
    font-weight: bold;
}

.blocDoc {
    margin-left: 5em;
    text-align: left;
}

.gameLink {
    text-decoration: none;
    color: black;
    font-style: normal;
}

.gameLink:hover {
    color: white;
}

.contactParagraph {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}


#loader{
    margin-left:90px;
    display:none;
}

/*----------------------------------------------------------------------
    4. Game List
------------------------------------------------------------------------*/
.pagination {
    text-align: center;
}

.search-container {
    display: flex;
    align-items: center;
    max-width: 400px;
    margin: 20px auto;
}

.page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding-bottom: 20px;
}

.page-button {
    height: 35px;
    width : 35px;
    border-width: 1px;
    border-radius: 10%;
}

.selectedPage {
    background-color: #5580BA;
    border-style: none;
}

.searchInput {
    padding: 8px;
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.searchButton {
    background-color: #fff;
    color: #fff;
    border: none;
    margin-left: -40px;
    padding: 4px 9px;
    border-radius: 4px;
    cursor: pointer;
}

.searchImg {
    width: 20px;
    height: 20px;
}

.gameList {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px 0px;
}

.game {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 220px;
    text-align: center;
    gap: 10px;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.listImg {
    width: 50%;
}

.flexform {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.flexmenu {
    padding: 15px 30px;
}

.sidebar-title {
    padding-bottom: 5px;
    margin-left: -5px;
}

.flexbutton {
    padding-top: 10px;
    align-self: center;
}

.invisible {
    height: 0px;
}

.closeModal {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.7;
    z-index: 1;
}

.gameModal {
    display: none;
    position: absolute;
    top: 30%;
    left: 15%;
    width: 70%;
    height: 40%;
    background-color: #E6E1DA;
    opacity: 1;
    z-index: 2;
}

.closeModalButton {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.game-container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr 4fr 1fr 1fr;
    grid-template-columns: 2fr 5fr;
    grid-template-areas:
        "img title"
        "img description"
        "img tags"
        "img rules";
}

.game-img {
    grid-area: img;
    width: 100%;
    padding: 10px;
}

.img-width {
    max-width: 100%;
    max-height: 100%;
}

.game-title {
    grid-area: title;
    padding-top: 20px;
    text-align: center;
    font-family: "Droid Sans", sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    color: #111;
}

.game-description {
    grid-area: description;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow-y: auto;
}

.game-tags {
    grid-area: tags;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    padding-top: 10px;
}

.game-rules {
    grid-area: rules;
    text-align: center;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    padding-top: 10px;
}

.tag {
    border-radius: 10px;
    background-color: #CCA307;
    height: 1em;
    padding: 10px;
}