/* Algemene stijlen */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #f4f4f9;
    --text-color: #333;
    --card-bg-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-shadow-color: rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 1.5rem 1rem; /* Reduced padding */
    text-align: center;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

header h1 {
    margin: 0;
    font-size: 2.5rem; /* Reduced font size */
    font-weight: 700;
}

main {
    padding: 1.5rem 1rem 5rem; /* Added bottom padding to account for footer */
    max-width: 1200px;
    margin: 0 auto;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #888;
    position: relative;
    transition: color 0.3s ease;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    display: none; /* Hide the h3 inside tabs as the tab button serves as the title */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Game lijst */
.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--shadow-color);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px var(--hover-shadow-color);
}

.game-card img {
    width: 100%;
    height: 200px; /* Adjusted height */
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.game-card h4 {
    margin: 1rem;
    font-size: 1.2rem;
    color: var(--text-color);
}

footer {
    text-align: center;
    padding: 0.75rem; /* Halved padding */
    background-color: #e9ecef;
    color: #6c757d;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Responsive design */
@media (max-width: 600px) {
    header h1 {
        font-size: 2.2rem;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-button {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .game-list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
}
