-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
143 lines (116 loc) · 2.67 KB
/
style.css
File metadata and controls
143 lines (116 loc) · 2.67 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/*
All fo the following code was given before hand and not original.
Anything modified will have a modified comment above the modified code.
*/
:root {
--card-width: 125px;
--card-height: 175px;
}
body {
margin: 0;
background: url(img/background.png);
background-position: center;
background-size: cover;
/* The color, font family and text shadow where changed to match the background image and theme of anime */
color: #dfd8e7;
font-family: 'Kaushan Script', cursive;
text-shadow: 3px 3px #ac6a92;
}
h1 {
font-size: 60px;
text-align: center;
}
#ui-container {
text-align: center;
}
#ui-container h3 {
margin: 0;
display: inline-block;
font-size: 40px;
text-align: center;
}
#ui-container h3:first-child {
margin-right: 40px;
}
#card-container {
font-size:0;
margin: 50px auto;
width: calc((var(--card-width) + 24px) * 4);
}
.card {
display: inline-block;
position: relative;
margin: 10px;
width: var(--card-width);
height: var(--card-height);
border: 2px solid transparent;
overflow: hidden;
}
/* Style the two logo images themselves. */
.card-down,
.card-up {
/* Take images out of the flow. */
position: absolute;
width: 100%;
height: 100%;
/* When facing away from the screen each image should be hidden. */
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
border-radius: 5px;
transition-duration: .3s;
}
.card-down {
background-image: url(img/card.png);
background-position: center;
background-size: cover;
}
.card-up {
background-position: center;
background-size: cover;
transform: rotateY(180deg);
}
.flipped .card-down {
transform: rotateY(180deg);
}
.flipped .card-up {
transform: rotateY(0deg);
}
.image-1 .card-up {
background-image: url(img/image-1.png), linear-gradient(#72dbf4, #72dbf4);
}
.image-2 .card-up {
background-image: url(img/image-2.png), linear-gradient(#72dbf4, #72dbf4);
}
.image-3 .card-up {
background-image: url(img/image-3.png), linear-gradient(#72dbf4, #72dbf4);
}
.image-4 .card-up {
background-image: url(img/image-4.png), linear-gradient(#72dbf4, #72dbf4);
}
.image-5 .card-up {
background-image: url(img/image-5.png), linear-gradient(#72dbf4, #72dbf4);
}
.image-6 .card-up {
background-image: url(img/image-6.png), linear-gradient(#72dbf4, #72dbf4);
}
.glow {
border: 1px solid transparent;
transition: border 0.1s linear, box-shadow 0.1s linear;
}
@keyframes border-glow {
from {
border: 2px solid transparent;
box-shadow: none;
}
80% {
border-color: blue;
box-shadow: 0 0 10px blue;
}
to {
border: 2px solid transparent;
box-shadow: none;
}
}
.border-glow {
animation: border-glow 1s;
}