@charset "utf-8";
@import url("https://rsms.me/inter/inter.css");

body {
    background-color: #000000;
    color: white;
    font-family: InterVariable, Inter, sans-serif;
    text-align: center;
    justify-content: center;
}

a {
    color: lightgreen;
}

nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    margin:10px;
    justify-content: center;
}

nav a,
button,
a.button {
    background-color: #00ffc8;
    color: black;
    padding: 5px 10px;
    text-decoration: none;
    border: none;
    font-family: InterVariable, Inter, sans-serif;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
}

nav a.warning,
button.warning,
a.button.warning {
    background-color: white;
    color: red;
}

nav a:hover,
button:hover,
a.button:hover {
    background-color: #6f00ff;
    color: white;
}

nav a:active,
button:active,
a.button:active {
    background-color: #0000ff;
    color: white;
}

a.button {
    margin: 0;
}

h1,
h2 {
    font-family: InterVariable, InterDisplay, sans-serif;
    /* Fixed typo: InterVaraible */
}

/* Article: use max-width + auto margins instead of left/right offsets */
article {
    text-align: left;
    max-width: 50%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.articleinfo {
    font-family: InterVariable, Inter, sans-serif;
    font-weight: bold;
    font-size: 20px;
}

/* List Item */
ul li {
    text-align: left;
    position: relative;
}

ul.imagelist {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 70%;
}

ul.imagelist li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

ul.imagelist li img {
    height: 150px;
    max-width: 100%;
    /* Prevents overflow on narrow screens */
    border: 1px solid #00ffc8;
}

ul.imagelist li div nav {
    justify-content: left;
}

ul.imagelist li .description {
    flex: 1;
    min-width: 0;
}

ul.imagelist li .description * {
    margin-top: 0;
}

.bold {
    font-weight: bold;
}

div#internal-warning-banner {
    background: none;
    color: red;
    font-family: InterVariable, Inter, sans-serif;
    font-size: 18px;
    font-weight: bold;
    padding: 5px;
    text-align: center;
    border: 2px solid red;
    margin: 10px 0;
}

img {
    max-width: 90%;
    height: auto;
}

/* ── Mobile styles (screens narrower than 600px) ───────────────────── */
@media (max-width: 600px) {
    body {
        padding: 0 16px;
        box-sizing: border-box;
    }

    article {
        max-width: 100%;
        padding: 0;
    }

    ul.imagelist {
        max-width: 100%;
    }

    /* Stack image above description on small screens */
    ul.imagelist li {
        flex-direction: column;
        align-items: flex-start;
    }

    ul.imagelist li img {
        height: auto;
        width: 100%;
        max-width: 300px;
    }
}