/* ===================== FONT ===================== */

@font-face {
    font-family: "pixel";
    src: url("PressStart2P-vaV7.woff2") format("woff2");
    font-display: block;
}

/* FORCE PIXEL FONT EVERYWHERE */
* {
    font-family: "pixel", monospace;
    box-sizing: border-box;
}

/* ===================== BODY ===================== */

body {
    margin: 0;
    padding: 0;

    background-color: #000;
    background-image: url("0010101110101001.gif");
    background-size: 512px 288px;

    color: rgba(0, 255, 25, 1);

    overflow-x: hidden;

    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: pixelated;
}

/* ===================== TOP NAV ===================== */

.top_nav {
    background: #d900ff;

    width: 100%;
    height: 8vw;
    max-height: 50px;

    display: flex;
    align-items: center;
}

.top_nav .logo {
    height: 100%;
    width: auto;

    object-fit: contain;

    cursor: pointer;
}

.top_nav .home,
.top_nav .games,
.top_nav .links {

    /*font-size: clamp(12px, 3vw, 22px);*/
    font-size: 2.5vmin;

    color: white;

    text-decoration: underline;

    cursor: pointer;

    margin-left: 20px;

    user-select: none;
}

.top_nav .home:hover,
.top_nav .links:hover,
.top_nav .games:hover {
    opacity: 0.8;
}
.top_nav .logo:hover {
    opacity: 0.9;
}
/* ===================== MAIN LAYOUT ===================== */

.parent {
    display: flex;
    justify-content: center;

    padding-top: 4vw;
    padding-bottom: 40px;
}

.child {
    width: 65%;
    background-color: rgb(0, 0, 0);

    padding: 20px;

    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

/* ===================== TEXT ===================== */

.big-title {
    font-size: 7vw;
    margin: 0;
}

h1 {
    font-size: 10vmin;

    margin: 2rem 0 1rem 0;

    color: rgba(0, 255, 25, 1);
}

h3 {
    color: rgba(0, 255, 25, 1);

    font-size: 2.2vmin;

    margin-top: 10px;
}

h6 {
    font-size: 2.3vmin;

    line-height: 1.6;

    padding: 10px;

    max-width: 1000px;

    color: rgba(0, 255, 25, 1);
}

figcaption {
    font-size: 1.5vmin;

    word-break: break-word;

    text-align: center;
}

/* ===================== GAMES GRID ===================== */

.games-grid {
    display: grid;

    width: 100%;

    grid-template-columns: repeat(2, 1fr);

    gap: 3vmin;

    justify-items: center;

    align-items: start;

    margin-top: 20px;
}

.cd-container {
    text-align: center;
    width: 100%;
}

.cd-container img {
    width: 24vw;

    max-width: 1700px;

    min-width: 90px;

    height: auto;

    object-fit: contain;

    display: block;

    margin: 0 auto;

    image-rendering: pixelated;
}

.cd-container figcaption h3 {
    margin: 10px 0 0 0;
}

/* ===================== LINKS ===================== */

a {
    text-decoration: none;
    color: rgb(0, 64, 255);
}

a:hover {
    text-decoration: underline;
}

.links {
    font-size: 1.8vmin;
    line-height: 2;
}

/* ===================== MOBILE ===================== */

@media (max-width: 650px) {

    .top_nav .home,
    .top_nav .games,
    .top_nav .links {
        /*font-size: clamp(12px, 3vw, 22px);*/
        font-size: 3.9vmin;
    }
    .games-grid {
        grid-template-columns: 1fr;
    }

    .child {
        width: 80%;
    }

    .cd-container img {
        width: 45vw;
    }

    h1 {
        font-size: 12vmin;
    }

    h3 {
        font-size: 4vmin;
    }

    h6 {
        font-size: 2.5vmin;
    }

    .links {
        font-size: 3vmin;
    }
}