-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
103 lines (97 loc) · 1.64 KB
/
style.css
File metadata and controls
103 lines (97 loc) · 1.64 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
body {
height: 100vh;
overflow: hidden;
background-color: cadetblue;
display: flex;
justify-content: space-evenly;
align-items: center;
flex-direction: column;
}
.header{
font-size: 7vh;
font-weight: 900;
color: antiquewhite;
height: 5vh;
}
.card {
height: 15vh;
width: 7vw;
border: 2px solid black;
box-sizing: border-box;
transform-style: preserve-3d;
transition: transform 0.6s ease;
cursor: pointer;
position: relative;
}
.front,
.back {
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
backface-visibility: hidden;
}
.front {
background-color: aqua;
}
.back {
transform: rotateY(180deg);
}
.all-cards {
display: grid;
grid-template-columns: repeat(4, 7vw);
gap: 1vh;
}
.btn {
right: 10vw;
padding: 2vh;
font-size: 3vh;
border-radius: 2vh;
background-color: cornsilk;
font-weight: bolder;
cursor: pointer;
font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
transition: all 0.5s ease;
}
.btn:hover {
background-color: burlywood;
}
.footer {
bottom: 2vh;
right: 10vw;
font-size: 3vh;
font-weight: bold;
color: white;
font-family: cursive;
}
@media (max-width: 600px) {
body {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.card {
height: 10vh;
width: 20vw;
}
.all-cards {
margin-bottom: 10vh;
margin-top: 10vh;
display: grid;
grid-template-columns: repeat(4, 20vw);
gap: 1vh;
}
.btn {
position: static;
font-family: fantasy;
}
.footer {
bottom: 2vh;
position: fixed;
}
.header{
margin-top: 2vh;
font-size: 4vh;
}
}