/
RoditelevVV
/
web-static-labs
Обзор
Документация
Войти
/
RoditelevVV
/
web-static-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
html/lab5/task1/styles.css
272 строки
5 KB
karpov
finish lab3, lab4
12 мар 2026, 08:19
12 мар 2026, 08:19
74cd197
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #333; line-height: 1.6; min-height: 100vh; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; background: rgba(255, 255, 255, 0.95); min-height: 100vh; box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); } header { text-align: center; padding: 40px 0; background: linear-gradient(135deg, #2c3e50, #34495e); color: white; border-radius: 10px; margin-bottom: 30px; } h1 { font-size: 2.5rem; margin-bottom: 10px; } .subtitle { font-size: 1.2rem; opacity: 0.9; } .content { padding: 0 20px; } .article { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); margin-bottom: 30px; } .article h2 { color: #2c3e50; margin-bottom: 20px; font-size: 2rem; } .article h3 { color: #34495e; margin: 25px 0 15px 0; font-size: 1.5rem; } .article p { margin-bottom: 15px; font-size: 1.1rem; text-align: justify; } .subscription-result { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); margin-top: 30px; text-align: center; font-size: 1.2rem; min-height: 60px; display: flex; align-items: center; justify-content: center; } .subscription-result.success { background: linear-gradient(135deg, #00b09b, #96c93d); color: white; } .subscription-result.error { background: linear-gradient(135deg, #ff416c, #ff4b2b); color: white; } footer { text-align: center; padding: 20px; margin-top: 40px; color: #7f8c8d; border-top: 1px solid #ecf0f1; } .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); } .modal-content { background: white; margin: 5% auto; padding: 0; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); position: relative; animation: modalAppear 0.3s ease-out; } @keyframes modalAppear { from { opacity: 0; transform: scale(0.8) translateY(-50px); } to { opacity: 1; transform: scale(1) translateY(0); } } .modal-header { background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 20px 30px; border-radius: 15px 15px 0 0; } .modal-header h2 { margin: 0; font-size: 1.5rem; } .modal-body { padding: 30px; } .subscription-form { display: flex; flex-direction: column; gap: 20px; } .form-group { display: flex; flex-direction: column; gap: 8px; } .form-group label { font-weight: 600; color: #2c3e50; } .form-group input { padding: 12px 15px; border: 2px solid #ddd; border-radius: 8px; font-size: 1rem; transition: all 0.3s ease; } .form-group input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .form-group input.error { border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1); } .error-message { color: #e74c3c; font-size: 0.9rem; min-height: 20px; } .modal-buttons { display: flex; gap: 15px; justify-content: flex-end; margin-top: 10px; } .btn { padding: 12px 25px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; min-width: 120px; } .btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); } .btn-primary { background: linear-gradient(135deg, #00b09b, #96c93d); color: white; } .btn-secondary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; } .btn-close { background: #95a5a6; color: white; } .success-message { text-align: center; padding: 40px 30px; } .success-message h3 { color: #00b09b; margin-bottom: 15px; font-size: 1.5rem; } .success-message p { color: #2c3e50; font-size: 1.1rem; line-height: 1.6; } @media (max-width: 768px) { .modal-content { width: 90% !important; margin: 10% auto; } .modal-buttons { flex-direction: column; } .btn { width: 100%; } h1 { font-size: 2rem; } .article { padding: 20px; } }