
.games-carousel {
    position: relative;
     background: linear-gradient(120deg, #1a2233 0%, #146698 100%);
     box-shadow: 0 8px 32px 0 rgba(20,102,152,0.10);
     animation: bgmove 8s linear infinite alternate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
                    align-items: center;
                    margin-top: 78px;
                }
                @keyframes bgmove {
                    0% { background-position: 0% 50%; }
                    100% { background-position: 100% 50%; }
                }

                #leftbox {
                display: block;
                width: 0px !important;
            }
        
        

h1.carousel-title, .carousel-title-link {
    color: #fff !important;
    font-size: 2.5rem !important;
    text-shadow: 0 2px 12px rgba(20,102,152,0.18), 0 1px 0 #222 !important;
    margin: 30px 0 10px 0 !important;
    padding: 0 !important;
    font-weight: bold !important;
    text-align: center !important;
    position: relative !important;
    z-index: 20 !important;
}
 
            .carousel-container {
            margin: 0 auto;
            max-width: 100%;
            width: 100%;
            position: relative;
            padding: 0 58px; 
            overflow: hidden;
        }
                .carousel-track {
                    display: flex;
                    gap: 32px;
                    overflow-x: auto;
                    scroll-behavior: smooth;
                    padding: 20px 48px 20px 48px;
                    scrollbar-width: none;
                    -ms-overflow-style: none;
                }
                .carousel-track::-webkit-scrollbar {
                    display: none;
                }
                .game-card {
                    flex: 0 0 auto;
                    width: 170px;
                    height: 170px;
                    border-radius: 20px;
                    overflow: hidden;
                    box-shadow: 0 6px 24px rgba(20,102,152,0.18), 0 2px 8px rgba(0,0,0,0.12);
                    background: linear-gradient(120deg, #fff 80%, #eaf6ff 100%);
                    cursor: pointer;
                    position: relative;
                    transition: transform 0.22s cubic-bezier(.4,2,.6,1), box-shadow 0.22s;
                    z-index: 1;
                    border: 2.5px solid #14669822;
                }
               .game-card:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 8px 24px rgba(20,102,152,0.18), 0 2px 8px rgba(0,0,0,0.12);
    border: 2.5px solid #146698;
    z-index: 5;
}
                .game-image {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    display: block;
                    border-radius: 20px;
                    background: #eaf6ff;
                }
            .game-title {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(20,102,152,0.82);
            color: #fff;
            padding: 12px 10px 10px 10px;
            font-size: 15px;        
            font-weight: 700;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.18);
            letter-spacing: 1px;
        }
                .carousel-nav {
                    position: absolute;
                    top: 50%;
                    transform: translateY(-50%);
                    width: 54px;
                    height: 54px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    z-index: 10;
                    border: none;
                    background: linear-gradient(120deg, #146698 60%, #1a2233 100%);
                    border-radius: 50%;
                    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
                    opacity: 0.88;
                    transition: background 0.2s, opacity 0.2s, transform 0.2s;
                }
                .carousel-nav.prev {
                    left: 180px;
                }
                .carousel-nav.next {
                    right: 32px;
                }
                .carousel-nav.hidden {
                    opacity: 0;
                    pointer-events: none;
                }
                /* === Unificar cards de todos los carrousels === */
                .primeCarouselLi, .othergames222primeCarouselLi, .othergames322primeCarouselLi, .othergames422primeCarouselLi {
                    list-style: none;
                    margin: 0 6px;
                    padding: 0;
                }
                .css-1daj25a {
                    display: block;
                    position: relative;
                    width: 150px;
                    height: 150px;
                    border-radius: 10px;
                    overflow: hidden;
                    background: #fff;
                    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
                    transition: transform 0.2s, box-shadow 0.2s;
                    cursor: pointer;
                }
                .css-1daj25a:hover {
                    transform: scale(1.05);
                    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
                }
                .GameThumbImage {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    display: block;
                }
                .gameThumbTitleContainer {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    right: 0;
                    background: rgba(0,0,0,0.7);
                    color: #fff;
                    padding: 8px 6px 8px 6px;
                    font-size: 12px;
                    font-weight: 600;
                    text-align: center;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    z-index: 2;
                    border-bottom-left-radius: 10px;
                    border-bottom-right-radius: 10px;
                    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
                }


                /* Tamaño para pantallas grandes */
@media (min-width: 1440px) {
  .game-card {
    width: 150px;
    height: 150px;
  }
}

/* Tamaño para pantallas medianas */
@media (max-width: 1439px) and (min-width: 1024px) {
  .game-card {
    width: 135px;
    height: 135px;
  }
}

/* Tamaño para pantallas chicas */
@media (max-width: 1023px) {
  .game-card {
    width: 128px;
    height: 128px;
  }
}
                @media (max-width: 768px) {
                    .css-1daj25a {
                        width: 120px;
                        height: 120px;
                    }
       
          
        
            .carousel-container {
                padding: 0 12px;
            }

                }
                /* === Flechas de los otros carrousels === */
                .paddles .paddle {
                    width: 48px;
                    height: 48px;
                    border: none;
                    border-radius: 50%;
                    background: rgba(30,34,51,0.92);
                    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    opacity: 0.85;
                    transition: background 0.2s, opacity 0.2s, transform 0.2s;
                    font-size: 0;
                    position: absolute;
                    top: 50%;
                    transform: translateY(-50%);
                    z-index: 10;
                }
                .paddles .paddle:hover {
                    opacity: 1;
                    background: #23263a;
                    transform: translateY(-50%) scale(1.08);
                }
                .paddles .left-paddle {
                    left: -18px;
                }
                .paddles .right-paddle {
                    right: -18px;
                }
                .paddles .paddle svg {
                    width: 26px;
                    height: 26px;
                    fill: #fff;
                    display: block;
                    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
                }
                .paddles .paddle.hidden {
                    opacity: 0;
                    pointer-events: none;
                }
                /* Eliminar el texto < y > de las flechas */
                .paddles .paddle {
                    color: transparent;
                }
                @media (max-width: 768px) {
                    .paddles .paddle {
                        width: 36px;
                        height: 36px;
                    }
                    .paddles .paddle svg {
                        width: 18px;
                        height: 18px;
                    }

                }
                /* Eliminar fondo y margen superior de middlebox y hacerlo 100% ancho */
                #middlebox {
                    width: auto !important;
                    margin: 0 auto !important;
                    float: none !important;
                    height: auto;
                    overflow: visible;
                    background: none !important;
                    margin-top: 0 !important;
                }


.main-title {
  color: #fff;
  font-size: 2.2rem;
  text-align: center;
  margin: 50px 0 30px 0;
  font-weight: 800;
  text-shadow: 0 2px 12px #14669888, 0 1px 0 #222;
  position: relative;
  letter-spacing: 2px;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .main-title {
    font-size: 1.3rem;
    margin-top: 80px;
    margin-bottom: 18px;
  }
  .games-carousel {
    margin-top: 95px;
  }
}

@media (max-width: 768px) {
    
    .carousel-nav.prev {
                    left: 50px;
                }
                .carousel-nav.next {
                    right: 20px;
                }
                .carousel-track {
    padding: 10px 20px;
}
.uph-logo-img{
    display: none;
}
}

@media (max-width: 900px) and (min-width: 769px) {
    .games-carousel{
        margin-top: 60px;
    }
    .carousel-container {
    padding: 0px;

}
    }

