/* --------------------------------------
 * FONTS
 * --------------------------------------
 */
@font-face {
        font-family: "Arcade-Normal";
        src:url('./font/Arcade-Normal.ttf.woff') format('woff'),
            url('./font/Arcade-Normal.ttf.svg') format('svg'),
            url('./font/Arcade-Normal.ttf.eot'),
            url('./font/Arcade-Normal.ttf.eot?#iefix') format('embedded-opentype'); 
        font-weight: normal;
        font-style: normal;
}

:root {
    
}

* {
 font-family: "Arcade-Normal", sans-serif;
 font-weight: lighter;
    margin: 0;
}

#banner {
    background-color: #000000;
    color: #FFFFFF;
    padding: 20px;
}

#banner h1 {
    font-size: 1.5em;
}

/* --------------------------------------
 * CARTRIDGE - Inspired by manz.dev -> https://www.reddit.com/r/webdev/comments/18fjmyf/nintendo_gameboy_cartridge_css/
 * --------------------------------------
 */

.nes {
    display: grid;
    aspect-ratio: 5/4;
    grid-template: 1fr 10fr 1fr 1fr 1fr 1fr / 0.25fr 0.3fr 0.25fr 1fr 3fr 0.25fr 0.3fr 0.25fr;
}
.nes-container {
    max-width: 600px; 
    /* fill 90% of its parent width */
    width: 90%; 
    border: 3px solid black;
    margin: 10px;
    padding: 10px;
}

.left-notch-left{
    background-color: grey;
    grid-area: 1 / 1 / 2 / 2;
    border-top: 2px solid black;
    border-left: 2px solid black;
}

.left-notch{
    background-color: grey;
    grid-area: 1 / 2 / 2 / 3;
    border-top: 2px solid black;
    margin-top: 5px;
}

.left-notch-right{
    background-color: grey;
    grid-area: 1 / 3 / 2 / 4;
    border-top: 2px solid black;
    
}
.grip{
    grid-area: 1 / 4 / 2 / 5;
    background-image: linear-gradient(0deg, rgb(83, 83, 83) 25%, rgb(128, 128, 128) 25%, rgb(128, 128, 128) 50%, rgb(83, 83, 83) 50%, rgb(83, 83, 83) 75%, rgb(128, 128, 128) 75%, rgb(128, 128, 128) 100%);
    border: 2px solid black;
    border-radius: 0px 0px 10px 10px;
}

.cover-image img {
    max-width: 100%; 
    max-height: 100%;
    object-fit: contain; 
}

.cover-image {
    background-color: grey;
    padding: 0 0 0 0.5em;
    grid-area: 1 / 5 / 3 / 6;
    border-top: 2px solid black;

    display: flex;
    justify-content: center; 
    align-items: center;       
}
.right-notch-left{
    grid-area: 1 / 6 / 2 / 7;
    background-color: grey;
    border-top: 2px solid black;
}
.right-notch{
    background-color: grey;
    grid-area: 1 / 7 / 2 / 8;
    border-top: 2px solid black;
    margin-top: 5px;
}
.right-notch-right{
    background-color: grey;
    grid-area: 1 / 8 / 2 / 9;
    border-top: 2px solid black;
    border-right: 2px solid black;
}
.left-side{
    background-color: grey;
    grid-area: 2 / 1 / 5 / 4;
    border-left: 2px solid black;
    border-bottom: 2px solid black;
}
.grip-extend{
    /* Direction is 0deg (bottom to top) */
    background-image: repeating-linear-gradient(
        0deg,
        rgb(83, 83, 83) 0px,         /* Dark Stripe: 0px to 10px */
        rgb(83, 83, 83) 10px,
        rgb(128, 128, 128) 10px,     /* Light Stripe: 10px to 20px */
        rgb(128, 128, 128) 20px,
        rgb(83, 83, 83) 20px,        /* Dark Stripe: 20px to 30px */
        rgb(83, 83, 83) 30px,
        rgb(128, 128, 128) 30px,     /* Light Stripe: 30px to 40px */
        rgb(128, 128, 128) 40px      /* The pattern length is 40px */
    );
    grid-area: 2 / 4 / 7 / 5;
    border: 2px solid black;
    margin-top: -5px;
}
.right-side{
    background-color: grey;
    grid-area: 2 / 6 / 5 / 9;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
}


.arrow {
    background-color: grey;
    grid-area: 3 / 5 / 6 / 6;
    padding: 10px 20px;     
}

.arrow svg {
    background-color: grey;
    display: block; 
    
    rotate: 180deg;
    
    max-width: 100%;
    max-height: 100%;
    
    object-fit: contain;
}

.left-bottom-side{
    background-color: grey;
    grid-area: 5 / 2 / 7 / 4;
    border-top: 2px solid grey;
    border-bottom: 2px solid black;
    border-left: 2px solid black;
    margin-top:-2px;
}
.bottom-grip{
    background-color: grey;
    grid-area: 6 / 4 / 7 / 5;
    border: 2px solid black;
    border-radius: 10px 10px 0px 0px;
}
.right-bottom-side{
    background-color: grey;
    grid-area: 5 / 5 / 7 / 8;
    border-bottom: 2px solid black;
    border-right: 2px solid black;
    border-top: 2px solid grey;
    margin-top:-2px;
}

 .cartridge-label{
    background-color: grey;
    display: flex;
    flex-direction: column;
    background-color: grey;
    border: solid 2px #000000;
    border-top: none;
    padding: 15px;
 }

 .cartridge-label a {
    color: goldenrod;
    padding: 3px;
 }

#game-list {
    display: flex;
    flex-direction: row;
}

.game-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 5px solid #CCCCCC;
    border-radius: 25px;
    padding: 10px;
    margin: 10px;
    text-align: center;
    background-color: #F9F9F9;
}

.cover-image{
    contain:content;
}

.cover-image img{
    margin-top: 100px;
}

.cover-image, .game-screenshot {
    width: 200px;
    height: auto;
}

#logo {
    width: 100px;
    height: auto;
    margin-top: 20px;
}

nav {
    background-color: #333333;
    padding: 10px;
    text-align: center;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2em;
}

.user-label-image{
    overflow:hidden;
}

.game-label {
    border: 10px solid lightskyblue;
    margin: 10px 0px;
    background-color: #333333;
    color:antiquewhite;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.game-label a{
    color: antiquewhite;
    text-decoration: none;
    background-color: #686868;
    border: 1px solid black;
    padding: 5px 15px; 
}

.game-description{
    border: 10px solid lightskyblue;
    margin: 10px 0px;
    background-color: #333333;
    color:antiquewhite;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.game-screenshot{
    border: 10px solid lightskyblue;
    margin: 10px 0px;
    background-color: #333333;
    color:antiquewhite;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}




