
/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700&display=swap');

:root {
    --bg-gradient-start: #000000;
    --bg-gradient-mid: #050505;
    --bg-gradient-end: #0a0a0a;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05); /* Slightly more transparent on black */
    --card-border: rgba(255, 255, 255, 0.15);
    --hover-glow: 0 0 25px rgba(255, 255, 255, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[ng\:cloak], [ng-cloak], [data-ng-cloak], .ng-cloak, .x-ng-cloak {
    display: none !important;
}

body, html {
    min-height: 100vh; /* Changed from height: 100% to min-height */
    height: auto;
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: #000000;
    background: radial-gradient(circle at center, #111111 0%, #000000 100%);
    overflow-x: hidden; /* Prevent horizontal scroll only */
    width: 100%;
    position: relative;
    touch-action: pan-y; /* Enforce vertical scroll only for touch devices */
}

.container {
    z-index: 1;
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    min-height: 100vh; /* Ensure it takes at least full screen */
    width: 100%;

    padding: 2rem;
}

header {
    animation: fadeInDown 1s ease-out;
    margin-bottom: 4rem;
    text-align: center;
    width: 100%;
}

h1 {
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #a8c0ff);
    
    /* Responsive font size using clamp */
    font-size: clamp(2.5rem, 8vw, 4rem); 
    
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);

    letter-spacing: -1px;
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.subtitle {
    opacity: 0.8;
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 300;
}

.buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
}

.game-card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    animation: zoomIn 0.8s ease-out backwards;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27), filter 0.4s ease;

    border: none;
    border-radius: 30px;

    /* Responsive width */
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1; /* Keep square */

    background: transparent;
    cursor: pointer;
}

.game-card:nth-child(1) {
    animation-delay: 0.2s;
}
.game-card:nth-child(2) {
    animation-delay: 0.4s;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

.game-card img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    display: flex;
    justify-content: center;
    align-items: flex-end;

    opacity: 0;
    transition: opacity 0.3s ease;
    height: auto; /* Let it grow if needed, or stick to percent */
    min-height: 5%;
    padding-bottom: 2rem;
    padding-top: 2rem;

    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.game-card:hover .overlay {
    opacity: 1;
}

.card-label {
    transform: translateY(20px);
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    font-weight: 700;
}

.game-card:hover .card-label {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Particles/Background Decoration */
.bg-decoration {
    z-index: 0;
    position: absolute;
    top: -200px;
    left: -200px;

    animation: float 10s infinite ease-in-out;

    width: 600px;
    height: 600px;

    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    filter: blur(80px);
}

.bg-decoration.secondary {
    top: auto;
    bottom: -200px;
    left: auto;
    right: -200px;
    animation-delay: -5s;
    background: radial-gradient(circle, rgba(100, 100, 255, 0.05) 0%, transparent 70%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        /* Change alignment to flex-start on mobile to prevent clipping when scrolling */
        justify-content: flex-start; 
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    header {
        margin-bottom: 2rem;
        /* margin-top is handled by container padding now */
        margin-top: 0;
    }

    .buttons-wrapper {
        flex-direction: column;
        gap: 2rem;
        align-items: center; /* Center items in column mode */
    }
    
    /* On mobile, cards adjust */
    .game-card {
        max-width: 250px; /* Slightly smaller on tablets/phones */
    }
}

@media (max-width: 480px) {
    /* Small mobile screens */
    .game-card {
        max-width: 100%; /* Fill width if needed up to original constraint */
        width: 80vw;     /* Good for aesthetic spacing */
    }

    .buttons-wrapper {
        gap: 1.5rem;
    }
}

