body {
    font-family: sans-serif;
    background-color: #ffffff; /* Белый фон */
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.carousel-container {
    position: relative;
    width: 80%;
    max-width: 800px;
    overflow: hidden;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.game-card {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
    border-right: 1px solid #eee; /* Разделитель между карточками */
}

.game-card:last-child {
    border-right: none;
}

.game-card img {
    max-width: 100%;
    height: auto;
    max-height: 300px; /* Ограничение высоты изображения */
    margin-bottom: 15px;
    border-radius: 8px;
}

.game-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.game-card p {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
}

.game-card a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.game-card a:hover {
    background-color: #0056b3;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
    font-size: 1.5em;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Стили для мобильных устройств - пока базовые */
@media (max-width: 768px) {
    .carousel-container {
        width: 95%;
    }

    .game-card h3 {
        font-size: 1.2em;
    }

    .game-card p {
        font-size: 0.9em;
    }

    .prev-btn,
    .next-btn {
        padding: 8px;
        font-size: 1.2em;
    }
} 