-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
111 lines (98 loc) · 2.41 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
102
103
104
105
106
107
108
109
110
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #F25050;
color: white;
margin: 0;
padding: 0;
}
.container {
margin-top: 20vh;
}
button {
background-color: red;
color: white;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
@media (max-width: 400px) {
@keyframes moveDuck {
0% { transform: translate(12vw, 10px); }
50% { transform: translate(84vw, 0) rotateY(0deg); }
51% { transform: translate(84vw, 0) rotateY(180deg); }
100% { transform: translate(12vw, 10px) rotateY(180deg); }
}
@keyframes moveDuck2 {
0% { transform: translate(84vw, 0) rotateY(180deg); }
50% { transform: translate(12vw, 10px) rotateY(180deg); }
51% { transform: translate(12vw, 10px) rotateY(0deg); }
100% { transform: translate(84vw, 0); }
}
}
@media (min-width: 401px) {
@keyframes moveDuck {
0% { transform: translate(12vw, 10px); }
50% { transform: translate(105vw, 0) rotateY(0deg); }
51% { transform: translate(105vw, 0) rotateY(180deg); }
100% { transform: translate(12vw, 10px) rotateY(180deg); }
}
@keyframes moveDuck2 {
0% { transform: translate(105vw, 0) rotateY(180deg); }
50% { transform: translate(12vw, 10px) rotateY(180deg); }
51% { transform: translate(12vw, 10px) rotateY(0deg); }
100% { transform: translate(105vw, 0); }
}
}
.duck {
position: fixed;
bottom: 0%;
left: -10%;
width: 80px;
height: auto;
animation: moveDuck 10s linear infinite;
}
.duck2 {
position: fixed;
bottom: 0%;
left: -10%;
width: 80px;
height: auto;
animation: moveDuck2 10s linear infinite;
}
#letter-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
}
.letter {
background: white;
padding: 20px;
color: black;
width: 80%;
max-width: 400px;
text-align: center;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
font-family: 'Times New Roman', serif;
}
.letter button {
margin-top: 10px;
padding: 8px 15px;
background-color: red;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.hidden {
display: none !important;
}