-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhoroscope.css
More file actions
149 lines (133 loc) · 2.9 KB
/
horoscope.css
File metadata and controls
149 lines (133 loc) · 2.9 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
144
145
146
147
148
149
/* Reset & global */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Papyrus", "Cursive", serif;
}
body {
background: #fffdf5; /* soft cream */
color: #2e2e4f; /* deep slate text */
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
}
/* Header */
header {
padding: 20px;
text-align: center;
}
.glow-heading {
font-size: 3rem;
color: #2e2e4f;
text-shadow: 0 0 8px #fff, 0 0 15px #fff9;
}
/* Menu container at bottom */
.menu-container {
position: fixed;
bottom: 20px;
width: 100%;
display: flex;
justify-content: center;
pointer-events: auto;
}
.menu-item .home-button {
text-decoration: none;
padding: 12px 25px;
background: #fff;
color: #2e2e4f;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
font-weight: bold;
transition: all 0.3s ease;
}
.menu-item .home-button:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
/* Horoscope container / text bubble */
.horoscope-container {
margin-top: 40px;
width: 90%;
max-width: 500px;
display: flex;
flex-direction: column;
align-items: center;
}
select#zodiac-sign {
padding: 10px 15px;
border-radius: 10px;
border: 2px solid #ccc;
font-size: 16px;
margin-bottom: 15px;
width: 100%;
max-width: 300px;
background: #fffef9;
cursor: pointer;
}
button#get-horoscope {
padding: 10px 20px;
border-radius: 12px;
border: none;
background: #fffef9;
color: #2e2e4f;
font-weight: bold;
cursor: pointer;
box-shadow: 0 5px 10px rgba(0,0,0,0.1);
transition: all 0.3s ease;
}
button#get-horoscope:hover {
transform: translateY(-2px);
box-shadow: 0 7px 15px rgba(0,0,0,0.15);
}
/* Magical smoky bubble for horoscope */
#horoscope-result {
margin-top: 25px;
background: rgba(255, 255, 255, 0.9);
padding: 25px;
border-radius: 30px;
box-shadow: 0 0 60px rgba(200,200,200,0.3), inset 0 0 20px rgba(255,255,255,0.6);
font-size: 18px;
text-align: center;
max-width: 100%;
position: relative;
line-height: 1.5em;
}
/* Fade in effect */
.fade-in {
opacity: 0;
animation: fadeIn 1.5s forwards;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-20px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
/* Optional smoke effect (animated pseudo-elements) */
#horoscope-result::before,
#horoscope-result::after {
content: '';
position: absolute;
width: 120%;
height: 120%;
top: -10%;
left: -10%;
background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
border-radius: 50%;
animation: smoke 4s infinite alternate;
z-index: -1;
}
#horoscope-result::after {
animation-delay: 2s;
}
@keyframes smoke {
0% { transform: translate(0,0) scale(1); opacity: 0.4; }
50% { transform: translate(10px,-10px) scale(1.05); opacity: 0.2; }
100% { transform: translate(-10px,-5px) scale(1.1); opacity: 0.4; }
}