-
Notifications
You must be signed in to change notification settings - Fork 0
/
TetrisStyles.css
128 lines (116 loc) · 2.39 KB
/
TetrisStyles.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
125
126
127
128
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-image: url("TetrisBackground.jpg");
background-size: cover;
background-position: center;
margin: 0;
font-family: 'Arial', sans-serif;
overflow: hidden;
}
.container-wrapper {
display: flex;
justify-content: center;
align-items: center;
height: 90vh;
width: 100vw;
}
.game-container {
display: flex;
flex-direction: column;
align-items: center;
border: 2px solid #fff;
padding: 20px;
background: #333;
border-radius: 15px;
width: 400px;
height: 580px;
box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
margin: auto;
position: relative;
}
canvas {
background: #111;
border: 1px solid #fff;
display: block;
width: 100%;
height: 100%;
}
.top-controls {
position: absolute;
top: 20px;
left: 20px;
right: 20px;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 2;
}
.score-btn {
padding: 12px 25px;
font-size: 18px;
background: #333;
color: #fff;
border: 2px solid white;
border-radius: 10px;
text-align: center;
cursor: default;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
display: flex;
align-items: center;
gap: 10px;
}
.score-btn:hover {
background: #333;
}
.btn {
padding: 12px 25px;
font-size: 18px;
cursor: pointer;
background: #333;
color: #fff;
border: 2px solid white;
border-radius: 10px;
transition: background 0.3s ease, transform 0.2s ease;
display: flex;
align-items: center;
gap: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.btn:hover {
background: #f02e2e;
transform: scale(1.05);
}
.game-over {
display: none;
position: fixed;
top: 50%;
left: 50%;
border: 2px solid white;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.9);
padding: 30px;
border-radius: 15px;
text-align: center;
color: #fff;
box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
z-index: 1000;
}
.game-over p {
margin: 0 0 20px;
font-size: 24px;
font-weight: bold;
font-family: 'Arial', sans-serif;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.game-over .btn {
font-size: 20px;
padding: 15px 30px;
background: #f44;
color: #fff;
}
.game-over .btn:hover {
background: #d33;
}