summaryrefslogtreecommitdiff
path: root/frontend/src/components/game/Hand.css
blob: 8e7d93c5639472904072ba02799c33116196a71a (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
.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;
    z-index: 30;
}
.hand:hover {
    bottom: 4rem;
    transform: translate(-50%, 0%);
}

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

.hand-card .hand-card-img {
    grid-row: 1;
    grid-column: 1;
    max-width: 13vw;
    max-height: 60vh;
    transition: 0.1s;
    width: 11rem;
}
.hand-card.unplayable .hand-card-img {
    filter: grayscale(50%) contrast(50%);
}
.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