/* --------------------------------------
 * NES CARTRIDGE 
 * --------------------------------------
 */
*{
    background-color: lightgrey;
}

.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;
}

/* --------------------------------------
 * N64 CARTRIDGE
 * --------------------------------------
 */

.n64 {
    display: grid;
    aspect-ratio: 3/4;
    grid-template: 0.5fr 1fr 6fr 2fr 1fr / 0.5fr 2fr 0.5fr;
}

.n64-container {
    max-width: 450px;
    width: 90%;
    border: 3px solid black;
    margin: 10px;
    padding: 10px;
}

.top-left-corner {
    background-color: grey;
    grid-area: 1 / 1 / 2 / 2;
    border-top: 2px solid black;
    border-left: 2px solid black;
    border-radius: 10px 0 0 0;
}

.top-section {
    background-color: grey;
    grid-area: 1 / 2 / 2 / 3;
    border-top: 2px solid black;
}

.top-right-corner {
    background-color: grey;
    grid-area: 1 / 3 / 2 / 4;
    border-top: 2px solid black;
    border-right: 2px solid black;
    border-radius: 0 10px 0 0;
}

.left-grip {
    background-color: rgb(100, 100, 100);
    grid-area: 2 / 1 / 4 / 2;
    border-left: 2px solid black;
    background-image: repeating-linear-gradient(
        90deg,
        rgb(83, 83, 83) 0px,
        rgb(83, 83, 83) 8px,
        rgb(128, 128, 128) 8px,
        rgb(128, 128, 128) 16px
    );
}

.label-area {
    background-color: grey;
    grid-area: 2 / 2 / 4 / 3;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.label-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.right-grip {
    background-color: rgb(100, 100, 100);
    grid-area: 2 / 3 / 4 / 4;
    border-right: 2px solid black;
    background-image: repeating-linear-gradient(
        90deg,
        rgb(83, 83, 83) 0px,
        rgb(83, 83, 83) 8px,
        rgb(128, 128, 128) 8px,
        rgb(128, 128, 128) 16px
    );
}

.middle-left {
    background-color: grey;
    grid-area: 4 / 1 / 5 / 2;
    border-left: 2px solid black;
}

.connector-area {
    background-color: rgb(60, 60, 60);
    grid-area: 4 / 2 / 5 / 3;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

.middle-right {
    background-color: grey;
    grid-area: 4 / 3 / 5 / 4;
    border-right: 2px solid black;
}

.bottom-left {
    background-color: grey;
    grid-area: 5 / 1 / 6 / 2;
    border-left: 2px solid black;
    border-bottom: 2px solid black;
    border-radius: 0 0 0 10px;
}

.bottom-notch {
    background-color: grey;
    grid-area: 5 / 2 / 6 / 3;
    border-bottom: 2px solid black;
    position: relative;
}

.bottom-notch::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 35%;
    width: 30%;
    height: 60%;
    background-color: rgb(50, 50, 50);
    border: 2px solid black;
    border-radius: 5px 5px 0 0;
}

.bottom-right {
    background-color: grey;
    grid-area: 5 / 3 / 6 / 4;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    border-radius: 0 0 10px 0;
}

/* --------------------------------------
 * (type) CARTRIDGE
 * --------------------------------------
 */

