import gradio as gr css_code = """ /* Full-screen background */ .gradio-container { background-image: url('https://img.freepik.com/premium-photo/abstract-black-gold-lines-background-with-light-effect_760214-2131.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; font-family: 'Segoe UI', sans-serif; color: white; margin: 0; padding: 20px; } /* Common animation box style */ .animated-box { animation: glow 2s infinite alternate; padding: 20px; border-radius: 15px; background: linear-gradient(135deg, #1e1e2f, #3f3f5f); color: white; box-shadow: 0 0 20px rgba(255,255,255,0.2); margin-bottom: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease; } .animated-box:hover { transform: scale(1.03); box-shadow: 0 0 30px #0ff; } /* Glow animation */ @keyframes glow { from { box-shadow: 0 0 10px #00f; } to { box-shadow: 0 0 20px #0ff; } } /* Tutorials container */ .tutorials { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; } /* Each tutorial section */ .tutorial-section { flex: 1 1 45%; } /* Section headings */ .tutorial-section h3 { text-align: center; color: #FFD700; margin-bottom: 10px; } /* Each link box */ .link-box { animation: glow 2s infinite alternate; background: linear-gradient(135deg, #2a2a3f, #4f4f6f); padding: 12px 15px; margin: 8px 0; border-radius: 10px; box-shadow: 0 0 10px rgba(0,255,255,0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; } .link-box:hover { transform: scale(1.05); box-shadow: 0 0 25px #0ff; } .link-box a { color: #00ffff; text-decoration: none; font-weight: bold; } .link-box a:hover { color: #ffffff; text-decoration: underline; } /* Responsive adjustments */ @media screen and (max-width: 768px) { .animated-box { font-size: 18px; padding: 15px; } .tutorials { flex-direction: column; gap: 15px; } .tutorial-section { flex: 1 1 100%; } .link-box a { font-size: 16px; } } """ with gr.Blocks(css=css_code) as demo: gr.HTML('