@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;
    background: hsla(0, 0%, 0%, 0.5);
}

.container {
    width: 500px;
    background: var(--backgroundColor);
    border-radius: 12px;
    border: 1px solid var(--borderColor);
    padding: 20px;
    box-shadow: 0px 4px 10px hsla(0, 0%, 0%, 0.5);
    animation: fadeInZoom 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.full-screen.closing .container {
    animation: fadeOutZoom 0.5s ease-in-out;
}

.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;
}

.category-buttons .button {
    flex-grow: 1;
    padding: 7px;
    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 {
    background: var(--mainColor);
    color: hsl(0, 0%, 0%);
    font-weight: bold;
}

.category-buttons .button:hover {
    background: var(--hoverColor);
}

.car-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    max-height: 50vh;
    overflow-y: auto;
    justify-content: center;
}

.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);
}

.car-item {
    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: 0.2s;
    border: 1px solid var(--borderColor);
    text-align: center;
    width: 160px;
}

.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%);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInZoom {
    from {
        opacity: 0;
        transform: scale(0.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOutZoom {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.1);
    }
}