Skip to content

Commit 0d83fba

Browse files
Create styles.css
1 parent 529d0df commit 0d83fba

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

styles.css

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
/* Base styling */
2+
* {
3+
box-sizing: border-box;
4+
margin: 0;
5+
padding: 0;
6+
font-family: 'Arial', sans-serif;
7+
}
8+
9+
/* Centering and layout */
10+
body {
11+
background-color: #f4f4f9;
12+
display: flex;
13+
align-items: center;
14+
justify-content: center;
15+
min-height: 100vh;
16+
}
17+
18+
.container {
19+
text-align: center;
20+
max-width: 320px;
21+
padding: 20px;
22+
background: #ffffff;
23+
border-radius: 12px;
24+
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
25+
}
26+
27+
h1 {
28+
font-size: 24px;
29+
color: #333;
30+
margin-bottom: 20px;
31+
}
32+
33+
/* Sudoku grid styling */
34+
.grid {
35+
display: grid;
36+
grid-template-columns: repeat(9, 1fr);
37+
gap: 3px;
38+
width: 100%;
39+
}
40+
41+
.cell {
42+
width: 100%;
43+
padding: 0;
44+
text-align: center;
45+
font-size: 18px;
46+
color: #333;
47+
border: 1px solid #ddd;
48+
background-color: #fafafa;
49+
border-radius: 4px;
50+
box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.1);
51+
}
52+
53+
/* Emphasize 3x3 grid sections */
54+
.cell:nth-child(3n+1) {
55+
border-left: 2px solid #666;
56+
}
57+
.cell:nth-child(3n) {
58+
border-right: 2px solid #666;
59+
}
60+
.grid > :nth-child(n+19):nth-child(-n+27),
61+
.grid > :nth-child(n+46):nth-child(-n+54) {
62+
border-bottom: 2px solid #666;
63+
}
64+
65+
/* Button styling */
66+
.button {
67+
margin-top: 15px;
68+
padding: 12px 24px;
69+
font-size: 16px;
70+
font-weight: bold;
71+
color: #ffffff;
72+
background-color: #007bff;
73+
border: none;
74+
border-radius: 8px;
75+
cursor: pointer;
76+
transition: background-color 0.3s ease;
77+
}
78+
79+
.button:hover {
80+
background-color: #0056b3;
81+
}
82+
83+
/* Result message styling */
84+
.result {
85+
margin-top: 15px;
86+
font-size: 18px;
87+
font-weight: bold;
88+
color: #333;
89+
}
90+
.result.valid {
91+
color: #28a745;
92+
}
93+
.result.invalid {
94+
color: #dc3545;
95+
}

0 commit comments

Comments
 (0)