-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
181 lines (157 loc) · 5.22 KB
/
styles.css
File metadata and controls
181 lines (157 loc) · 5.22 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
body {
font-family: 'Arial', sans-serif;
display: flex;
flex-direction: column; /* Изменим на column, чтобы элементы шли друг за другом */
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f5f5f5;
margin: 0; /* Уберем отступы, если они есть по умолчанию */
}
html, body {
overflow: hidden;
}
.game-info-container {
display: flex;
justify-content: center;
width: 100%; /* Займем всю ширину */
padding: 10px; /* Добавим немного внутреннего отступа */
}
.game-info {
display: flex;
justify-content: space-between;
width: 100%; /* Информационные поля займут всю ширину */
max-width: 600px; /* Можно задать максимальную ширину для контейнера */
margin-bottom: 5px; /* Отступ от игрового поля ниже */
}
.info-item {
display: flex;
flex-direction: row;
align-items: center;
margin-left: 10px;
margin-right: 30px; /* Добавим отступ справа для каждого элемента, кроме последнего */
}
.info-item label {
margin-bottom: 5px;
margin-right: 10px;
}
.info-item input {
text-align: center;
border-style: hidden;
font-size: medium;
/* Другие стили для input, если нужно */
}
.field {
position: relative;
display: flex;
justify-content: center; /* Центрируем игровое поле */
border: 1px solid #ccc;
border-radius: 5px;
background-color: #fff;
padding: 20px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.buttons {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 1px; /* Установим зазор между кнопками */
}
button {
padding: 3px;
height: 40px;
width: 40px;
text-align: center;
font-size: 24px;
border: 0px solid rgb(232, 232, 232);
border-radius: 3px;
cursor: pointer;
transition: background-color 0.5s; /* Уменьшим время анимации для лучшей отзывчивости */
}
button:hover {
background-color: #e3e3e3; /* Более светлый цвет для эффекта при наведении */
}
button[checked="1"] {
background-color: #8f8f8f;
color: white;
}
button[data-value="💣"] {
background-color: #dc3545;
color: white;
}
#startWindow {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
border: 2px solid #ddd; /* Легкая рамка вокруг окна */
border-radius: 10px; /* Скругленные углы */
background-color: #f9f9f9; /* Светлый фон */
margin: auto;
width: 50%;
max-width: 400px; /* Максимальная ширина, чтобы на больших экранах выглядело хорошо */
}
#gameSettings {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px; /* Расстояние между элементами формы */
}
#gameSettings label {
margin-bottom: 5px;
font-weight: bold; /* Жирный шрифт для меток */
}
#gameSettings input[type=range],
#gameSettings select {
width: 85%; /* Ширина ползунка и выпадающего списка */
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: large;
}
#gameSettings button {
padding: 5px 10px; /* Внутренние отступы по горизонтали и вертикали */
line-height: 1.5; /* Высота строки для вертикального выравнивания текста */
text-align: center; /* Горизонтальное выравнивание текста по центру */
/* Остальные стили кнопки */
min-width: 120px;
border: none;
border-radius: 5px;
background-color: #4CAF50;
color: white;
cursor: pointer;
font-size: 1em;
overflow: visible;
margin-top: 20px;
margin-bottom: 20px;
}
#gameSettings button:hover {
background-color: #45a049;
}
#fieldSizeValue {
margin-top: 10px;
}
@keyframes explode {
from {
opacity: 1;
transform: scale(0.5);
}
to {
opacity: 0;
transform: scale(1);
}
}
.particle {
position: absolute;
border-radius: 50%;
animation: explode 2s ease-out forwards;
}
#fireworkContainer {
pointer-events: none;
position: absolute; /* Абсолютное позиционирование */
top: 0; /* Положение вверху родительского контейнера */
left: 0; /* Положение слева от родительского контейнера */
width: 100%; /* Ширина соответствует родительскому контейнеру */
height: 100%; /* Высота соответствует родительскому контейнеру */
z-index: 10; /* Убедитесь, что fireworkContainer находится поверх других элементов */
}