Spaces:
Sleeping
Sleeping
File size: 4,538 Bytes
cb38d27 | 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 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 | * {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body, html {
height: 100%;
width: 100%;
overflow: hidden;
}
/* --- Layout Section --- */
section {
position: relative;
height: 100vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(180deg, #f2b5c4, #dfa0c0, #f3e6ea);
}
/* --- Video Background --- */
.video-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1; /* Behind the card */
pointer-events: none; /* Ensures user clicks go through to card if needed */
}
.video-background video {
width: 100%;
height: 100%;
object-fit: cover;
display: none; /* Hidden by default! */
opacity: 0.8;
}
/* --- Floating Animation Keyframes --- */
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
100% { transform: translateY(0px); }
}
/* --- Main Card Container --- */
.container {
z-index: 2; /* Sits on top of video */
background: rgba(255, 255, 255, 0.45);
backdrop-filter: blur(8px);
border: 2px solid rgba(255, 255, 255, 0.5);
border-radius: 20px;
box-shadow: 0 15px 35px rgba(0,0,0,0.15);
/* Responsive Sizing */
width: 90%;
max-width: 450px;
height: auto;
min-height: 500px;
display: flex;
flex-direction: column;
padding: 20px;
/* Smooth Animations */
animation: float 6s ease-in-out infinite;
transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.image-box {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.actual-image {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.gif {
max-width: 100%;
max-height: 250px; /* Limits gif size on big screens */
object-fit: contain;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.text-one {
width: 100%;
text-align: center;
margin-top: 15px;
min-height: 60px;
display: flex;
align-items: center;
justify-content: center;
}
#text {
font-size: 1.4rem;
font-weight: 600;
color: #4a4a4a;
transition: opacity 0.3s ease;
}
/* --- Buttons --- */
.yes-no {
width: 100%;
display: flex;
justify-content: center;
gap: 15px;
margin-top: 20px;
margin-bottom: 20px;
height: 70px;
}
button {
font-family: "Allura", cursive;
font-size: 2.2rem;
color: white;
border: none;
border-radius: 12px;
cursor: pointer;
background-color: #FB607F;
box-shadow: 0 4px 10px rgba(0,0,0,0.15);
/* Bouncy Transition */
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.yes { width: 45%; }
.no { width: 45%; }
button:hover {
background-color: #e04565;
transform: scale(1.05) translateY(-3px);
box-shadow: 0 8px 20px rgba(251, 96, 127, 0.3);
}
button:active {
transform: scale(0.95);
}
/* Link inside button */
a {
text-decoration: none;
color: white;
font-family: "Allura", cursive;
font-size: 2.2rem;
display: block;
width: 100%;
height: 100%;
line-height: 1.5;
}
/* --- Mobile Landscape Fix --- */
@media (max-height: 500px) {
.container {
flex-direction: row;
align-items: center;
min-height: 300px;
height: 90vh;
max-width: 700px;
}
.image-box { width: 50%; }
.yes-no {
flex-direction: column;
width: 40%;
height: 100%;
justify-content: center;
}
.yes, .no { width: 100%; height: 60px; }
}
/* ... Keep all your existing CSS above ... */
/* --- Footer Styling --- */
.footer {
position: fixed; /* Stick to the bottom of the screen */
bottom: 10px;
left: 0;
width: 100%;
text-align: center;
z-index: 10; /* Ensure it's above the background */
pointer-events: none; /* Allows clicks to pass through if it overlaps buttons */
}
.footer p {
margin: 2px 0;
font-family: "Poppins", sans-serif;
font-size: 0.75rem; /* Small and subtle */
color: #6d6d6d;
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8); /* White shadow for readability */
}
#visitor-count {
font-weight: 600;
color: #FB607F; /* Pink color for the count */
}
/* Hide footer on very short screens so it doesn't block buttons */
@media (max-height: 450px) {
.footer {
display: none;
}
} |