/* Main container styles */ .container { max-width: 800px; margin: 0 auto; padding: 20px; font-family: 'Arial', sans-serif; color: #333; } h1 { color: #8e44ad; text-align: center; margin-bottom: 30px; font-size: 2.2rem; } /* Adventure game container */ .adventure-game { position: relative; min-height: 500px; background-color: #f9f5ff; border-radius: 15px; padding: 25px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); border: 2px solid #e0c8f5; } /* Scene container styles */ .scene-container { background-color: white; border-radius: 10px; padding: 25px; margin-bottom: 25px; min-height: 200px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); border: 1px solid #e0c8f5; } .scene-content { font-size: 1.15rem; line-height: 1.7; color: #444; } /* Choices container styles */ .choices-container { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; } .choice-btn { padding: 14px 25px; background-color: #9b59b6; color: white; border: none; border-radius: 30px; cursor: pointer; font-size: 1.05rem; transition: all 0.3s ease; text-align: center; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); position: relative; overflow: hidden; } .choice-btn:hover { background-color: #8e44ad; transform: translateY(-3px); box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15); } .choice-btn:active { transform: translateY(0); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } .choice-btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; background: rgba(255, 255, 255, 0.5); opacity: 0; border-radius: 100%; transform: scale(1, 1) translate(-50%); transform-origin: 50% 50%; } .choice-btn:focus:not(:active)::after { animation: ripple 0.6s ease-out; } @keyframes ripple { 0% { transform: scale(0, 0); opacity: 0.5; } 100% { transform: scale(20, 20); opacity: 0; } } .restart-btn { background-color: #27ae60; margin-top: 30px; } .restart-btn:hover { background-color: #219653; } /* Krishna character styles */ .krishna-character { position: absolute; right: 30px; bottom: 30px; width: 180px; height: 180px; transition: all 0.5s ease; } .krishna-character img { width: 100%; height: auto; transition: all 0.3s ease; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)); } .krishna-character:hover img { transform: scale(1.05) rotate(-5deg); } /* Responsive styles */ @media (max-width: 768px) { .container { padding: 15px; } h1 { font-size: 1.8rem; } .adventure-game { padding: 20px; min-height: auto; padding-bottom: 180px; } .krishna-character { position: static; margin: 30px auto 20px; display: block; width: 150px; height: 150px; } .choice-btn { padding: 12px 20px; } } /* Animation for scene transitions */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .scene-content { animation: fadeIn 0.5s ease-out; } /* Loading indicator */ .loading-message { text-align: center; font-style: italic; color: #7f8c8d; } .loading-message::after { content: '...'; animation: dots 1.5s steps(5, end) infinite; } @keyframes dots { 0%, 20% { content: '.'; } 40% { content: '..'; } 60%, 100% { content: '...'; } }