/* General adjustments for body and container */ body.bg-christmas { margin: 0; padding: 0; background: url("./bg.png") no-repeat top center; background-size: cover; /* Ensures it covers the screen proportionally */ background-attachment: fixed; /* Keeps the background fixed during scrolling */ height: 100vh; /* Ensures it occupies the full height of the viewport */ overflow-x: hidden; /* Prevents horizontal scrolling */ } button:disabled { opacity: 0.6; cursor: not-allowed; } .container { max-width: 99%; /* Increase container width */ margin: 10px auto; background: rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); } /* Styling for boxes */ #box-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 5px; } .box { display: flex; justify-content: center; align-items: center; width: 120px; /* Adjust width for more compact layout */ height: 80px; /* Adjust height for more compact layout */ background-color: #f9f9f9; border: 2px solid #ddd; border-radius: 8px; font-size: 1rem; font-weight: bold; text-align: center; color: #333; box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; cursor: pointer; } .box:hover { transform: scale(1.1); box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2); } /* Highlighted box */ .highlighted { background-color: #ffd700; color: #fff; border: 2px solid #ff6347; animation: pulse 1s infinite; z-index: 101; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } } /* Winner box */ .winner-display { background-color: #28a745; color: #fff; font-size: 3.5rem; border: 3px solid #fff; animation: winnerPulse 2s infinite; } @keyframes winnerPulse { 0%, 100% { box-shadow: 0 0 15px rgba(40, 167, 69, 0.8); } 50% { box-shadow: 0 0 30px rgba(40, 167, 69, 1); } } /* Responsive layout adjustments */ @media (min-width: 1200px) { #box-container { gap: 15px; } .box { width: 150px; height: 90px; font-size: 1.5rem; } } @media (max-width: 768px) { .box { width: 100px; height: 70px; font-size: 0.9rem; } } @media (max-width: 480px) { .box { width: 80px; height: 60px; font-size: 0.8rem; } } /* Logo styles */ .logo { max-width: 230px; height: auto; } /* Snowflakes animation */ #snow-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; } .snowflake { position: absolute; background: white; width: 8px; height: 8px; border-radius: 50%; opacity: 0.8; animation: snow 10s linear infinite; } @keyframes snow { 0% { transform: translateY(-100px); } 100% { transform: translateY(110vh); } } /* Logo Santa hat */ .logo-container { display: inline-block; position: relative; } .santa-hat { position: absolute; top: -45px; left: 50%; transform: translateX(-50%) rotate(0deg); width: 50px; height: 50px; background: red; border-radius: 50%; border-bottom: 10px solid white; animation: hatDrop 2s ease-out infinite alternate; } .santa-hat:before { content: ""; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); width: 15px; height: 15px; background: white; border-radius: 50%; } @keyframes hatDrop { 0% { transform: translateX(-50%) rotate(-20deg); } 100% { transform: translateX(-50%) rotate(20deg); } } /* Glowing button */ /* Glowing Button with White Border */ button.glowing { border: 1px solid white; /* Adds a white border */ box-shadow: 0 0 15px rgba(255, 0, 0, 0.7), 0 0 25px rgba(255, 0, 0, 0.5); /* Red glow */ animation: glowingEffect 2s infinite; transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out; } /* Glowing animation */ @keyframes glowingEffect { 0% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.7), 0 0 20px rgba(255, 0, 0, 0.5); } 50% { box-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 0, 0, 0.8); } 100% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.7), 0 0 20px rgba(255, 0, 0, 0.5); } } /* Hover Effect for Interaction */ button.glowing:hover { transform: scale(1.1); /* Slight enlargement */ box-shadow: 0 0 30px rgba(255, 255, 255, 0.9), 0 0 50px rgba(255, 0, 0, 1); } /* Fancy Heading Styles */ .fancy-heading { font-family: "Merry Christmas", cursive; /* Festive font */ font-size: 4rem; font-weight: bold; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.7); position: relative; padding: 20px 0; animation: headingGlow 3s infinite ease-in-out; } /* Glow Animation for the Text */ @keyframes headingGlow { 0%, 100% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.7); } 50% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 1); } } /* Emoji Animations */ .christmas-tree { animation: bounceTree 2s infinite; } .santa { animation: dropHat 2s infinite; } /* Bounce Animation for the Tree */ @keyframes bounceTree { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } /* Drop Animation for Santa */ @keyframes dropHat { 0% { transform: translateY(-10px); } 50% { transform: translateY(0); } 100% { transform: translateY(-10px); } } /* Light Bulbs Wrapper Styling */ .lights-wrapper { display: flex; justify-content: center; margin-top: 10px; } /* Light Bulbs */ .lightbulb { width: 15px; height: 15px; margin: 5px; border-radius: 50%; animation: blink 1.5s infinite ease-in-out; box-shadow: 0 0 5px rgba(255, 255, 255, 0.8); } .lightbulb.red { background-color: red; animation-delay: 0.2s; } .lightbulb.green { background-color: green; animation-delay: 0.4s; } .lightbulb.blue { background-color: blue; animation-delay: 0.6s; } .lightbulb.yellow { background-color: yellow; animation-delay: 0.8s; } .lightbulb.purple { background-color: purple; animation-delay: 1s; } /* Blink Animation for the Light Bulbs */ @keyframes blink { 0%, 100% { opacity: 0.6; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.1); } } .playing-image-paripapap { position: absolute; width: 40%; top: 16%; left: 31%; z-index: 100; } .playing-image-igiling { position: absolute; width: 17%; top: 16%; left: 40%; z-index: 100; }