-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
125 lines (109 loc) · 2.31 KB
/
main.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
/* Основные стили */
body {
font-family: 'Arial', sans-serif;
color: #333;
background-color: #faf3e0;
margin: 0;
line-height: 1.6;
}
.container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background: linear-gradient(145deg, #ffffff, #f0e9e1);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
border-radius: 12px;
text-align: center;
position: relative;
}
/* Заголовок */
.header img {
margin-bottom: 15px;
transition: transform 0.3s;
}
.header img:hover {
transform: scale(1.05);
}
.header h1 {
font-size: 36px;
color: #d32f2f;
font-family: 'Georgia', serif;
font-weight: bold;
margin: 0;
}
.header p {
font-size: 18px;
color: #888;
}
/* Категории с карточками */
.categories {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-top: 20px;
}
.category-link {
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
font-weight: bold;
color: #d32f2f;
text-decoration: none;
background-color: #f9f3e7;
padding: 15px;
border-radius: 15px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
position: relative;
}
.category-link i {
font-size: 24px;
margin-right: 8px;
transition: transform 0.3s;
}
.category-link:hover {
background-color: #d32f2f;
color: #fff;
transform: scale(1.05);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.category-link:hover i {
transform: rotate(10deg) scale(1.1);
}
/* Всплывающая подсказка */
.category-link::after {
content: attr(data-tooltip);
position: absolute;
bottom: -28px;
left: 50%;
transform: translateX(-50%);
background-color: rgba(0, 0, 0, 0.7);
color: #fff;
padding: 5px 10px;
border-radius: 5px;
font-size: 14px;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s;
white-space: nowrap;
}
.category-link:hover::after {
opacity: 1;
visibility: visible;
}
/* Подвал */
.footer {
margin-top: 40px;
padding-top: 15px;
border-top: 1px solid #ddd;
font-size: 14px;
color: #666;
}
.footer img {
margin-top: 10px;
width: 80px;
}
.footer p {
margin: 5px 0;
}