Files
is-it-christmas/frontend/styles.css
Julien Lengrand-Lambert 16ae2a1430 Creating the project
2025-11-11 10:06:56 +01:00

173 lines
2.6 KiB
CSS

/* CSS Reset */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* Base Styles */
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #ffffff;
overflow: hidden;
}
#app {
text-align: center;
z-index: 10;
position: relative;
}
#loading {
font-size: 1.5rem;
color: #ffffff;
}
#content {
animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Message Container */
.message-container {
padding: 2rem;
max-width: 600px;
margin: 0 auto;
}
/* Answer Text */
.answer {
font-size: 8rem;
font-weight: 900;
margin: 0;
text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
letter-spacing: 0.1em;
}
.no-answer {
color: #ff6b6b;
}
.yes-answer {
color: #51cf66;
}
/* Smiley Face */
.smiley {
font-size: 10rem;
margin: 2rem 0;
line-height: 1;
filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3));
}
.sad-smiley {
animation: sad-wobble 2s ease-in-out infinite;
}
@keyframes sad-wobble {
0%, 100% {
transform: rotate(-5deg);
}
50% {
transform: rotate(5deg);
}
}
/* Subtitle and Date */
.subtitle {
font-size: 1.5rem;
margin: 1rem 0;
opacity: 0.9;
}
.subtitle.festive {
font-size: 2rem;
animation: festive-pulse 1.5s ease-in-out infinite;
}
@keyframes festive-pulse {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
}
.date {
font-size: 1.2rem;
opacity: 0.7;
margin-top: 1.5rem;
}
/* Responsive Design */
@media (max-width: 768px) {
.answer {
font-size: 5rem;
}
.smiley {
font-size: 6rem;
}
.subtitle {
font-size: 1.2rem;
}
.subtitle.festive {
font-size: 1.5rem;
}
.date {
font-size: 1rem;
}
.message-container {
padding: 1rem;
}
}
@media (max-width: 320px) {
.answer {
font-size: 4rem;
}
.smiley {
font-size: 5rem;
}
.subtitle {
font-size: 1rem;
}
.date {
font-size: 0.9rem;
}
}
/* Canvas for snow animation */
#snowCanvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 5;
pointer-events: none;
}