/* Global Styles */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Muli', sans-serif;
    line-height: 1.5;
    color: #333;
    background: #fff;
}

/* Layout Container */
.layout-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    padding: 15px 0;
    background: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__site {
    display: flex;
    align-items: center;
}

.header__logo {
    display: inline-block;
    margin-right: 15px;
}

.header__logo img {
    height: 40px;
    vertical-align: middle;
}

.header__name {
    font-size: 24px;
    margin: 0;
    color: #54225b; /* Connect4Learning purple */
    font-weight: 500;
}

/* Language Selector */
.header__lang {
    display: flex;
    align-items: center;
}

.header__lang a {
    color: #54225b;
    text-decoration: none;
    margin: 0 5px;
    padding: 3px;
}

.header__lang div {
    width: 1px;
    height: 15px;
    background: #ddd;
    margin: 0 5px;
}

/* Games Container */
.games-container {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    background-color: #f8f8f8;
    position: relative;
    box-sizing: border-box;
}

/* Games List */
.games__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    padding: 40px;
    list-style: none;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.games__item {
    margin: 0;
    padding: 0;
    position: relative;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.games__item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.games__link {
    display: block;
    color: #333;
    text-decoration: none;
}

.games__link-inner {
    display: block;
    padding: 10px 15px;
    background-color: #444444; /* Dark gray */
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.3;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.games__link img {
    width: 100%;
    height: auto;
    display: block;
}

/* Disclaimer */
.l--constrained {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.disclaimer {
    background: #f8f8f8;
    padding: 20px;
    margin: 20px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    border-left: 4px solid #54225b;
}

/* Footer */
footer {
    padding: 20px 0;
    border-top: 1px solid #ddd;
    margin-top: 20px;
}

.copyright {
    font-size: 14px;
    color: #777;
    text-align: center;
}

/* Responsive Design */

@media (max-width: 900px) {
    .games__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .games__list {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .header__site {
        justify-content: center;
    }
    
    .header__lang {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .games-container {
        width: 100%;
        margin-left: 0;
        transform: none;
    }
    
    .games__list {
        padding: 20px;
        gap: 30px;
    }
    
    .games__link-inner {
        font-size: 12px;
        padding: 8px 10px;
    }
}
