/* keyframes for moving -- DO NOT ALTER -- */
@-webkit-keyframes kenburns-1 {
    0% {
        opacity: 1;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
    1.5625% {
        opacity: 1;
    }
    23.4375% {
        opacity: 1;
    }
    26.5625% {
        opacity: 0;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
    98.4375% {
        opacity: 0;
        -webkit-transform: scale(1.21176);
        transform: scale(1.21176);
    }
    100% {
        opacity: 1;
    }
}

@keyframes kenburns-1 {
    0% {
        opacity: 1;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
    1.5625% {
        opacity: 1;
    }
    23.4375% {
        opacity: 1;
    }
    26.5625% {
        opacity: 0;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
    98.4375% {
        opacity: 0;
        -webkit-transform: scale(1.21176);
        transform: scale(1.21176);
    }
    100% {
        opacity: 1;
    }
}

@-webkit-keyframes kenburns-2 {
    23.4375% {
        opacity: 1;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
    26.5625% {
        opacity: 1;
    }
    48.4375% {
        opacity: 1;
    }
    51.5625% {
        opacity: 0;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
}

@keyframes kenburns-2 {
    23.4375% {
        opacity: 1;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
    26.5625% {
        opacity: 1;
    }
    48.4375% {
        opacity: 1;
    }
    51.5625% {
        opacity: 0;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
}

@-webkit-keyframes kenburns-3 {
    48.4375% {
        opacity: 1;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
    51.5625% {
        opacity: 1;
    }
    73.4375% {
        opacity: 1;
    }
    76.5625% {
        opacity: 0;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
}

@keyframes kenburns-3 {
    48.4375% {
        opacity: 1;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
    51.5625% {
        opacity: 1;
    }
    73.4375% {
        opacity: 1;
    }
    76.5625% {
        opacity: 0;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
}

@-webkit-keyframes kenburns-4 {
    73.4375% {
        opacity: 1;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
    76.5625% {
        opacity: 1;
    }
    98.4375% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes kenburns-4 {
    73.4375% {
        opacity: 1;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
    76.5625% {
        opacity: 1;
    }
    98.4375% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

/* gradient overlay applied to SS */
.cw-overlay {
    overflow: hidden;
    height: 100%;
    width: 100%;
    background:
        -webkit-gradient(linear, left top, left bottom,
        from(rgba(0, 0, 0, 0)),
        color-stop(35%, rgba(0, 0, 0, 0)),
        color-stop(61%, rgba(0, 0, 0, 0.4)),
        to(rgba(0, 0, 0, 1)));
    background:
        linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0.4) 61%,
        rgba(0, 0, 0, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#000000', GradientType=0);
}

#cw-mainSlideshow {
    position: relative;
    height: 400px;
    width: 100%;
    overflow: hidden;
}

#cw-mainSlideshow .slideshow-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background: no-repeat 50% 50%;
    background-size: cover;
    -webkit-animation-name: kenburns;
    animation-name: kenburns;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-duration: 16s;
    animation-duration: 16s;
    opacity: 1;
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

#cw-mainSlideshow .slideshow-image:nth-child(1) {
    -webkit-animation-name: kenburns-1;
    animation-name: kenburns-1;
    z-index: 3;
}

#cw-mainSlideshow .slideshow-image:nth-child(2) {
    -webkit-animation-name: kenburns-2;
    animation-name: kenburns-2;
    z-index: 2;
}

#cw-mainSlideshow .slideshow-image:nth-child(3) {
    -webkit-animation-name: kenburns-3;
    animation-name: kenburns-3;
    z-index: 1;
}

#cw-mainSlideshow .slideshow-image:nth-child(4) {
    -webkit-animation-name: kenburns-4;
    animation-name: kenburns-4;
    z-index: 0;
}

.cw-ctaBtns {
    position: absolute;
    bottom: 12%;
    z-index: 99;
    width: 100%;
}

.cw-ctaBtn {
    display: block;
    margin: .4em auto;
    width: 75%;
    font-size: 1.2em;
    font-weight: 600;
    text-transform: uppercase;
    padding: .5em 10%;
    border-radius: 2px 20px 2px 20px;
    border: 3px solid var(--color-theme-primary);
    color: #FFFFFF !important;
    -webkit-transition: .2s;
    -webkit-transition: .4s;
    transition: .4s;
}

.cw-ctaBtn:hover {
    background-color: var(--color-theme-primary);
    color: #FFFFFF !important;
    border-radius: 15px 2px 15px 2px;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

/* FINANCE SECTION */
#cw-financeSection {
    padding: 4em 0;
    background-color: var(--color-theme-border);
}

.cw-applyWrapper {
    margin-top: 1.8em;
}

.cw-applyBtn {
    border-radius: 2px 20px 2px 20px;
    font-size: 2em;
    padding: .5em 1.4em;
    -webkit-transition: .2s;
    transition: .2s;
    -webkit-animation: glowing 1500ms infinite;
    animation: glowing 1500ms infinite;
}

.cw-applyBtn:hover {
    background: var(--color-theme-primary);
    border-radius: 15px 2px 15px 2px;
    color: #FFFFFF !important;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-animation: none;
    animation: none;
}

.cw-SpecialBtn p {
    color: var(--color-theme-secondary);
    font-size: 1.5em;
    font-weight: 900;
}

/* ANIMATIONS FOR THE APPLY TODAY BUTTON */
@-webkit-keyframes glowing {
    0% {
        border-color: var(--color-theme-primary);
        -webkit-box-shadow: 0 0 6px var(--color-theme-primary);
    }
    50% {
        border-color: var(--color-theme-primary);
        -webkit-box-shadow: 0 0 13px var(--color-theme-primary);
    }
    100% {
        border-color: var(--color-theme-primary);
        -webkit-box-shadow: 0 0 6px var(--color-theme-primary);
    }
}

@keyframes glowing {
    0% {
        border-color: var(--color-theme-primary);
        -webkit-box-shadow: 0 0 6px var(--color-theme-primary);
        box-shadow: 0 0 6px var(--color-theme-primary);
    }
    50% {
        border-color: var(--color-theme-primary);
        -webkit-box-shadow: 0 0 13px var(--color-theme-primary);
        box-shadow: 0 0 13px var(--color-theme-primary);
    }
    100% {
        border-color: var(--color-theme-primary);
        -webkit-box-shadow: 0 0 6px var(--color-theme-primary);
        box-shadow: 0 0 6px var(--color-theme-primary);
    }
}

#cw-carfinder {
    text-align: center;
    background-color: var(--color-theme-primary);
    padding: 1.5em 0 3em 0;
    color: #FFFFFF;
}

#cw-carfinder span {
    font-size: 1.5em;
}

.cw-carfinderText {
    font-size: 1.2em !important;
    padding-left: 1em;
}

.cw-carfinderBtn {
    border: 2px solid #FFFFFF;
    border-radius: 2px 15px 1px 15px;
    color: #FFFFFF !important;
    padding: .5em;
    font-size: 1.5em;
    vertical-align: bottom;
    -webkit-transition: .2s;
    transition: .2s;
}

.cw-carfinderBtn:hover {
    border-color: var(--color-theme-primary);
    border-radius: 15px 2px 15px 2px;
    background-color: #FFFFFF;
    color: var(--color-theme-primary) !important;
    font-weight: bold;
}

#cw-phone {
    background: var(--color-theme-primary);
}

#cw-phone h6 {
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.5em;
    line-height: 1em;
}

#cw-phone p,
#cw-phone a:link {
    color: #FFFFFF;
    font-size: 1.2em;
    line-height: 1.6em;
}

@media (min-width: 440px) {
    .cw-ctaBtn {
        font-size: 1.4em;
        padding: 1.2em 10%;
    }
    .cw-SpecialBtn p {
        font-size: 2.2em;
    }
}

@media (min-width: 768px) {
    #cw-mainSlideshow {
        height: 600px;
    }
    .cw-SpecialBtn p {
        font-size: 2.8em;
    }
    #cw-phone h6 {
        margin-bottom: -.2em;
    }
}

@media (min-width: 992px) {
    #cw-carfinder {
        padding: 2.5em 0 1.5em 0;
    }
}

@media (max-width: 768px) {
    .cw-contactBtn {
        margin-top: 1.2em;
    }
}

/* ----- Pop Up --------*/
@media (min-width: 576px) {
    .modal-dialog {
        max-width: 60%;
    }
}

.cw-popup .modal-header {
    background: var(--color-theme-primary);
}

.cw-popup .modal-header .modal-title {
    color: #FFFFFF;
    text-shadow: 0px 0px 2px #000000, 1px 1px 2px #000000;
    white-space: normal;
    word-break: break-word;
    font-size: 170%;
    padding-left: .5em;
}

@media (min-width: 992px) {
    .cw-popup .modal-header .modal-title {
        font-size: 230%;
    }
}

.cw-popup .modal-body {
    position: relative;
    background-image: url("https://cdn.powersports.com/cdn-cgi/image/h=1440,w=1920/87380D77CAA59C0B299F7F9BAB094143.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 2.5rem 0;
    container-type: inline-size;
}

/* Square burst: the star art is centered on the text, and all text scales with the burst (cqw) */
.cw-popup .modal-body .cw-popup-burst {
    position: relative;
    z-index: 0;
    --cw-burst-size: min(440px, calc(100cqw - 2rem));
    container-type: inline-size;
    width: var(--cw-burst-size);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--cw-burst-size) * .17);
    text-align: center;
}

.cw-popup .cw-popup-burst:before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url(https://cdn05.carsforsale.com/26ae280fc4a7059a15def07a6a99b2d4/26ae280fc4a7059a15def07a6a99b2d4.jpg?width=1920&height=1440&format=original&sig=745d0c96f7391fb6);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    animation-name: spin;
    animation-duration: 12s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cw-popup .modal-body .cw-popup-burst p {
    width: 100%;
    margin: 0;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0px 0px 2px #000000, 1px 1px 2px #000000;
}

.cw-popup .modal-body .cw-popup-burst p span {
    display: block;
}

.cw-popup .modal-body .cw-popup-burst .cw-popup-headline {
    font-family: Oswald, sans-serif;
}

.cw-popup .modal-body .cw-popup-burst .cw-popup-kicker {
    font-size: 8cqw;
    letter-spacing: .06em;
}

.cw-popup .modal-body .cw-popup-burst .cw-popup-big {
    font-size: 13cqw;
    line-height: 1.05;
}

.cw-popup .modal-body .cw-popup-burst .cw-popup-amp {
    font-size: 8cqw;
    line-height: 1.3;
}

.cw-popup .modal-body .cw-popup-burst .cw-popup-big + .cw-popup-amp + .cw-popup-big {
    font-size: 10.5cqw;
}

.cw-popup .modal-body .cw-popup-burst .cw-popup-sub {
    margin-top: 3cqw;
    font-size: 5.2cqw;
}

.cw-popup .modal-body .cw-popup-burst .cw-popup-rto {
    width: auto;
    margin-top: 3cqw;
    padding: 1.2cqw 3.6cqw;
    font-size: 5.2cqw;
    background: var(--color-theme-primary);
    border: 2px solid #FFFFFF;
    border-radius: 50em;
    text-shadow: none;
}
