.game__how-to-play__container {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__game__container {
    position: relative;
    width: 100%;
    height: 350px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#hero__game__container-blackjack {
    background-image: url('../img/blackjack-hero.webp');
}

#hero__game__container-roulette {
    background-image: url('../img/roulette-hero.webp');
}

#hero__game__container-video_poker {
    background-image: url('../img/video_poker-hero.webp');
}

#hero__game__container-sports_betting {
    background-image: url('../img/sports_betting-hero.webp');
}

#hero__game__container-aviator {
    background-image: url('../img/aviator-hero.webp');
    background-position: top;
}

#hero__game__container-buffalo_slots {
    background-image: url('../img/buffalo_slots-hero.webp');
}

#hero__game__container-esports_betting {
    background-image: url('../img/esports_betting-hero.webp');
}

#hero__game__container-plinko {
    background-image: url('../img/plinko-casino-banner-1.webp');
}

#hero__game__container-sweet_bonanza {
    background-image: url('../img/sweet_bonanza-hero.webp');
    background-position: top;
}

#hero__game__container-virtual_football {
    background-image: url('../img/virtual_football-hero.webp');
}

.game__container {
    display: flex;
    flex-direction: column;
    background-color: white;
    gap: 4rem;
    width: 60%;
    padding: 2rem;
    border-radius: 10px;
    align-items: flex-start;
    justify-content: center;
    z-index: 999;
    overflow: visible;

    /* New changes */
    margin-top: -100px;
    margin-bottom: 4rem;
    align-self: center;
    position: static; /* ← Not absolute */
}


.game__container h1 {
    font-size: 3rem;
}

.game__container div:nth-of-type(1) {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game__container div:nth-of-type(1) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game__container div:nth-of-type(2) {
    width: 100%;
    overflow-y: auto;
}

.game__container div:nth-of-type(2) ul {
    list-style: disc;
    padding-left: 2rem; /* Adjust as needed to create some indent space */
}

.game__container div:nth-of-type(2) ol {
    list-style: decimal;
    padding-left: 2rem; /* Adjust as needed to create some indent space */
}

.game__container div:nth-of-type(2) ol li {
    font-weight: bold;
}

.game__container a {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 1.2rem 1rem;
    font-size: 2.5rem;
    text-decoration: none;
    font-weight: bold;
    background-color: var(--game-card-play-btn-color);
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.game__container a:hover {
    background-color: var(--game-card-play-btn-color-hover);
}

@media (max-width: 800px) {
    .game__container {
        width: 70%;
    }
}

@media (max-width: 1200px) {
    .game__container {
        width: 90%;
    }
}