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
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
#wax {
	display: block;
	width: 150px;
	height: 150px;
	background: url(../img/wax.png) no-repeat;
}

#wax-half {
	display: none;
	margin: 0 auto;
	margin-top: 45px;
	margin-bottom: -120px;
	width: 139px;
	height: 75px;
	background: url(../img/wax.png) no-repeat;
	background-position-y: -80px;
}

#stamp {
	float: right;
	display: block;
	width: 135px;
	height: 110px;
	margin-top: -100px;
	margin-right: -7px;
	background: url(../img/stamp-base.png) no-repeat;
}

#stamp img {
	display: block;
	margin: 8% auto;
	height: 82%;
}

#recipient {
	font-size: 1.5em;
	line-height: 1.6;
	float: left;
	cursor: default;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-o-user-select: none;
	color: #9b4849;
}

#envelope {
	display: none;
}

#open {
	width: 150px;
	text-align: center;
	margin-top: 50px;
	margin-left: 200px;
}

#flipback {
	position: fixed;
	bottom: 5px;
	right: 3px;
	font-size: 20px;
}

#close {
	position: absolute;
	bottom: 0px;
	right: 0px;
	display: block;
	width: 100%;
	height: 100%;
	cursor: grab;
}

/**************container***************/
section.container {
	position: relative;
	width: 600px;
	height: 300px;
	margin: 280px auto 0;
	perspective: 1000px;
	-webkit-perspective: 1000px;
	-moz-perspective: 1000px;
}

section.container>form.flip {
	width: 100%;
	height: 100%;
	position: absolute;
	transform: rotateY(180deg);
	-webkit-transform: rotateY(180deg);
	-moz-transform: rotateY(180deg);
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transition: transform 0.7s 0s;
	-webkit-transition: -webkit-transform 0.7s 0s;
	-moz-transition: -moz-transform 0.7s 0s;
	transform-origin: center center;
	-webkit-transform-origin: center center;
	-moz-transform-origin: center center;
}

section.container>form.flip>.front,
section.container>form.flip>.back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
}

section.container>form.flip>.back {
	transform: rotateY(180deg);
	-webkit-transform: rotateY(180deg);
	-moz-transform: rotateY(180deg);
	background: #837362;
	box-shadow: inset 0 10px 30px -10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

section.container:target>form.flip {
	transform: rotateY(0deg);
	-webkit-transform: rotateY(0deg);
	-moz-transform: rotateY(0deg);
}

.no-csstransforms3d section.container:target>form.flip>.back {
	display: none;
}

/* lid */
.container#lid {
	position: relative;
	width: 100%;
	height: 50%;
	perspective: 800px;
	-webkit-perspective: 800px;
	-moz-perspective: 800px;
	z-index: 2;
	transition: z-index 0s 1s;
	-webkit-transition: z-index 0s 1s;
	-moz-transition: z-index 0s 1s;
}

.no-csstransforms3d .container#lid {
	transition: none;
	-webkit-transition: none;
	-moz-transition: none;
}

#content:target .container#lid {
	z-index: -1;
	transition: z-index 0s .5s;
	-webkit-transition: z-index 0s .5s;
	-moz-transition: z-index 0s .5s;
}

.no-csstransforms3d #content:target .container#lid {
	transition: none;
	-webkit-transition: none;
	-moz-transition: none;
}

.no-csstransforms3d .container#lid .back {
	display: none;
}

.no-csstransforms3d #content:target .container#lid .back {
	display: block;
	top: -150px;
}

/* flip */
#lid .flip {
	width: 100%;
	height: 100%;
}

#lid .flip {
	position: absolute;
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transition: transform 0.5s 1s;
	-webkit-transition: -webkit-transform 0.5s 1s;
	-moz-transition: -moz-transform 0.5s 1s;
	transform-origin: left top;
	-webkit-transform-origin: left top;
	-moz-transform-origin: left top;
}

#lid .flip>.front,
#lid .flip>.back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
}

#lid .flip>.back {
	transform: rotateX(180deg);
	-webkit-transform: rotateX(180deg);
	-moz-transform: rotateX(180deg);
}

#content:target #lid .flip {
	transform: rotateX(180deg);
	-webkit-transform: rotateX(180deg);
	-moz-transform: rotateX(180deg);
	transition-duration: 0.5s;
	-webkit-transition-duration: 0.5s;
	-moz-transition-duration: 0.5s;
	transition-delay: 0s;
	-webkit-transition-delay: 0s;
	-moz-transition-delay: 0s;
}

#letter .flip>div,
#lid .flip>div,
section.container>form.flip>div {
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

#lid .flip .front,
section.container>form.flip .front {
	background: beige url("../img/texture.png");
	border: 1px #eae1d5 solid;
	box-shadow: inset 0 0 10px 1px rgba(255, 255, 255, 0.6), 0 2px 3px -2px rgba(0, 0, 0, 0.6);
	padding: 20px 30px;
	color: #837362;
	text-shadow: 0 1px 0 #fff, 0 1px 0 #fff;
}

section.container>form.flip>.front {
	font-size: 1.25em;
	background: beige url("../img/texture.png");
	padding: 120px 20px 20px 40%;
	border: 1px #eae1d5 solid;
}

#lid .flip .front {
	font-size: 1.25em;
	border-radius: 0 0 40px 40px;
}

#lid .flip .back {
	background: #837362;
	border-radius: 40px 40px 0 0;
	border: 35px solid rgba(255, 255, 255, 0.1);
	border-bottom: none;
	box-shadow: inset 0 10px 30px 10px rgba(0, 0, 0, 0.1);
}

/* top */
#top {
	text-align: right;
	background: beige url("../img/texture.png");
	background: -moz-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(163, 140, 130, 0.17) 100%), url("../img/texture.png");
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(163, 140, 130, 0.17))), url("../img/texture.png");
	background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(163, 140, 130, 0.17) 100%), url("../img/texture.png");
	background: -o-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(163, 140, 130, 0.17) 100%), url("../img/texture.png");
	background: -ms-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(163, 140, 130, 0.17) 100%), url("../img/texture.png");
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	width: 100%;
	height: 65%;
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	border: 1px #eae1d5 solid;
	box-shadow: inset 0 0 10px 1px rgba(255, 255, 255, 0.6), 0 -2px 4px -3px rgba(0, 0, 0, 0.75), 0 2px 3px -2px rgba(0, 0, 0, 0.6);
}

/* data */
#data {
	height: 210px;
	overflow-y: auto;
	touch-action: pan-y;
}

#data::-webkit-scrollbar {
	width: 11px;
}

#data::-webkit-scrollbar-thumb {
	background: #908172;
	border-radius: 5px;
}

#data::-webkit-scrollbar-track {
	border-radius: 10px;
	background-color: #eae1d5;
}

/* letter */
#letter {
	background: #fafafa;
	width: 90%;
	height: 95%;
	position: absolute;
	left: 5%;
	top: 5%;
	z-index: 0;
	transition: 0s 0s;
	-webkit-transition: .5s .5s;
	-moz-transition: .5s .5s;
	-o-transition: 0s 0s;
}

#content:target #letter {
	top: -40%;
	transition: .5s .5s;
	-webkit-transition: .5s .5s;
	-moz-transition: .5s .5s;
	-o-transition: .5s .5s;
}

#letter .container {
	position: absolute;
	width: 100%;
	perspective: 800px;
	-webkit-perspective: 800px;
	-moz-perspective: 800px;
	top: 0;
	left: 0;
	transition: 0s 0s;
	-webkit-transition: 0s 0s;
	-moz-transition: 0s 0s;
	z-index: 1;
}

#letter .flip {
	width: 100%;
	height: 100%;
}

#letter .flip {
	position: absolute;
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transition: transform 0.5s 0s;
	-webkit-transition: -webkit-transform 0.5s 0s;
	-moz-transition: -moz-transform 0.5s 0s;
	transform-origin: left top;
	-webkit-transform-origin: left top;
	-moz-transform-origin: left top;
}

#letter .flip>.front,
#letter .flip>.back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
}

#letter .flip>.back {
	transform: rotateX(180deg);
	-webkit-transform: rotateX(180deg);
	-moz-transform: rotateX(180deg);
}

#content:target #letter .flip {
	transform: rotateX(180deg);
	-webkit-transform: rotateX(180deg);
	-moz-transform: rotateX(180deg);
	transition-duration: 0.5s;
	-webkit-transition-duration: 0.5s;
	-moz-transition-duration: 0.5s;
	transition-delay: 1s;
	-webkit-transition-delay: 1s;
	-moz-transition-delay: 1s;
}

#content:target #letter .container {
	z-index: -1;
	transition: z-index 0s 1.5s;
	-webkit-transition: z-index 0s 1.5s;
	-moz-transition: z-index 0s 1.5s;
}

#letter .flip .front {
	background: #fafafa;
	box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.2);
}

.no-csstransforms3d #content:target #letter .flip .front {
	display: none;
}

#letter .flip .back {
	background: #fafafa;
	background: -webkit-linear-gradient(top, #fafafa 90%, #f7f7f7 100%);
	background: -moz-linear-gradient(top, #fafafa 80%, #f7f7f7 100%);
	padding: 40px 40px 0;
	font-size: 18px;
	line-height: 1.4;
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	box-shadow: 0 -5px 8px -4px rgba(0, 0, 0, 0.15);
}

.no-csstransforms3d #content:target #letter .flip .back {
	top: -140px;
}

.letter {
	font-family: cursive;
}