/
Xeloshi
/
Final_Project
Обзор
Документация
Войти
/
Xeloshi
/
Final_Project
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
style.css
814 строк
16 KB
Xeloshi
Загрузить файлы в «»
07 дек 2025, 03:52
07 дек 2025, 03:52
17dba8e
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Georgia', serif; line-height: 1.6; background-color: #f5f1e8; color: #333; padding: 20px; background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><rect fill="%237a6a5f" width="100" height="100"/></svg>'); } .container { max-width: 800px; margin: 0 auto; } .game-title { text-align: center; font-size: 3rem; margin-bottom: 30px; color: #5d4037; text-shadow: 2px 2px 4px rgba(0,0,0,0.1); } .description-block { background: #e8dfd3; padding: 30px; border-radius: 8px; margin-bottom: 30px; border: 1px solid #d6c9b8; box-shadow: 0 4px 8px rgba(0,0,0,0.1); } .description-block h2 { margin-bottom: 15px; color: #5d4037; border-bottom: 2px solid #bcaaa4; padding-bottom: 5px; } .characters-section h2 { margin-bottom: 20px; text-align: center; color: #5d4037; } .characters-list { display: flex; flex-direction: column; gap: 10px; } .character-link { display: block; padding: 15px; background: #d7ccc8; color: #4e342e; text-decoration: none; border-radius: 5px; text-align: center; border: 1px solid #bcaaa4; transition: all 0.3s ease; } .character-link:hover { background: #bcaaa4; transform: translateY(-2px); box-shadow: 0 2px 8px rgba(0,0,0,0.2); } .back-link { color: #8d6e63; text-decoration: none; margin-bottom: 20px; display: inline-block; font-weight: bold; } .back-link:hover { color: #5d4037; } .character-title { text-align: center; font-size: 2.5rem; margin-bottom: 30px; color: #5d4037; text-shadow: 2px 2px 4px rgba(0,0,0,0.1); } .character-info { background: #e8dfd3; padding: 30px; border-radius: 8px; border: 1px solid #d6c9b8; box-shadow: 0 4px 8px rgba(0,0,0,0.1); } .basic-info { margin-bottom: 30px; background: #d7ccc8; padding: 20px; border-radius: 6px; border: 1px solid #bcaaa4; } .basic-info h2, .detailed-info h2 { margin-bottom: 15px; color: #5d4037; border-bottom: 2px solid #bcaaa4; padding-bottom: 5px; } .basic-info p { margin-bottom: 10px; color: #4e342e; } .detailed-info { background: #efebe9; padding: 20px; border-radius: 6px; border: 1px solid #d7ccc8; } .detailed-info p { margin-bottom: 15px; color: #4e342e; } .characters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; } .character-card { background: #e8dfd3; border-radius: 8px; overflow: hidden; border: 1px solid #d6c9b8; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: all 0.3s ease; } .character-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.2); border-color: #8d6e63; } .character-image { width: 100%; height: 200px; background: #d7ccc8; display: flex; align-items: center; justify-content: center; } .character-image img { width: 100%; height: 100%; object-fit: cover; } .character-button { display: block; padding: 15px; background: #5d4037; color: #f5f1e8; text-decoration: none; text-align: center; font-weight: bold; border: none; width: 100%; cursor: pointer; } .character-image:hover { transform: scale(1.02); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); } .image-caption { display: block; text-align: center; font-style: italic; color: #666; margin-top: 8px; font-size: 0.9rem; } .home-page { background-color: #f5f1e8; background-image: url('https://media.nexusmods.com/1/d/1d96205f-c23e-4b96-9c33-5883a28c5c4a.webp'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; } .home-page::before { display: none; } .home-page .description-block, .home-page .characters-section { background-color: rgba(232, 223, 211, 0.9); backdrop-filter: blur(2px); } .home-page .character-link { background-color: rgba(215, 204, 200, 0.95); } .info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; } .info-item { background: #efebe9; padding: 10px; border-radius: 5px; border: 1px solid #d7ccc8; color: #4e342e; } .character-sprite-container { text-align: center; margin: 25px 0; } .character-sprite { border: 3px solid #bcaaa4; border-radius: 8px; padding: 5px; background: #f5f1e8; max-width: 200px; } .traits-box { background: #f5f1e8; padding: 20px; border-radius: 8px; margin: 20px 0; border: 1px solid #d6c9b8; } .traits-list { margin-left: 20px; margin-top: 10px; } .traits-list li { margin-bottom: 8px; color: #4e342e; } .story-role { background: #e8dfd3; padding: 20px; border-radius: 8px; margin: 20px 0; border: 1px solid #d6c9b8; } .fun-facts { background: #f5f1e8; padding: 20px; border-radius: 8px; margin: 20px 0; border: 1px solid #d6c9b8; } .facts p { margin-bottom: 10px; color: #4e342e; } .quote-box { background: #e8dfd3; padding: 25px; border-radius: 8px; margin: 30px 0; border-left: 5px solid #8d6e63; font-style: italic; color: #5d4037; } .quote-author { text-align: right; margin-top: 10px; font-style: normal; color: #8d6e63; font-weight: bold; } .map-container { margin-top: 30px; } .map { margin-top: 15px; border: 2px solid #d6c9b8; border-radius: 8px; overflow: hidden; } .simple-register { background: #e8dfd3; padding: 30px; border-radius: 8px; border: 1px solid #d6c9b8; box-shadow: 0 4px 8px rgba(0,0,0,0.1); max-width: 500px; margin: 20px auto; } .register-form { background: #efebe9; padding: 25px; border-radius: 8px; border: 1px solid #d7ccc8; } .form-field { margin-bottom: 25px; } .form-field label { display: block; color: #5d4037; font-weight: bold; margin-bottom: 8px; font-size: 1.1rem; } .form-field input { width: 100%; padding: 12px; border: 2px solid #bcaaa4; border-radius: 5px; background: #f5f1e8; color: #4e342e; font-size: 1rem; font-family: 'Georgia', serif; } .register-btn { width: 100%; padding: 15px; background: #5d4037; color: white; border: none; border-radius: 5px; font-size: 1.2rem; font-weight: bold; cursor: pointer; margin-top: 10px; } .register-btn:hover { background: #4e342e; } @font-face { font-family: 'Character1Font'; src: url('./fonts/Undertale-Battle-Font.ttf') format('truetype'); } @font-face { font-family: 'Character2Font'; src: url('./fonts/OperationNapalm-Regular.otf') format('opentype'); } @font-face { font-family: 'Character3Font'; src: url('./fonts/Await-RUS.ttf') format('truetype'); } @font-face { font-family: 'Character4Font'; src: url('./fonts/StieglitzSP-Bold\ 2.otf') format('truetype'); } @font-face { font-family: 'Character5Font'; src: url('./fonts/CaslonNo540D-Ita.ttf') format('opentype'); } @font-face { font-family: 'Character6Font'; src: url('./fonts/AuktyonZ\ W00\ Regular.ttf') format('truetype'); } body.igor-bg { background-image: url('https://i.ytimg.com/vi/sPPbEdI3h_Q/maxresdefault.jpg'); background-size: cover; background-position: center; background-attachment: fixed; } body.vika-bg { background-image: url('https://avatars.mds.yandex.net/i?id=0f34079b1af3ad009efbd59423b6c9ae_l-8497453-images-thumbs&n=13'); background-size: cover; background-position: center; background-attachment: fixed; } body.artem-bg { background-image: url('https://images.steamusercontent.com/ugc/2192750207406216762/C66C92609407D31C3971F3C7F72973D71CB83780/?imw=512&imh=288&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=true'); background-size: cover; background-position: center; background-attachment: fixed; } body.aurora-bg { background-image: url('https://i.ytimg.com/vi/D_Xc4AwGjNA/maxresdefault.jpg'); background-size: cover; background-position: center; background-attachment: fixed; } body.albert-bg { background-image: url('https://wallpapers.com/images/hd/terraria-background-9f64rpnc9pkmmvfw.jpg'); background-size: cover; background-position: center; background-attachment: fixed; } body.lisa-bg { background-image: url('https://i.pinimg.com/originals/4e/fe/43/4efe43e242baa28c623c1e3efdff1b39.jpg'); background-size: cover; background-position: center; background-attachment: fixed; } body.catalog-bg { background-image: url('https://i.pinimg.com/originals/26/2c/9e/262c9efdd21603fc14087e205af7255b.webp'); background-size: cover; background-position: center; background-attachment: fixed; } body.login-bg { background-image: url('https://get.wallhere.com/photo/azure-rectangle-font-line-parallel-symmetry-electric-blue-pattern-circle-slope-symbol-square-illustration-diagram-ART-graphics-drawing-2072451.jpg'); background-size: cover; background-position: center; background-attachment: fixed; } body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(245, 241, 232, 0.85); z-index: -1; } body.catalog-bg .container, body.login-bg .container { position: relative; z-index: 1; } .character-info, .simple-register, .characters-grid { background-color: rgba(232, 223, 211, 0.95); backdrop-filter: blur(5px); } .map-container { position: relative; } .custom-map-marker { position: absolute; width: 24px; height: 24px; background-color: #5d4037; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.3); transform: translate(-50%, -50%); z-index: 1000; pointer-events: none; } .custom-map-marker::after { content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); width: 2px; height: 12px; background-color: #5d4037; } .character-card { transition: all 0.3s ease; border: 2px solid transparent; overflow: hidden; } .character-card:hover { transform: translateY(-8px) scale(1.03); box-shadow: 0 12px 24px rgba(0,0,0,0.25); border-color: #8d6e63; } .character-image { transition: transform 0.3s ease; } .character-card:hover .character-image { transform: scale(1.1); } .character-button { position: relative; overflow: hidden; transition: all 0.3s ease; } .character-button::after { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255, 255, 255, 0.3); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; } .character-button:hover::after { width: 300px; height: 300px; } /* ========== СТИЛИ ДЛЯ INDEX.HTML ========== */ .hero-section { text-align: center; margin-bottom: 40px; position: relative; } .hero-logo { max-width: 700px; width: 100%; height: auto; display: block; margin: 0 auto 20px; } .hero-tagline { font-size: 1.4rem; color: #5d4037; font-style: italic; margin-bottom: 30px; padding: 0 20px; } .catalog-preview { margin: 40px 0; padding: 30px; background: rgba(232, 223, 211, 0.95); border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.15); } .catalog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; } .catalog-title { color: #5d4037; font-size: 2.2rem; margin: 0; } .view-all-btn { background: #8d6e63; color: white; padding: 12px 30px; border-radius: 25px; text-decoration: none; font-weight: bold; transition: all 0.3s ease; border: 2px solid #8d6e63; } .view-all-btn:hover { background: #5d4037; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); } .characters-grid-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 20px; } .preview-card { background: #f5f1e8; border-radius: 10px; overflow: hidden; transition: all 0.3s ease; border: 2px solid #d6c9b8; text-align: center; } .preview-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); border-color: #8d6e63; } .preview-image { width: 100%; height: 150px; object-fit: cover; border-bottom: 2px solid #d6c9b8; } .preview-name { padding: 15px 10px; color: #5d4037; font-weight: bold; font-size: 1.1rem; } .info-grid-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin: 40px 0; } .info-block { background: rgba(232, 223, 211, 0.95); padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid #d6c9b8; transition: transform 0.3s ease; } .info-block:hover { transform: translateY(-5px); } .info-block h2 { color: #5d4037; border-bottom: 3px solid #bcaaa4; padding-bottom: 10px; margin-bottom: 15px; font-size: 1.8rem; } .info-block h3 { color: #8d6e63; margin: 20px 0 10px; font-size: 1.3rem; } .info-block ul { margin-left: 20px; margin-bottom: 15px; } .info-block li { margin-bottom: 8px; line-height: 1.5; } .highlight-box { background: #e8dfd3; padding: 20px; border-radius: 10px; border-left: 5px solid #8d6e63; margin: 25px 0; font-style: italic; } .features-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 40px 0; } .feature-card { background: rgba(232, 223, 211, 0.95); padding: 25px; border-radius: 10px; text-align: center; border: 2px solid transparent; transition: all 0.3s ease; } .feature-card:hover { border-color: #8d6e63; transform: translateY(-3px); } .feature-icon { font-size: 2.5rem; color: #8d6e63; margin-bottom: 15px; } .feature-title { color: #5d4037; margin-bottom: 10px; font-size: 1.3rem; } .developer-note { background: rgba(215, 204, 200, 0.95); padding: 30px; border-radius: 12px; margin-top: 40px; border: 2px solid #bcaaa4; text-align: center; } /* Адаптивные стили для index.html */ @media (max-width: 768px) { .catalog-header { flex-direction: column; text-align: center; } .characters-grid-preview { grid-template-columns: repeat(2, 1fr); } .info-grid-blocks { grid-template-columns: 1fr; } .features-section { grid-template-columns: 1fr; } .container { padding: 10px; } .catalog-preview { padding: 20px; margin: 20px 0; } .hero-tagline { font-size: 1.2rem; padding: 0 10px; } } @media (max-width: 480px) { .characters-grid-preview { grid-template-columns: 1fr; } .hero-tagline { font-size: 1.1rem; } .catalog-title { font-size: 1.8rem; } .view-all-btn { padding: 10px 20px; font-size: 0.9rem; } .feature-card { padding: 20px; } .info-block { padding: 20px; } } /* Конец стилей для index.html */