* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.car-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 231px;
}

.car-image {
    width: 565px;
    height: auto;
    transition: opacity 1.2s ease-in-out;
}

.color-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: white;
    padding: 10px 0px;
}

.color-option {
    width: 30px;
    height: 30px;

    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ff1010;
}

.color-option:hover {
    border: 2px solid black;
}

.car-dtails-hro {
    background-image: url(../images/car-dtails-bg-dec.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 580px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;

}

.car-dtails-hro-comet {
    background-image: url(../images/comet-car-dtails-bg-dec.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 580px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.car-dtails-hro-gloster {
    background-image: url(../images/gloster-car-dtails-bg-dec.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 580px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.csrcon {
    margin-top: 299px;
}

.car-dtails-hro-zsev {
    background-image: url(../images/mg-zs-ev-bg-dec.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 580px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.car-dtails-hro-hector {
    background-image: url(../images/hector-dtails-ev-bg-dec.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 580px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.car-dtails-hro-astor {
    background-image: url(../images/astor-car-dtails-bg-dec.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 580px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.nav-tabs .nav-link {
    font-size: 18px;
    font-weight: bold;
    color: black;
}

.nav-tabs .nav-link.active {
    background-color: black;
    color: white;
}

.main-image-container {
    position: relative;
    max-width: 600px;
}

.main-image {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.fullscreen-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.thumbnails {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 15px 0px;
}

.thumbnail {
    width: 25%;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border: 2px solid black;
}

.description {
    text-align: left;
    margin-top: 10px;
    color: black;
}

.car-d-main {
    background-color: white;
    padding-bottom: 20px;
    padding-top: 30px;
    margin-top: 55px;
}

.main-im-tab {
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.main-im-tab p {
    color: black;
}

.right-side-co {
    width: 50%;
    padding: 10px;

}

.nav-link.active {
    color: #ffffff !important;
    background-color: #ff0000 !important;

}

.nav-tabs .nav-link {
    font-size: 18px;
    font-weight: bold;
    color: black;
    border: .1px solid #d3d3d3 !important;
    border-radius: 0px !important;
    margin: 4px;

}

.justify-content-center {
    justify-content: center !important;
    padding-bottom: 6px !important;
}

.nav-tabs .nav-link:hover {
    color: #000000 !important;

}

.hed {
    text-align: center;
    margin: 30px 0px;
    margin-bottom: 50px;
}

.hed h3 {
    color: #d44848;
}

@media only screen and (max-width: 768px) {
    .car-dtails-hro {
        background-image: url(../images/car-dtails-ev-bg-phone.jpg);
        background-position: top;

    }

    .car-dtails-hro-comet {
        background-image: url(../images/comet-car-dtails-ev-bg-phone\ \(2\).jpg);

        background-position: top;
    }

    .car-dtails-hro-gloster {
        background-image: url(../images/gloster-car-dtails-ev-bg-phone.jpg);
        background-position: top;

    }

    .car-dtails-hro-zsev {
        background-image: url(../images/mg-zs-ev-bg-phone.jpg);
        background-position: top;
    }

    .car-dtails-hro-hector {
        background-image: url(../images/hector-dtails-ev-bg-phone.jpg);
        background-position: top;
    }

    .car-dtails-hro-astor {
        background-image: url(../images/astor-dtails-ev-bg-phone.png);
        background-position: top;
    }

    .car-container {
        position: relative;
        display: flex;
        justify-content: center;
        margin-top: 0;
    }

    .color-options {
        background-color: transparent;
    }

    .car-image {
        width: 353px;

    }

    .main-im-tab {
        display: flex;
        align-items: start;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .thumbnails {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin: 15px 0px;
        flex-wrap: wrap;
    }

    .thumbnail {
        width: 30%;
    }

    .right-side-co {
        width: 100%;
        padding: 10px;
    }

    .car-d-main {
        background-color: white;
        padding-bottom: 20px;
        padding-top: 30px;
        margin-top: 0px;
    }

    
}

@media only screen and (max-width: 415px) {
    .car-dtails-hro-comet {
        height: 833px !important;
    }

    .nav-tabs .nav-item {
        flex-grow: 1;
    }

    .car-dtails-hro-astor {

        height: 660px;
    }
}