-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
170 lines (151 loc) · 3.33 KB
/
styles.css
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
/* General Page Styling */
body {
font-family: 'Poppins', Arial, sans-serif;
font-style:italic ;
background-image: url('images.jpg'); /* Change path accordingly */
background-size: cover;
background-position: center;
background-attachment: fixed;
background-repeat: no-repeat;
}
/* Main Container */
#container {
text-align: center;
padding: 25px 35px;
border-radius: 8px;
}
h1 {
color:aqua
}
/* Controls (Input & Button) */
#controls {
display: flex;
gap: 15px;
margin-bottom: 25px;
justify-content: center;
}
#controls input {
padding: 12px;
border: 2px solid #ccc;
border-radius: 8px;
font-size: 16px;
background-color: #f8fbff;
transition: all 0.3s ease;
}
#controls input:focus {
border-color: #6c5ce7;
outline: none;
}
#controls button {
padding: 12px 20px;
background-color: #3498db;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
transition: 0.3s ease-in-out;
}
#controls button:hover {
background-color: #29b948;
}
/* Tree Container */
#treeContainer {
display: flex;
justify-content: center;
margin-top: 25px;
}
/* Tree Layout */
.tree {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
}
/* Node Styling */
.node {
background-color: #6c5ce7;
color: white;
padding: 18px 28px;
border-radius: 50%;
font-size: 18px;
font-weight: bold;
text-align: center;
position: relative;
box-shadow: 0 5px 15px rgba(187, 24, 130, 0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
/*
border: #0a0a0a;
border-radius: 20px;*/
border: 3px solid black;
}
.node:hover {
transform: scale(1.1);
box-shadow: 0 8px 20px rgba(235, 11, 186, 0.4);
}
/* Children Layout */
.children {
display: flex;
justify-content: space-between;
margin-top: 40px;
position: relative;
width: 100%;
max-width: 600px;
}
/* Child Element */
.child {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
}
/* Connecting Lines */
.child::before {
content: "";
position: absolute;
top: -40px; /* Adjust this to move the lines up/down (for lines) */
width: 2px;
height: 90px;
background-color: #0a0a0a;
}
/* Correctly aligning left and right links */
.link {
position: absolute;
width: 2px;
background-color: #dc730a;
z-index: -1;
}
/* Left child branch */
/*.link.left {
top: -20px;
left: -20px;
width: 30px;
height: 40px;
border-left: 2px solid #2c3e50;
border-bottom: 2px solid #2c3e50;
transform: translateX(15px) translateY(15px);
}
/* Right child branch
.link.right {
top: -20px;
right: -20px;
width: 30px;
height: 40px;
border-right: 2px solid #2c3e50;
border-bottom: 2px solid #2c3e50;
transform: translateX(-75px) translateY(65px);
}
*/
/* Responsive Design */
@media (max-width: 768px) {
#controls {
flex-direction: column;
gap: 10px;
}
#controls input, #controls button {
width: 80%;
}
#container {
padding: 20px;
}
}