-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
185 lines (157 loc) · 2.75 KB
/
style.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
171
172
173
174
175
176
177
178
179
180
181
182
183
/* Base Styles */
body {
font-family: 'Roboto Mono', monospace;
text-align: center;
background-color: #fefae0;
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container {
max-width: 960px;
margin: auto;
padding: 20px;
}
h1, h2, h4 {
color: #333;
}
h6{
display: none;
}
.ut{
display: inline-flex;
color: #FE5F55 ;
text-decoration: underline;
}
.ct {
display: block;
color: #55917F;
text-decoration: dotted;
}
.colboxes {
margin-bottom: 10px;
}
.stButton {
margin-top: 20px;
}
#scorecard{
background-color: antiquewhite;
border: 1px solid black;
}
/* Boxes Styles */
.btn {
display: inline-block;
height: 100px;
width: 100px;
border-radius: 20%; /* Circular buttons */
margin: 10px;
color: white;
font-size: 10px;
line-height: 100px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease; /* Smooth transition for hover and click */
}
/* Button Colors */
#orange { background-color: #FFA500; }
#red { background-color: #FF4500; }
#blue { background-color: #1E90FF; }
#purple { background-color: #9400D3; }
/* Button Hover and Active States */
.btn:hover, .btn:focus {
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
transform: scale(1.1); /* Slightly enlarge button on hover */
}
.btn:active, .btn.touch-active {
transform: scale(0.9); /* Shrink button on click */
}
@media (hover: none) {
.btn.touch-active {
transform: scale(1); /* Reset scale on touch devices */
}
}
/* Flash Animation */
.flash {
animation: flashAnimation 1s ease;
}
.wrapper{
position: fixed;
top: 60%;
left: 50%;
transform: translate(-50%, -50%);
}
a{
display: none;
width: 200px;
height: 40px;
line-height: 40px;
font-size: 18px;
font-family: sans-serif;
text-decoration: none;
color: #333;
border: 2px solid #333;
letter-spacing: 2px;
text-align: center;
position: relative;
transition: all .35s;
}
a span{
position: relative;
z-index: 2;
}
a:after{
position: absolute;
content: "";
top: 0;
left: 0;
width: 0;
height: 100%;
background: #ff003b;
transition: all .35s;
}
a:hover{
color: #fff;
}
a:hover:after{
width: 100%;
}
@keyframes flashAnimation {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* Responsive Design */
@media (max-width: 768px) {
.btn {
height: 150px;
width: 150px;
font-size: 18px;
line-height: 80px;
}
.wrapper {
position: absolute;
top: 60%;
}
a{
display: inline-block;
width: 80px;
height: 40px;
}
}
@media (max-width: 480px) {
.container {
padding: 10px;
}
.btn {
margin-top: 30px;
height: 150px;
width: 150px;
font-size: 16px;
line-height: 60px;
}
.wrapper{
margin-top: 60%;
}
h1, h2, h4 {
font-size: 1em;
}
}