-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
119 lines (107 loc) · 2.29 KB
/
style.css
File metadata and controls
119 lines (107 loc) · 2.29 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
body{
background-image: linear-gradient(to right, #000099 ,#000066,#060e4a,#03083f);
}
h1{
font-family: "Protest Guerrilla",sans-serif;
font-size: 45px;
margin-top: 0;
margin-left: 20px;
color: white;
text-shadow: 2px 2px black;
}
h2{
font-family: "Graduate",sans-serif;
color: yellow;
font-size: 35px;
text-align: center;
}
.container{
display: grid;
grid-template-columns: auto auto auto auto;
align-items: center;
justify-content: center;
gap: 10px;
}
.restart{
display: flex;
position: absolute;
right: 40px;
top:30px;
padding: 12px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
background-image: linear-gradient(to right,#088036,#08381a);
color: whitesmoke;
font-family:"Sofadi One", san-serif;
border-radius: 10px;
font-size: 18px;
font-weight: bold;
}
.flip-card {
background-color: transparent;
width: 150px;
height: 150px;
perspective: 500px;
border: 2px solid black;
border-radius: 10px;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}
.flip-card-back img{
width: 150px;
height: 150px;
object-fit: cover;
}
.flip-card-game {
position: relative;
width: 100%;
height: 100%;
transition: transform 0.6s;
transform-style: preserve-3d;
}
.flip-card:hover .flip-card-game{
transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
border-radius: 10px;
}
.flip-card-front {
background-image: linear-gradient(to bottom, #b35fe3,#2e1140);
}
.flip-card-back {
transform: rotateY(180deg);
display: flex;
align-items: center;
justify-content: center;
background-image: linear-gradient(to bottom, #b35fe3,#2e1140);
}
@media screen and (max-width: 768px) {
.container {
grid-template-columns: auto auto;
}
.flip-card {
width: 120px;
height: 120px;
}
.restart {
left: 50%;
top: 10%;
padding: 2px;
}
}
@media only screen and (max-width: 1080px){
.container {
grid-template-columns: 2;
}
.flip-card {
width: 100px;
height: 100px;
}
.restart {
left: 30%;
top: 10%;
padding: 2px;
}
}