|
|
|
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"); |
|
|
|
:root { |
|
--primary-color: #FF7F00; |
|
--secondary-color: #ff9a8b; |
|
--accent-color: #FF6B6B; |
|
--background-color: #FFFFFF; |
|
--card-bg: #ffffff; |
|
--text-color: #334155; |
|
--border-radius: 18px; |
|
--shadow: 0 8px 30px rgba(251, 127, 13, 0.08); |
|
} |
|
|
|
body { |
|
font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif; |
|
line-height: 1.6; |
|
margin: 0; |
|
padding: 0; |
|
background-color: var(--background-color); |
|
color: var(--text-color); |
|
} |
|
|
|
.container { |
|
max-width: 1200px; |
|
margin: 20px auto; |
|
padding: 20px; |
|
background-color: white; |
|
box-shadow: var(--shadow); |
|
border-radius: var(--border-radius); |
|
display: flex; |
|
flex-direction: column; |
|
} |
|
|
|
h1, h2, h3 { |
|
color: #2c3e50; |
|
text-align: center; |
|
} |
|
|
|
p { |
|
text-align: center; |
|
margin-bottom: 20px; |
|
} |
|
|
|
|
|
.container > h1 { |
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); |
|
color: white; |
|
padding: 2rem; |
|
border-radius: 15px; |
|
margin-bottom: 20px; |
|
box-shadow: var(--shadow); |
|
font-size: 2.5rem; |
|
font-weight: 700; |
|
} |
|
|
|
.container > p { |
|
background-color: #FFF6F0; |
|
border-radius: var(--border-radius); |
|
padding: 1.5rem; |
|
margin-bottom: 1.5rem; |
|
border: 1px solid rgba(255, 127, 0, 0.1); |
|
color: var(--text-color); |
|
font-size: 1.1rem; |
|
} |
|
|
|
.upload-container { |
|
display: flex; |
|
flex-wrap: wrap; |
|
justify-content: space-around; |
|
margin-bottom: 20px; |
|
gap: 20px; |
|
} |
|
|
|
.upload-box { |
|
flex: 1; |
|
min-width: 300px; |
|
border: 2px solid var(--primary-color); |
|
border-radius: var(--border-radius); |
|
padding: 20px; |
|
text-align: center; |
|
transition: background-color 0.3s; |
|
background-color: #FFF6F0; |
|
} |
|
|
|
.upload-box:hover { |
|
background-color: #FFF0E6; |
|
} |
|
|
|
.upload-label { |
|
display: block; |
|
font-weight: bold; |
|
margin-bottom: 10px; |
|
color: var(--primary-color); |
|
} |
|
|
|
.file-input { |
|
display: none; |
|
} |
|
|
|
.upload-button { |
|
display: inline-block; |
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); |
|
color: white; |
|
padding: 10px 20px; |
|
border-radius: 30px; |
|
cursor: pointer; |
|
transition: all 0.3s ease; |
|
font-weight: 600; |
|
box-shadow: 0 4px 8px rgba(251, 127, 13, 0.25); |
|
} |
|
|
|
.upload-button:hover { |
|
transform: translateY(-2px); |
|
box-shadow: 0 6px 12px rgba(251, 127, 13, 0.3); |
|
} |
|
|
|
|
|
.workspace-wrapper { |
|
display: flex; |
|
flex-wrap: wrap; |
|
gap: 20px; |
|
margin-bottom: 20px; |
|
} |
|
|
|
|
|
.canvas-and-controls { |
|
flex: 3; |
|
display: flex; |
|
flex-direction: column; |
|
min-width: 0; |
|
} |
|
|
|
.canvas-container { |
|
position: relative; |
|
width: 100%; |
|
border: 2px solid var(--primary-color); |
|
border-radius: var(--border-radius); |
|
overflow: hidden; |
|
margin-bottom: 20px; |
|
box-shadow: var(--shadow); |
|
} |
|
|
|
#canvas { |
|
display: block; |
|
width: 100%; |
|
height: auto; |
|
background-color: #ffffff; |
|
cursor: default; |
|
} |
|
|
|
|
|
.control-panel-sidebar { |
|
display: flex; |
|
flex-direction: column; |
|
gap: 15px; |
|
} |
|
|
|
.control-group { |
|
display: flex; |
|
flex-direction: column; |
|
border: 1px solid rgba(255, 127, 0, 0.2); |
|
padding: 15px; |
|
border-radius: var(--border-radius); |
|
background-color: #FFF6F0; |
|
box-shadow: var(--shadow); |
|
} |
|
|
|
.control-group h3 { |
|
margin: 0 0 15px 0; |
|
font-size: 1.1rem; |
|
text-align: center; |
|
width: 100%; |
|
color: var(--primary-color); |
|
font-weight: 700; |
|
padding-bottom: 8px; |
|
border-bottom: 2px solid var(--primary-color); |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
} |
|
|
|
|
|
.control-group h3::before { |
|
font-family: "Font Awesome 6 Free"; |
|
margin-right: 10px; |
|
color: var(--primary-color); |
|
font-weight: 900; |
|
} |
|
|
|
.control-group:nth-of-type(1) h3::before { |
|
content: "\f547"; |
|
} |
|
|
|
.control-group:nth-of-type(2) h3::before { |
|
content: "\f03e"; |
|
} |
|
|
|
#layers-panel h3::before { |
|
content: "\f5fd"; |
|
} |
|
|
|
.slider-container { |
|
display: flex; |
|
align-items: center; |
|
gap: 10px; |
|
margin: 8px 0; |
|
width: 100%; |
|
padding: 0 5px; |
|
box-sizing: border-box; |
|
} |
|
|
|
.slider-container label { |
|
font-weight: bold; |
|
min-width: 50px; |
|
text-align: left; |
|
flex-shrink: 0; |
|
color: #444; |
|
} |
|
|
|
.slider-container input[type="range"] { |
|
flex-grow: 1; |
|
width: auto; |
|
margin: 0 5px; |
|
accent-color: var(--primary-color); |
|
} |
|
|
|
.slider-container .value-display { |
|
min-width: 40px; |
|
text-align: right; |
|
flex-shrink: 0; |
|
font-weight: 600; |
|
color: var(--primary-color); |
|
} |
|
|
|
|
|
.layers-list { |
|
width: 100%; |
|
max-height: 150px; |
|
overflow-y: auto; |
|
border: 1px solid rgba(255, 127, 0, 0.1); |
|
border-radius: var(--border-radius); |
|
background-color: white; |
|
} |
|
|
|
.layer-item { |
|
padding: 10px; |
|
border-bottom: 1px solid #eee; |
|
cursor: pointer; |
|
display: flex; |
|
justify-content: space-between; |
|
align-items: center; |
|
} |
|
.layer-item:last-child { border-bottom: none; } |
|
.layer-item:hover { background-color: #FFF0E6; } |
|
.layer-item.active { background-color: rgba(255, 127, 0, 0.1); font-weight: bold; color: var(--primary-color); } |
|
.layer-name { flex-grow: 1; padding-left: 5px; } |
|
.layer-controls { display: flex; gap: 5px; } |
|
.layer-button { |
|
background-color: white; |
|
border: 1px solid var(--primary-color); |
|
border-radius: 10px; |
|
padding: 2px 8px; |
|
cursor: pointer; |
|
font-size: 11px; |
|
color: var(--primary-color); |
|
transition: all 0.2s ease; |
|
} |
|
.layer-button:hover { |
|
background-color: var(--primary-color); |
|
color: white; |
|
} |
|
|
|
|
|
.filter-panel { |
|
padding: 15px; |
|
border: 1px solid rgba(255, 127, 0, 0.2); |
|
border-radius: var(--border-radius); |
|
background-color: #FFF6F0; |
|
box-shadow: var(--shadow); |
|
} |
|
|
|
.filter-panel h3 { |
|
margin: 0 0 15px 0; |
|
text-align: center; |
|
color: var(--primary-color); |
|
font-weight: 700; |
|
padding-bottom: 8px; |
|
border-bottom: 2px solid var(--primary-color); |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
} |
|
|
|
.filter-panel h3::before { |
|
content: "\f06e"; |
|
font-family: "Font Awesome 6 Free"; |
|
margin-right: 10px; |
|
color: var(--primary-color); |
|
font-weight: 900; |
|
} |
|
|
|
.filter-sliders { |
|
display: grid; |
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); |
|
gap: 15px; |
|
} |
|
|
|
.filter-slider-container { |
|
display: flex; |
|
flex-direction: column; |
|
gap: 5px; |
|
width: 100%; |
|
padding: 0 5px; |
|
box-sizing: border-box; |
|
} |
|
|
|
.filter-slider-container label { |
|
font-size: 14px; |
|
margin-bottom: 5px; |
|
text-align: left; |
|
font-weight: 600; |
|
color: #444; |
|
} |
|
|
|
.large-slider { |
|
width: 100%; |
|
height: 20px; |
|
accent-color: var(--primary-color); |
|
} |
|
|
|
.filter-slider-container .value-display { |
|
text-align: right; |
|
font-weight: bold; |
|
color: var(--primary-color); |
|
} |
|
|
|
.filter-buttons { |
|
display: flex; |
|
justify-content: center; |
|
margin-top: 15px; |
|
} |
|
|
|
#reset-filter-btn { |
|
width: auto; |
|
padding: 8px 15px; |
|
flex-grow: 1; |
|
max-width: 200px; |
|
background: linear-gradient(135deg, #e74c3c, #c0392b); |
|
color: white; |
|
border-radius: 30px; |
|
border: none; |
|
font-weight: 600; |
|
box-shadow: 0 4px 8px rgba(231, 76, 60, 0.25); |
|
transition: all 0.3s ease; |
|
} |
|
|
|
#reset-filter-btn:hover { |
|
transform: translateY(-2px); |
|
box-shadow: 0 6px 12px rgba(231, 76, 60, 0.3); |
|
} |
|
|
|
|
|
.preview-section { |
|
flex: 2; |
|
display: flex; |
|
flex-direction: column; |
|
align-items: center; |
|
min-width: 0; |
|
} |
|
|
|
.preview-container { |
|
width: 100%; |
|
margin-top: 0; |
|
display: none; |
|
flex-direction: column; |
|
align-items: center; |
|
padding: 20px; |
|
border: 2px solid var(--primary-color); |
|
border-radius: var(--border-radius); |
|
background-color: #FFF6F0; |
|
box-shadow: var(--shadow); |
|
} |
|
|
|
.preview-container h3 { |
|
margin-bottom: 15px; |
|
color: var(--primary-color); |
|
font-weight: 700; |
|
display: flex; |
|
align-items: center; |
|
} |
|
|
|
.preview-container h3::before { |
|
content: "\f06e"; |
|
font-family: "Font Awesome 6 Free"; |
|
margin-right: 10px; |
|
color: var(--primary-color); |
|
font-weight: 900; |
|
} |
|
|
|
#preview-img { |
|
max-width: 100%; |
|
max-height: 400px; |
|
border: 2px solid var(--primary-color); |
|
border-radius: var(--border-radius); |
|
object-fit: contain; |
|
box-shadow: var(--shadow); |
|
} |
|
|
|
|
|
.button-container { |
|
display: flex; |
|
justify-content: center; |
|
gap: 15px; |
|
margin-top: 20px; |
|
flex-wrap: wrap; |
|
} |
|
|
|
button { |
|
padding: 10px 20px; |
|
border: none; |
|
border-radius: 30px; |
|
cursor: pointer; |
|
font-weight: bold; |
|
transition: all 0.3s ease; |
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); |
|
} |
|
|
|
button:hover { |
|
transform: translateY(-2px); |
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); |
|
} |
|
|
|
.primary-btn { |
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); |
|
color: white; |
|
box-shadow: 0 4px 8px rgba(251, 127, 13, 0.25); |
|
} |
|
|
|
.primary-btn:hover { |
|
box-shadow: 0 6px 12px rgba(251, 127, 13, 0.3); |
|
} |
|
|
|
.danger-btn { |
|
background: linear-gradient(135deg, #e74c3c, #c0392b); |
|
color: white; |
|
box-shadow: 0 4px 8px rgba(231, 76, 60, 0.25); |
|
} |
|
|
|
.danger-btn:hover { |
|
box-shadow: 0 6px 12px rgba(231, 76, 60, 0.3); |
|
} |
|
|
|
.info-btn { |
|
background: linear-gradient(135deg, #3498db, #2980b9); |
|
color: white; |
|
box-shadow: 0 4px 8px rgba(52, 152, 219, 0.25); |
|
} |
|
|
|
.info-btn:hover { |
|
box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3); |
|
} |
|
|
|
|
|
#example-images-container img { |
|
border: 2px solid #ddd; |
|
border-radius: 10px; |
|
transition: all 0.3s ease; |
|
} |
|
|
|
#example-images-container img:hover { |
|
transform: scale(1.05); |
|
border-color: var(--primary-color); |
|
box-shadow: 0 4px 10px rgba(251, 127, 13, 0.2); |
|
} |
|
|
|
|
|
::-webkit-scrollbar { |
|
width: 8px; |
|
height: 8px; |
|
} |
|
|
|
::-webkit-scrollbar-track { |
|
background: rgba(0, 0, 0, 0.05); |
|
border-radius: 10px; |
|
} |
|
|
|
::-webkit-scrollbar-thumb { |
|
background: var(--primary-color); |
|
border-radius: 10px; |
|
} |
|
|
|
|
|
@media (max-width: 900px) { |
|
.workspace-wrapper { |
|
flex-direction: column; |
|
align-items: center; |
|
} |
|
.canvas-and-controls, .preview-section { |
|
flex-basis: auto; |
|
width: 100%; |
|
max-width: 600px; |
|
} |
|
.control-panel-sidebar { |
|
width: 100%; |
|
} |
|
.filter-sliders { |
|
grid-template-columns: 1fr; |
|
} |
|
} |
|
|
|
@media (max-width: 768px) { |
|
.upload-container { |
|
flex-direction: column; |
|
} |
|
.upload-box { |
|
width: 100%; |
|
margin-bottom: 10px; |
|
} |
|
} |