Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
205 lines (188 loc) · 4.67 KB
/
Copy pathstyle.css
File metadata and controls
205 lines (188 loc) · 4.67 KB
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
/* General page setup */
body, html {
margin: 0;
padding: 0;
height: 100%;
font-family: 'Inter', sans-serif;
background-color: #121212; /* Dark background */
color: #e0e0e0;
overflow: hidden; /* Prevent scrollbars on both pages */
}
/* === HOMEPAGE STYLES === */
/* Main container for centering homepage content */
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 80vh;
padding: 5vh 20px;
box-sizing: border-box;
gap: 2.5rem;
}
/* Homepage Title and Description */
.content {
text-align: center;
}
.title {
font-size: 4rem;
font-weight: 700;
/* CHANGED: Switched to a green gradient */
background: -webkit-linear-gradient(45deg, #66BB6A, #2E7D32);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 1rem;
}
.description {
font-size: 1.1rem;
color: #9e9e9e;
max-width: 500px;
}
/* Homepage Input Area */
.input-container {
width: 100%;
max-width: 700px;
}
#word-input {
width: 100%;
padding: 18px 25px;
font-size: 1.2rem;
color: #e0e0e0;
background-color: #1e1e1e;
border: 1px solid #333;
border-radius: 50px;
box-sizing: border-box;
outline: none;
transition: all 0.2s ease-in-out;
}
#word-input:focus {
border-color: #654321; /* CHANGED: Darker brown border color */
box-shadow: 0 0 15px rgba(101, 67, 33, 0.4); /* CHANGED: Darker brown glow with slightly more opacity */
}
/* === LOADING SCREEN STYLES (Used on both pages, initially shown on tree.html) === */
#loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(18, 18, 18, 0.95); /* Darker overlay */
display: flex; /* Changed from none */
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 1000;
opacity: 1; /* Start fully visible */
transition: opacity 0.5s ease-out; /* Smooth fade-out */
}
#loading-overlay.hidden {
opacity: 0; /* Fade out */
pointer-events: none; /* Allow clicks to pass through when hidden */
/* We keep display: flex so the fade-out transition works */
}
/* Spinner Animation */
.spinner {
width: 50px;
height: 50px;
border: 5px solid #444;
border-top: 5px solid #00c545;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 1rem;
}
#loading-overlay p {
color: #9e9e9e;
font-size: 1.2rem;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* === TREE PAGE STYLES === */
/* Container for the 3D scene */
#scene-container {
width: 100vw;
height: 100vh;
display: flex; /* Needed for error message centering */
justify-content: center;
align-items: center;
position: absolute; /* Take up space even when hidden initially */
top: 0;
left: 0;
}
#scene-container.hidden {
display: none; /* Hide completely until ready */
}
/* Canvas element added by Three.js */
#scene-container canvas {
display: block; /* Remove extra space below canvas */
}
/* === SIDEBAR === */
#sidebar {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1100;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(6px);
border: 1px solid #2a2a2a;
border-radius: 12px;
padding: 14px 14px 12px;
width: 240px;
color: #e8e8e8;
font-family: 'Inter', sans-serif;
box-shadow: 0 10px 30px rgba(0,0,0,0.35);
text-align: right; /* ✅ Right justify content */
}
#sidebar h2 {
margin: 0 0 10px;
font-size: 1.1rem;
letter-spacing: 0.3px;
}
#generate-tree {
display: inline-block;
width: 100%;
padding: 10px 12px;
border: none;
border-radius: 10px;
font-weight: 700;
cursor: pointer;
background: #226c22;
color: #0b0b0b;
transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#generate-tree:hover {
background: #41c641;
color: #000000;
}
#generate-tree:active { transform: translateY(1px); }
.sidebar-note {
display: flex;
align-items: center;
justify-content: flex-end; /* ✅ Align items to the right */
gap: 8px;
margin: 10px 0 6px;
color: #e8e8e8; /* ✅ Not green anymore */
font-size: 0.9rem;
}
.sidebar-note .dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #845929;
box-shadow: 0 0 10px #d89e3b88;
flex-shrink: 0;
}
#tree-status {
margin: 6px 0 0;
font-size: 0.9rem;
color: #9e9e9e;
}
@media (max-width: 640px) {
#sidebar {
top: 12px;
left: 12px;
width: 200px;
padding: 12px;
}
}