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

body{
    margin: 0;
    padding: 0;
    background-image: url('0010101110101001.gif');
    background-size: 512px 288px;
    background-color: #000000;
    background-color: #444; /* comment me*/
    font-family: pixel; /* use font */
    text-align: center;
    color: rgb(0, 0, 0);
    overflow-x: hidden;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: pixelated;
}

p {
    margin: 10px;
}

.black_box {
    background-color: black;
}

/* Desktop */
@media (min-width: 550px) {
    .black_box {
        width: 100%;
        aspect-ratio: 1 / 1;
        padding-left: 10px;
    }
}

/* Mobile */
@media (max-width: 549px) {
    .black_box {
        width: 100%;
        max-width: 98%;
        aspect-ratio: 1 / 1;
    }
}

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

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

* {
    font-family: "pixel", monospace;
    box-sizing: border-box;
}

/* ===================== 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);

    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;
}

/* ===================== PAGE ===================== */

.container {
    background-color: rgba(0, 255, 25, 1);

    color: black;

    margin: 20px auto;
    padding: 10px;

    width: 80%;

    min-height: 900px;
}

.content_wrapper {
    float: left;
    width: 55%;
}

.container_img {
    display: block;

    margin-top: 0px;
    padding: 0px;
}

h1.title {
    overflow: hidden;

    padding-bottom: 5px;

    border-bottom: 2px solid black;
}

.about {
    display: block;
    float: right;
    width: 40%;
}

/* ===================== DOWNLOADS ===================== */

.downloads_container {
    background: white;

    margin-top: 15px;

    width: 10%;
}

.downloads {
    text-align: center;

    color: blue;

    font-size: 1.3vw;
}

.downloads h2 {
    font-size: 2vw;
    margin-bottom: 25px;
}

.downloads a {
    color: blue;
    text-decoration: none;

    font-size: 1.2vw;
}

.downloads a:hover {
    text-decoration: underline;
}

.container img {
    margin-top: 10vw;
    margin-right: 10px;
}

/* ===================== BLACK BOX ===================== */

.black_box {
    background-color: black;

    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.black_box img.adfgPic {
    display: block;
    margin: auto;
}

/* ===================== BUTTONS ===================== */

.button_row {
    position: absolute;

    bottom: 8px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 20px;
}

.arrow {
    background: black;

    border: none;

    color: white;

    font-family: pixel;

    padding: 1px 6px;

    cursor: pointer;
}

.arrow:hover {
    background: rgb(0, 255, 25);
    color: black;
}

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

@media (max-width: 650px) {

    .container {
        width: 90%;
        min-height: 800px;
    }

    .content_wrapper {
        float: none;
        width: 100%;
    }

    .container_img {
        width: 100%;
        max-width: 98%;
    }

    .about {
        float: unset;
        width: unset;
    }

    .downloads_container {
        width: 100%;
        padding: 15px;
    }

    .downloads {
        font-size: 4vw;
    }

    .downloads h2 {
        font-size: 5vw;
    }

    .downloads a {
        font-size: 4vw;
    }

    .container img {
        width: 80%;
        margin-top: 10vw;
    }

    h1.title {
        font-size: 5.4vw;
        text-align: center;
    }

    p {
        font-size: 3.5vw;
        line-height: 1.6;
    }

    .arrow {
        font-size: 4.7vw;
    }
}

/* ===================== DESKTOP (UPDATED LAYOUT FIX) ===================== */

@media (min-width: 651px) {

    .container {
        display: grid;
        grid-template-columns: 55% 40%;
        grid-template-areas:
            "black about"
            "black downloads";
        column-gap: 5%;
        row-gap: 20px;
        align-items: start;
    }

    .content_wrapper {
        float: none;
        width: auto;
        grid-area: black;
    }

    .about {
        float: none;
        width: auto;
        grid-area: about;
    }

    .downloads_container {
        grid-area: downloads;
        width: 100%;
    }

    img {
        width: 55%;
    }

    .adfgPic {
        width: 80%;
    }

    .title {
        font-size: 2.1vw;
        text-align: center;
    }

    p {
        font-size: 1.75vw;
        line-height: 1.6;
    }

    .arrow {
        font-size: 3vw;
    }
}