-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
173 lines (154 loc) · 3.17 KB
/
styles.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
p {
font-size: 25px;
font-family: 'georgia', cursive;
text-align: center;
}
body {
background-color: lightblue;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
h1 {
font-family: 'Cinzel', serif;
color: black;
text-align: center;
border: none;
border-collapse: collapse;
padding: 50px 500px 50px 500px;
text-shadow: 1px 1px white;
background: linear-gradient(lightyellow, transparent);
text-transform: rgba(0, 0 ,0 , 0.5);
box-shadow: 0 8px 16px 0 rgba(153, 67, 67, 0.2);
}
#description {
width: 50%;
}
.container{
text-align: center;
flex: center;
}
#generator {
width: 150px;
height: 30px;
border: none;
font-weight: 700;
box-shadow: 0px 2px 10px rgba(0,0,0,.5);
margin-bottom: 20px;
margin-right: 20px;
border-radius: 5px;
}
#quotenumber {
width: 150px;
height: 30px;
font-weight: 700;
border: none;
box-shadow: 0px 2px 10px rgba(0,0,0,.5);
margin-bottom: 20px;
border-radius: 5px;
}
#btn {
background-color: #4CAF50;
}
#btn:hover {
background-color: #3e8e41
}
#btn:active {
background-color: #3e8e41;
}
#sentence {
text-align: center;
padding-top: 50px;
margin-bottom: 25px;
width: 50%;
font-size: 30px;
font-family: 'Quintessential', cursive
}
.buttons {
display: flex;
flex-direction: column;
justify-content: center;
}
.genbtn {
padding: 15px 25px;
font-size: 20px;
margin: 0em 30em 1.5em 30em;
text-align: center;
text-transform: uppercase;
cursor: pointer;
outline: none;
color: black;
background-color: #f51616;
border: none;
border-radius: 10px;
box-shadow: 0 9px #999;
}
.genbtn:active{
box-shadow: 0 5px #666;
transform: translateY(4px);
}
#quitbtn:hover {
background-color: #990000;
}
#quitbtn:active {
background-color: #990000;
}
#backbtn {
padding: 15px 25px;
font-size: 20px;
text-align: center;
cursor: pointer;
outline: none;
text-transform: uppercase;
color: black;
background-color: #ffc400;
border: none;
border-radius: 10px;
box-shadow: 0 9px #999;
align-content: center;
}
#backbtn:hover {
background-color: #b58b00;
}
#backbtn:active {
background-color: #b58b00;
box-shadow: 0 5px #666;
transform: translateY(4px);
}
/* Animation */
:root{
--animation-duration: 500ms;
--animation-delay: 500ms
}
h1{
animation: appear var(--animation-duration);
}
#description{
opacity: 0;
animation: appear var(--animation-duration) var(--animation-delay) forwards;
}
select{
opacity: 0;
animation: appear var(--animation-duration) calc(var(--animation-delay) * 2) forwards;
}
#btn{
opacity: 0;
animation: appear var(--animation-duration) calc(var(--animation-delay) * 3) forwards;
}
#quitbtn{
opacity: 0;
animation: appear var(--animation-duration) calc(var(--animation-delay) * 4) forwards;
}
#sentence p{
animation-name: appear;
animation-duration: 2.5s;
}
@keyframes appear{
0%{
opacity: 0;
}
100%{
opacity: 1;
}
}