﻿#ToCompareBanner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

    #ToCompareBanner > div:first-of-type {
        width: 76%;
        height: 270px;
        display: flex;
        justify-content: center;
        gap: 1rem;
        background: #153655;
        overflow: hidden;
        align-items: center;
        position: absolute;
        top: 76px;
        border-radius: 0;
        padding: 0 2rem;
    }

#CompareBtn {
    position: absolute;
    z-index: 3;
    right: -16px;
    bottom: 50%;
    background: var(--saa-yellow);
    width: 36px;
    height: 62%;
    border-radius: 14px;
    border: 2px solid #eaf0f6;
    transform: translateY(50%);
    cursor: pointer;
    color: #fff;
}

    #CompareBtn > i {
    }

#Bg {
    background: var(--saa-blue);
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 346px;
}

#ToCompareBanner > div:first-of-type::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 68px;
    height: 842px;
    width: 80%;
    background: #1d5181;
    border: 50px solid #19446e;
    outline: 50px solid #183e63;
    border-radius: 50%;
    z-index: 1;
    transition: 500ms ease, border 300ms ease;
}

#ToCompareBanner > div:first-of-type > img {
    z-index: 2;
}

    /*	#ToCompareBanner > div:first-of-type > img:last-of-type {
		display: none;
	}*/

    #ToCompareBanner > div:first-of-type > img.crack {
        height: 156px;
        filter: brightness(0) invert(1);
        width: 25px;
        position: relative;
        top: -15px;
    }

#ToCompareBanner > div:first-of-type > span {
    height: 90px;
    min-width: 1px;
    max-width: 1px;
    position: relative;
    /*top: 46px;*/
    background: #7ea1b7;
    z-index: 10;
    /*margin: 0 17px;*/
    margin: 0 10px;
}

    #ToCompareBanner > div:first-of-type > span:last-of-type {
        display: none;
    }

#ToCompareBanner > div:first-of-type > img:last-of-type {
    /*transform: rotateY(180deg);*/
}

#ToCompareBanner > div:first-of-type > img:not(.crack) {
    height: 50%;
    object-fit: contain;
    width: 28%;
    position: relative;
    top: -12px;
}


.newCarSelect {
    text-align: center;
    background: transparent;
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #8080801c;
    color: var(--saa-blue);
    outline: none;
}

.newCarDiv {
    position: relative;
    width: 40%;
    background: #fff;
    border: 4px solid #e9f0f6;
    border-radius: 1rem;
    margin: 0 5px;
}
/*#region VehicleFeatures*/
#VehicleFeatures {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    padding: 2rem 0;
    margin-top: 97px;
}

    #VehicleFeaturesFirst {
        position: sticky;
        width: calc(100% - 5rem);
        display: flex;
        align-items: center;
        border-radius: 1rem;
        border: 5px solid #eaf0f6;
        padding: 1rem 2rem;
        background: white;
        z-index: 50;
        height: max-content;
        transition: 300ms;
        top: 6px;
    }


        #VehicleFeaturesFirst > p {
            position: relative;
            width: 50%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

            #VehicleFeaturesFirst > p > i {
                position: absolute;
                color: #ff5454;
                font-size: 17px;
                padding: 5px;
                cursor: pointer;
                top: -5px;
                left: -19px;
            }

        #VehicleFeaturesFirst > span {
            min-width: 2px;
            height: 100%;
            background: #f2f2f2;
            margin: 0 26px;
        }

        #VehicleFeaturesFirst > p > span {
            font-size: 17px;
            color: var(--saa-blue);
            font-weight: bold;
            margin-bottom: 5px;
        }

        #VehicleFeaturesFirst > p > b {
            margin-bottom: 5px;
            font-size: 24px;
            color: var(--saa-blue);
            text-align: center;
            font-weight: 500;
        }

        #VehicleFeaturesFirst > p > small:first-of-type {
            font-size: 13px;
            color: var(--saa-blue);
            text-align: center;
        }

        #VehicleFeaturesFirst > p > small:last-of-type {
            font-size: 18px;
            color: var(--saa-blue);
            text-align: center;
            font-weight: 600;
            margin-top: 5px;
        }

        #VehicleFeaturesFirst > p.selectBoxContainer {
            gap: 0;
        }

            #VehicleFeaturesFirst > p.selectBoxContainer > select {
                text-align: center;
                background: transparent;
                width: 60%;
                padding: 10px;
                border: none;
                border-bottom: 1px solid #8080801c !important;
                color: var(--saa-blue);
                outline: none;
                border: 4px solid #e9f0f6;
                border-radius: 1rem;
            }

                #VehicleFeaturesFirst > p.selectBoxContainer > select:first-of-type {
                    border-bottom-right-radius: 0;
                    border-bottom-left-radius: 0;
                    border-bottom: 0;
                }

                #VehicleFeaturesFirst > p.selectBoxContainer > select:nth-of-type(2) {
                    border-radius: 0;
                    border-top: 0;
                    border-bottom: 0;
                }

                #VehicleFeaturesFirst > p.selectBoxContainer > select:last-of-type {
                    border-top-right-radius: 0;
                    border-top-left-radius: 0;
                    border-top: 0;
                    border-bottom: 4px solid #e9f0f6 !important;
                }



        #VehicleFeaturesFirst.active {
            width: calc(100% - -6rem);
            position: sticky;
            top: 0;
            height: 80px;
            padding-right: 0;
            padding-left: 0;
        }

            #VehicleFeaturesFirst.active > p > span {
                font-size: 14px;
            }

            #VehicleFeaturesFirst.active > p > b {
                font-size: 19px;
            }

            #VehicleFeaturesFirst.active > p > small:last-of-type {
                font-size: 15px;
            }

            #VehicleFeaturesFirst.active > p > i {
                font-size: 13px;
                left: 7px;
            }

            #VehicleFeaturesFirst.active > p {
                gap: 3px;
            }

            #VehicleFeaturesFirst.active > span {
                margin: 0 0;
            }

    #VehicleFeatures > div:last-of-type {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

        #VehicleFeatures > div:last-of-type > h5 {
            color: var(--saa-blue);
            font-weight: 600;
            font-size: 30px;
        }

        #VehicleFeatures > div:last-of-type > h3 {
            width: 100%;
        }

        #VehicleFeatures > div:last-of-type table {
            /*table-layout: fixed;*/
            width: 100%;
            border-collapse: collapse;
        }

            #VehicleFeatures > div:last-of-type table > tbody > tr > td:first-of-type {
                width: 24%;
            }

            #VehicleFeatures > div:last-of-type table > tbody > tr > td {
                color: var(--saa-blue);
                padding: 8px;
                border: 1px solid #8080805e;
                background: #fff;
                margin: 0;
                font-size: 16px;
                font-weight: 500;
                width: 200px;
                min-width: 200px;
            }

                #VehicleFeatures > div:last-of-type table > tbody > tr > td > div {
                    position: relative;
                    display: inline-block;
                    cursor: pointer;
                }

                    #VehicleFeatures > div:last-of-type table > tbody > tr > td > div:hover {
                        text-shadow: 0px 0px 0px var(--saa-blue);
                    }

                    #VehicleFeatures > div:last-of-type table > tbody > tr > td > div > span {
                        display: none;
                        width: 25vw;
                        position: absolute;
                        z-index: 99;
                        top: 20px;
                        right: 0;
                        background: var(--saa-yellow);
                        padding: 10px;
                    }

                    #VehicleFeatures > div:last-of-type table > tbody > tr > td > div:hover > span {
                        display: block;
                    }

            #VehicleFeatures > div:last-of-type table > tbody > tr.active > td {
                background: #ffedbf;
            }
/*#endregion */



#CompareBox {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}




.contentContainer {
    width: 100%;
    border-radius: 10px;
    padding: 2rem;
    background: #fafbfd;
}

    .contentContainer > h2 {
        text-align: center;
        margin: 3rem 0 1rem 0;
        font-size: 17px;
    }

        .contentContainer > h2:first-of-type {
            margin: 0 0 1rem 0;
        }

.content2BoxContainer {
    width: 100%;
}

.content2Box {
    display: flex;
    gap: 4px;
    margin-bottom: 0.6rem;
    width: 100%;
}

    .content2Box > div {
        width: 40%;
        background: #e0ebf4;
        padding: 1rem;
        border-radius: 7px;
        min-width: 180px;
    }

        .content2Box > div:first-of-type {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

        .content2Box > div:last-of-type {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }

        .content2Box > div > ul {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
        }

            .content2Box > div > ul > li {
                font-size: 13px;
                color: var(--saa-blue);
                font-weight: 500;
            }

        .content2Box > div.title {
            width: 20%;
            min-width: 95px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #d6e0e9;
            text-align: center;
            border-radius: 0;
            font-size: 13px;
            color: var(--saa-blue);
            font-weight: 600;
        }


#CompareBox > h2:not(h2:first-of-type) {
    margin-top: 3rem;
}

#CompareBox > h2 {
    font-size: 30px;
}


.model2 > div:first-of-type > img:last-of-type,
.model2 > div:first-of-type > span:nth-of-type(2),
.model2 > div:first-of-type > span:nth-of-type(3),
.model2 #VehicleFeaturesFirst > p.selectBoxContainer:last-of-type,
.model2 #VehicleFeaturesFirst > p > i,
.model2 .span {
    display: none !important;
}

.model2 > div:first-of-type > img:not(.crack) {
    width: 46% !important;
}

.content5Box > div:nth-of-type(3) li{
    text-align:center;
}
.content5Box > div:nth-of-type(5) li,
.content3Box > div:nth-of-type(3) li {
    text-align: end;
}

@media(max-width:1400px) {
    /*#region CompareBox*/
    #ToCompare > div > a > div:first-child > :is(img:first-of-type,img:last-of-type) {
        width: 200px;
    }

    #ToCompare > div > a:hover > div:first-child:after {
        top: 52px;
        border: 25px solid #19446e;
        outline: 25px solid #183e63;
    }

    #ToCompare > div > a > div:last-child > div > div > span {
        font-size: 16px;
    }

    #ToCompare > div > a > div:last-child > div > div > b {
        font-size: 20px;
    }
    /*#endregion */



}

@media(max-width:1200px) {

    /*#region CompareBox */

    #ToCompare > div > a > div:first-child > :is(img:first-of-type,img:last-of-type) {
        width: 300px;
    }
    /*#endregion */
    #ToCompareBanner > div:first-of-type {
        width: 83%;
    }

        #ToCompareBanner > div:first-of-type > img:not(.crack) {
            width: 31%;
        }

        #ToCompareBanner > div:first-of-type::after {
            top: 119px;
            height: 952px;
            width: 109%;
        }
}

@media(max-width:992px) {
    /*#region CompareBox*/
    #VehicleFeaturesFirst > p.selectBoxContainer > select {
        width: 100%;
    }

    #ToCompare > div > a > div:first-child > :is(img:first-of-type,img:last-of-type) {
        width: 255px;
    }

    /*.contentContainer {
		overflow-x: auto;
	}*/

    .contentContainer > h2:first-of-type {
        width: max-content;
        position: sticky;
        left: 0;
    }

    /*#endregion*/
    #VehicleFeaturesFirst.active {
        display: none;
    }
    #CompareBtn {
        display: none;
    }

}

@media(max-width:768px) {

    /*	#ToCompareBanner > div:first-of-type > img:nth-of-type(4),
	#ToCompareBanner > div:first-of-type > img:nth-of-type(5),
	#VehicleFeaturesFirst > p:last-of-type,
	#VehicleFeaturesFirst > span:last-of-type,*/
    /*.content2Box > div.title:nth-of-type(4),
	.content2Box > div:last-of-type {
		display: none;
	}
*/
    /*#region CompareBox */
    #ToCompare > div > a > div:first-child > :is(img:first-of-type,img:last-of-type) {
        width: 215px;
    }

    #ToCompareBanner > div:first-of-type > img:not(.crack) {
        width: 50%;
    }

    #VehicleFeaturesFirst {
        width: 91%;
    }

    /*#endregion*/
    #ToCompareBanner > div:first-of-type::after {
        top: 159px;
        height: 747px;
        width: 100%;
    }

    #VehicleFeatures > div:last-of-type {
        width: 80%;
    }

    #VehicleFeaturesFirst {
        position: relative;
    }
}

@media(max-width:650px) {
    .content2Box {
        justify-content: center;
    }
    .content2Box > div:not(.title) {
        width: 29%;
        min-width: 29%;
        max-width: 29%;
    }

    .content2Box > div.title {
        width: 20%;
        min-width: 20%;
        max-width: 20%;
    }
}

@media(max-width:576px) {
    /*#region CompareBox */

    #ToCompare > div {
        grid-template-columns: 1fr;
    }

        #ToCompare > div > a > div:first-child {
            height: 120px;
        }

        #ToCompare > div > a > div:last-child {
            padding: 2rem 0 1rem 0;
        }

        #ToCompare > div > a > div:first-child > :is(img:first-of-type,img:last-of-type) {
            width: 44%;
            top: 40px;
        }

        #ToCompare > div > a > div:last-child > div {
            flex-direction: column;
            gap: 15px;
            width: 80%;
            margin: auto;
        }

            #ToCompare > div > a > div:last-child > div > div:nth-child(2) {
                background: var(--saa-yellow);
                width: max-content;
            }

        #ToCompare > div > a:hover > div:first-child > img:last-of-type {
            transform: rotateY(180deg) scale(1);
            right: 0;
        }

        #ToCompare > div > a:hover > div:first-child > img:first-of-type {
            transform: scale(1);
            left: 0;
        }

        #ToCompare > div > a > div:first-child:after {
            top: 33px;
            left: 11%;
            height: 145px;
            width: 70%;
        }

        #ToCompare > div > a > div:last-child > div > div {
            width: 100%;
        }
    /*#endregion */

    #VehicleFeaturesFirst {
        padding: 1rem;
    }

        #VehicleFeaturesFirst > p > i {
            top: -9px;
            left: -12px;
        }

    #ToCompareBanner > div:first-of-type > img:not(.crack) {
        height: 30%;
        position: relative;
        top: 62px !important;
    }

    #VehicleFeatures {
        margin-top: 141px;
    }

    #ToCompareBanner > div:first-of-type > img:not(.crack) {
        top: 67px;
    }

    #ToCompareBanner > div:first-of-type > img.crack {
        position: relative;
        top: 40px;
        height: 100px;
    }

    h1 {
        font-size: 23px !important;
    }


    .contentContainer{
        padding:0;
    }
    #ToCompareBanner > div:first-of-type::after {
        display: none;
    }

    #ToCompareBanner > div:first-of-type > span {
        top: 69px;
        height: 48px;
    }
}
