-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
157 lines (136 loc) · 2.44 KB
/
style.css
File metadata and controls
157 lines (136 loc) · 2.44 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
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
body {
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-image: url("heart-bg.jpg");
font-family: "Pixelify Sans", sans-serif;
}
/* Envelope Screen */
#envelope-container {
text-align: center;
cursor:pointer;
}
@keyframes pulse {
0% {
transform:scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
#envelope{
width: 200px;
animation: pulse 1.5s infinite;
cursor: pointer;
}
#letter-container{
display: none;
position:fixed;
inset: 0;
justify-content: center;
align-items: center;
}
.letter-window{
width: 90vw;
max-width: 800px;
aspect-ratio: 3/2;
padding: 20px 20px 0 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
background-image: url("window.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
border-radius: 12px;
gap: 1px;
padding-top: 180px;
transform: scale(1.2);
opacity: 0;
transition: transform 0.6s ease, opacity 0.6s ease;
}
.letter-window.open {
transform: scale(1);
opacity: 1;
}
h1 {
font-size: 30px;
margin:0;
}
p {
font-size: 40px;
}
/* Cat */
.cat {
width: 290px;
margin: 10px 0;
transition: width 0.4s ease;
}
.letter-window.final .cat {
width: 190px;
}
/* buttons */
.buttons {
display: flex;
justify-content: center;
gap: 30px;
position: relative;
}
.no-wrapper{
position:relative;
}
.btn {
width: 120px;
cursor: pointer;
user-select: none;
}
.yes-btn,
.no-btn {
width: 120px;
height: auto;
display: inline-block;
}
.yes-btn {
position: relative;
z-index: 2;
transform-origin: center center;
transition: transform 0.3s ease;
}
.no-btn {
z-index: 1;
position: relative;
transition: transform 0.15s ease;
cursor: default;
}
.final-text{
font-size: 24px;
line-height: 1.4;
text-align: center;
display: inline-block;
padding: 10px 20px;
background-color: rgba(255,240,240,0.5);
border-radius: 12px;
}
.star {
position: fixed;
pointer-events: none;
font-size: 29px;
animation: popStar 0.9s ease-out forwards;
}
@keyframes popStar {
0% {
transform: scale(0.4);
opacity: 1;
}
100% {
transform: translateY(-30px) scale(1.5);
opacity: 0;
}
}