-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
128 lines (109 loc) · 1.91 KB
/
style.css
File metadata and controls
128 lines (109 loc) · 1.91 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
padding: 20px;
}
.container {
max-width: 1400px;
margin: 0 auto;
}
h1 {
text-align: center;
margin-bottom: 20px;
color: #333;
}
.controls {
display: flex;
gap: 10px;
margin-bottom: 20px;
align-items: center;
flex-wrap: wrap;
}
button {
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
button:hover {
background-color: #45a049;
}
button:disabled {
background-color: #cccccc;
cursor: not-allowed;
}
#coordinates {
padding: 10px;
background-color: white;
border-radius: 4px;
font-size: 14px;
}
#map {
width: 600px;
height: 600px;
margin: 0 auto 20px;
border: 2px solid #333;
border-radius: 4px;
}
.game-area {
display: flex;
gap: 20px;
margin-top: 20px;
}
.puzzle-container,
.board-container {
flex: 1;
}
.puzzle-container h3,
.board-container h3 {
margin-bottom: 10px;
color: #333;
}
#puzzlePieces {
min-height: 400px;
background-color: #fff;
border-radius: 4px;
padding: 10px;
display: flex;
flex-wrap: wrap;
gap: 10px;
align-content: flex-start;
}
#puzzleBoard {
width: 400px;
height: 400px;
background-color: #fff;
border-radius: 4px;
position: relative;
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(4, 1fr);
}
.puzzle-piece {
cursor: move;
background-size: 400px 400px;
position: relative;
}
.puzzle-piece.dragging {
opacity: 0.5;
}
.board-slot {
background-color: #f9f9f9;
}
.board-slot.correct {
background-color: #e8f5e9;
}
.puzzle-piece::after {
position: absolute;
content: attr(data-correct-position);
top: 0;
right: 0;
}