body, html{
    background-color: #f2f2f2;
    padding: 0px;
    margin: 0px;
}
.banner{
    display: flex;
    align-items: center;

    width: 100%;
    background-color: lightgrey;

    padding: 0px;
    margin: 0px;

    border-bottom: 1px solid black;
}

.banner-image-jankdisc{
    display: block;
    width: 155px;
    margin: 0 24px 0 0;
}

.banner-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-text h1{
    font-family: "Ranchers", sans-serif;
    font-size: 50pt;
    font-weight: 500;
    letter-spacing: 2px;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
}

.banner-text h2{
    margin: -10px 0px 0px 0px;
    padding: 0px;
    font-size: 18pt;
    font-weight: 400;
}


.sidebar{
    width: 318px;
    align-self: flex-start;
    margin-top: -40px;
}

.banner-image-chars{
    display: block;
    width: 200px;

    margin: 0 auto -8px auto;

    position: relative;
    z-index: 2;
}

.accent-bar{
    display: block;
    width: 100%;
}
.accent-line-1{
    height: 6px;
    background-color: #7cb2e8;
    border-bottom: 1px solid black;
}
.accent-line-2{
    height: 6px;
    background-color: #ff6666;
    border-bottom: 1px solid black;
    
}
.accent-line-3{
    height: 6px;
    background-color: #40e2a0;
    border-bottom: 1px solid black;
    
}
.accent-line-4{
    height: 7px;
    background-color: #ff69f8;
    border-bottom: 1px solid black;
}

h1{
    color: black;
    font-size: 28pt;
}
h2{
    
}

/* NAV */

.nav{
    background-color: #777;
    padding: 15px 20px;
    border-bottom: 1px solid black;
}

.nav a{
    display: inline-block;
    padding: 10px 18px;
    margin-right: 8px;
    background-color: lightgrey;
    border: 2px solid black;
    color: black;
    text-decoration: none;
    font-size: 16pt;
    font-weight: bold;
}

.nav a:hover{
    background-color: white;
}


/* MAIN HOME AREA */

.home{
    display: flex;
    gap: 50px;

    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}


/* LEFT CONTENT */

.content{
    flex: 1;
}


/* ARTICLE SECTIONS */

.posts{
    margin-bottom: 40px;
}

.posts h2{
    border-bottom: 2px solid #7cb2e8;
    padding-bottom: 6px;
}


/* ARTICLE CARD */

.post{
    display: flex;
    gap: 18px;

    background-color: lightgrey;
    border: 1px solid dimgrey;

    padding: 12px;
    margin-bottom: 15px;
}

.post-image{
    width: 180px;
    height: 110px;

    object-fit: cover;

    border: 1px solid #555;
}

.post-info{
    flex: 1;
}

.post-title{
    color: darkblue;
    font-size: 18pt;
    font-weight: bold;
    text-decoration: none;
}

.post-title:hover{
    text-decoration: underline;
}

.post-info p{
    margin: 8px 0 0 0;
    line-height: 1.5;
}
.post-meta {
    margin-top: 5px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
}

.post-meta span + span::before {
    content: " • ";
    margin: 0 5px;
}

.post-excerpt {
    margin-top: 8px;
    line-height: 1.4;
}


/* ABOUT */

.about{
    width: 280px;
    background-color: lightgrey;

    border: 1px solid dimgrey;
    border-top: 5px solid #40e2a0;

    padding: 18px;

    position: relative;
    z-index: 1;
}

.about h2{
    margin-top: 0;
}

.about p{
    line-height: 1.5;
}

.email{
    color: #502080;
}


/* FOOTER */

.footer{
    width: 100%;
    background-color: lightgrey;
    border-top: 1px solid black;
    margin-top: 50px;
    padding: 4px 20px;
    box-sizing: border-box;
}


/* MOBILE */

@media (max-width: 750px){
    
    .banner-text h1{
    font-size: 30px;
    font-weight: 400;
}

.banner-text h2{
    font-size: 18px;
}


    .home{
        display: block;
    }

    .about{
        width: auto;
        margin-top: 30px;
    }

    .post-image{
        width: 130px;
        height: 90px;
    }

    .nav a{
        margin-bottom: 8px;
    }
}

/*** GAME DB PAGE ***/


/* GAMES PAGE */

.games-page{
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}


.games-heading{
    margin-bottom: 20px;
}

.games-heading h2{
    margin-bottom: 5px;
    border-bottom: 2px solid #7cb2e8;
    padding-bottom: 6px;
}

.games-heading p{
    margin-top: 5px;
}


/* FILTERS */

.game-filters{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    background-color: lightgrey;
    border: 1px solid dimgrey;

    padding: 15px;
    margin-bottom: 15px;
}


.game-filter{
    display: flex;
    flex-direction: column;
}


.game-filter label{
    font-weight: bold;
    margin-bottom: 4px;
}


.game-filter input,
.game-filter select{
    height: 36px;

    padding: 5px 8px;

    border: 1px solid #555;
    background-color: white;

    box-sizing: border-box;
}


#game-search{
    width: 280px;
}


.game-filter-reset{
    justify-content: flex-end;
}


#clear-filters{
    height: 36px;

    padding: 5px 18px;

    background-color: #ddd;
    border: 1px solid #555;

    font-weight: bold;

    cursor: pointer;
}


#clear-filters:hover{
    background-color: white;
}


/* RESULT COUNT */

.game-count{
    margin: 10px 0;
}


/* GAME LIST */

.game-list{
    border: 1px solid #555;
}


.game-row{
    display: grid;

    grid-template-columns:
        70px
        minmax(260px, 2fr)
        70px
        minmax(160px, 1fr)
        minmax(180px, 1fr)
        minmax(180px, 1fr);
}

.game-cover{
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-cover img{
    width: 52px;
    height: 52px;

    object-fit: contain;
}


.game-row:last-child{
    border-bottom: 0;
}


.game-row > div{
    padding: 10px;

    box-sizing: border-box;
}


.game-row-head{
    background-color: #666;

    color: white;

    font-weight: bold;

    border-bottom: 1px solid black;
}


.game-item:nth-child(odd){
    background-color: #d7d7d7;
}


.game-item:hover{
    background-color: white;
}


/* GAME TITLE */

.game-item{
    cursor: pointer;
}

.game-item:hover{
    background-color: #cfcfcf;
}

.game-title{
    font-weight: bold;
}


.game-discs{
    display: inline-block;

    margin-left: 8px;
    padding: 2px 5px;

    background-color: #bbb;

    border: 1px solid #888;

    font-size: 9pt;
    font-weight: normal;
}


/* EMPTY */

.game-empty{
    background-color: lightgrey;

    border: 1px solid dimgrey;

    padding: 20px;

    text-align: center;

    font-weight: bold;
}


/* MOBILE */

@media (max-width: 900px){

    .game-row{
        grid-template-columns:
            minmax(220px, 2fr)
            60px
            minmax(150px, 1fr);
    }


    .game-developer,
    .game-publisher{
        display: none;
    }
    
    .game-row{
        grid-template-columns:
            60px
            minmax(220px, 2fr)
            60px
            minmax(150px, 1fr);
    }

}


@media (max-width: 600px){

    .game-filters{
        display: block;
    }


    .game-filter{
        margin-bottom: 10px;
    }


    .game-filter input,
    .game-filter select,
    #game-search{
        width: 100%;
    }


    .game-row{
        grid-template-columns:
            1fr
            60px;
    }


    .game-genre{
        display: none;
    }
    
      .game-row{
        grid-template-columns:
            55px
            1fr
            55px;
    }

    .game-cover img{
        width: 44px;
        height: 44px;
    }

}

/*** TEMP UNDER DEVELOPMENT STYLES ***/

.under-development{
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;

    background-color: lightgrey;
    border: 1px solid dimgrey;

    text-align: center;
}

.under-development h2{
    margin-top: 0;

    font-size: 28pt;

    border-bottom: 2px solid #7cb2e8;
    padding-bottom: 8px;
}

.under-development h3{
    font-size: 22pt;
    margin-bottom: 15px;
}

.under-development p{
    font-size: 14pt;
    line-height: 1.5;
}

/*** GAME INFO PAGE ***/

.game-page{
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}


/*
|--------------------------------------------------------------------------
| Main game header
|--------------------------------------------------------------------------
*/

.game-header{
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background-color: lightgrey;
    border: 1px solid dimgrey;
    padding: 25px;
}


.game-artwork{
    flex-shrink: 0;
}


.game-cover-large{
    display: block;
    width: 350px;
    height: auto;
    border: 1px solid #555;
}


.game-details{
    flex: 1;
}


.game-details h1{
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 30pt;
    border-bottom: 2px solid #7cb2e8;
    padding-bottom: 8px;
}


/*
|--------------------------------------------------------------------------
| Game metadata
|--------------------------------------------------------------------------
*/

.game-info-grid{
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px 20px;
    font-size: 13pt;
}


.game-info-label{
    font-weight: bold;
}


/*
|--------------------------------------------------------------------------
| Description
|--------------------------------------------------------------------------
*/

.game-description{
    margin-top: 25px;
    background-color: lightgrey;
    border: 1px solid dimgrey;
    padding: 20px;
}


.game-description h2{
    margin-top: 0;
    border-bottom: 2px solid #40e2a0;
    padding-bottom: 6px;
}


.game-description p{
    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| Navigation
|--------------------------------------------------------------------------
*/

.game-bottom-nav{
    margin-top: 25px;
}


.game-bottom-nav a{
    color: #502080;
    font-weight: bold;
    text-decoration: none;
}



.game-reviews {
    margin-top: 35px;
}

.game-reviews h2 {
    border-bottom: 2px solid #7cb2e8;
    padding-bottom: 6px;
}

.review {
    background-color: lightgrey;
    border: 1px solid dimgrey;
    padding: 15px;
    margin-bottom: 12px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.review-publication {
    font-size: 18pt;
}

.review-score {
    font-size: 18pt;
    font-weight: bold;
    color: #502080;
}

.review-meta {
    display: flex;
    gap: 15px;
    margin-top: 4px;
    color: #555;
    font-size: 10pt;
}

.review-text {
    margin-top: 12px;
    line-height: 1.5;
}


/* CHEATS SECTION */
.game-cheats {
    margin-top: 40px;
}

.cheat-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cheat {
    padding: 18px;
    background: lightgrey;
    border: 1px solid #555;
}

.cheat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.cheat-title {
    font-size: 1.1rem;
}

.cheat-type {
    font-size: 0.8rem;
    padding: 4px 8px;
    border: 1px solid #777;
    text-transform: uppercase;
    white-space: nowrap;
}

.cheat-instructions {
    line-height: 1.6;
}

.cheat-notes {
    margin-top: 12px;
    font-size: 0.9rem;
    opacity: 0.85;
}



/* =========================================================
   ADMIN - ADD CHEAT
   ========================================================= */

.admin-content {
    max-width: 900px;
    margin: 35px auto 60px;
    padding: 30px;
    background: #d7d7d7;
    border: 2px solid #222;
    box-shadow: 6px 6px 0 #555;
}

.admin-content h1 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2.2rem;
    border-bottom: 4px solid #7cb2e8;
    padding-bottom: 10px;
}

.admin-content form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: bold;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font: inherit;
    background: #f5f5f5;
    border: 2px solid #444;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #7cb2e8;
    box-shadow: 0 0 0 2px rgba(124, 178, 232, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#instructions {
    min-height: 180px;
}

#sort_order {
    max-width: 120px;
}

.admin-content button[type="submit"] {
    align-self: flex-start;
    padding: 10px 22px;
    font-weight: bold;
    font-size: 1rem;
    background: #e5e5e5;
    border: 2px solid #222;
    cursor: pointer;
    box-shadow: 3px 3px 0 #555;
}

.admin-content button[type="submit"]:hover {
    background: #cfcfcf;
}

.admin-content button[type="submit"]:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #555;
}

.success,
.error {
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 2px solid #333;
    font-weight: bold;
}

.success {
    background: #dff7e5;
    border-left: 6px solid #40e2a0;
}

.error {
    background: #f7dddd;
    border-left: 6px solid #ff6666;
}




/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 750px){

    .game-header{
        display: block;
    }

    .game-artwork{
        margin-bottom: 25px;
    }

    .game-cover-large{
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .game-info-grid{
        grid-template-columns: 110px 1fr;
    }
}
