valentine_day / styles.css
argho229's picture
Upload 5 files
7629add verified
Raw History Blame Contribute Delete
3.16 kB
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Dancing+Script:wght@700&display=swap');
:root {
--primary: #ff4d6d;
--primary-hover: #ff758f;
--secondary: #590d22;
--bg-gradient: linear-gradient(135deg, #ffafbd 0%, #ffc3a0 100%);
--glass-bg: rgba(255, 255, 255, 0.7);
--glass-border: rgba(255, 255, 255, 0.3);
--shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: var(--bg-gradient);
font-family: 'Outfit', sans-serif;
overflow: hidden;
}
/* Background Hearts */
.bg-hearts {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 0;
}
.heart {
position: absolute;
font-size: 20px;
color: rgba(255, 255, 255, 0.6);
animation: floatUp 15s linear infinite;
bottom: -50px;
}
@keyframes floatUp {
0% { transform: translateY(0) rotate(0deg); opacity: 1; }
100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}
.container {
position: relative;
z-index: 1;
background: var(--glass-bg);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
border-radius: 24px;
padding: 40px;
width: 90%;
max-width: 500px;
text-align: center;
box-shadow: var(--shadow);
animation: fadeIn 0.8s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
h1 {
font-family: 'Dancing Script', cursive;
font-size: 3.5rem;
color: var(--secondary);
margin-bottom: 20px;
line-height: 1.2;
}
.gif_container {
margin: 20px 0;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
animation: float 3s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.gif_container img {
width: 100%;
display: block;
}
.buttons {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-top: 30px;
flex-wrap: wrap;
}
.yes-button, .no-button {
padding: 12px 30px;
font-size: 1.2rem;
font-weight: 600;
border: none;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.yes-button {
background-color: var(--primary);
color: white;
}
.yes-button:hover {
background-color: var(--primary-hover);
transform: scale(1.1);
box-shadow: 0 6px 20px rgba(255, 77, 109, 0.4);
}
.yes-button:active {
transform: scale(0.95);
}
.no-button {
background-color: #fff;
color: var(--secondary);
border: 1px solid rgba(0,0,0,0.05);
}
.no-button:hover {
background-color: #f8f9fa;
transform: scale(0.95);
}
@media (max-width: 480px) {
h1 { font-size: 2.5rem; }
.container { padding: 30px 20px; }
}