-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
113 lines (100 loc) · 1.66 KB
/
styles.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 16px;
}
body {
height: 100vh;
background-color: rgb(26, 26, 26);
display: flex;
justify-content: center;
align-items: center;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.container {
display: flex;
flex-direction: column;
height: 70vh;
margin-top: 20px;
margin-left: 70px;
justify-content: space-evenly;
align-items: center;
}
.container h1 {
color: white;
font-size: 55px;
}
.container h2 {
margin-bottom: 7px;
}
.scoreBoard {
color: white;
background-color: #d8bfd8;
width: 25rem;
height: 15.625rem;
display: flex;
border-radius: 20px;
flex-direction: column;
justify-content: center;
padding: 1.25rem;
align-items: center;
}
.scoreBoard button {
outline: none;
cursor: pointer;
border: none;
padding: 10px;
width: 40%;
margin-top: 10px;
border-radius: 20px;
background-color: #845488;
font-size: 18px;
font-weight: 600;
color: white;
}
.board {
width: 44rem;
height: 720px;
display: flex;
flex-wrap: wrap;
margin: auto;
perspective: 1000px;
}
.card {
width: 23%;
height: 28%;
position: relative;
margin: 7px;
transform: scale(1);
cursor: pointer;
transform-style: preserve-3d;
transition: transform 0.5s;
}
.card:active {
transform: scale(0.97);
transition: transform 0.2s;
}
.card.flip {
transform: rotateY(180deg);
}
.front,
.back {
padding: 20px;
border-radius: 10px;
position: absolute;
backface-visibility: hidden;
}
.back {
width: 100%;
height: 100%;
padding: 0;
}
.front {
width: 100%;
height: 100%;
background-color: white;
transform: rotateY(180deg);
}