:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #ecf0f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--primary-color);
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;   
    
}

.logo h2 {
    padding-bottom: 1rem;
    
}

.logo {
    text-align: center;
}



nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

#search-bar {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
}

.category-filter select {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
}

#games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.game-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: scale(1.05);
}

.game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.game-card-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.game-card-info h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.game-description {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
    flex-grow: 1;
}

.ver-mas-link {
    align-self: flex-start;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.ver-mas-link:hover {
    color: var(--primary-color);
}


footer {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    #search-bar, .category-filter select {
        width: 100%;
        margin-bottom: 1rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }
}