@media screen and (min-width: 500px){
	.iframe-games{
		border-radius: 20px;
		width: calc(100% - 2.5rem) !important;
		margin-left: 1rem;
		box-shadow: rgba(3, 102, 214, 0.3) 0px 0px 5px 0px;
	}
}

.iframe-games {
    border: none;
    margin-top: 1rem;
	height: calc(100vh - clamp(4rem, 30vw, 9rem));
	width: 100%;
}

@media screen and (min-width: 500px){
	.footer-games {
		padding: 0 40px !important;
	}
}

@media screen and (max-width: 500px){
	.footer-games {
		margin: 0 0 40px 0;
	}
}


.footer-games {
	padding: 0px 15px;
}

/* Обертка для категорий */
.games-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Секция категории */
.category-section {
    width: 100%;
    margin-bottom: 1rem;
}

/* Анимация появления категорий */
.category-section {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-box {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #0f192f;
    min-height: calc(100vh - 100px);
}

.game-categories {
    width: 240px;
    background: linear-gradient(180deg,#0f467f,#0f192f);
    border-radius: 15px;
    padding: 1rem;
	box-shadow: 0px -20px 15px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.game-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-categories li {
    margin-bottom: 8px;
}

.game-categories a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    background: #0f192f;
    border-radius: 6px;
    transition: all 0.4s ease;
	box-shadow: 0px 0px 0px 0px #0671d49c;
}

.game-categories a:hover {
    background: #076cd275;
	box-shadow: 0px 0px 5px 0px #0671d49c;
}

.game-categories a.active {
    background: linear-gradient(70deg, #076cd2 -8%, #008dc3 96%);
}

.game-categories .category-icon {
    margin-right: 12px;
    opacity: 0.7;
}

.category-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #fff;
	text-align: center;
}

.section-title {
    font-size: 20px;
    font-weight: 500;
    margin: 1rem 0 1rem;
    color: #fff;
	padding-left: 10px;
    border-left: 4px solid #007bff;
}

.game-category.active {
    border-left: 10px solid #00b1c3;
}

.game-category {
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
}

.game-category:focus {
    outline: none;
}

.games-container {
    flex: 1;
	padding: 1rem;
    border-radius: 15px;
    box-shadow: 0px 0px 15px 8px rgba(0, 0, 0, 0.1);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 100, 191, 0.2) 0%, rgba(15, 25, 47, 0.2) 100%);
    transition: 0.4s ease;
	box-shadow: 0px 0px 0px 0px #0671d49c;
    aspect-ratio: 4/3;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	position: absolute;
	transition: 0.4s ease-in-out;
    scale: 1;
}

.game-card img:hover {
    scale: 1.2;
}

.game-card .game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
	pointer-events: none;
    background: linear-gradient(0deg, #076cd266 0%, rgb(15 25 47 / 0%) 100%);
    color: #fff;
}

.game-card .game-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.game-card .game-provider {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 4px;
}

.game-card.with-animation {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Добавьте в games.css */
.game-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    will-change: transform, opacity; /* Улучшает производительность анимации */
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
	opacity: 0.5;
	transition: 0.4s ease-in-out;
    margin: 20px;
    background: url('/img/betjoy.png') center/cover no-repeat;
}

.game-card:hover::before {
    margin: 0px;
}

.game-card::after {
    content: '';
    position: absolute;
	pointer-events: none;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-25deg);
}

.game-card:hover::after {
    animation: shine 0.8s ease-in-out;
}

@keyframes shine {
    100% {
        left: 200%;
    }
}

.game-card.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    position: absolute;
}

/* Добавим эффект наведения для карточек */
.game-card:hover {
   box-shadow: 0px 0px 5px 0px #0671d49c;
}

/* Анимация для заголовков категорий */
.section-title {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: left center;
}

.section-title.hidden {
    opacity: 0;
    transform: translateX(-20px);
}

/* Добавим в games.css */
.banner-slider {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 15px;
    box-shadow: 0px 0px 15px 8px rgba(0, 0, 0, 0.1);
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.8s ease-in-out;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.8s ease-in-out, transform 5s ease-in-out;
}

/* Базовый слой (неподвижный фон) */
.slide-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    z-index: 1;
	background-repeat: no-repeat;
}

/* Средний слой (движущийся) */
.slide-middle {
    position: absolute;
    width: 100%; /* Делаем больше, чтобы при движении не было пустых краёв */
    height: 100%;

    background-size: contain;
    background-position: center;
    z-index: 2;
    
}

/* Верхний слой (неподвижный) */
.slide-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 3;
	background-repeat: no-repeat;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.prev-slide, .next-slide {
    background: #0f467f61;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.prev-slide:hover, .next-slide:hover {
    background: #076cd27d;
}

.slide-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0f467f6b;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #076cd27d;
}
.main {
    width: 100%;
    max-width: 100%;
}

.game-categories {
    position: sticky;
    top: 5rem;
}