-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
131 lines (113 loc) · 2.34 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
html {
display:flex;
justify-content: center;
}
body {
background-color: black;
}
header {
display:flex;
justify-content: center;
margin-bottom:80px;
width: 100%;
}
.logo {
min-width: 600px;
}
main {
width: 100%;
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px;
row-gap: 10px;
grid-auto-rows: minmax(auto, auto);
}
.scene {
width: 300px;
height:350px;
margin-bottom:10x;
border: 3px solid skyblue;
perspective: 600px;
}
.card {
height: 100%;
width: 100%;
transition: transform 1s;
transition: transform 1s;
transform-style: preserve-3d;
cursor: pointer;
position: relative;
background-color:yellowgreen;
}
h2.card__face.card__face--front {
width: 300px;
color:steelblue;
max-inline-size:300px;
text-align: center;
font-size: 1em;
}
.card.is-flipped {
transform: rotateY(180deg);
}
.card__face {
position: absolute;
max-width: 300px;
max-height: 350px;
color: white;
text-align: center;
background: yellowgreen;
}
p {
padding:5px;
margin:2px;
border: solid 1px steelblue;
background:skyblue;
display: list-item;
margin:0px;
}
.card__face--front {
backface-visibility: hidden;
background:yellowgreen;
}
.card__face--back {
padding-top:30px;
transform: rotateY(180deg);
}
img.card__face--front {
position:fixed;
justify-content: center;
position: absolute;
margin-top:50px;
}
div.card__face.card__face--back {
backface-visibility: hidden;
width: 300px;
height:320px;
}
.backdata {
margin-top:30px;
margin-left:100px;
margin-right:100px;
}
.stats {
color: steelblue;
}
/*Button Styling*/
button {
width: 200px;
height: 40px;
font-size: 1rem;
margin:20px;
border-radius: 8px;
justify-content: center;
background: yellowgreen;
font-weight: bold;
color: darkslategrey;
border:solid skyblue 2px;
}
.buttondiv {
width:100%;
display: flex;
justify-content: center;
margin-bottom:40px;
}