*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: #131313;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    color: white;
    font-size: 50px;
}

main {
    flex: 1 0 auto;
    padding-bottom: 40px;
}

.logo-red {
    color: #ff0000;
    text-shadow: 4px 4px black;
}

.logo-blue {
    color: #0061ff;
    text-shadow: 4px 4px black;
}

.construction {
    background-color: rgb(255 255 0 / 1);
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 1px;
    border-bottom-style: solid;
    border-bottom-width: 3px;
    border-left-style: solid;
    border-left-width: 3px;
    border-right-style: solid;
    border-right-width: 3px;
    border-top-left-radius: 1px;
    border-top-right-radius: 1px;
    border-top-style: solid;
    border-top-width: 3px;
    padding: 5px;
}

.construction-text {
    color: black;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0em;
    margin-top: 0em;
    text-align: center;
    outline: 2px dashed rgb(0 0 0 / 0.57);
    padding: 5px;
}

.site-nav {
    background-color: #131313;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 10px;
}

.site-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0 12px;
    display: flex;
    flex-wrap: wrap;
}

.site-nav-right {
    margin-left: auto;
}

.site-nav a {
    position: relative;
    display: block;
    color: #b8b8b8;
    text-align: center;
    padding: 18px 18px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    background-color: #ff0000;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

.site-nav a:hover:not(.active) {
    color: #ffffff;
}

.site-nav a:hover:not(.active)::after {
    transform: scaleX(1);
}

.site-nav a.active {
    color: #ffffff;
    font-weight: 600;
}

.site-nav a.active::after {
    background-color: #0061ff;
    transform: scaleX(1);
}

.header {
    text-align: center;
    color: white;
    padding: 0 16px;
}

.header p {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    margin: 5px;
    border: 1px solid gray;
    display: inline-block;
    overflow: hidden;
    max-width: 502px;
    max-height: 394px;
    flex: 1 1 320px;
}

.gallery-item-frame {
    max-height: 335px;
    display: inline-block;
    overflow: hidden;
    width: 100%;
}

.gallery-item-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease-in-out;
}

.gallery-item-image:hover,
.gallery-item-image:focus-visible {
    transform: scale(1.1);
}

.gallery-item-text {
    color: white;
    padding: 6px 1px;
    text-align: center;
}

a:focus-visible {
    outline: 2px solid #0061ff;
    outline-offset: 2px;
}

.game-list {
    list-style: none;
    margin: 0 auto;
    max-width: 900px;
    padding: 0 16px 40px;
}

.game-row {
    align-items: center;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-left: 4px solid #3a3a3a;
    display: grid;
    gap: 16px;
    grid-template-columns: 120px 1fr auto;
    margin-bottom: 10px;
    padding: 14px;
}

.game-thumb {
    border: 1px solid #2a2a2a;
    height: 80px;
    overflow: hidden;
    width: 120px;
}

.game-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.game-info {
    color: #d8d8d8;
    min-width: 0;
}

.game-title-line {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-title {
    color: #ffffff;
    font-size: 19px;
    font-weight: 600;
    margin: 0;
}

.game-year {
    color: #808080;
    font-size: 13px;
}

.game-desc {
    line-height: 1.45;
    margin: 6px 0 0;
    font-size: 14.5px;
}

.game-status {
    border: 1px solid;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    text-align: center;
    white-space: nowrap;
}

.status-released {
    background-color: rgb(47 174 86 / 0.12);
    border-color: #2fae56;
    color: #4fd377;
}

.status-development {
    background-color: rgb(0 97 255 / 0.12);
    border-color: #0061ff;
    color: #0061ff;
}

.status-cancelled {
    background-color: rgb(255 255 255 / 0.04);
    border-color: #5a5a5a;
    color: #888888;
}

.game-row[data-status="cancelled"] .game-title,
.game-row[data-status="cancelled"] .game-desc {
    color: #7a7a7a;
}

.game-row[data-status="cancelled"] {
    border-left-color: #5a5a5a;
}

.status-rumored {
    background-color: rgb(178 59 255 / 0.1);
    border-color: #b23bff;
    border-style: dashed;
    color: #c774ff;
}

.game-row[data-status="released"] {
    border-left-color: #2fae56;
}

.game-row[data-status="development"] {
    border-left-color: #0061ff;
}

.game-row[data-status="rumored"] {
    border-left-color: #b23bff;
}

.empty-state {
    color: #808080;
    text-align: center;
    padding: 40px 16px 60px;
}

.footer {
    align-items: center;
    background-color: rgb(10 10 10 / 1);
    color: gray;
    display: flex;
    justify-content: center;
    padding: 10px 8px;
    text-align: center;
    border-top: 3px solid #282828;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .site-nav-right {
        margin-left: 0;
    }

    .gallery-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .game-row {
        grid-template-columns: 1fr;
    }

    .game-thumb {
        width: 100%;
        height: 140px;
    }

    .game-status {
        justify-self: start;
    }
}
