| * { |
| margin: 0; |
| padding: 0; |
| box-sizing: border-box; |
| } |
|
|
| body { |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| color: #333; |
| min-height: 100vh; |
| } |
|
|
| .container { |
| max-width: 1400px; |
| margin: 0 auto; |
| padding: 20px; |
| } |
|
|
| header { |
| text-align: center; |
| margin-bottom: 30px; |
| color: white; |
| } |
|
|
| header h1 { |
| font-size: 2.5rem; |
| margin-bottom: 10px; |
| text-shadow: 2px 2px 4px rgba(0,0,0,0.3); |
| } |
|
|
| .built-with { |
| font-size: 0.9rem; |
| opacity: 0.9; |
| } |
|
|
| .built-with a { |
| color: #fff; |
| text-decoration: underline; |
| } |
|
|
| .main-content { |
| display: grid; |
| grid-template-columns: 1fr 1fr; |
| gap: 30px; |
| margin-top: 20px; |
| } |
|
|
| .view-section { |
| background: white; |
| border-radius: 15px; |
| padding: 25px; |
| box-shadow: 0 10px 30px rgba(0,0,0,0.2); |
| } |
|
|
| .view-header { |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| margin-bottom: 20px; |
| } |
|
|
| .view-header h2 { |
| color: #667eea; |
| font-size: 1.5rem; |
| } |
|
|
| .slice-info { |
| background: #f0f0f0; |
| padding: 5px 15px; |
| border-radius: 20px; |
| font-weight: bold; |
| color: #667eea; |
| } |
|
|
| .controls { |
| margin-bottom: 20px; |
| } |
|
|
| .control-group { |
| display: flex; |
| align-items: center; |
| margin-bottom: 15px; |
| gap: 15px; |
| } |
|
|
| .control-group label { |
| font-weight: 600; |
| min-width: 150px; |
| color: #555; |
| } |
|
|
| .control-group input[type="range"] { |
| flex: 1; |
| height: 6px; |
| background: #ddd; |
| border-radius: 3px; |
| outline: none; |
| -webkit-appearance: none; |
| } |
|
|
| .control-group input[type="range"]::-webkit-slider-thumb { |
| -webkit-appearance: none; |
| width: 18px; |
| height: 18px; |
| background: #667eea; |
| border-radius: 50%; |
| cursor: pointer; |
| } |
|
|
| .control-group input[type="checkbox"] { |
| width: 20px; |
| height: 20px; |
| cursor: pointer; |
| } |
|
|
| .control-group span { |
| font-weight: 600; |
| color: #667eea; |
| min-width: 40px; |
| } |
|
|
| #canvas3d { |
| width: 100%; |
| height: 400px; |
| border: 2px solid #667eea; |
| border-radius: 10px; |
| overflow: hidden; |
| } |
|
|
| #sliceCanvas { |
| width: 100%; |
| height: 400px; |
| border: 2px solid #764ba2; |
| border-radius: 10px; |
| background: #000; |
| } |
|
|
| .export-btn { |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| color: white; |
| border: none; |
| padding: 12px 25px; |
| border-radius: 25px; |
| font-size: 1rem; |
| font-weight: 600; |
| cursor: pointer; |
| transition: transform 0.2s; |
| } |
|
|
| .export-btn:hover { |
| transform: translateY(-2px); |
| } |
|
|
| .export-btn:disabled { |
| opacity: 0.6; |
| cursor: not-allowed; |
| } |
|
|
| .progress-bar { |
| width: 100%; |
| height: 30px; |
| background: #f0f0f0; |
| border-radius: 15px; |
| overflow: hidden; |
| position: relative; |
| margin-top: 15px; |
| } |
|
|
| .progress-fill { |
| height: 100%; |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| width: 0%; |
| transition: width 0.3s ease; |
| } |
|
|
| .progress-text { |
| position: absolute; |
| top: 50%; |
| left: 50%; |
| transform: translate(-50%, -50%); |
| font-weight: 600; |
| color: #333; |
| } |
|
|
| .hidden { |
| display: none; |
| } |
|
|
| @media (max-width: 768px) { |
| .main-content { |
| grid-template-columns: 1fr; |
| } |
| |
| header h1 { |
| font-size: 2rem; |
| } |
| |
| .control-group { |
| flex-direction: column; |
| align-items: flex-start; |
| } |
| |
| .control-group label { |
| min-width: auto; |
| } |
| } |