-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
81 lines (70 loc) · 2.42 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
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh; /* Full viewport height */
margin: 0;
color: #f5f5f5; /* Light text color for better readability */
font-family: 'Arial', sans-serif;
}
.container {
text-align: center;
padding: 20px;
max-width: 800px;
background-color: #8c6d40; /* Slightly lighter cream chocolate caramel color */
border-radius: 10px; /* Rounded corners for container */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Enhanced shadow for container */
}
.button-container {
margin-bottom: 20px; /* Space between buttons and content */
}
.button {
background-color: #f8f1e5; /* Soft creamy brown button color */
color: #333; /* Darker text color for readability */
border: none;
padding: 14px 28px;
margin: 8px; /* Reduced margin for a tighter layout */
border-radius: 8px; /* Smoother button edges */
cursor: pointer;
font-size: 18px; /* Slightly smaller, more modern */
font-weight: bold;
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover {
background-color: #e0d5c8; /* Lighter creamy brown on hover */
transform: translateY(-2px); /* Subtle lift effect on hover */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Slight shadow on hover */
}
.content-container {
margin-top: 20px; /* Space between buttons and content */
}
.content-container .content {
margin-top: 20px; /* Space around individual content items */
font-size: 18px;
line-height: 1.6; /* Better readability */
}
.content-container img {
width: 100%; /* Make images responsive to container width */
max-width: 400px; /* Cap the maximum width of images */
aspect-ratio: 3/4; /* Maintain a common aspect ratio for images */
object-fit: contain; /* Ensure the whole image is visible without distortion */
border-radius: 8px; /* Rounded corners for images */
margin: 10px 0; /* Space above and below the image */
}
/* Add responsive design for smaller screens */
@media (max-width: 600px) {
.button {
font-size: 16px;
padding: 10px 20px;
}
.container {
padding: 15px;
}
.content-container .content {
font-size: 16px;
}
.content-container img {
max-width: 100%; /* Allow images to take full width of smaller screens */
aspect-ratio: auto; /* Adjust aspect ratio for flexibility */
}
}