Singh-Santosh's picture
Fix: load custom CSS via launch(css_paths) (Gradio 6) + add style.css
a7aa416 verified
Raw
History Blame Contribute Delete
5.86 kB
@keyframes cosmicScroll {
0% { background-position: 0% 0%; }
50% { background-position: 50% 100%; }
100% { background-position: 100% 0%; }
}
.gradio-container {
background: radial-gradient(circle at 50% 50%, #150f30 0%, #0a071a 70%, #03020a 100%) !important;
background-size: 200% 200% !important;
animation: cosmicScroll 25s ease-in-out infinite !important;
font-family: 'Georgia', serif !important;
color: #ffffff !important;
padding: 15px 30px !important;
}
/* 🌋 Shockwave Screen Rumble Keyframes */
@keyframes screenRumble {
0% { transform: translate(1px, 1px) rotate(0deg); }
20% { transform: translate(-2px, 0px) rotate(1deg); }
40% { transform: translate(1px, -1px) rotate(1deg); }
60% { transform: translate(-2px, 1px) rotate(0deg); }
100% { transform: translate(1px, -1px) rotate(0deg); }
}
.kinetic-shake { animation: screenRumble 0.4s ease-in-out !important; }
/* 📡 GLOBAL SCENERY SCANNER LOGIC */
@keyframes sonarBeam {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes targetFlash {
0% { opacity: 0.2; transform: scale(0.8); filter: drop-shadow(0 0 2px #ff3333); }
100% { opacity: 1; transform: scale(1.3); filter: drop-shadow(0 0 12px #ff3333); }
}
@keyframes borderPulseCycle {
0% { border-color: #00e5ff; box-shadow: 0 0 12px rgba(0,229,255,0.2); }
50% { border-color: #aa00ff; box-shadow: 0 0 25px rgba(170,0,255,0.4); }
100% { border-color: #00e5ff; box-shadow: 0 0 12px rgba(0,229,255,0.2); }
}
.console-header-text {
color: #ffffff !important;
font-family: 'Impact', sans-serif !important;
font-size: 1.25em !important;
letter-spacing: 1.5px !important;
text-transform: uppercase !important;
text-shadow: 0 0 8px rgba(0, 229, 255, 0.6) !important;
margin-bottom: 10px !important;
margin-top: 5px !important;
display: block !important;
}
.game-title-container { text-align: center; padding: 10px 0; background: transparent !important; }
.game-title-main {
font-family: 'Impact', sans-serif !important;
font-size: 3.5em !important;
font-weight: 900 !important;
text-transform: uppercase !important;
color: #ffb000 !important;
background: linear-gradient(to bottom, #ffffff 20%, #ffb000 60%, #b88600 100%);
-webkit-background-clip: text !important;
-webkit-text-fill-color: transparent !important;
display: inline-block;
}
.game-title-sub {
font-family: 'Impact', sans-serif !important;
font-size: 1.2em !important;
color: #00e5ff !important;
text-shadow: 0 0 10px rgba(0, 229, 255, 0.7) !important;
letter-spacing: 3px !important;
margin-top: 5px;
}
.game-hud-panel {
background: rgba(22, 16, 46, 0.85) !important;
border: 2px solid rgba(255, 176, 0, 0.25) !important;
border-radius: 16px !important; padding: 15px !important;
}
#left-hud-vessel, #left-hud-vessel * {
color: #ffffff !important;
text-shadow: 1px 1px 3px #000000 !important;
}
/* 🎴 INVENTORY ITEM SELECTION GRID STYLING */
.item-card-btn {
border: 2px solid rgba(255, 255, 255, 0.1) !important;
border-radius: 12px !important; padding: 12px !important;
text-align: center !important; font-weight: bold !important;
transition: all 0.3s ease !important; cursor: pointer !important;
}
#card-sword { background: linear-gradient(135deg, #241414, #120707) !important; border-color: #ff4545 !important; }
#card-sword:hover { box-shadow: 0 0 20px rgba(255, 69, 69, 0.6) !important; transform: translateY(-2px) !important; }
#card-potion { background: linear-gradient(135deg, #10243a, #050e17) !important; border-color: #00e5ff !important; }
#card-potion:hover { box-shadow: 0 0 20px rgba(0, 229, 255, 0.6) !important; transform: translateY(-2px) !important; }
#card-key { background: linear-gradient(135deg, #102920, #04120d) !important; border-color: #00ffcc !important; }
#card-key:hover { box-shadow: 0 0 20px rgba(0, 255, 204, 0.6) !important; transform: translateY(-2px) !important; }
/* 🧼 CHRONICLE LOG */
@keyframes messageReveal {
from { opacity: 0; transform: translateY(12px); filter: blur(3px); }
to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
#game-chat-log {
background: rgba(8, 6, 18, 0.95) !important;
border: 2px solid rgba(255, 176, 0, 0.15) !important;
border-radius: 16px !important; min-height: 250px !important;
}
#game-chat-log .prose, #game-chat-log .message-wrap, #game-chat-log p {
color: #fffae8 !important; font-size: 1.12em !important; line-height: 1.65 !important;
}
#game-chat-log .message {
background: linear-gradient(135deg, #181230, #0e0a1f) !important;
border: 1px solid rgba(255, 176, 0, 0.1) !important; border-radius: 12px !important;
margin: 10px auto !important; max-width: 94% !important;
animation: messageReveal 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}
#game-chat-log button, #game-chat-log .avatar-container, #game-chat-log [class*="avatar"], #game-chat-log div[class*="footer"] {
display: none !important; opacity: 0 !important;
}
#game-input-node textarea {
background: #06040f !important; color: #ffffff !important;
border: 2px solid rgba(255, 176, 0, 0.3) !important; border-radius: 8px !important;
}
#game-input-node textarea:focus { border-color: #00e5ff !important; box-shadow: 0 0 20px rgba(0, 229, 255, 0.4) !important; }
.game-cast-btn {
background: linear-gradient(to bottom, #ffca54 0%, #ffb000 50%, #b88600 100%) !important;
color: #090614 !important; font-family: 'Impact', sans-serif !important; font-size: 1.3em !important;
border: 2px solid #ffffff !important; border-radius: 8px !important; padding: 12px 0 !important; margin-top: 8px !important;
}
.game-cast-btn:hover { transform: scale(1.01) !important; box-shadow: 0 0 25px #ffb000 !important; }