/* 컨테이너 스타일 */
.container {
    width: 100%; /* 컨테이너 너비를 90%로 설정 */
    margin: 0 auto; /* 가운데 정렬 */
    padding: 0 10px; /* 좌우 여백 추가 */
}

.xu {
    width: 25% !important;
}

/* Lotto List */
.content_wrap {
    width: 900px;
    float: right;
    z-index: 1005;
}
p {
    margin: 0 !important;
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}
p, li, dd {
    font-weight: 300;
    color: #767676;
    line-height: 22px;
}
[class*="content_winnum_"] .win_result {
    background: #fff;
    text-align: center;
    padding: 60px 60px 90px;
}
[class*="content_winnum_"] .win_result h4 {
    font-size: 28px;
    font-weight: 500;
    line-height: 1px;
}
[class*="content_winnum_"] .win_result h4 strong {
    font-weight: 500;
    color: #11957d;
}
[class*="content_winnum_"] .win_result .desc {
    margin-top: 9px;
}
.content_winnum_645 .win_result .nums {
    display: inline-block;
}
.content_winnum_645 .win_result .nums .num {
    float: left;
    position: relative;
}
.content_winnum_645 .win_result .nums .num ~ .num {
    margin-left: 60px;
}
.content_winnum_645 .win_result .nums .num > strong {
    position: absolute;
    left: 0;
    bottom: -30px;
    right: 0;
    font-size: 16px;
    font-weight: 600;
    color: #555;
}
.content_winnum_645 .win_result .nums .num p {
    padding: 20px;
    border-radius: 30px;
    background: #fff;
}
.content_winnum_645 .win_result .nums .num p span {
    float: left;
}
.content_winnum_645 .win_result .nums .num p span ~ span {
    margin-left: 20px;
}
.content_winnum_645 .win_result .nums .num p:after {
    content: "";
    display: block;
    clear: both;
}
.content_winnum_645 .win_result .nums .num.bonus:before {
    width: 20px;
    height: 4px;
    margin: -2px 0 0 -10px;
}
.content_winnum_645 .win_result .nums .num.bonus:before, .content_winnum_645 .win_result .nums .num.bonus:after {
    content: "";
    position: absolute;
    left: -30px;
    top: 50%;
    background: #999;
}
.content_winnum_645 .win_result .nums:after {
    content: "";
    display: block;
    clear: both;
}
.content_winnum_645 .win_result .nums .num.bonus:after {
    width: 4px;
    height: 20px;
    margin: -10px 0 0 -2px;
}
.content_winnum_645 .tbl_data strong {
    font-weight: 500;
}
.content_winnum_645 .tbl_data strong.length {
    font-weight: 600 !important;
    color: #11957d !important;
}
.ball_645 {
    display: inline-block;
    border-radius: 100%;
    text-align: center;
    vertical-align: middle;
    color: #fff;
    font-weight: 500;
}
.ball_645.lrg {
    width: 60px;
    height: 60px;
    line-height: 56px;
    font-size: 28px;
}
/* 공통 컬러 정의 */
.ball_645.ball1 { background: #fbc400; text-shadow: 0px 0px 3px rgba(73, 57, 0, .8); }
.ball_645.ball2 { background: #0063cc; text-shadow: 0px 0px 3px rgba(0, 49, 70, .8); }
.ball_645.ball3 { background: #d8314f; text-shadow: 0px 0px 3px rgba(64, 0, 0, .8); }
.ball_645.ball4 { background: #6e7382; text-shadow: 0px 0px 3px rgba(61, 61, 61, .8); }
.ball_645.ball5 { background: #2c9e44; text-shadow: 0px 0px 3px rgba(41, 56, 0, .8); }

.tbl_data_col tr th {
    padding: 13px 9px 15px !important;
}
.tbl_data tr th {
    padding: 13px 20px 15px !important;
    background: #f5f5f5 !important;
    font-weight: 600 !important;
    line-height: 22px !important;
    text-align: center;
}
.tbl_data tr td {
    padding: 13px 20px 15px !important;
    font-weight: 300 !important;
    color: #767676 !important;
    line-height: 22px !important;
    background: #fff !important;
    vertical-align: middle !important;
}
.tbl_data tr th, .tbl_data tr td {
    border-bottom: 1px solid #ddd !important;
    border-left: 1px solid #ddd !important;
}
th, td {
    border-collapse: collapse !important;
}
table, th, td {
    margin: 0 !important;
    padding: 0 !important;
}
.color_key1 {
    color: #11957d !important;
}
.tbl_data_col tr td.tar {
    text-align: right !important;
}
.tbl_data_col tr td {
    padding: 13px 9px 15px !important;
    text-align: center !important;
}
.tbl_data tr td.nobd_right {
    border-right: 0;
}
/* Lotto List */

/* Lotto generator */
.show-color {
	border: 20px solid #f3f3f3; /* Light grey */
	border-top: 20px solid #fbc400;
	border-radius: 50%;
	position: absolute;
	left: 10px;
	top: 50px;
	width: 100px;
	height: 100px;
}
.show-change {
	animation: spin-color 1s linear infinite;
}
.select-color-0 {
	border-color: #fbc400;
	color: #fbc400;
}
.select-color-1 {
	border-color: #0063cc;
	color: #0063cc;
}
.select-color-2 {
	border-color: #d8314f;
	color: #d8314f;
}
.select-color-3 {
	border-color: #6e7382;
	color: #6e7382;
}
.select-color-4 {
	border-color: #2c9e44;
	color: #2c9e44;
}
.h1-sub {
    font-size: 1.2rem;
}
.mt-3, .my-3 {
    margin-top: 1rem !important;
}
.py-2 strong, b {
    color: #000000 !important;
    font-weight: 500;
}
.numberCircle strong, b {
    color: #ffffff !important;
    font-weight: 500;
}
.numberCircle {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 6px 0;
    border: 2px solid;
    text-align: center;
    font: 14px Arial, sans-serif;
}
/* Lotto generator */

@media screen and (max-width: 1024px) {
    /* 1. 전체 래퍼 고정 해제 */
    .content_wrap {
        width: 100% !important; /* 900px -> 100% */
        float: none !important; /* 오른쪽 정렬 해제 */
        padding: 0 10px;
    }

    /* 2. 결과창 내부 여백 축소 */
    [class*="content_winnum_"] .win_result {
        padding: 30px 15px 40px !important; /* 60px -> 15px 축소 */
    }

    /* 3. 로또 번호 공 정렬 및 간격 조정 */
    .content_winnum_645 .win_result .nums .num ~ .num {
        margin-left: 10px !important; /* 60px -> 10px 축소 */
    }

    /* 4. 공 크기 조정 (선택 사항: 화면이 아주 작을 때) */
    .ball_645.lrg {
        width: 45px !important;
        height: 45px !important;
        line-height: 41px !important;
        font-size: 20px !important;
    }

    /* 5. 보너스 번호 기호(+) 위치 재조정 */
    .content_winnum_645 .win_result .nums .num.bonus:before,
    .content_winnum_645 .win_result .nums .num.bonus:after {
        left: -12px !important; /* 공 간격이 줄어들었으므로 맞춰서 조정 */
    }

    /* 6. 테이블 가로 스크롤 방지 및 텍스트 크기 */
    .tbl_data tr th, .tbl_data tr td {
        padding: 10px 5px !important; /* 패딩 축소 */
        font-size: 13px; /* 글자 크기 축소 */
    }
}
