html {
    overflow-x: hidden;
}

body {
    background-color: #161415;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.nav{
    width: 100%;
    --stripe-height: 30px;
    height: var(--stripe-height);
    background-color: #242424;
    padding:0 0.5rem;
    display:flex;
    flex-wrap:wrap;
    align-items:stretch;
}

.nav span {
    flex: 0 1 auto;
    min-width: 120px;
    max-width: 250px;
    white-space: normal;
    height: 100%;
    border: none;
    color: #c3cbcb;
    font-size: 1.2rem;
    font-family: 'DM Sans', monospace;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    text-align: center;
    box-sizing: border-box;
}
.nav span:hover{
    background: #0c0e13;
}

@media (max-width:768px){
    .nav{--stripe-height:50px;}
}
@media (max-width:480px){
    .nav{--stripe-height:45px;}
}

main {
    max-width: 700px;
    width: 100%;
    padding: 15px 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main h1 {
    font-family: 'DM Sans', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.3;
    color: #13171d;
    background: #62cf55;
    padding: 0 0.25em;
    margin-top: 60px;
    margin-bottom: 20px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    display: inline-block;
    filter: url(#textDistort);
}

main h2 {
    margin: 0;
    width: 100%;
    font-family: 'DM Sans', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.3;
    color: #62cf55;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    display: inline-block;
    filter: url(#textDistort);
    align-content: center;
}

main p {
    font-family: 'Fragment Mono', monospace;
    color: #a5a09f;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.75;
    font-size: 1rem;
    text-align: justify;
    hyphens: auto;
    max-width: 700px;
    align-self: center;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main p strong {
    color: #d8d3d3;
}

main p a, main li a {
    color: #d8d3d3;
    box-shadow: #50a156 0 2px 0;
}

main p a:hover, main li a:hover {
    box-shadow: #35733a 0 2px 0;
}

main ul {
    align-self: flex-start;
    list-style-type: none;
}

main li {
    font-family: 'Fragment Mono', monospace;
    color: #a5a09f;
    font-size: 1rem;
    text-align: left;
    max-width: 700px;
    align-self: center;
    line-height: 1.7;
}

main li:before {
    content: "▸";
    color: #000000;
    padding-right: 10px;
}

main .image-container {
    margin-top: 20px;
    margin-bottom: 30px;
    max-width: 100%;
    overflow: hidden;
    height: auto;
    width: 100%;
}

main .image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 50px;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.game {
    width: 100%;
    max-width: 300px;
    height: auto;
    min-height: 430px;
    background-color: #242424;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transition: transform 50ms ease;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game:hover {
    transform: scale(1.03);
}

.game-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: auto;
}

.game-stats {
    position: relative;
    background-color: #13171d;
    border-radius: 10px;
    padding: 8px 15px;
    margin: 15px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c3cbcb;
    font-family: 'Fragment Mono', monospace;
    font-size: 0.9rem;
}

.stat-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(57%) sepia(91%) saturate(1063%) hue-rotate(69deg) brightness(97%) contrast(101%);
}

.project-type-icon {
    position: absolute;
    left: 10px;
    max-width: 18px;
    max-height: 18px;
}

.article-subheading {
    margin-top: 35px;
    margin-bottom: 0;
}

.article-data {
    font-family: 'Fragment Mono', monospace;
    color: #505050;
    font-size: 1rem;
    text-align: left;
    max-width: 700px;
    align-self: flex-start;
    line-height: 1.3;
}

.store-button {
    margin-top: 30px;
    margin-bottom: 50px;
    transition: transform 50ms ease;
}

.store-button:hover {
    transform: scale(1.03);
}

@media (max-width: 375px) {
    .game {
        min-height: 290px;
        width: 70%;
        padding: 15px;
    }

    .games-container {
        gap: 30px;
        padding: 0 5px;
    }
}
