* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #242729;
}

.divider{
    height: 1px;
    background-color: rgb(128, 128, 128);
    border-color: rgb(128, 128, 128);
}

.car-details {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    align-items: center;
    width: 70%;
    margin: 0 auto;
}

.car-gallery {
    width: 60%;
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.main-image{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    max-width: 700px;
    height: 700px;
    border-radius: 5px;
    object-fit: cover;
}

.image-slider {
    display: flex;
    align-items: center;
    margin-top: 10px;
    position: relative;
    max-width: 700px;
}

.thumbnail-container {
    display: flex;
    overflow-x: auto;
    margin-top: 10px;
}

.thumbnail-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.thumbnail-container img {
    width: 100px;
    height: 70px;
    margin-right: 5px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail-wrapper img:hover, 
.thumbnail-wrapper img.active {
    border-color: #000; 
}

.right-side{
    display: flex; 
    flex-direction: column; 
    align-items: center;
    gap: 20px;
    width: 35%;
}

.car-info {
    width: 100%;
    padding: 20px;
    background-color: #181a1b;
    border-radius: 5px;
}

.car-price {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.car-specs {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    color: #b6b6b6;
}

.car-specs td {
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

.description {
    padding: 20px;
    background-color: #181a1b;
}

.description-info {
    background-color: #242729;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content:center;
    padding: 20px;
    align-items: center;
    width: 55%;
    margin: 0 auto;
}

.description-info-2{
    margin-top: 20px;
}

.oprema-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px; 
    color: #b6b6b6;
    text-align: left;
    width: 100%;
}

.description-info h3 {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    padding-bottom: 20px;
}

.description-info p {
    color: #b6b6b6;
}

.review {
    padding: 20px;
    background-color:#242729;
}

.review-container{
    background-color: #242729;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; 
    padding: 20px;
    align-items: flex-start; 
    width: 70%;
    margin: 0 auto;
}

.review-box {
    background-color: #181a1b;
    color: white;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    align-items: center;
    width: calc(50% - 20px);
    margin: 10px;
}

.review-text{
    color: #b6b6b6;
}

.review-box p {
    margin: 5px 0;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
    margin-top: 10px;
}

.add-review-btn {
    background-color: #00b1dd;
    color: black;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.add-review-btn:hover {
    background-color: #0089a9;
    transform: translateY(-2px);
}

.add-review-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fa{
    color: #00b1dd;
}

@media (max-width: 600px) {
    .car-details{
        display: flex;
        flex-direction: column;
        width: 95%;
        margin: 0 auto;
        padding: 10px 0 20px 0;
    }
    .car-gallery{
        width: 100%;
    }
    .main-image{
        width: 100%;
    }
    .main-image img {
        height: auto; 
        width: 100%;
    }
    .image-slider{
        width: 100%;
        max-width: 700px;
        margin-top: 0;
    }
    /*  */
    .right-side{
        margin-top: 20px;
        width: 100%;
    }

    .button-container{
        margin: 0;
        padding: 0;
    }

    .add-review-btn{
        font-size: 19px;
    }

    .description{
        padding: 20px 0 20px 0;
    }

    .description-info{
        width: 95%;
        
    }

    .oprema-list{
        grid-template-columns: repeat(2, 1fr); 
    }

    /*  */

    .review-container{
        flex-wrap: nowrap;
        flex-direction: column;
        width: 100%;
        padding-top: 10px;
    }
    .review-box {
        width: 100%;
        margin: 10px 0;
    }

}

@media (min-width: 601px) and (max-width: 900px) {
    .car-details{
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0 auto;
    }
    .car-gallery{
        width: 90%;
    }
    .main-image{
        width: 100%;
    }
    .main-image img {
        height: 600px; 
        object-fit: cover; 
        max-width: 900px;
    }
    .image-slider{
        width: 100%;
        max-width: 900px;
    }
    /*  */
    .right-side{
        margin-top: 20px;
        width: 90%;
    }

    .button-container{
        margin: 0;
        padding: 0;
    }

    .add-review-btn{
        font-size: 19px;
    }

    .description-info{
        width: 90%;
    }

    .oprema-list{
        grid-template-columns: repeat(3, 1fr); 
    }

    /*  */

    .review-container{
        flex-wrap: nowrap;
        flex-direction: column;
        width: 100%;
        padding-top: 10px;
    }
    .review-box {
        width: 90%;
        margin: 10px auto;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    body{
        overflow-x: hidden;
    }
    .car-details{
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0 auto;
    }
    .car-gallery{
        width: 100%;
    }
    .main-image{
        width: 100%;
    }
    .main-image img {
        height: 600px; 
        object-fit: cover; 
        max-width: 900px;
        width: 80%;
    }
    .image-slider{
        width: 80%;
        max-width: 900px;
    }
    /*  */
    .right-side{
        margin-top: 20px;
        width: 90%;
    }

    .button-container{
        margin: 0;
        padding: 0;
    }

    .add-review-btn{
        font-size: 19px;
    }

    .description-info{
        width: 90%;
    }

    /*  */

    .review-container{
        display: flex;
        flex-wrap: wrap;
        width: 90%;
    }

    .review-box {
        width: calc(50% - 20px);
        margin: 10px;
    }
}

@media (min-width: 1201px) and (max-width: 1500px) {
    .car-details{
        width: 85%;
    }
    
    .description-info{
        width: 70%;
    }
}