-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathstyle.css
More file actions
129 lines (114 loc) · 2.39 KB
/
style.css
File metadata and controls
129 lines (114 loc) · 2.39 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
body {
background: linear-gradient(180deg, rgba(255, 208, 229, 1) 0%, rgba(255, 232, 242, 1) 36%, rgba(255, 255, 255, 1) 100%);
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.container {
text-align: center;
padding: 20px;
}
img {
border-radius: 10px;
height: 300px;
object-fit: cover;
}
h2 {
font-size: 2.5rem;
color: #bd1e59;
margin: 20px auto;
font-style: italic;
text-align: center;
word-wrap: break-word;
max-width: 90%;
margin-left: auto;
margin-right: auto;
}
@media (max-width: 768px) {
h2 {
margin: 0 auto;
font-size: 2rem;
max-width: 80%;
}
}
#responseButtons {
display: flex;
flex-direction: row;
gap: 20px;
justify-content: center;
align-items: center;
margin-top: 20px;
position: relative;
}
@media (max-width: 768px) {
#responseButtons {
flex-direction: column;
gap: 10px;
}}
#yesButton {
background-color: #3dcc91;
color: white;
font-size: 20px;
font-weight: bold;
padding: 12px 20px;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
}
#yesButton:hover {
background-color: #2ab876;
transform: scale(1.1);
}
#noButton {
position: absolute;
background-color: #ff5a5f;
color: white;
font-size: 20px;
font-weight: bold;
padding: 12px 20px;
border: none;
border-radius: 8px;
cursor: pointer;
transition: transform 0.2s ease;
}
#noButton:disabled {
pointer-events: none;
cursor: not-allowed;
opacity: 0.7;
}
#noButton:hover {
background-color: #d44a4e;
transform: scale(1.05);
}
.bounce2 {
animation: bounce2 2s ease infinite;
}
p {
font-family: Arial, sans-serif;
font-size: 20px;
color: #bd1e59;
text-align: center;
margin-top: 10px;
}
img[src="./images/baddie.jpg"] {
position: absolute;
border: 3px solid #ff5a5f;
border-radius: 50%;
will-change: transform;
}
@keyframes bounce2 {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(-20px);
}
60% {
transform: translateY(-10px);
}
}