@import url(../fonts/font.css); .car-cards img { width: 580px; height: 400px; } .series.centered-button { text-align: center; display: flex; flex-direction: column; align-items: center; top: 200px; } .series.centered-button h2 { margin: 0; } .close-button { position: absolute; top: 5px; right: 0; background-color: rgb(73, 73, 73, 0); padding: 10px; } .popup { display: none; position: fixed; z-index: 1; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.4); } .popup-content { background-color: rgb(73, 73, 73, 0.5); margin: 15% auto; padding: 20px; border: 2px solid #000000; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); width: 30%; text-align: center; color: #000000; position: relative; /* Add this */ } .close { float: right; font-size: 28px; font-weight: bold; color: #000000; } .close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; } body { background-image: url('/assets/imgs/fotka.jpg'); background-size: cover; /* Масштабирование фонового изображения для заполнения всей области*/ text-align: center; /* Центрирование текста по центру*/ font-family: Arial, sans-serif; /* Установка шрифта для текста*/ } .big_con { width: 1800px; margin: 0 auto; } .logo { display: flex; justify-content: space-between; align-items: center; } .requisites { display: flex; justify-content: space-between; align-items: center; color: white; } .requisites .p18 { color: #C78E66; cursor: pointer; } .requisites img { padding-right: 16px; } .requisites .line { margin: 0 70px; } .opacity { position: absolute; /* Кнопка теперь в абсолютном позиционировании */ top: 10px; /* Отступ от верхнего края */ right: 20px; background: none; border: none; cursor: pointer; width: 310px; height: 40px; display: flex; justify-content: space-around; align-items: center; border: 1px solid white; background-color: rgba(255, 255, 255, 0); transition: all ease 0.3s; cursor: pointer; } .opacity:hover { background-color: #C78E66; border: 1px solid #C78E66; } .arrow svg { width: 9px; display: flex; justify-content: center; transition: all ease 0.3s; } .opacity:hover svg path { stroke: white; } .line { border: 1px solid #C78E66; height: 30px; margin: 0 20px; } .p14 { font-family: 'Tac', sans-serif; font-size: clamp(0.7rem, 0.35rem + 0.47vw, 0.875rem); font-weight: 400; color: white; } .orange:hover .p14{ color: #C78E66; } .p16 { font-size: clamp(0.8rem, 0.4rem + 0.53vw, 1rem); font-weight: 400; color: white; } .requisites { display: flex; justify-content: space-between; align-items: center; color: white; } .opacity { position: absolute; /* Кнопка теперь в абсолютном позиционировании */ top: 10px; /* Отступ от верхнего края */ right: 20px; background: none; border: none; cursor: pointer; width: 310px; height: 40px; display: flex; justify-content: space-around; align-items: center; border: 1px solid white; background-color: rgba(255, 255, 255, 0); transition: all ease 0.3s; cursor: pointer; } .p18 { font-size: clamp(1rem, 0.75rem + 0.33vw, 1.125rem); font-weight: 700; color: white; } .opacity:hover { background-color: #C78E66; border: 1px solid #C78E66; } .arrow svg { width: 9px; display: flex; justify-content: center; transition: all ease 0.3s; } .opacity:hover svg path { stroke: white; } .background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background-size: cover; background-position: center; } .team-container { display: flex; /* Размещение блоков в ряд */ flex-wrap: wrap; /* Перенос блоков на новую строку, если не хватает места */ justify-content: center; /* Центрирование по горизонтали */ gap: 20px; /* Отступы между блоками */ } .back_img { width: 100%; height: 100%; object-fit: cover; } .back-to-top { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: none; /* Сначала скрываем кнопку */ } .back-to-top button { background-color: #1a1a1a; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; } .back-to-top button:hover { background-color: #1a1a1a; } /* Добавьте стиль для скрытия кнопки, когда страница прокручена меньше, чем на 100 пикселей */ .back-to-top { display: none; } .back-to-top.show { display: block; } .content { position: relative; z-index: 1; color: rgb(255, 255, 255); margin-top: 100px; } .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); } .logo { /* Дублирующие стили для элемента с классом 'logo' */ position: absolute; top: 10px; left: 10px; } .car-cards { display: flex; flex-wrap: wrap; justify-content: center; } .car-card { /* Стили для элементов с классом 'car-card' */ position: relative; margin: 10px; width: calc(50% - 0px); overflow: hidden; /* Скрытие содержимого, выходящего за границы */ transition: transform 0.3s; /* Плавное изменение свойства трансформации за 0.3 секунды */ background: white; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); padding: 10px; } .car-card:hover { /* Стили для наведения на элемент с классом 'car-card' */ transform: scale(1.1); /* Увеличение масштаба при наведении */ } .car-card h2, .car-card p { /* Стили для заголовков и параграфов внутри элемента 'car-card' */ color: black; text-align: center; margin: 5px 0; font-size: 16px; } .car-card img { width: 100%; height: 150px; /* adjust the height to your desired value */ object-fit: cover; } .car-info { /* Стили для информации об автомобиле */ background-color: rgba(255, 255, 255, 0.8); /* Цвет фона с прозрачностью */ position: absolute; /* Абсолютное позиционирование */ bottom: 0; /* Расположение внизу */ width: 100%; /* Ширина 100% */ text-align: center; /* Выравнивание по центру */ padding: 10px; /* Внутренние отступы 10px */ } .availability { /* Стили для информации о доступности автомобиля */ display: none; /* Начальное скрытие элемента */ position: absolute; /* Абсолютное позиционирование */ bottom: 10px; /* Расположение снизу 10px */ left: 50%; /* Расположение по центру по горизонтали */ transform: translateX(-50%); /* Центрирование по горизонтали */ background-color: rgba(0, 0, 0, 0.7); /* Цвет фона с прозрачностью */ color: white; /* Цвет текста */ padding: 5px 10px; /* Внутренние отступы 5px сверху и снизу, 10px слева и справа */ border-radius: 5px; /* Скругление углов 5px */ } .car-card:hover .availability { /* Отображение информации о доступности при наведении на элемент 'car-card' */ display: block; /* Показ элемента */ } @media (max-width: 768px) { .car-card { width: 100%; } } h1.in-stock { /* Создаем новый стиль с классом "in-stock" */ font-size: 1.2em; /* Уменьшаем размер шрифта */ padding: 10px; /* Добавляем отступы для рамки */ border: 1px solid #ccc; /* Добавляем границу */ background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный фон */ color: white; /* Белый цвет текста */ text-align: center; /* Выравнивание текста по центру */ border-radius: 5px; /* Скругленные углы рамки */ } h2.in-stock { /* Создаем новый стиль с классом "in-stock" */ font-size: 4.0em; padding: 10px; /* Добавляем отступы для рамки */ border: 1px solid #ccc; /* Добавляем границу */ background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный фон */ color: white; /* Белый цвет текста */ text-align: center; /* Выравнивание текста по центру */ border-radius: 5px; /* Скругленные углы рамки */ } .centered-button button { /* Стили для кнопки */ font-size: 1.2em; /* Уменьшаем размер шрифта */ padding: 10px; /* Добавляем отступы для рамки */ border: 1px solid #ccc; /* Добавляем границу */ background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный фон */ color: white; /* Белый цвет текста */ text-align: center; /* Выравнивание текста по центру */ border-radius: 5px; /* Скругленные углы рамки */ } .content2 { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; height: 100vh; /* Высота контента равна высоте viewport */ position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; height: 100vh } header { display: flex; justify-content: space-between; align-items: center; padding: 33px 0; } .cl { margin: 0 auto; background-color: #22242B; }