-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
157 lines (135 loc) · 3.81 KB
/
style.css
File metadata and controls
157 lines (135 loc) · 3.81 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
body {
box-sizing: border-box;
margin: 0;
padding: 0;
height: 100%;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #667eea; /* Vibrant Purple */
}
html {
height: 100%;
}
.game-container {
min-height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 32px 24px;
}
.game-card {
width: 100%;
max-width: 480px;
background-color: white; /* Added so text is visible on purple bg */
border-radius: 24px;
padding: 48px 40px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
h1 {
margin: 0 0 12px 0;
text-align: center;
font-weight: 700;
}
.instructions {
text-align: center;
margin: 0 0 32px 0;
line-height: 1.6;
font-weight: 500;
}
.game-info {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
padding: 16px 20px;
border-radius: 12px;
font-weight: 600;
}
.attempts-label {
font-weight: 700;
}
.input-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 8px;
font-weight: 600;
}
input[type="number"] {
width: 100%;
padding: 16px 20px;
font-size: 1.125rem;
border: 2px solid #e0e0e0;
border-radius: 12px;
box-sizing: border-box;
transition: border-color 0.3s ease;
font-weight: 600;
}
input[type="number"]:focus {
outline: none;
border-color: #00bcd4; /* Matches primary action */
}
.button-group {
display: flex;
gap: 12px;
margin-bottom: 24px;
}
button {
flex: 1;
padding: 16px 24px;
font-size: 1rem;
font-weight: 700;
border: none;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s ease;
color: white; /* Ensure text is readable on colored buttons */
}
.submit-btn {
background-color: #00bcd4; /* Cyan */
}
.submit-btn:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
filter: brightness(1.1);
}
.reset-btn {
background-color: #ff6b6b; /* Coral Red */
}
.reset-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
filter: brightness(1.1);
}
button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.feedback {
padding: 20px;
border-radius: 12px;
text-align: center;
font-weight: 600;
margin-top: 20px;
min-height: 60px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.feedback.hidden {
opacity: 0;
transform: scale(0.95);
}
.feedback.show {
opacity: 1;
transform: scale(1);
}
.error-message {
font-size: 0.875rem;
margin-top: 8px;
min-height: 20px;
font-weight: 600;
color: #ff6b6b;
}