/* Custom styles for Ad Types Template */


/*Ad Types page */
section.ja-adtypes-header-container {
    background-image: url(https://staging.juicyads.com/wp-content/uploads/2022/08/heroback.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.ja-adtypes-inner-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem;
    align-content: center;
}

.ja-adytpes-header-inner-wrapper {
    max-width: 1215px;
    margin: 0 auto;
}

.ja-adtypes-hero-content {
    display: grid;
    align-items: center;
    padding: 4rem 1rem;
    grid-template-columns: 1.5fr 2fr;
}
h1.ja-adtypes-hero {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    letter-spacing: .1rem;
}

h2.ja-adtypes-hero-h2 {
    color: white;
    font-size: 1.3rem;
    line-height: 2.5rem;
}


/* Tabs --------------------------------------------- */
/* Style the tab */
.typetab {
    float: left;
    width: 42%;
}

/* Style the buttons that are used to open the tab content */
.typetab button {
    padding: 22px 16px;
    width: 100%;
    border: none;
    outline: none;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
    background: none;
    font-size: 1.1rem;
    color: #00385D;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
    letter-spacing: .05rem;
}

/* Change background color of buttons on hover */
.typetab button:hover,
.typetab button:focus,
.typetab button:active {
    background-color: #00385D;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 7px #c5c5c5a3;
}

span.ja-ad-size-max {
    float: right;
    font-size: 13px;
    font-style: italic;
}

/* Create an active/current "tab button" class */
.typetab button.active {
    background-color: #00385D;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 7px #c5c5c5a3;
}
span.ja-adtypes-tab-title.active {
    color: white;
}

span.ja-adtypes-tab-title:hover,
span.ja-adtypes-tab-title:focus,
span.ja-adtypes-tab-title:active
{
    color: white;
}

/* Style the tab content */
.typetabcontent {
    float: left;
    padding: 4rem 1rem 2rem;
    width: 58%;
    border-left: none;
}

span.ja-adtypes-tab-description {
    line-height: 1.3rem;
    display: block;
    font-weight: 400;
    text-transform: none;
    font-size: .9rem;
    margin-top: 1rem;
}
img.ja-adtypes-onscreen-img {
    max-width: 100%;
    margin: 0 auto;
}

.ja-adtypes-tabs-pagination-links ul {
    background: #f7f7f7;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    width: fit-content;
    margin: 3rem auto 0;
    border-radius: 4px;
    color: #959595;
}

.ja-adtypes-tabs-pagination-links ul a {
    color: #bbbbbb;
}

span.pagination-active {
    color: #015084;
    font-weight: 600;
}

button.ja-page-link {
    background: transparent;
    border: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
}

.ja-adtypes-tab-page-dots ul {
    display: flex;
    grid-gap: 0.2rem;
    justify-content: center;
    margin: 1rem;
}

/* Ad Sizes section ------------------------------------ */
h2.ja-adtypes-ad-sizes-title {
    font-size: 2rem;
    font-weight: 700;
    color: #00385D;
    text-align: center;
    border-top: 1px solid #f1f3f4;
    padding: 2rem 1rem 1rem;
}

p.ja-adtypes-ad-sizes-description {
    font-size: 1.2rem;
    color: #00385D;
    text-align: center;
    line-height: 1.9rem;
    font-weight: 500;
    max-width: 50ch;
    display: flex;
    margin: 0 auto;
}
.ja-adtypes-ad-sizes {
    margin: 0 auto  3rem;
}
.ja-ad-sizes-tab-container {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    align-items: flex-start;
    position: relative;
}
h3.ja-ad-sizes-tab-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00385D;
    margin: 1rem 0;
}

button.adsizetablinks {
    background: transparent;
    border: 0;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
    margin-left: -0.3rem;
}

.adsizetab {
    display: flex;
    flex-direction: column;
}

button.adsizetablinks:hover,
button.adsizetablinks:focus,
button.adsizetablinks.active {
    background: #F6F6F6;
    padding: .5rem;
    border-radius: 4px;
}

button.adsizetablinks.active {
    background: #F6F6F6;
    padding: .5rem;
    border-radius: 4px;
    font-weight: 600;
}
.ja-ad-sizes-tab-content {
    position: sticky;
    top: 0;
    bottom: calc(100% - 930px);
    text-align: center;
    margin-top: 2rem;
}

img.ja-adsize-onscreen-img {
    margin: 0 auto -3rem;
}

h4.ja-ad-size-underimage-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #284b8a;
}

.footerbanner-container {
    background: rgb(241,104,37);
    background: linear-gradient(65deg, rgba(241,104,37,1) 0%, rgba(255,150,10,1) 100%);
}

.footerbanner-inner {
    display: flex;
    grid-gap: 2rem;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 0;
}

h2.footerbanner-title {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    line-height: 2.5rem;
    margin-bottom: 1rem;
}
p.footerbanner-subtitle {
    color: white;
    font-size: 1.2rem;
}
a.footerbanner-btn {
    font-weight: 600;
    background: white;
    color: #0e2238;
    padding: 1rem;
    border-radius: 4px;
    display: block;
    text-align: center;
}
.footerbanner-button {
    flex-basis: 33%;
}

a.footerbanner-btn:hover,
a.footerbanner-btn:focus {
    background: #ffffffab;
    color: #0e22387d;
}

.last-tabcontent {
    height: 50px;
}

/* Media queries --------------------------------- */
@media (max-width: 900px) {
    .ja-adtypes-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    img.ja-adtypes-hero-screens {
        max-width: 79%;
        margin: 0 auto;
    }
    h2.ja-adtypes-hero-h2 {
        max-width: 50ch;
        margin: 0 auto;
    }
}
@media (max-width: 830px) {
    .ja-adtypes-tabs-pagination-links ul {
        flex-wrap: wrap;
        line-height: 1.5rem;
    }
    h4.ja-ad-size-underimage-title {
        margin-top: 2rem;
    }
}
@media (max-width: 640px) {
    h2.ja-adtypes-hero-h2 {
        font-size: 1.2rem;
    }
    .typetabcontent {
        float: inherit;
        width: 100%;
    }
    .typetab {
        width: 100%;
    }
    .ja-adtypes-inner-wrapper {
        padding: 1rem;
    }
    .ja-ad-sizes-tab-container {
        grid-template-columns: 1fr;
    }
    .ja-ad-sizes-tab-content {
        margin-top: 0;
    }
    h4.ja-ad-size-underimage-title {
        margin-top: 0;
    }

    .footerbanner-inner {
        max-width: 32ch;
        flex-wrap: wrap;
        margin: 0 auto;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    .footerbanner-button {
        flex-basis: 100%;
    }
}
@media (max-width: 360px) {
    h2.ja-adtypes-hero-h2 {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    h1.ja-adtypes-hero {
        font-size: 3rem;
    }
}