summaryrefslogtreecommitdiff
path: root/frontend/src/components/game/Hand.css
blob: d26ddfb511e126f8b218581eed359198dc4b70bf (plain)
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
.hand {
    align-items: center;
    bottom: 0;
    display: flex;
    height: 345px; /* can hold enhanced cards */
    left: 50%;
    max-height: 25vw;
    position: absolute;
    transform: translate(-50%, 55%);
    transition: 0.5s
}
.hand:hover {
    bottom: 4rem;
    transform: translate(-50%, 0%);
}

.hand-card {
    align-items: flex-end;
    display: grid;
    margin: 0.2rem;
}

.hand-card .hand-card-img {
    border-radius: 0.5rem;
    box-shadow: 2px 2px 5px black;
    grid-row: 1;
    grid-column: 1;
    max-width: 13vw;
    max-height: 60vh;
    opacity: 1;
    transition: 0.1s;
    width: 11rem;
}
.hand-card.unplayable .hand-card-img {
    opacity: 0.7;
}
.hand-card:hover .hand-card-img {
    box-shadow: 0 10px 40px black;
    width: 14rem;
    max-width: 15vw;
    max-height: 90vh;
}

.hand-card .action-buttons {
    align-items: flex-end;
    display: none;
    grid-row: 1;
    grid-column: 1;
}
.hand-card:hover .action-buttons {
    display: flex;
}
bgstack15