/* 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: 5rem 0;
}

.cw-popup .modal-body .cw-popup-burst {
    position: relative;
    z-index: 0;
    margin: 2em auto 4em auto;
}

.cw-popup .cw-popup-burst:before {
    content: "";
    position: absolute;
    width: 102%;
    height: 132%;
    top: 0%;
    left: 0%;
    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%;
    text-align: center;
    margin: .5em auto;
    font-size: 88%;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0px 0px 2px #000000, 1px 1px 2px #000000;
}

.cw-popup .modal-body .cw-popup-burst p span {
    display: block;
    font-size: 20px;
}

.cw-popup-red {
    text-align: center;
    color: var(--color-theme-primary);
    line-height: 60%;
    font-weight: 900;
    font-size: 420%;
    -webkit-text-stroke-width: .5px;
    -webkit-text-stroke-color: #000000;
}

.cw-popup .modal-body .cw-popup-burst b {
    font-size: 120%;
}

.cw-popup .modal-footer {
    background-color: var(--color-theme-secondary);
    padding-top: .7em !important;
}

@media (min-width: 440px) {
    .cw-popup .cw-popup-burst:before {
        width: 90%;
        left: 5%;
        height: 140%;
        top: -3px !important;
    }
    .cw-popup .modal-body .cw-popup-burst p {
        font-size: 15px;
    }

}

@media (min-width: 768px) {
    .cw-popup .modal-body .cw-popup-burst {
        margin: 2em 4rem 5em 4rem;
    }
    .cw-popup .modal-body .cw-popup-burst p span {
        font-size: 25px;
    }
}

@media (min-width: 992px) {
    .cw-popup .cw-popup-burst:before {
        width: 220%;
        height: 136%;
        left: -60%;
        top: -22px !important;
    }
    .cw-popup .modal-body .cw-popup-burst p {
        font-size: 20px;
    }
    .cw-popup .modal-body .cw-popup-burst {
        margin: 4em 8em 7em 8em;
    }
    .cw-popup .modal-body .cw-popup-burst p span {
            font-size: 30px;
    }
}

@media (min-width: 1200px) {
    .cw-popup .modal-body .cw-popup-burst p span {
            font-size: 40px;
    }
    .cw-popup .modal-body .cw-popup-burst {
        margin: 4em 9em 7em 9em;
    }
}

@media (min-width: 1600px) {
    .cw-popup .modal-body .cw-popup-burst p span {
            font-size: 40px;
    }
    .cw-popup .modal-body .cw-popup-burst {
        margin: 4em 16em 7em 16em;
    }
}