-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
144 lines (112 loc) · 2.59 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
font-size: 62.5%;
}
body {
background: linear-gradient(45deg, #190361, #bb00ff);
font-size: 1.6rem;
display: grid;
place-items: center;
height: 100vh;
}
body,
button {
font-family: 'DM Sans', sans-serif;
}
main {
background: #ffffff;
box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.8);
border-radius: .5rem;
padding: 4.8rem 6.4rem 6.4rem;
width: min(42.8rem, 90%);
margin-top: -8rem;
text-align: center;
}
.hide {
display: none;
}
h1 {
font-family: 'Montserrat', sans-serif;
font-size: 2.4rem;
margin-bottom: 1.6rem;
}
h1,
p {
color: #34355b;
}
#fortuneCookie {
width: 300px;
height: 200px;
background-image: url(./assets/fortuneCookie.svg);
background-repeat: no-repeat;
background-position: center;
background-size: contain;
margin: 20px 30px 0px 0px;
}
#fortuneCookie:hover {
cursor: pointer;
animation: shake 0.5s;
animation-iteration-count: infinite;
}
.screen2 h2 {
font-size: 2.4rem;
font-family: 'Dancing Script', cursive;
font-weight: normal;
background-color: #e4edf1;
box-shadow: 0 .2rem .4rem rgba(0,0,0,0.1);
animation-name: toFadeIn;
animation-duration: 2s;
text-align: center;
padding: 10px;
box-shadow: 2px 2px 2px rgba(85, 85, 85, 0.5);
}
#crackedCookie {
width: 300px;
height: 200px;
background-image: url(./assets/openedCookie.svg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
button {
background-color: #ff9500;
color: white;
font-weight: bold;
border-radius: .4rem .4rem .4rem .4rem;
cursor: pointer;
transition: background .3s;
border: 0;
padding: 1.6rem;
}
button:hover {
background-color: #d37b01;
}
@keyframes toFadeIn {
0% {
transform:
translateY(150px)
scale(0.1);
}
100% {
transform:
translateY(0px)
scale(1);
}
}
@keyframes shake {
0% { transform: translate(1px, 1px) rotate(0deg); }
10% { transform: translate(-1px, -2px) rotate(-1deg); }
20% { transform: translate(-3px, 0px) rotate(1deg); }
30% { transform: translate(3px, 2px) rotate(0deg); }
40% { transform: translate(1px, -1px) rotate(1deg); }
50% { transform: translate(-1px, 2px) rotate(-1deg); }
60% { transform: translate(-3px, 1px) rotate(0deg); }
70% { transform: translate(3px, 1px) rotate(-1deg); }
80% { transform: translate(-1px, -1px) rotate(1deg); }
90% { transform: translate(1px, 2px) rotate(0deg); }
100% { transform: translate(1px, -2px) rotate(-1deg); }
}