Spaces:
Running
Running
| /* General Styles */ | |
| body { | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| line-height: 1.6; | |
| color: #333; | |
| background-color: #f5f7fa; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| h1, h2, h3 { | |
| color: #2c3e50; | |
| } | |
| /* Header Styles */ | |
| h1 { | |
| text-align: center; | |
| margin: 30px 0; | |
| font-size: 2.5rem; | |
| background: linear-gradient(90deg, #3498db, #2ecc71); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| color: transparent; | |
| padding-bottom: 10px; | |
| border-bottom: 2px solid #ecf0f1; | |
| } | |
| /* Search Box */ | |
| .search-box { | |
| max-width: 800px; | |
| margin: 0 auto 40px; | |
| padding: 20px; | |
| background: white; | |
| border-radius: 10px; | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| } | |
| .search-box form { | |
| display: flex; | |
| gap: 10px; | |
| } | |
| .search-box input { | |
| flex: 1; | |
| padding: 12px 15px; | |
| border: 1px solid #ddd; | |
| border-radius: 5px; | |
| font-size: 1rem; | |
| transition: all 0.3s; | |
| } | |
| .search-box input:focus { | |
| outline: none; | |
| border-color: #3498db; | |
| box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2); | |
| } | |
| .search-box button { | |
| padding: 12px 25px; | |
| background: #3498db; | |
| color: white; | |
| border: none; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| font-size: 1rem; | |
| transition: background 0.3s; | |
| } | |
| .search-box button:hover { | |
| background: #2980b9; | |
| } | |
| /* News Container */ | |
| .news-container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 20px; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); | |
| gap: 25px; | |
| } | |
| .news-card { | |
| background: white; | |
| border-radius: 8px; | |
| overflow: hidden; | |
| box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); | |
| transition: transform 0.3s, box-shadow 0.3s; | |
| } | |
| .news-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); | |
| } | |
| .news-card h3 { | |
| margin: 0; | |
| padding: 20px 20px 10px; | |
| font-size: 1.3rem; | |
| } | |
| .news-card p { | |
| margin: 0; | |
| padding: 0 20px 10px; | |
| color: #7f8c8d; | |
| } | |
| .news-card p strong { | |
| color: #3498db; | |
| } | |
| .news-card a { | |
| display: inline-block; | |
| margin: 15px 20px 20px; | |
| padding: 8px 15px; | |
| background: #ecf0f1; | |
| color: #3498db; | |
| text-decoration: none; | |
| border-radius: 5px; | |
| font-weight: 500; | |
| transition: all 0.3s; | |
| } | |
| .news-card a:hover { | |
| background: #3498db; | |
| color: white; | |
| } | |
| /* Chat Box */ | |
| .chat-box { | |
| max-width: 800px; | |
| margin: 50px auto; | |
| padding: 25px; | |
| background: white; | |
| border-radius: 10px; | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| } | |
| .chat-box h2 { | |
| margin-top: 0; | |
| color: #2ecc71; | |
| font-size: 1.8rem; | |
| padding-bottom: 15px; | |
| border-bottom: 1px solid #ecf0f1; | |
| } | |
| #chat-container { | |
| height: 300px; | |
| overflow-y: auto; | |
| margin-bottom: 20px; | |
| padding: 15px; | |
| background: #f9f9f9; | |
| border-radius: 5px; | |
| border: 1px solid #eee; | |
| } | |
| #chat-container p { | |
| margin: 0 0 10px 0; | |
| padding: 8px 12px; | |
| border-radius: 5px; | |
| } | |
| #chat-container p:nth-child(odd) { | |
| background: #e3f2fd; | |
| margin-right: 20%; | |
| } | |
| #chat-container p:nth-child(even) { | |
| background: #f1f8e9; | |
| margin-left: 20%; | |
| } | |
| #user-input { | |
| width: calc(100% - 110px); | |
| padding: 12px 15px; | |
| border: 1px solid #ddd; | |
| border-radius: 5px; | |
| font-size: 1rem; | |
| } | |
| .chat-box button { | |
| width: 90px; | |
| padding: 12px 0; | |
| background: #2ecc71; | |
| color: white; | |
| border: none; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| font-size: 1rem; | |
| transition: background 0.3s; | |
| margin-left: 10px; | |
| } | |
| .chat-box button:hover { | |
| background: #27ae60; | |
| } | |
| /* Responsive Design */ | |
| @media (max-width: 768px) { | |
| .news-container { | |
| grid-template-columns: 1fr; | |
| } | |
| .search-box form { | |
| flex-direction: column; | |
| } | |
| .search-box button { | |
| width: 100%; | |
| } | |
| .chat-box { | |
| margin: 30px 20px; | |
| } | |
| #user-input { | |
| width: calc(100% - 20px); | |
| margin-bottom: 10px; | |
| } | |
| .chat-box button { | |
| width: 100%; | |
| margin-left: 0; | |
| } | |
| } |