-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
121 lines (106 loc) · 1.96 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
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
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f0e6ff;
}
.container {
text-align: center;
}
.envelope {
background-color: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
max-width: 400px;
}
.envelope-content {
position: relative;
height: 300px;
}
.letter {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #ffe4e1;
display: flex;
justify-content: center;
align-items: center;
transition: transform 1s;
transform-origin: bottom;
}
.letter.opened {
transform: rotateX(-180deg);
}
#openLetterBtn {
margin-top: 20px;
padding: 10px 20px;
background-color: #ff69b4;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.heart {
position: absolute;
color: pink;
font-size: 20px;
pointer-events: none;
animation: float 3s linear;
}
@keyframes float {
0% {
opacity: 1;
transform: translateY(0) rotate(0deg);
}
100% {
opacity: 0;
transform: translateY(-200px) rotate(360deg);
}
}
#photosSection {
text-align: center;
margin-top: 20px;
}
.carousel-container {
width: 100%;
max-width: 500px;
margin: 0 auto;
overflow: hidden;
}
.carousel {
display: flex;
flex-direction: column;
transition: transform 0.5s ease;
}
.carousel img {
max-width: 100%;
max-height: 400px;
object-fit: contain;
margin: 10px 0;
}
#addPhotoBtn {
margin: 20px 0;
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.romantic-text {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #fff0f5;
border-radius: 10px;
}
.hidden {
display: none !important;
}