-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
91 lines (79 loc) · 1.8 KB
/
index.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
body {
font-family: 'Comic Sans MS', cursive;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f8f8ff; /* Ghost white */
animation: bgAnimation 15s linear infinite;
}
.container {
text-align: center;
}
h1 {
font-size: 36px;
margin-bottom: 20px;
color: #1E90FF; /* Dodger blue */
}
.fact-container {
max-width: 400px;
margin: 0 auto;
padding: 20px;
border-radius: 10px;
background-color: #FFF8DC; /* Cornsilk */
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
animation: slideInUp 0.5s ease-out;
}
.fact {
font-size: 24px;
margin-bottom: 20px;
color: #228B22; /* Forest green */
}
.button-container {
display: flex;
justify-content: space-around;
}
.button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
background-color: #FFD700; /* Gold */
color: #333; /* Dark gray */
border: none;
border-radius: 5px;
transition: background-color 0.3s;
}
.button:hover {
background-color: #FFB90F; /* Dark golden rod */
}
.favorite-button {
padding: 8px 12px;
font-size: 14px;
cursor: pointer;
border: none;
border-radius: 5px;
transition: background-color 0.3s;
}
.favorite-button:hover {
background-color: #FFD700; /* Gold */
}
.favorite-button.favorited {
background-color: #E63946; /* Red */
color: #FFF;
}
@keyframes bgAnimation {
0% { background-color: #f8f8ff; }
50% { background-color: #FFF8DC; }
100% { background-color: #f8f8ff; }
}
@keyframes slideInUp {
0% {
transform: translateY(-100%);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}