@CHARSET "UTF-8";
@import url(//fonts.googleapis.com/earlyaccess/nanumgothic.css);
@import url(http://fonts.googleapis.com/earlyaccess/hanna.css);
body {
    background-color: #f8f8f8;
    text-align: center;
}

:root {
    --color-black: #000;
    --lotto-color: #e43a3c;
    --primary-background: #fff;
    --color-white: #fff;
}

.container {
    width: 1280px;
    margin: 20px auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f1f1f1;
    font-weight: bold;
}

input {
    width: 60px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

select {
    width: 40px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.number-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    max-width: 400px;
    margin: 10px auto;
}

.number {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
}

/* 번호대별 색상 적용 */
.num01 { background-color: #fbc400; }
.num02 { background-color: #69c8f2; }
.num03 { background-color: #ff7272; }
.num04 { background-color: #aaa; }
.num05 { background-color: #b0d840; }

/* 선택된 번호 효과 */
.selected {
    background-color: black !important;
    color: white !important;
}

.btn {
    background-color: #0076c0;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    margin-top: 10px;
}

.btn:hover {
    background-color: #005ea3;
}

.lotto-result {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.lotto-numbers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.exclude-include {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.number-wrap {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 47px;
    border: 2px solid var(--lotto-color);
    color: var(--lotto-color);
    font-size: 14px;
    font-weight: bold;
    align-self: center;
    justify-self: center;
    text-align: center;
    vertical-align: middle;
    margin-top: auto;
}

.number-wrap.on {
    background-color: var(--color-black);
    color: var(--color-white);
}

.number-wrap::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background-color: var(--primary-background);
}

.number-wrap::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background-color: var(--primary-background);
}

.lotto_number {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 로딩바 오버레이 스타일 */
.loading-overlay {
    display: none; /* 기본적으로 숨김 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* 스피너 스타일 */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 스피너 회전 애니메이션 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.gr_radio input[type=checkbox] {
    display: none;
}

.gr_radio input[type=checkbox]+label{
    display: inline-block;
    cursor: pointer;
    height: 24px;
    width: 40px;
    border: 1px solid #333;
    line-height: 24px;
    text-align: center;
    font-weight:bold;
    font-size:13px;
}
.gr_radio input[type=checkbox]+label{
    background-color: #fff;
    color: #333;
}
.gr_radio input[type=checkbox]:checked+label{
    background-color: #333;
    color: #fff;
}

.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}
.toast {
    background-color: #323232;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    margin: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}