-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
149 lines (131 loc) · 2.98 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
/* General Styling */
body {
font-family: Arial, sans-serif;
background-color: #f1f5f9;
color: #333;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
}
/* Hobby Cards */
#hobby-cards {
text-align: center;
max-width: 600px;
}
h1 {
font-size: 2em;
color: #333;
margin-bottom: 5px;
}
p {
font-size: 1.2em;
color: #555;
margin-bottom: 20px;
}
.hobby-card {
display: inline-block;
margin: 10px;
padding: 20px;
background-color: #4CAF50;
color: white;
font-size: 1.2em;
cursor: pointer;
border-radius: 8px;
transition: transform 0.3s, background-color 0.3s;
}
.hobby-card:hover {
transform: translateY(-5px);
background-color: #45a049;
}
/* Calendar Grid */
#calendar {
text-align: center;
animation: fadeIn 0.5s ease-in-out;
}
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 5px;
margin-top: 20px;
}
.calendar-day {
padding: 20px;
background-color: #ddd;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s, transform 0.3s;
}
.calendar-day:hover {
background-color: #bbb;
transform: scale(1.1);
}
/* Prompt Display */
#prompt-display {
position: fixed;
top: 20%;
left: 50%;
transform: translate(-50%, -20%);
background-color: white;
border: 1px solid #ccc;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
text-align: center;
animation: fadeIn 0.5s ease-in-out;
}
#prompt-display button {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px;
cursor: pointer;
border-radius: 4px;
margin-top: 15px;
transition: background-color 0.3s;
}
#prompt-display button:hover {
background-color: #45a049;
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
html, body {
height: 100%;
margin: 0;
}
/* Make sure the main content pushes the footer down */
body {
display: flex;
flex-direction: column;
}
/* Main content area */
#hobby-cards, #calendar, #prompt-display {
flex: 1; /* Allow main content to grow */
}
/* Footer styles */
footer {
position: relative; /* Keep it relative to the body */
width: 100%;
background-color: #f1f1f1; /* Adjust background color as needed */
text-align: center; /* Center the text */
padding: 10px 0; /* Add some padding */
}
header {
text-align: center; /* Center the text */
background-color: #f1f1f1; /* Adjust background color as needed */
padding: 20px 0; /* Add some padding */
margin-bottom: 40px; /* Space between header and main content */
}
header h1 {
margin: 0; /* Remove default margin */
font-size: 3em; /* Adjust font size as needed */
color: #333; /* Adjust text color as needed */
}
header a {
text-decoration: none; /* Remove underline from the link */
color: #333; /* Ensure the text color is consistent */
}