-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
174 lines (156 loc) · 4.95 KB
/
Copy pathstyle.css
File metadata and controls
174 lines (156 loc) · 4.95 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
/* General Styles */
body {
margin: 0;
font-family: 'Arial', sans-serif;
background-color: #1e1e1e; /* Dark background for contrast */
color: #f0f0f0;
overflow: hidden; /* Prevent scrollbars */
}
/* Storybook Container */
.storybook {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
background: linear-gradient(135deg, #6e45e2, #88d3ce); /* Gradient background */
box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5); /* Inner shadow for depth */
}
/* Page Styles */
.page {
text-align: center;
padding: 20px;
position: absolute;
width: 80%;
height: 80%;
transition: opacity 1s ease, transform 1s ease, box-shadow 0.5s ease;
opacity: 1;
transform: scale(1);
border-radius: 20px;
background: rgba(255, 255, 255, 0.9); /* Semi-transparent background for text area */
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow for elevated effect */
}
/* Hidden Class */
.hidden {
opacity: 0;
transform: scale(0.9);
pointer-events: none;
}
.fade-in {
animation: fadeIn 1s ease-in-out;
}
/* Headings */
h1 {
color: #e34d1b; /* Highlight color for headings */
font-size: 3em;
margin: 0;
text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5); /* Deep shadow for depth */
}
/* Paragraphs */
p {
color: #0d0c0d;
font-size: 1.5em;
margin: 20px 0;
line-height: 1.6;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); /* Subtle shadow for readability */
}
/* Image Styles */
.animated-forest, .animated-creature, .animated-path, .animated-hidden-path, .animated-clearing,
.animated-glade, .animated-lair, .animated-resting, .animated-new-path, .animated-secret,
.animated-path-return, .animated-artifacts, .animated-leave-lair {
width: 100%;
max-width: 600px; /* Larger image size */
height: auto;
border-radius: 15px;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4); /* Enhanced shadow for images */
transition: transform 0.5s ease, box-shadow 0.5s ease;
}
/* Image Hover Effects */
.animated-forest:hover, .animated-creature:hover, .animated-path:hover,
.animated-hidden-path:hover, .animated-clearing:hover, .animated-glade:hover,
.animated-lair:hover, .animated-resting:hover, .animated-new-path:hover,
.animated-secret:hover, .animated-path-return:hover, .animated-artifacts:hover,
.animated-leave-lair:hover {
transform: scale(1.1); /* Zoom effect on hover */
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5); /* Larger shadow on hover */
}
/* Progress Bar */
.progress-bar {
position: absolute;
top: 20px;
left: 50%;
transform: translateX(-50%);
width: 70%;
height: 8px; /* Thicker progress bar */
background-color: #333;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}
.progress-bar #progress-fill {
height: 100%;
width: 0;
background: linear-gradient(90deg, #ff6f61, #ffac41); /* Gradient fill */
transition: width 0.5s ease;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Shadow for fill */
}
/* Buttons */
.next-button, .restart-button, .choice-button, .music-controls button {
padding: 15px 30px;
font-size: 18px;
cursor: pointer;
background-color: #ff6f61;
color: white;
border: none;
border-radius: 10px;
margin-top: 20px;
transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for buttons */
}
/* Button Hover Effects */
.next-button:hover, .restart-button:hover, .choice-button:hover, .music-controls button:hover {
background-color: #e65c50;
transform: scale(1.1); /* Slight scaling on hover */
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Larger shadow on hover */
}
/* Music Controls */
.music-controls {
position: absolute;
bottom: 20px;
display: flex;
align-items: center;
gap: 10px;
animation: shimmer 2s infinite linear; /* Shimmer effect for music controls */
}
.music-controls button {
background-color: #4CAF50; /* Music control button color */
padding: 10px 20px;
border-radius: 5px;
}
.music-controls button:hover {
background-color: #45a049;
}
/* Credit Section */
.credit {
position: absolute;
bottom: 20px;
left: 20px;
color: #f0f0f0;
font-size: 16px;
font-style: italic;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
background: rgba(0, 0, 0, 0.7); /* Slight background to enhance readability */
padding: 5px 10px;
border-radius: 5px;
}
/* Keyframes for Animations */
@keyframes fadeIn {
from { opacity: 0; transform: scale(0.9); }
to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
0% { background-position: -1000px 0; }
100% { background-position: 1000px 0; }
}