:root {
    --neon-color: #0070D1; 
}

body {
    background-color: #121212;
    color: #E0E0E0;
    /* font-family: 'Roboto', sans-serif; */
    font-family: 'Science Gothic', sans-serif;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.header-container {
    position: absolute;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    text-align: center;
}

.neon-text {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    
    text-shadow: 
        0 0 4px #fff,
        0 0 8px #fff,
        0 0 15px var(--neon-color),
        0 0 30px var(--neon-color),
        0 0 50px var(--neon-color);
    
    animation: 
        flicker-continuous 1.5s infinite steps(20, end),
        color-cycle 6s linear infinite;
    
    letter-spacing: 2px;
    transition: color 0.5s ease;
}

@keyframes flicker-continuous {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
            0 0 2px #fff, 
            0 0 5px #fff,
            0 0 10px var(--neon-color),
            0 0 20px var(--neon-color),
            0 0 30px var(--neon-color),
            0 0 40px var(--neon-color);
    }
    20%, 24%, 55% {
        text-shadow:
            0 0 0.5px #fff,
            0 0 1px #fff,
            0 0 3px var(--neon-color),
            0 0 6px var(--neon-color);
    }
}

@keyframes color-cycle {
    0% { --neon-color: #0070D1; }
    33% { --neon-color: #D10000; }
    66% { --neon-color: #00D15B; }
    100% { --neon-color: #0070D1; }
}

.ps5-container {
    width: 100vw;
    height: 100vh;
    padding: 30px;
    position: relative;
    box-sizing: border-box;
}
.game-list {
    position: absolute;
    bottom: 20vh;
    left: 0;
    padding-left: 30px;
    display: flex;
    gap: 20px;
    z-index: 30;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    touch-action: pan-y; /* Prevent vertical scrolling during horizontal swipe */

}

.game-card {
    width: 15vw;
    height: 22vw;
    max-width: 250px;
    max-height: 350px;
    min-width: 120px;
    min-height: 160px;
    background-color: #212121;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, filter 0.3s ease-out, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.game-card.active {
    transform: scale(1.25);
    z-index: 40;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 10px var(--neon-color);
}
.game-card:not(.active) {
    filter: brightness(0.5);
}
#hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(5px) brightness(0.7);
    transition: background-image 0.1s ease-in-out, filter 0.1s ease-in-out;
    z-index: 10;
}
.footer-info {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 30px;
    z-index: 50;
}
.link-text {
    color: #B0B0B0;
    text-decoration: none;
    transition: color 0.3s;
}
.link-text:hover {
    color: #0070D1;
}
#focused-info {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform:
    translateX(-50%);
    z-index: 50;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
#focused-title {
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

@media (max-width: 1024px) {
    .game-card {
        width: 20vw;
        height: 30vw;
        max-width: 200px;
        max-height: 280px;
    }

    #focused-title {
        font-size: 2.5rem;
    }

    #focused-subtitle {
        font-size: 1.5rem;
    }

    .neon-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .ps5-container {
        padding: 15px;
    }

    .game-list {
        bottom: 15vh;
        padding-left: 15px;
        gap: 10px;
    }

    .game-card {
        width: 30vw;
        height: 45vw;
        max-width: 150px;
        max-height: 225px;
    }

    .game-card.active {
        transform: scale(1.15);
    }

    #focused-info {
        display: none !important;
    }

    /* #focused-title {
        font-size: 1.8rem;
    }

    #focused-subtitle {
        font-size: 1rem;
    } */

    .footer-info {
        padding: 15px;
    }

    .neon-text {
        font-size: 1.8rem;
    }

    .header-container {
        top: 3vh;
    }
}

