-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
125 lines (109 loc) · 2.54 KB
/
style.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
body {
background-color: black;
}
/* Main page header */
#page-header {
font-size: 72px;
color: white;
text-align: center;
margin: 10px;
font-family: 'Source Sans Pro', sans-serif;
text-shadow: 1px 0px 1px #000000, 0px 1px 1px #000000,
2px 1px 1px #000000, 1px 2px 1px #000000, 3px 2px 1px #000000,
2px 3px 1px #000000, 4px 3px 1px #000000, 3px 4px 1px #000000,
5px 4px 1px #000000, 4px 5px 1px #000000, 6px 5px 1px #000000,
5px 6px 1px #000000, 7px 6px 1px #000000;
}
/* Second smaller header */
#page-subheader {
margin-bottom: 75px;
text-shadow: 0 1px 1px #000000;
}
/* Main page container */
#page-container {
display: flex;
position: absolute;
left: 0;
top: 0;
justify-content: center;
flex-direction: column;
align-items: center;
min-height: 100%;
width: 100%;
font-family: 'DM Mono', monospace;
color: white;
background-image: url(./images/def%20back.jpg);
background-size: cover;
}
/* Wraps the game cards */
#game-wrapper {
display: none;
flex-wrap: wrap;
align-items: center;
justify-content: center;
width: 70%;
margin-bottom: 50px;
}
#menu {
text-shadow: 0 1px 1px #000000;
}
.card {
display: flex;
flex-basis: 20%;
min-width: 150px;
justify-content: center;
align-items: center;
margin: 10px;
height: 200px;
background-color: rgba(0, 0, 0, 0.6);
transition: 0.8s;
transform-style: preserve-3d;
border-radius: 5px;
box-shadow: 5px 5px 4px rgb(0, 0, 0);
}
.card-front {
position: absolute;
font-size: 72px;
backface-visibility: hidden; /* Hides back side of card */
user-select: none;
}
.card-back {
position: absolute;
font-size: 72px;
transform: rotateY(180deg); /* Starts rotated so it's hidden */
backface-visibility: hidden; /* Hides back side of card */
user-select: none;
}
/* State for flipped card */
.flipped {
transform: rotateY(180deg); /* Rotates card so visible side appears */
box-shadow: none;
}
.card:hover {
box-shadow: 3px 3px 2px rgb(255, 255, 255);
}
/* Last state of matching cards */
.completed {
visibility: hidden;
}
#game-wrapper:focus {
outline: 3px solid white;
}
#menu:focus {
outline: 1px solid white;
}
button {
font-family: 'DM Mono', monospace;
margin: 25px;
}
/* Score screen after game ends */
#score-screen {
display: none;
align-items: center;
justify-content: center;
flex-direction: column;
}
footer {
/* position: absolute; */
bottom: 15px;
}