body {
    font-family: 'Gulim', '굴림', sans-serif; /* 모든 글씨체 굴림체 */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background-color: #f4f4f4;
    margin: 20px;
    padding: 0;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

h1 {
    font-family: 'HY 견고딕', 'HYGothic-Extra', 'Malgun Gothic', '맑은 고딕', sans-serif; /* 제목 HY견고딕 */
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em; /* 제목 크기 키우기 */
}

h2, h3 {
    font-family: 'Gulim', '굴림', sans-serif;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 6px;
    background-color: #fafafa;
}

input[type="file"],
.select-box,
button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-family: 'Gulim', '굴림', sans-serif; /* 굴림체 적용 */
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.download-btn {
    background-color: #28a745;
    margin-top: 15px;
}

.download-btn:hover {
    background-color: #218838;
}

.image-canvas {
    border: 1px dashed #aaa;
    margin-top: 15px;
    max-width: 100%;
    height: auto;
    display: block;
    background-color: #e9e9e9; /* 캔버스 배경색 추가 */
}

.image-upload-item {
    margin-bottom: 10px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap; /* 작은 화면에서 줄바꿈 */
}

.radio-group input[type="radio"] {
    display: none; /* 기본 라디오 버튼 숨기기 */
}

.radio-group label {
    background-color: #e9ecef;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
    font-family: 'Gulim', '굴림', sans-serif;
}

.radio-group input[type="radio"]:checked + label {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}

.radio-group label:hover {
    background-color: #d6eaff;
}

/* 푸터 스타일 */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9em;
}

.footer-image {
    max-width: 100px; /* 이미지 크기 조절 */
    height: auto;
    margin-top: 10px;
    border-radius: 5px; /* 이미지 모서리 둥글게 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}