<div class="top-bar">
    CLUB/{{ $game->individualZone->main_title ?? '' }}/{{ $game->main_title }}
</div>
<div class="game-flex-row">
    <div class="game-title-vertical">
        <span class="game-title-main">{{ Str::substr($game->main_title, 0, strlen($game->main_title) - 4) }}</span>
        <span class="game-title-outline">{{ Str::substr($game->main_title, -4) }}</span>
    </div>
    <div class="game-desc-box" style="background: {{ $game->background_color ?? '#A3D9A5' }};">
        <p class="game-desc-text">{{ $game->description }}</p>
    </div>
</div>

<style>
        .top-bar {
        margin-top: 150px;
        color: #36384E;
        padding: 48px;
        font-family: Poppins;
        font-weight: 400;
        font-size: 18px;
        line-height: 38px;
        letter-spacing: 0px;
        text-align: left;
        vertical-align: middle;

    }
.game-flex-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
   padding: 48px;
    max-width: 98%;
    font-family: 'Poppins', sans-serif;
}
.game-title-vertical {
    min-width: 220px;
    z-index: 5;
    margin-right: -8%;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.game-title-main {
    color: #A3A3A3;
    font-weight: 700;
    margin-right: 0.1em;
}
.game-title-outline {
    color: transparent;
    -webkit-text-stroke: 2px #FFFFFF;
    text-stroke: 2px #FFFFFF;
    font-weight: 700;
    letter-spacing: 2px;
}
.game-desc-box {
    border-radius: 4px;
    padding: 2.5rem 3rem 2.5rem 3rem;
    background: #A3D9A5;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 900px;
    width: 100%;
}
.game-desc-text {

    margin-left: 10%;
    color: #fff;
    opacity: 0.95;
    font-weight: 400;
    text-align: left;
}
    /* Enhanced responsive styles */
    @media (max-width: 1200px) {
        .top-bar {
            margin-top: 200px;
            padding: 40px;
            font-size: 16px;
            line-height: 32px;
        }
        .game-flex-row {
            padding: 40px;
        }
        .game-title-vertical {
            font-size: 2.6rem;
            margin-right: -6%;
        }
        .game-desc-box {
            padding: 2rem 2.5rem 2rem 2.5rem;
            font-size: 1rem;
        }
        .game-desc-text {
            margin-left: 8%;
        }
    }

    @media (max-width: 992px) {
        .top-bar {
            margin-top: 200px;
            padding: 35px;
            font-size: 15px;
            line-height: 28px;
        }
        .game-flex-row {
            padding: 35px;
        }
        .game-title-vertical {
            font-size: 2.2rem;
            margin-right: -4%;
        }
        .game-desc-box {
            padding: 1.8rem 2rem 1.8rem 2rem;
            font-size: 0.95rem;
        }
        .game-desc-text {
            margin-left: 6%;
        }
    }

    @media (max-width: 900px) {
        .top-bar {
            margin-top: 200px;
            padding: 30px;
            font-size: 14px;
            line-height: 24px;
        }
        .game-flex-row {
            flex-direction: column;
            align-items: flex-start;
            padding: 30px;
        }
        .game-title-vertical {
            margin-bottom: 1.5rem;
            font-size: 2rem;
            margin-right: 0;
        }
        .game-desc-box {
            padding: 1.5rem;
            font-size: 0.9rem;
        }
        .game-desc-text {
            margin-left: 0;
        }
    }

    @media (max-width: 768px) {
        .top-bar {
            margin-top: 200px;
            padding: 25px;
            font-size: 13px;
            line-height: 20px;
        }
        .game-flex-row {
            padding: 25px;
        }
        .game-title-vertical {
            font-size: 1.8rem;
            margin-bottom: 1.2rem;
        }
        .game-desc-box {
            padding: 1.2rem;
            font-size: 0.85rem;
            line-height: 1.5;
        }
    }

    @media (max-width: 600px) {
        .top-bar {
            margin-top: 200px;
            padding: 20px;
            font-size: 12px;
            line-height: 18px;
        }
        .game-flex-row {
            padding: 20px;
        }
        .game-title-vertical {
            font-size: 1.6rem;
            margin-bottom: 1rem;
        }
        .game-desc-box {
            padding: 1rem;
            font-size: 0.8rem;
            line-height: 1.4;
        }
    }

    @media (max-width: 480px) {
        .top-bar {
            margin-top: 200px;
            padding: 15px;
            font-size: 11px;
            line-height: 16px;
        }
        .game-flex-row {
            padding: 15px;
        }
        .game-title-vertical {
            font-size: 1.4rem;
            margin-bottom: 0.8rem;
        }
        .game-desc-box {
            padding: 0.8rem;
            font-size: 0.75rem;
            line-height: 1.3;
        }
    }

    @media (max-width: 360px) {
        .top-bar {
            margin-top: 200px;
            padding: 12px;
            font-size: 10px;
            line-height: 14px;
        }
        .game-flex-row {
            padding: 12px;
        }
        .game-title-vertical {
            font-size: 1.2rem;
            margin-bottom: 0.6rem;
        }
        .game-desc-box {
            padding: 0.6rem;
            font-size: 0.7rem;
            line-height: 1.2;
        }
    }

    /* Adjust text stroke for smaller screens */
    @media (max-width: 768px) {
        .game-title-outline {
            -webkit-text-stroke: 1.5px #FFFFFF;
            text-stroke: 1.5px #FFFFFF;
        }
    }

    @media (max-width: 480px) {
        .game-title-outline {
            -webkit-text-stroke: 1px #FFFFFF;
            text-stroke: 1px #FFFFFF;
        }
    }
</style>
