-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
127 lines (112 loc) · 2.26 KB
/
style.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
/* Global Styles */
body {
font-family: 'Arial', sans-serif;
background-color: #2a2a2a;
color: #ffffff;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
}
/* Game Container */
#game-container {
width: 90%;
height: 80%;
background: #444;
padding: 20px;
border-radius: 15px;
box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.7);
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 3fr;
gap: 20px;
align-items: center;
}
/* Card Stack */
.card-stack {
width: 120px;
height: 180px;
border-radius: 10px;
background: #666;
display: flex;
justify-content: center;
align-items: center;
font-weight: bold;
font-size: 1.2em;
transition: transform 0.3s;
cursor: pointer;
color: #000;
}
/* Player Area */
#players {
grid-column: span 2;
display: flex;
justify-content: space-around;
}
.player-area {
background-color: #333;
padding: 10px;
border-radius: 10px;
min-width: 25%;
text-align: center;
}
.hand {
display: flex;
gap: 10px;
justify-content: center;
flex-wrap: wrap;
}
/* Cards */
.card {
width: 60px;
height: 90px;
border-radius: 10px;
text-align: center;
line-height: 90px;
font-weight: bold;
color: #fff;
cursor: pointer;
transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
transform: scale(1.1);
box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.6);
}
.red {
background: linear-gradient(135deg, #ff4e50, #d41e1e);
}
.blue {
background: linear-gradient(135deg, #4286f4, #0054d4);
}
.green {
background: linear-gradient(135deg, #3adb76, #1c873a);
}
.yellow {
background: linear-gradient(135deg, #ffe047, #d4a100);
}
.black {
background: linear-gradient(135deg, #444, #000);
}
/* Controls */
#controls {
margin-top: 20px;
display: flex;
justify-content: center;
gap: 20px;
}
.game-button {
padding: 10px 20px;
background-color: #666;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.3s, transform 0.3s;
}
.game-button:hover {
background-color: #888;
transform: scale(1.05);
}