body { background-color: #1B2A3C; color: white; margin: 0; padding: 0; display: block; } .contact-button { position: absolute; top: 10px; right: 50px; font-size: 14px; color: #417A9B; text-decoration: none; font-weight: bold; background-color: transparent; border: none; cursor: pointer; } .contact-button:hover { text-decoration: underline; } .top-bar { background-color: #171D25; width: 100%; height: 105px; display: flex; justify-content: space-between; align-items: center; position: fixed; top: 0; z-index: 1000; padding-left: 20px; padding-right: 20px; } .left-text { color: white; font-family: Arial, sans-serif; font-size: 14px; margin-right: 15px; } .left-text p { margin: 0; padding: 0; } .center-text { color: white; font-family: Arial, sans-serif; font-size: 28px; text-align: center; flex-grow: 1; margin-left: -500px; margin-right: auto; } .main-container { display: flex; justify-content: center; align-items: flex-start; margin-top: 105px; width: 100%; position: relative; flex-wrap: wrap; } .cards-container { display: grid; grid-template-columns: repeat(3, 200px); grid-gap: 105px 20px; justify-content: center; margin-bottom: 40px; } .right-rectangle { width: 295px; height: 370px; background: linear-gradient(to left, #0E141C, #111A23, #15202C); margin-left: 20px; margin-top: 40px; border-radius: 0; position: relative; } .show-products-title { font-family: Arial, sans-serif; font-size: 12px; color: rgba(255, 255, 255, 0.7); margin-bottom: 5px; margin-left: 5px; } .game-modes-title { font-family: Arial, sans-serif; font-size: 12px; color: rgba(255, 255, 255, 0.7); margin-bottom: 0px; margin-left: 5px; } .game-modes { display: flex; flex-direction: column; gap: 5px; position: absolute; bottom: 10px; left: 10px; } .game-mode { font-family: Arial, sans-serif; font-size: 13px; color: rgba(255, 255, 255, 0.7); display: flex; align-items: center; position: relative; } .game-mode input[type="checkbox"] { margin-right: 10px; width: 16px; height: 16px; cursor: pointer; accent-color: blue; } .game-mode:hover { background-color: #1B2A3C; } .game-mode:hover::after { content: ''; position: absolute; top: 0; left: 0; width: 295px; height: 10px; background-color: #1B2A3C; z-index: -1; } .card { position: relative; width: 200px; display: flex; flex-direction: column; align-items: flex-start; } .stars { width: 81px; height: 14px; margin: 5px 0; } .card-title { font-size: 16px; color: white; margin-top: 5px; text-align: left; } .card img:not(.stars) { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); } .description-popup { display: none; position: absolute; width: 300px; background-color: #61ABD7; color: white; font-size: 14px; padding: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); z-index: 10; left: 220px; top: 0; white-space: normal; word-wrap: break-word; } .description-popup::after { content: ""; position: absolute; top: 10px; left: -20px; border-width: 10px; border-style: solid; border-color: transparent #61ABD7 transparent transparent; } .description-popup strong { font-size: 16px; margin-bottom: 10px; display: block; } .description-popup p { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin: 0; } .card:hover .description-popup { display: block; } .pagination { display: flex; justify-content: center; align-items: center; margin-top: 20px; position: relative; bottom: 25px; left: 0px; width: 100%; } .pagebtn { width: 40px; height: 16px; background-color: #2B475E; color: #63AFCD; font-family: Arial, sans-serif; font-size: 16px; display: flex; justify-content: center; align-items: center; text-decoration: none; margin: 0 10px; border-radius: 2px; transition: background-color 0.3s, color 0.3s; border: none; } .pagebtn:hover { background-color: #66C0F4; color: white; } .pagelink { background-color: transparent; color: white; font-family: Arial, sans-serif; font-size: 16px; text-decoration: none; margin: 0 5px; } .pagination_space { margin: 0 5px; } .pagebtn:hover, .pagelink:hover { background-color: #2A5B70; } .sort-button-container { display: flex; justify-content: flex-start; margin-top: 15px; margin-left: 15px; } .sort-button { width: 148px; height: 30px; background: linear-gradient(to top, #384A65, #57749E); color: white; font-family: Arial, sans-serif; font-size: 13px; font-weight: normal; border: none; border-radius: 3px; cursor: pointer; transition: background-color 0.3s ease, box-shadow 0.3s ease; margin-top: 0px; } .sort-button:hover { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } .sort-button:active { background: linear-gradient(to top, #2C3E55, #3D5B80); } .modal { display: none; position: fixed; z-index: 1001; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 530px; height: 315px; background: linear-gradient(to left, #333840, #333840); padding: 20px; } .modal-content { color: white; font-family: Arial, sans-serif; position: relative; } .close-btn { position: absolute; top: -40px; right: -15px; color: white; font-size: 30px; cursor: pointer; opacity: 0.7; } .close-btn:hover { color: #f1f1f1; opacity: 1; } .modal-content h2 { margin-left: 25px; } .modal-rectangle { position: absolute; top: 105px; left: 25px; width: 480px; height: 42px; background-color: #292B2F; border-radius: 3px; z-index: 1002; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; } .modal-rectangle .text-left { font-family: Arial, sans-serif; font-weight: bold; font-size: 15px; } .modal-rectangle .text-center { left: 240px; font-family: Arial, sans-serif; font-weight: bold; font-size: 15px; } .date-input { background-color: #33363E; color: white; border: none; font-size: 14px; height: 30px; width: 205px; border-radius: 3px; box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5); z-index: 1003; } .date-input::-webkit-calendar-picker-indicator { display: none; } .date-input:focus { outline: none; background-color: #4c4f58; } .cancel-button { position: absolute; bottom: -270px; right: 25px; width: 80px; height: 30px; background-color: #32363F; color: white; font-size: 14px; font-family: Arial, sans-serif; border: none; border-radius: 3px; box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); cursor: pointer; transition: background-color 0.3s ease, box-shadow 0.3s ease; } .cancel-button:hover { background-color: #4A4F5A; box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3); } .ok-button { position: absolute; bottom: -270px; right: 130px; width: 50px; height: 30px; background-color: #6EA720; color: white; font-size: 14px; font-family: Arial, sans-serif; border: none; border-radius: 3px; box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); cursor: pointer; transition: background-color 0.3s ease, box-shadow 0.3s ease; } .ok-button:hover { background-color: #A6FC30; box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3); } .search-container { margin-top: 420px; display: flex; justify-content: center; } .search-input-container { position: relative; } .search-input { width: 250px; height: 40px; background-color: #2C3E55; color: white; font-size: 14px; border: none; border-radius: 3px; padding-left: 10px; outline: none; padding-right: 40px; } .search-input::placeholder { color: rgba(255, 255, 255, 0.7); } .search-input:focus { background-color: #3E4A61; } .search-button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 0; } .search-button img { width: 25px; height: 25px; object-fit: contain; } .filter-stars { position: absolute; margin-top: 420px; margin-right: -660px; display: flex; flex-direction: column; align-items: center; background-color: #2C3E55; width: 300px; height: 80px; border-radius: 3px; padding: 10px; box-sizing: border-box; } .filter-title { margin-bottom: 10px; color: white; font-size: 16px; } .stars-filter { display: flex; justify-content: space-between; width: 100%; } .stars-filter label { font-family: Arial, sans-serif; font-size: 14px; color: white; display: flex; flex-direction: column-reverse; align-items: center; } .stars-filter input[type="checkbox"] { margin-bottom: 5px; width: 16px; height: 16px; cursor: pointer; accent-color: #63AFCD; } /* Медиа-запросы для мобильной адаптации */ @media screen and (max-width: 768px) { body { font-size: 14px; } .top-bar { height: 60px; padding: 10px; display: flex; justify-content: center; align-items: center; position: relative; } .left-text { display: none; } .center-text { font-size: 24px; margin: 0; flex-grow: 0; text-align: center; } .contact-button { position: absolute; top: 10px; right: 30px; font-size: 14px; margin: 0; } .main-container { flex-direction: column; align-items: center; margin-top: 70px; padding: 10px; } .cards-container { grid-template-columns: 1fr; grid-gap: 20px; width: 100%; justify-items: center; } .card { width: 90%; max-width: 300px; } .card img:not(.stars) { width: 100%; height: auto; } .description-popup { width: 90%; left: 0; top: 100%; margin-top: 10px; z-index: 100; } .description-popup::after { display: none; } .right-rectangle { width: 100%; height: auto; margin: 20px 0; padding: 10px; } .game-modes { position: static; flex-direction: column; align-items: flex-start; gap: 10px; } .game-mode { width: 100%; } .game-mode:hover::after { width: 100%; height: 100%; } .sort-button-container { justify-content: center; margin: 10px 0; } .sort-button { width: 100%; max-width: 200px; } .search-container { margin-top: 20px; width: 100%; } .search-input { width: 100%; max-width: 100%; } .filter-stars { position: static; width: 100%; margin: 20px 0; height: auto; } .stars-filter { flex-wrap: wrap; gap: 10px; justify-content: center; } .pagination { flex-wrap: wrap; gap: 10px; bottom: 0; } .modal { width: 90%; height: auto; padding: 15px; max-width: 500px; } .modal-content { padding: 10px; } .close-btn { top: -30px; right: 0; font-size: 25px; } .modal-content h2 { margin-left: 0; font-size: 18px; text-align: center; } .modal-rectangle { position: static; width: 100%; height: auto; flex-direction: column; padding: 10px; gap: 10px; } .date-input { width: 100%; height: 35px; } .modal-rectangle .text-left, .modal-rectangle .text-center { font-size: 14px; } .ok-button, .cancel-button { position: static; width: 100%; margin: 10px 0; height: 40px; } } @media screen and (max-width: 480px) { .center-text { font-size: 20px; } .card-title { font-size: 14px; } .description-popup { font-size: 12px; } .sort-button { font-size: 12px; } .search-input { height: 35px; } .filter-title { font-size: 14px; } .stars-filter label { font-size: 12px; } }