HTMLify
style.css
Views: 10 | Author: karbonsites
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | /* Global Reset and Base Styling */ * { margin: 0; padding: 0; box-sizing: border-box; } body, html { height: 100%; overflow: hidden; font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #0a0a0f; color: #e0e0ff; } #three-canvas { display: block; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; } /* Overlay UI */ #overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; pointer-events: none; /* Allows clicks to pass through to canvas if needed, but we'll enable it for UI */ display: flex; flex-direction: column; justify-content: space-between; padding: 20px; } #ui-container { pointer-events: auto; /* Enable interaction with UI elements */ background: rgba(10, 10, 15, 0.7); backdrop-filter: blur(10px); border-radius: 15px; padding: 25px; max-width: 900px; width: 100%; margin: 0 auto; border: 1px solid rgba(60, 60, 90, 0.5); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transition: all 0.5s ease-in-out; } header h1 { font-size: 2.2rem; margin-bottom: 5px; color: #a0a0ff; } header p { font-size: 1rem; margin-bottom: 20px; color: #b0b0d0; } #controls { display: flex; gap: 30px; flex-wrap: wrap; } .control-group { flex: 1; min-width: 250px; padding: 15px; background: rgba(20, 20, 30, 0.6); border-radius: 10px; } .control-group h3 { font-size: 1.1rem; margin-bottom: 10px; color: #c0c0ff; } .button-group { display: flex; gap: 8px; flex-wrap: wrap; } button { padding: 8px 15px; border: 1px solid #505090; background: #202040; color: white; border-radius: 6px; cursor: pointer; transition: background 0.2s, transform 0.1s, border-color 0.2s; font-size: 0.9rem; } button:hover { background: #3a3a70; border-color: #8080ff; transform: translateY(-1px); } button.active { background: #6a6aff; border-color: #ffffff; font-weight: bold; } input[type="range"] { width: 100%; margin-top: 10px; cursor: pointer; } #status { margin-top: 20px; padding: 10px; background: rgba(50, 50, 100, 0.3); border-radius: 8px; text-align: center; font-style: italic; } /* Responsive adjustments */ @media (max-width: 768px) { #controls { flex-direction: column; } header h1 { font-size: 1.8rem; } #ui-container { padding: 15px; max-width: 95%; } } /* Animation for successful initialization */ .initialized #overlay #status { background: rgba(30, 150, 30, 0.4); } |