-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCardGamePage.css
More file actions
86 lines (75 loc) · 1.58 KB
/
CardGamePage.css
File metadata and controls
86 lines (75 loc) · 1.58 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
/* src/styles/CardGamePage.css */
.playing-card-placeholder {
width: 100px;
height: 140px;
border: 2px dashed #4a5568; /* gray-600 */
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
color: #a0aec0; /* gray-400 */
background-color: #2d3748; /* gray-800 */
}
.playing-card {
width: 100px;
height: 140px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding: 8px;
font-family: 'Arial', sans-serif;
font-weight: bold;
transition: transform 0.3s ease-in-out;
}
.playing-card.red {
color: #ef4444; /* red-500 */
}
.playing-card.black {
color: #1a202c; /* gray-900 */
}
.playing-card-corner {
position: absolute;
font-size: 1.2rem;
line-height: 1;
}
.playing-card-corner.top-left {
top: 5px;
left: 5px;
}
.playing-card-corner.bottom-right {
bottom: 5px;
right: 5px;
transform: rotate(180deg);
}
.playing-card-suit-center {
font-size: 3rem;
line-height: 1;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* Animation for next card */
.next-playing-card-placeholder {
animation: pulse-border 1.5s infinite ease-in-out;
}
@keyframes pulse-border {
0% {
border-color: #4a5568; /* gray-600 */
}
50% {
border-color: #63b3ed; /* blue-300 */
}
100% {
border-color: #4a5568; /* gray-600 */
}
}
.next-playing-card {
transform: translateY(-10px); /* Slight lift for emphasis */
}