@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100..900&display=swap'); :root { --secondaryColor: rgb(18, 18, 18); --backgroundColor: rgba(23, 23, 23, 0.9); --borderColor: rgba(255, 255, 255, 0.08); --textColor: rgb(255, 255, 255); --hoverColor: rgba(255, 255, 255, 0.15); } * { font-family: "Poppins", sans-serif; margin: 0; padding: 0; box-sizing: border-box; user-select: none; } .full-screen { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 1; transition: opacity 0.2s ease-in-out; background: hsla(0, 0%, 0%, 0.5); } .container { width: 500px; height: 700px; background: var(--backgroundColor); border-radius: 12px; border: 1px solid var(--borderColor); padding: 20px; box-shadow: 0px 4px 10px hsla(0, 0%, 0%, 0.5); display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; } .full-screen.closing { opacity: 0; pointer-events: none; } .full-screen.closing .container { animation: fadeOutZoom 0.2s ease-in-out; pointer-events: none; } .header { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin-bottom: 10px; } .title { font-size: 18px; font-weight: bold; color: var(--textColor); letter-spacing: 0.5px; } .subtitle { font-size: 12px; color: hsla(0, 0%, 100%, 0.7); margin-top: 2px; } .close-button { position: absolute; top: 30px; right: 20px; font-size: 16px; color: hsla(0, 0%, 100%, 0.5); cursor: pointer; transition: 0.2s; } .close-button:hover { color: var(--textColor); } .search-container { display: flex; align-items: center; background: hsla(0, 0%, 100%, 0.1); padding: 10px; border-radius: 6px; width: 100%; margin-bottom: 15px; position: relative; } .search-container input { background: none; border: none; outline: none; flex-grow: 1; color: var(--textColor); font-size: 14px; text-align: left; padding-left: 30px; } .search-container input::placeholder { color: hsla(0, 0%, 100%, 0.5); } .search-container input:focus { outline: none; border: none; color: var(--textColor); } .search-container input::selection { background: var(--mainColor); color: var(--textColor); } .search-container input::-moz-selection { background: var(--mainColor); color: var(--textColor); } .search-container i { position: absolute; left: 15px; color: hsla(0, 0%, 100%, 0.5); font-size: 14px; } .category-buttons { display: flex; gap: 10px; width: 100%; margin-bottom: 15px; } .tow-all-button { margin-right: 20px; } .category-buttons .button, .tow-all-button { flex-grow: 1; padding: 6px; text-align: center; background: var(--secondaryColor); border-radius: 6px; font-size: 14px; color: hsla(0, 0%, 100%, 0.7); cursor: pointer; transition: 0.2s; border: 1px solid transparent; } .category-buttons .button.active, .tow-all-button.active { background: var(--mainColor); color: hsl(0, 0%, 0%); font-weight: bold; } .category-buttons .button:hover, .tow-all-button:hover { background: var(--hoverColor); } .car-list { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, auto); gap: 10px; width: 100%; max-height: calc(3 * 160px + 20px); /* 3 rows of car items + gaps */ overflow-y: auto; justify-content: center; justify-items: center; align-items: start; } .car-list::-webkit-scrollbar { width: 5px; } .car-list::-webkit-scrollbar-thumb { background: var(--mainColor); border-radius: 10px; } .car-list::-webkit-scrollbar-track { background: hsla(0, 0%, 100%, 0.1); } .no-results { font-size: 14px; color: hsla(0, 0%, 100%, 0.6); padding: 10px 15px; font-weight: 100; text-align: left; width: 100%; } .favorite-icon { position: absolute; top: 8px; left: 8px; font-size: 15px; color: hsla(0, 0%, 100%, 0.5); cursor: pointer; transition: 0.2s; } .favorite-icon.favorited { color: gold; } .favorite-icon:hover { color: gold; } .car-item { position: relative; background: linear-gradient(145deg, hsl(0, 0%, 10%), hsl(0, 0%, 7%)); padding: 14px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: opacity 0.3s ease, transform 0.2s; border: 1px solid var(--borderColor); text-align: center; width: 140px; height: 90px; opacity: 1; } .car-item:hover { background: hsl(0, 0%, 9%); } .car-name { font-size: 14px; font-weight: bold; color: var(--textColor); text-transform: uppercase; } .car-plate { font-size: 12px; background: var(--mainColor); padding: 5px 10px; border-radius: 5px; margin-top: 5px; font-weight: bold; color: hsl(0, 0%, 0%); } .delete-icon { position: absolute; top: 8px; right: 8px; font-size: 15px; color: hsla(0, 0%, 100%, 0.5); cursor: pointer; transition: 0.2s; } .delete-icon:hover { color: #ff3333; } @keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } @keyframes fadeInZoom { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } } @keyframes fadeOutZoom { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.7); } }