-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles1.css
177 lines (148 loc) · 3.27 KB
/
styles1.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
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
175
176
177
/* About Page Specific Styles */
body {
background: linear-gradient(to right, #ffb6c1, #e84393);
font-family: Arial, sans-serif; /* Example font-family */
margin: 0;
padding: 0;
}
.header-container {
background-color: rgba(255, 255, 255, 0);
padding: 10px 20px;
position: relative;
z-index: 1000;
border-bottom: 1px solid #000; /* Maintain border style */
}
.header-container nav {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
max-width: 80px;
height: auto;
}
nav ul {
list-style: none;
display: flex;
margin: 0;
padding: 0;
}
nav ul li {
margin: 0 10px;
}
nav ul li a {
text-decoration: none;
color: #000000;
font-weight: bold;
font-size: 1.0em;
}
.about-section {
display: flex;
justify-content: center;
align-items: center;
padding: 50px 20px;
flex-wrap: wrap; /* Allows items to wrap to the next line on smaller screens */
}
.about-book,
.about-box {
display: flex;
width: 100%;
max-width: 1200px;
background: rgba(255, 192, 203, 0.5); /* Light pink background */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
border-radius: 10px;
overflow: hidden;
margin-bottom: 20px; /* Adjust spacing between boxes */
}
.about-content {
flex: 1;
padding: 20px;
box-sizing: border-box;
}
.about-content h1 {
font-size: 2.5em;
color: hsl(331, 98%, 35%);
font-weight: bold;
}
.about-content p {
font-size: 1.2em;
line-height: 1.6;
margin-bottom: 15px;
}
.about-content ul {
font-size: 1.0em;
line-height: 1.6;
margin-bottom: 15px;
}
.about-image {
width: 40%;
height: auto;
display: block;
margin: 20px;
border-radius: 10px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
/* CSS for Slideshow */
.slideshow-container {
max-width: 100%;
position: relative;
margin: auto;
}
.mySlides {
display: none;
animation: fadeEffect 2s;
}
@keyframes fadeEffect {
from { opacity: 0; }
to { opacity: 1; }
}
/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
.about-book,
.about-box {
max-width: 90%; /* Adjust width for medium screens */
}
.about-image {
width: 50%; /* Adjust image size for medium screens */
}
}
@media (max-width: 768px) {
.about-book,
.about-box {
flex-direction: column;
align-items: center;
}
.about-content,
.about-image {
width: 100%;
}
.about-content {
padding: 20px;
}
.about-image {
width: 80%;
margin: 10px auto;
}
.about-content h1 {
font-size: 2em; /* Adjusted font size for smaller screens */
}
.about-content p {
font-size: 1em; /* Adjusted font size for smaller screens */
}
.header-container {
padding: 10px 20px;
border-bottom: 1px solid #000; /* Maintain border style */
}
}
@media (max-width: 480px) {
.about-content h1 {
font-size: 1.8em; /* Further adjust font size for smaller screens */
}
.about-content p {
font-size: 0.9em; /* Further adjust font size for smaller screens */
}
.about-image {
width: 90%; /* Adjust image size for very small screens */
margin: 10px auto;
}
}