/* 기본 스타일 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6; /* 줄 간격 조정 */
}

/* 헤더 스타일 */
.site-header {
    background: #35424a;
    color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.header-container {
    width: 80%;
    margin: 0 auto;
}

h1 {
    margin: 0;
    font-size: 24px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* 컨테이너 스타일 */
.container {
    width: 80%;
    margin: 20px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* 본문 설명 및 텍스트 스타일 */
.description, p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

/* 줄 간격 및 강한 키워드 강조 */
strong {
    font-weight: bold;
    color: #007bff;
}

/* 입력 및 라벨 스타일 */
label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
    text-align: left;
}

input[type="text"], input[type="number"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* 번호 디스플레이 */
.number-display {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 60px;
    justify-content: center;
}

/* 번호 세트 */
.number-set {
    display: flex;
    margin: 5px;
}

.number-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    margin: 5px;
    font-size: 18px;
}

.ball-yellow { background-color: #f39c12; }
.ball-blue { background-color: #3498db; }
.ball-red { background-color: #e74c3c; }
.ball-gray { background-color: #7f8c8d; }
.ball-green { background-color: #2ecc71; }

/* 버튼 스타일 */
.button-group {
    margin: 20px 0;
}

button {
    padding: 10px 20px;
    margin: 5px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* 저장된 번호 보기 및 버튼 */
.results-title {
    font-size: 20px;
    margin-top: 30px;
    color: #333;
    font-weight: bold;
}

.saved-numbers {
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 60px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.saved-number-set {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.saved-set-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.saved-number-set .button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.saved-number-set button {
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.saved-number-set .delete-button {
    background-color: #d9534f;
    color: #fff;
}

.saved-number-set .delete-button:hover {
    background-color: #c9302c;
}

.saved-number-set .copy-button {
    background-color: #5bc0de;
    color: #fff;
}

.saved-number-set .copy-button:hover {
    background-color: #31b0d5;
}

/* 로또 정보 */
.lotto-info {
    margin-top: 20px;
    color: #555;
    font-size: 14px;
}

/* 푸터 스타일 */
.site-footer {
    text-align: center;
    padding: 20px 0;
    background: #35424a; /* 헤더와 동일한 배경색 */
    color: #ffffff; /* 헤더와 동일한 글자색 */
    margin-top: auto;
    width: 100%;
}

.site-footer p {
    margin: 5px 0;
    color: #ffffff; /* 글자색 변경 */
}

.site-footer a {
    color: #ffffff; /* 링크 글자색 변경 */
    text-decoration: none;
    margin: 0 10px;
}

.site-footer a:hover {
    text-decoration: underline;
}