main { display: flex; height: 100vh; margin: 0; padding: 0; } .title { font-size: 24px; font-weight: bold; text-align: center; margin-bottom: 10px; color: #333; text-transform: uppercase; letter-spacing: 1px; } #canvasContainer { flex: 1.5; /* 캔버스 영역 비율 조정 */ display: flex; justify-content: center; align-items: center; height: 100vh; } canvas { border: 1px solid #ddd; width: 100%; height: 100%; max-height: 100vh; background-color: #333; } #controls { flex: 1; padding: 20px; max-width: 400px; background-color: #fff; display: flex; flex-direction: column; justify-content: flex-start; overflow-y: auto; overflow-x: hidden; /* 가로 스크롤 방지 */ box-sizing: border-box; /* 패딩을 너비에 포함 */ } #controls label { margin-bottom: 8px; font-weight: bold; color: #555; } #controls input[type="file"]{ border: 1px solid #ddd; border-radius: 4px; padding: 8px; margin-bottom: 10px; font-size: 16px; color: #000; width: 100%; } #controls textarea, #controls input[type="text"], #controls select, #controls input[type="number"] { margin-bottom: 15px; padding: 8px; font-size: 16px; color: #000; width: 100%; box-sizing: border-box; /* 입력 요소의 패딩을 너비에 포함 */ } #controls input[type="tel"], #controls input[type="email"] { padding: 8px; font-size: 16px; color: #000; width: 100%; box-sizing: border-box; /* 입력 요소의 패딩을 너비에 포함 */ } .tela { margin-bottom: 15px; font-size: 16px; color: #000; width: 100%; box-sizing: border-box; /* 입력 요소의 패딩을 너비에 포함 */ } #neonText { resize: none; font-size: 16px; } #controls textarea { min-height: 100px; /* textarea 최소 높이 설정 */ resize: vertical; /* 수직 리사이즈만 허용 */ } .color-swatch.white-grey { background-color: #D3D3D3; border: 1px solid #a89c9c; } .color-swatch.white-grey.selected { border-color: #000; border: 2px solid #000000; } .color-swatch { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: all 0.3s ease; } .color-swatch.selected { border-color: #000; transform: scale(1.1); } .color-swatch:hover { transform: scale(1.1); box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); } .color-swatch.white-grey:hover { border: 2px solid #000000; } .radio-group { display: flex; margin-bottom: 20px; align-items: center; flex-direction: row; /* 가로 배치 유지 */ justify-content: flex-start; /* 왼쪽 정렬 */ } .radio-group label { display: flex; align-items: center; cursor: pointer; font-size: 16px; margin-right: 10px; white-space: nowrap; /* 텍스트 줄바꿈 방지 */ } .radio-group input[type="radio"] { margin: 0; width: 16px; height: 16px; margin-right: 5px; } #colorSwatches { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 20px; } #sendButton { background-color: #4CAF50; color: white; padding: 12px; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; transition: background-color 0.3s ease; } #sendButton:hover { background-color: #45a049; } .font-dropdown { position: relative; width: 100%; margin-bottom: 15px; } .font-dropdown-btn { width: 100%; padding: 10px 15px; background-color: #fff; border: 2px solid #8a2be2; border-radius: 5px; cursor: pointer; text-align: left; font-size: 16px; color: #8a2be2; display: flex; justify-content: space-between; align-items: center; } .font-dropdown-btn::after { content: '\25BC'; font-size: 12px; } .font-dropdown-btn.open::after { content: '\25B2'; } .font-dropdown-content { display: none; position: relative; background-color: #fff; width: 100%; z-index: 1; margin-top: 5px; padding: 10px 10px 10px 0px; } .font-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .font-button { padding: 10px; text-align: center; border: 1px solid #ddd; border-radius: 5px; background-color: #fff; cursor: pointer; transition: all 0.3s ease; font-size: 14px; } .font-button:hover { transform: scale(1.05); box-shadow: 0 0 10px rgba(138, 43, 226, 0.2); } .file-upload-container { margin-bottom: 20px; } .uploaded-files { margin-top: 10px; } .file-item { display: flex; align-items: center; margin-bottom: 5px; } .delete-file { color: red; cursor: pointer; margin-left: 10px; font-weight: bold; } #signOptions button { padding: 10px 20px; cursor: pointer; } #signOptions button { margin: 0 5px 5px 0; padding: 10px 20px; cursor: pointer; } .button-group { display: flex; justify-content: flex-start; margin-bottom: 20px; } #signOptions button.selected { background-color: #4CAF50; color: white; } .button-group button { padding: 10px 20px; margin-right: 10px; border: none; border-radius: 5px; cursor: pointer; background-color: #f0f0f0; transition: background-color 0.3s; } .button-group button.selected { background-color: #4CAF50; color: white; } .font-grid { max-width: 600px; margin: 0 auto; } .font-grid h3 { text-align: center; color: #8a2be2; margin-bottom: 20px; } .font-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .font-button { padding: 10px; border: 1px solid #ddd; border-radius: 5px; background-color: white; cursor: pointer; transition: all 0.3s ease; } .font-button:hover { transform: scale(1.05); box-shadow: 0 0 10px rgba(138, 43, 226, 0.5); } .font-button.selected { border-color: #8a2be2; box-shadow: 0 0 10px rgba(138, 43, 226, 0.5); } /* 모바일 최적화를 위한 미디어 쿼리 */ @media (max-width: 768px) { main { flex-direction: column; height: auto; } #colorSwatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; } #controls textarea { min-height: 70px; /* textarea 최소 높이 설정 */ resize: none; /* 수직 리사이즈만 허용 */ } .radio-group { flex-direction: row; /* 가로 배치 유지 */ justify-content: flex-start; /* 왼쪽 정렬 */ } .radio-group label { margin-right: 40px; /* 옵션 사이 간격 증가 */ font-size: 20px; /* 모바일에서 글자 크기 약간 축소 */ } .radio-group input[type="radio"] { width: 24px; /* 모바일에서 라디오 버튼 크기 약간 축소 */ height: 24px; } #canvasContainer { flex: none; height: 50vh; } canvas { max-height: none; } #controls { max-width: 100%; padding: 20px; } #controls textarea, #controls input[type="text"], #controls select, #controls input[type="number"], #controls input[type="file"], #controls input[type="tel"], #controls input[type="email"] { font-size: 14px; } }