/* =====================
   RESET
   ===================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    background: whitesmoke;
}

/* =====================
   ANIMATIONS
   ===================== */

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(150px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade__up {
    opacity: 0;
}

.fade__up.visible {
    animation: fadeUp 1s ease forwards;
}

/* =====================
   TYPOGRAPHY
   ===================== */

.title {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b2fa0;
    text-align: center;
    padding: 1rem 2rem;
    /* -webkit-text-stroke: 1px black; */
}

.subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: black;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    padding: 1rem 2rem;
}

.latest .subtitle,
.latest .btn,
.games .subtitle,
.games .btn {
    filter: invert(1);
}

.full-width-image {
    width: 100%;
    display: block;
    padding: 2rem 0;
}

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

.btn {
    display: block;
    width: fit-content;
    margin: 2rem auto 0;
    padding: 0.85rem 2.5rem;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    transition: background 0.2s, color 0.2s;
}

.btn:hover {
    background: #000;
    color: #fff;
}

.btn--inverse {
    border-color: #fff;
    color: #fff;
}

.btn--inverse:hover {
    background: #fff;
    color: #000;
}

table {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    border-collapse: collapse;
}

thead tr {
    border-bottom: 1px solid #000;
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6b2fa0;
}

td {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #000;
    border-bottom: 1px solid #e0e0e0;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:hover td {
    background: #f9f9f9;
}

.price-original {
    text-decoration: line-through;
    color: tomato;
}

.price-sale {
    color: black;
    font-weight: 500;
}

.latest, .team, .websites, .games {
    padding: 2rem;
    /* padding: 4rem 2rem; */
}

/* =====================
   BANNER
   ===================== */

.sale-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: tomato;
    color: #fff;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    z-index: 1001;
    transform: translateY(-100%);
    animation: slideDown 0.6s ease 0.5s forwards;
}

/* =====================
   NAVBAR
   ===================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    transition: transform 0.3s ease;
    /* mix-blend-mode: difference; */
    z-index: 1000;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar__btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar__btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* =====================
   BANNER
   ===================== */

.banner {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.banner__logo {
    max-width: 500px;
    padding: 0 2rem;
    height: auto;
}

.banner__bg {
    position: absolute;
    inset: 0;
}

.banner__cta {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
}

.banner__cta:hover {
    background: #fff;
    color: #000;
}

.banner__bg img,
.banner__bg video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

/* =====================
   FOOTER
   ===================== */

.footer {
    background: #0a0a0a;
    padding: 2.5rem 3rem;
    border-top: 1px solid #1e1e1e;
    /* margin-top: 4rem; */
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer__nav {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__nav a {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer__nav a:hover {
    color: #fff;
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__social-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #555;
    margin-right: 0.25rem;
}

.footer__social a {
    color: #aaa;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer__social a:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid #1e1e1e;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer__copy {
    font-size: 0.7rem;
    color: #555;
    letter-spacing: 0.05em;
}

.footer__support {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer__support:hover {
    color: #aaa;
}

.footer__legal {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__legal a {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer__legal a:hover {
    color: #aaa;
}

/* =====================
   GALLERY
   ===================== */

.gallery {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.gallery__item {
    width: 25%;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: contain;
}

/* =====================
   CARD ROW
   ===================== */

.card-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.card-row__item {
    width: 25%;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.card-row__item img {
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: contain;
}

.card-row__item span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    text-align: center;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s;
}

.card-row__item:hover span {
    border-bottom-color: currentColor;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 768px) {
    .gallery {
        flex-direction: column;
        align-items: center;
        padding: 0 2rem;
    }

    .gallery__item {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .gallery__item img {
        max-height: 110px;
        object-fit: contain;
    }
    
    .card-row {
        flex-direction: column;
        align-items: center;
        padding: 0 2rem;
    }

    .card-row__item {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .card-row__item img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }
}