body {
    font-family: sans-serif;
    margin: 0;
    padding-top: 60px; /* fixed-header 높이만큼 padding 추가 (데스크탑) */
}

#websearch {
    width: 800px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

h1 { /* h2 대신 h1 사용 및 스타일 조정 */
    color: #333;
    font-size: 35px; /* 폰트 크기 조정 */
	text-align: center;
}

/* 메뉴 스타일 */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f8f8f8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.main-menu a i {
    margin-right: 8px;
}

.main-menu a:hover {
    background-color: #eee;
}

.sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    display: none;
}

.main-menu li:hover .sub-menu {
    display: block;
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.sub-menu li a:hover {
    background-color: #f0f0f0;
}

/* 로또 번호 표시 영역 */
.all-lotto-games {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.game-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    border: 1px dashed #cccccc;
    border-radius: 8px;
    background-color: #fcfcfc;
}
.game-label {
    font-size: 1.1em;
    font-weight: bold;
    color: #777;
    margin-right: 12px;
    min-width: 60px;
    text-align: left;
}
.lotto-numbers {
    display: flex;
    gap: 7px;
}
.number-ball {
    width: 53px;
    height: 53px;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6em;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease-in-out;
}
.number-ball:hover {
    transform: translateY(-3px);
}
/* 번호대별 색상 */
.number-ball.ball-1-10 { background-color: #fbc400; }
.number-ball.ball-11-20 { background-color: #69c8f2; }
.number-ball.ball-21-30 { background-color: #ff7272; }
.number-ball.ball-31-40 { background-color: #aaaaaa; }
.number-ball.ball-41-45 { background-color: #b0d840; }

.generate-button {
	display: block;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	margin: 10px auto;
}
.generate-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
.generate-button:active {
    transform: translateY(0);
}

/* 하단 푸터 */
#footer {
    background-color: #007bff;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

/* 모바일 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .main-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-menu a {
        padding: 10px;
    }

    .sub-menu {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
    }

    .main-menu li:hover .sub-menu {
        display: block;
    }

    #websearch {
        width: 100%;
        margin: 135px auto 20px;
    }

	h1 { 
		font-size: 25px; /* 폰트 크기 조정 */
		padding-top: 30px;
	}

    .number-ball {
        width: 48px; /* 모바일에서 공 크기 조정 */
        height: 48px;
        font-size: 1.5em;
    }

    .game-row {
        flex-direction: column; /* 모바일에서 게임 줄 세로 정렬 */
		margin-bottom: 5px;
    }

    .game-label {
        margin-right: 0;
        margin-bottom: 5px; /* 라벨과 번호 사이 간격 추가 */
    }

    .lotto-numbers {
        flex-wrap: wrap; /* 모바일에서 번호 공들이 다음 줄로 넘어갈 수 있도록 */
        justify-content: center;
    }

}