Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
92 lines (80 loc) · 2.13 KB
/
Copy pathstyles.css
File metadata and controls
92 lines (80 loc) · 2.13 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
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body, html {
height: 100%;
width: 100%;
background-color: #ffffff; /* White background */
display: flex;
justify-content: center; /* Center content horizontally */
align-items: center; /* Center content vertically */
}
.container {
display: flex;
align-items: center;
max-width: 90vw; /* Increased from 80vw for slightly more width on mobile */
flex-wrap: wrap;
padding: 20px;
}
.square-img {
width: 50vmin;
height: 50vmin;
background-size: cover;
background-position: center;
margin-right: 40px;
flex-shrink: 0;
}
.text {
font-family: 'Chakra Petch', sans-serif;
/* Fallback fonts added */
font-family: 'Chakra Petch', Arial, Helvetica, sans-serif;
font-size: 1.4rem;
color: #000000;
flex: 1;
max-width: 50%;
line-height: 1.6;
display: flex;
flex-direction: column;
justify-content: center;
}
/* Media query for mobile devices */
@media screen and (max-width: 768px) {
.container {
flex-direction: column;
align-items: center;
}
.square-img {
width: 80vmin;
height: 80vmin;
margin-right: 0;
margin-bottom: 20px;
}
.text {
font-size: 1.2rem;
max-width: 100%;
text-align: center;
}
}
/* Additional media query for very small devices */
@media screen and (max-width: 480px) {
.text {
font-size: 1rem; /* Smaller font size for very small screens */
}
.footer-text {
font-size: 0.8rem; /* Smaller footer text */
bottom: 5px; /* Adjusted position */
right: 5px; /* Adjusted position */
}
}
.footer-text {
position: absolute; /* Position it absolutely */
bottom: 10px; /* 10px from the bottom */
right: 10px; /* 10px from the right */
font-size: 0.9rem; /* Smaller font size */
color: #000000; /* Text color */
opacity: 0.7; /* Slightly transparent */
font-family: 'Chakra Petch', Arial, Helvetica, sans-serif; /* Same font as other text */
}