#tuning-specs-selector {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
}


#tuning-specs-selector .wrapper-title {
    gap: 0px;
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
    text-align: center;
}

#tuning-specs-selector .wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* spacing between elements */
    justify-content: space-between;
}

#tuning-specs-selector span {
    display: block;
}

#tuning-specs-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

#tuning-specs-selector .wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}


#tuning-specs-selector select,
#tuning-specs-selector button {
    flex: 1 1 200px; /* grow, shrink, and min width */
    min-width: 100px;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    appearance: none;
    cursor: pointer;
}

#tuning-specs-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

#tuning-specs-selector select,
#tuning-specs-selector button {
    flex: 1 1 200px; /* Ensures even spacing and fixed base size */
    min-width: 200px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    appearance: none;
    width: 100%; /* Ensure full width within flex item */
}

#tuning-specs-selector select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

#tuning-specs-selector select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

#tuning-specs-selector button {
    padding: 10px 16px;
    width: 100%;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

#tuning-specs-selector button:hover {
    background-color: #005f8d;
}

#tuning-specs-wrapper {
    margin-left: 10px;
    margin-right: 10px;
}

#tuning-specs-wrapper span {
    display: block;
}

#tuning-specs-wrapper .info table {
    border-collapse: separate; /* Important: enables spacing */
    border-spacing: 10px;      /* Horizontal and vertical gaps */
    margin-left: -10px;
}

#tuning-specs-wrapper .info table tr td:nth-child(2) {
    font-weight: bold;
}

#tuning-specs-wrapper .section-row {
    padding: 48px 0;
    border-bottom: 1px solid #ccc;
}

#tuning-specs-wrapper .vehicle-info {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

#tuning-specs-wrapper .brand-logo img {
    width: 250px;
}

#tuning-specs-wrapper .vehicle-name {
    text-transform: capitalize !important;
    font-size: 2rem;
}

#tuning-specs-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

#tuning-specs-wrapper .spec-list-wrapper {
    display: flex;
    flex-direction: row;
    gap: 5rem;
    justify-content: space-between;
}

#tuning-specs-wrapper .spec-list {
    flex: 1;
}

#tuning-specs-wrapper .spec-chart {
    flex: 1;
    height: 330px;
}


#tuning-specs-wrapper .spec-item {
    display: grid;
    grid-template-columns: 150px 1fr; /* Adjust 150px as needed */
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

#tuning-specs-wrapper .spec-item .label {
    font-weight: normal;
}

#tuning-specs-wrapper .spec-item .value {
    font-weight: bold;
    font-size: 1.4rem;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    float: left;
}

#tuning-specs-wrapper .spec-item.diff .value {
    background-color: #C0E4C0;
}

#tuning-specs-wrapper .engine-spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for 4 items per row */
    gap: 1rem 2rem; /* row and column gaps */
    margin-bottom: 2rem;
}

#tuning-specs-wrapper .engine-spec-grid .spec-item {
    display: flex;
    flex-direction: row;
}

#tuning-specs-wrapper .engine-spec-grid .label {
    font-weight: normal;
}

#tuning-specs-wrapper .engine-spec-grid .value {
    font-weight: bold;
}

#tuning-specs-selector .powered-by,
#tuning-specs-wrapper .powered-by {
    width: 100%;
    display:flex;
    gap: 4px;
    font-size: 12px;
    justify-content: flex-end;
}

#tuning-specs-selector .powered-by a,
#tuning-specs-wrapper .powered-by a {
    color: #7B3AEC;
}



@media only screen and (max-width: 992px) {
    #tuning-specs-selector .wrapper {
        width: 100%;
        flex-direction: column;
    }

    #tuning-specs-selector select, #tuning-specs-selector button {
        flex: 1 1;
        min-width: 100%;
    }

    #tuning-specs-wrapper .engine-spec-grid {
        grid-template-columns: repeat(2, 1fr); /* 4 columns for 4 items per row */
    }
    #tuning-specs-wrapper .spec-list-wrapper {
        flex-direction: column;
    }
}

@media only screen and (max-width: 768px) {
    #tuning-specs-wrapper .vehicle-info
    {
        flex-direction: column;
    }

    #tuning-specs-wrapper .spec-list-wrapper {
        flex-direction: column;
    }

    #tuning-specs-wrapper .spec-list,
    #tuning-specs-wrapper .spec-chart {
        width: 100%;
    }

    #tuning-specs-wrapper .spec-item {
        grid-template-columns: 1fr; /* Stack items on smaller screens */
    }
}


@media only screen and (max-width: 480px) {
    #tuning-specs-wrapper .brand-logo
    {
        display: flex;
        justify-content: center;
    }

    #tuning-specs-wrapper .engine-spec-grid {
        grid-template-columns: repeat(1, 1fr); /* 4 columns for 4 items per row */
    }
}
