-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
95 lines (81 loc) · 1.55 KB
/
style.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
/* Reset some default styles */
body, h1, p {
margin: 0;
padding: 0;
}
/* Style the body */
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
text-align: center;
}
/* Regular styles for screens wider than 768px (desktop) */
body {
background-color: #f0f0f0;
font-size: 16px;
}
.header {
background-color: #333;
color: #fff;
padding: 20px;
}
.container {
width: 80%;
margin: 0 auto;
}
/* Media query for screens up to 768px wide (mobile) */
@media (max-width: 768px) {
body {
background-color: #e0e0e0;
font-size: 14px;
}
.header {
background-color: #666;
padding: 10px;
}
.container {
width: 90%;
}
}
/* Style the header */
h1 {
background-color: #4CAF50;
color: white;
padding: 20px;
}
/* Style the button */
#generateButton {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
margin-top: 20px;
}
#generateButton:hover {
background-color: #45a049;
transition: background-color 0.3s ease;
}
/* Style the kindness suggestion text */
#kindnessSuggestion {
font-size: 20px;
margin-top: 20px;
}
/* Center elements horizontally */
.center {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 70vh;
}
/* Responsive design for screens up to 768px wide (mobile) */
@media (max-width: 768px) {
body {
font-size: 14px;
}
.container {
width: 90%;
}
}