-
Notifications
You must be signed in to change notification settings - Fork 7
/
style.css
148 lines (143 loc) · 3.04 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
body {
background: linear-gradient(45deg, #6e5800, #0e4a6e, #ff6347);
background-size: 600% 600%;
animation: GradientBackground 10s ease infinite;
background-repeat: no-repeat;
overflow-x: hidden;
}
@keyframes GradientBackground {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
};
h2 {
background: #666;
color: #fff;
text-align: center;
margin: 0 0 5% 0;
padding: 0.5em;
}
.cardBox {
float: left;
font-size: 1.2em;
perspective: 800px;
margin-bottom: 4%;
transition: all 0.4s ease 0s;
}
.cardBox:hover .card {
transform: rotateY(180deg);
}
.card {
background: #666666;
cursor: pointer;
height: 35vh;
transform-style: preserve-3d;
transition: transform 0.65s ease 0s;
width: 100%;
}
.card p {
margin-bottom: .8em;
}
.card .front,
.card .back {
backface-visibility: hidden;
box-sizing: border-box;
color: white;
display: block;
font-size: 1.2em;
height: 100%;
position: absolute;
text-align: center;
width: 100%;
font-family: 'Acme', sans-serif;
}
.card .back {
transform: rotateY( 180deg);
box-shadow:5px 5px 8px #242424b0;
}
.card .back a {
padding: 0.3em 0.5em;
background: rgb(36, 36, 36);
color: #fff;
text-decoration: none;
border-radius: 28px;
font-size: 130%;
font-family: 'Crimson Pro', serif;
transition: all 0.2s ease 0s;
box-shadow:0px 5px 10px #242424b0;
}
.card .back .backcontent{
top: 20%;
position: relative;
}
.card .back .backcontent p{
font-size: 180%;
font-weight: 500;
text-shadow: 2px 2px 5px rgb(66, 66, 66);
}
.card .back a:hover {
background: rgb(252, 252, 252);
color: rgb(14, 14, 14);
text-shadow: 0 0 1px rgb(39, 39, 39);
}
.cardBox:nth-child(1) .card .back {
background: #F4531C;
}
.cardBox:nth-child(2) .card .back {
background: #ff537b;
}
.cardBox:nth-child(3) .card .back {
background: #ff6347;
}
.cardBox:nth-child(4) .card .back {
background: #8ebf42;
}
.cardBox:nth-child(2) .card {
-webkit-animation: giro 1.5s 1;
animation: giro 1.5s 1;
}
.cardBox:nth-child(3) .card {
-webkit-animation: giro 2s 1;
animation: giro 2s 1;
}
.cardBox:nth-child(4) .card {
-webkit-animation: giro 2.5s 1;
animation: giro 2.5s 1;
}
@-webkit-keyframes giro {
from {
transform: rotateY(180deg);
}
to {
transform: rotateY(0deg);
}
}
@keyframes giro {
from {
transform: rotateY(180deg);
}
to {
transform: rotateY(0deg);
}
}
.gif{
height: 35vh;
width: 100%;
}
.logo{
margin: -5%;
padding: 0 !important;
margin: 0 !important;
}
.boxesContainer{
position: relative;
top: -10%;
margin-left: .5%;
margin-right: .5%;
}