-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
101 lines (87 loc) · 2.31 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
96
97
98
99
100
101
@import url('https://fonts.googleapis.com/css2?family=Pangolin&display=swap');
body {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-size: cover;
background-image: url("https://www.psdgraphics.com/wp-content/uploads/2022/01/white-math-paper-texture.jpg");
background-position: center center;
margin: 0;
overflow: hidden; /* Prevents any scrollbars that could expose the background */
}
.paper {
background-image: url("https://i0.wp.com/textures.world/wp-content/uploads/2018/10/2-Millimeter-Paper-Background-copy.jpg?ssl=1");
background-size: cover;
background-position: center center;
padding: 20px 100px;
transform: rotateZ(-5deg);
box-shadow: 1px 15px 20px 0px rgba(0, 0, 0, 0.5);
position: absolute;
overflow: hidden; /* Ensures background images are contained within the paper */
border-radius: 10px; /* Adds some visual refinement to the edges */
}
.paper.heart {
position: relative;
width: 200px;
height: 200px;
padding: 0;
border-radius: 50%;
}
.paper.image {
padding: 10px;
}
.paper.image p {
font-size: 30px;
}
#spc {
max-height: auto;
width: auto;
}
img {
max-height: 200px;
width: 100%;
user-select: none;
object-fit: cover; /* Ensures images fit well within the paper bounds */
border-radius: 5px; /* Matches the overall paper style */
}
.paper.heart::after {
content: "";
background-image: url("https://cdn.pixabay.com/photo/2016/03/31/19/25/cartoon-1294994__340.png");
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background-size: 150px;
background-position: center center;
background-repeat: no-repeat;
opacity: 0.6;
}
.paper.red {
filter: hue-rotate(90deg);
}
.paper:nth-of-type(3n) {
background-position: left top;
}
p {
font-family: "Zeyada";
font-size: 50px;
color: rgb(0, 0, 100);
opacity: 0.75;
user-select: none;
}
@media (max-width: 768px) {
.paper {
padding: 10px 20px;
transform: none; /* Reduces rotations for smaller screens */
max-width: 90vw; /* Ensures papers do not overflow on mobile */
max-height: 90vh;
}
.paper.image p {
font-size: 20px; /* Adjusts font size for readability on small screens */
}
p {
font-size: 30px;
}
}