/* Base Styles */ body { font-family: 'Poppins', sans-serif; margin: 0; padding: 0; min-height: 100vh; background-color: #1a1a2e; /* Dark fallback color */ color: white; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); transition: background-image 1.5s ease; } body.celebration { background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('bg.jpg') center/cover no-repeat fixed; } .countdown-overlay { background-color: rgba(0, 0, 0, 0.7); min-height: 100vh; display: flex; align-items: center; padding: 20px; transition: background-color 1s ease; } body.celebration .countdown-overlay { background-color: rgba(0, 0, 0, 0.4); } /* Countdown Styles */ #countdown { display: flex; justify-content: center; gap: 20px; margin: 40px 0; flex-wrap: wrap; } .time-unit { background-color: rgba(255, 255, 255, 0.15); backdrop-filter: blur(5px); border-radius: 12px; padding: 20px 15px; min-width: 120px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: all 0.5s ease; } .time-unit span:first-child { font-size: 2.5rem; font-weight: 700; display: block; color: #ffcc00; } .time-unit span:last-child { font-size: 1rem; opacity: 0.9; } h1 { font-size: 3rem; margin-bottom: 10px; text-align: center; } /* Media Container */ .media-container { display: flex; flex-direction: column; align-items: center; gap: 30px; max-width: 1000px; margin: 0 auto; opacity: 0; transform: translateY(20px); transition: all 11s ease; } body.celebration .media-container { opacity: 1; transform: translateY(0); } /* Image Styles */ #hiddenImage { width: 100%; max-width: 800px; aspect-ratio: 16/9; background: url('image.jpeg') center/contain no-repeat; border-radius: 16px; border: 1px solid rgba(255,255,255,0.3); box-shadow: 0 8px 32px rgba(0,0,0,0.3); opacity: 0; transform: scale(0.95); transition: all 11s ease 0.3s; } body.celebration #hiddenImage { opacity: 0.9; transform: scale(1); } /* Video Styles */ #hiddenVideo { width: 100%; display: flex; justify-content: center; } #birthdayVideo { width: 100%; max-width: 800px; aspect-ratio: 16/9; border-radius: 16px; border: 1px solid rgba(255,255,255,0.3); box-shadow: 0 8px 32px rgba(0,0,0,0.3); opacity: 0; transform: scale(0.95); transition: all 11s ease 0.3s; } body.celebration #birthdayVideo { opacity: 0.90; transform: scale(1); } /* Responsive Design */ @media (max-width: 768px) { #countdown { gap: 10px; } .time-unit { min-width: 80px; padding: 15px 10px; } .time-unit span:first-child { font-size: 2rem; } h1 { font-size: 2.2rem; } .media-container { gap: 20px; } } @media (max-width: 480px) { #countdown { gap: 8px; } .time-unit { min-width: 70px; padding: 10px 5px; } .time-unit span:first-child { font-size: 1.5rem; } .time-unit span:last-child { font-size: 0.8rem; } }