:root {
    --primary-color: #4a90e2;
    --secondary-color: #50e3c2;
    --background-color: #f5faff;
    --card-background: #ffffff;
    --text-color: #333;
    --heading-color: #2a6db5;
    --shadow-color: rgba(74, 144, 226, 0.1);
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    background-color: var(--background-color);
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.portal-container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    max-width: 1200px;
    width: 100%;
    backdrop-filter: blur(5px);
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--heading-color);
    margin: 0;
}

.subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    width: 100%;
}

.game-card {
    background-color: var(--card-background);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-decoration: none;
    color: var(--text-color);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(74, 144, 226, 0.2);
}

.image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-card h2 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: var(--primary-color);
    font-weight: 700;
}

.game-card p {
    font-size: 0.95rem;
    color: #666;
    flex-grow: 1;
    margin: 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    .portal-container {
        padding: 20px;
    }
    .games-grid {
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

