/* notebooks landing page styles.

   developer:   rmiske, tajudeen
   requires:    /notebooks/css/notebook-callouts.css.es,
                /common/framework/css/framework.es.css
   ========================================================================== */

@import url('https://www.wolframcdn.com/fonts/source-sans-pro/1.0/SourceSansPro-Regular.woff2');

:root {
    --mainColor: #3187B4;
    --subColor: #F57300;
    --blue1: #008BAD;
    --chevron: #F57300;
    --divider: #B7B7B7;
}


/* ==========================================================================
   setup the environment
   ========================================================================== */
html {
    font-family: 'Source Sans Pro', Arial, sans-serif;
}

main {
    text-wrap: balance;
    text-wrap-style: pretty;
}
main p {
    font-weight: 400;
    line-height: 1.875rem;
    margin: 0.3125rem 0 1rem;
    color: #535353;
}

noscript p {
    line-height: 1;
    margin: initial;
}

main .blue {
    color: var(--blue1); !important;
}

main .chevron {
    color: var(--chevron);
}

main h2 {
    color: var(--mainColor);
    font-size: 2.0625rem;
    font-weight: 400;
    letter-spacing: 0px;
    text-align: center;
    margin-bottom: 1.25rem;
}


/* ==========================================================================
   sections
   ========================================================================== */
header#hero,
section,
#cta {
    padding: 1.25rem 0 2.25rem;
    width: 100%;
}

div[id$="-content"], 
.features-intro {
    margin: 0 auto;
    max-width: 55rem;
    width: 100%;
    text-align: left;
}

div[id$="-content"] h2 {
    font-weight: 400;
    font-size: 2.1875rem;
    line-height: 1.5;
    margin-bottom: 0.3125rem;
}

div[id$="-content"] img,
div[id$="-content"] iframe {
    max-width: 100%;
}

/* ==========================================================================
   hero
   ========================================================================== */

header#hero {
    background: #fff;
    border: none;
    padding-top: 4.5rem;
    padding-bottom: 0;
}

#hero h1 {
    color: var(--mainColor);
    font-size: 3.125rem;
    font-weight: 600;
    letter-spacing: 0px;
    text-align: center;
}

#hero .tagline {
    color: #535353;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: -0.32px;
    text-align: center;
    line-height: 1.9;
    margin: 0;
    padding-bottom: 1.25rem;
}

#hero-pic {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 0;
}

#hero a.playbutton {
  background: #ed4800dd;
  border-radius: .75rem;
  color: #ffffff;
  display: inline-block;
  padding: 1rem 2rem;
  position: absolute;
}

#hero a.playbutton:hover, 
#hero a.playbutton:active {
  background: #ed4800;
  opacity: 1.0;
}

#hero a.playbutton::after {
  content: "";
  background: center url(../img/icon-play.svg) no-repeat;
  display: block;
  width: 30px;
  height: 40px;
  transform: scale(1.2,0.8);
}

/* ==========================================================================
   intro
   ========================================================================== */

section#intro {
    background: none;
    background-image: linear-gradient(180deg, #449bc9 0%, #3187B4 100%);
    border: none;
    padding: 1.5625rem 2rem 1rem 2rem;
}

#intro p {
    color: #fff;
    font-weight: 400;
    line-height: 1.667;
}

#intro p:first-child {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0px;
    margin-bottom: 0.625rem;
}

/* ==========================================================================
   why
   ========================================================================== */

.grid-columns { display: grid; }
.grid-columns.grid-c-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 5rem;
    max-width: 880px;
    margin: 0 auto;
}

#why-content .columns img { max-width: 250px; }

#why h3 {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0px;
    line-height: 25px;
    color: #333333;
    padding-top: 10px;
    padding-bottom:0;
}

section h3 + p {
    font-size: 0.875rem;
    color: #646464;
    font-weight: 400;
    line-height: 1.393;
    padding-top: 0;
    padding-bottom: 10px;
    margin-bottom: 0;
}

/* ==========================================================================
   Use Wolfram
   ========================================================================== */

#useWolfram h3,
#useWolfram p { 
    text-align: left; 
    font-size: 0.875rem;
}



.use_wolfram {
    display: flex;
    justify-content: space-between;
}
.use_wolfram .left, .use_wolfram .right {
    max-width: 250px;
    padding: 5px;
}
.use_wolfram .middle {
    width: 300px;
    position: relative;
}

.use_wolfram .middle img {
    position: absolute;
}

.use_wolfram .middle  img.before {
    right: 0;
    z-index: 2;
}

.use_wolfram .middle  img.before,
.use_wolfram .middle img.lap,
img.margin-b-1.hide__600,
img.margin-b-1.hide.display-b__600 {
    width: auto;  
}

.use_wolfram .middle  img.lap  {
    bottom: 0;
    left: 0;
    z-index: 0;
}

main .useWolfram-content h3 {
    font-weight: 600;
}

main .useWolfram-content p {
    font-weight: 400;
}

/* ==========================================================================
   Resources
   ========================================================================== */

#resources h3 {
    font-weight: 600;
    letter-spacing: 1.35;
    text-transform: none;
    font-size: 0.875rem;
    margin: 1rem 0 0;
}

#useWolfram h3 a,
#resources h3 a {
    color: #e45402;
    font-weight: 600;
}

#resources .two-columns p {
    font-size: 0.875rem;
    font-weight: 400;
}

.two-columns {
    max-width: 796px;
    justify-content: space-between;
    margin: 0 auto;
    gap: 0 10px;
}

.two-columns > * {
    flex: 1 1 461px;
}

.two-columns .left_col p, .two-columns .left_col h3 {
    max-width: 315px;
}

.two-columns .right_col p, .right_col .two-columns h3 {
    max-width: 377px;
}

#useWolfram h3 a:hover,
#resources h3 a:hover {
    color: #f49e2f;
}

/* ==========================================================================
   Features
   ========================================================================== */

.border-top-divider { border-top: 1px solid var(--divider); }

/* ==========================================================================
   notebooks:shared
   ========================================================================== */

#how-notebooks-work,
#features,
#resources
#why {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

#how-notebooks-work-content, 
#features-content {
    max-width: 100%;
    text-align: center;
}

.features-intro { 
    max-width:780px; 
    margin-left: auto;
    margin-right: auto;
}

.feature-container {
    display: inline-flex;
    margin-top: 1rem;
    max-width: 100%;
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
}

.feature-main-l, .feature-main-r {
    width: 15.4375rem;
    display: flex;
    flex-direction: column;
}

.feature-main-img {
    order: 2;
    position: relative;
    padding-right: 1.125rem;
    padding-left: 1.5rem;
    overflow: visible;
}
.feature-main-l {
    order: 1;
    align-items: flex-end;
}

.feature-main-r {
    order: 3;
    align-items: flex-start;
}

.feature-main-img .notebook-img { 
    border-radius: 14px;
    box-shadow: 0px 0px 1rem 0px rgba(0, 0, 0, 0.2);
    border: 1px solid #d1d1d1;
}

div.pod p {
    color: #333;
    font-size: 0.8125rem;
    line-height: 1.3;
    margin: 0;
}

div.pod hr {
    background: #e5e5e5;
    border: 0;
    height: 1px;
    margin: 0.5rem 0;
}

div.pod img {
    mar
    gin: 0;
}
div.pod p + img {
    margin-top: 0.625rem;
}

.wl-functions {
    font-variant: small-caps;
}

/* ==========================================================================
   Sliders
   ========================================================================== */

._slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto 3rem auto;
    width: 516px;
}
._slider-wrapper {
    margin: auto;
    height: auto;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    overflow: hidden;
    border-radius: 9px;
    width: 100%;
}

#work-3._slider-wrapper { padding-bottom: 79%; }
#work-2._slider-wrapper { padding-bottom: 58%; }
#work-1._slider-wrapper { padding-bottom: 54%; }
#feature-7._slider-wrapper { padding-bottom: 88%; }
#feature-6._slider-wrapper { padding-bottom: 78%; }
#feature-5._slider-wrapper { padding-bottom: 74%; }
#feature-4._slider-wrapper { padding-bottom: 55%; }
#feature-3._slider-wrapper { padding-bottom: 94%; }
#feature-2._slider-wrapper { padding-bottom: 71%; }
#feature-1._slider-wrapper { padding-bottom: 83.2%; }

._slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

._slider-wrapper ._bg,
._slide {
    position: absolute;
    border-radius: 9px;
    top: 0;
    left: 0;
}

._bg ._01, 
._bg ._02,
._bg ._03,
._bg ._04, {
    opacity: 0;
    transition: none;
}

._bg ._01.active, 
._bg ._02.active,
._bg ._03.active,
._bg ._04.active,
._slide.active {
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
}

._slider-wrapper ._bg  {
    z-index: 0;
}

._slide {
    opacity: 0;
    transition: all 0.5s ease-in-out;
    z-index: 2;
}

.slider-controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-controls {
    display: flex;
    align-items: center;
    width: 316px;
    justify-content: space-between !important;
    max-width: 100%;
    margin: 0 auto;
}

.slider-arrow {
    bottom: 0.5rem;
    width: 14px;
    height: 58px;
    cursor: pointer;
    color: #008BAD;
    font-size: 46px;
    position: relative;
    background: transparent;
    border: 0;
}

.slider-caption {
    color: #646464;
    font-size: 0.8215rem;
    text-align: center;
    margin: 0 10px;
    flex-grow: 1;
    font-weight: 400;
    max-width: 90%;
}

.slider-caption.single {
    text-align: center;
    margin: 1.5rem auto;
    width: 100%;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.slider-dots button {
    border: none;
    width: 6px;
    height: 6px;
    margin: 0 5px;
    border-radius: 50%;
    background: #B7C0C2;
    cursor: pointer;
}

.slider-dots button.active {
    background: #008BAD;
}

.slider-arrow:hover {
    color: #8EC2CF;
}

.slider-dots button:hover {
    background: #8EC2CF;
}

.background-video {
    height: auto;
    object-fit: cover;
    opacity: 0;
    width: 516px;
    max-width: 100%;
}


.video-wrapper-one,
.video-wrapper-two,
.video-wrapper-three {
    position: absolute;
    border-radius: 0;
    padding-right: 1.125rem;
    padding-left: 1.5rem;
    max-width: 100%;
    left: 0;
    right: 0;
}

.video-wrapper-one {
    top: 3.35%;
    width: 97.75%;
}

.video-wrapper-one .background-video {
    top: 0;
}

.video-wrapper-one .background-video,
.video-wrapper-two .background-video,
.video-wrapper-three .background-video {
    position: relative;
    left: 1px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.video-wrapper-one .background-video,
.video-wrapper-two .background-video,
.video-wrapper-three .background-video {
    border-radius: 0;
}

.video-wrapper-two {
    top: 17.1%;
    height: 17%;
    overflow: hidden;
    width: 97.75%
}
.video-wrapper-three {
    top: 72.0%;
    width: 97.75%;
}

/* ==========================================================================
   Header Sticky - 
   ========================================================================== */
#announce-stripe {
    background: #f86300;
    box-sizing: border-box;
    color: #fff;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    width: 100%;
}

#announce-stripe:hover {
    background: #f88900;
}

#announce-stripe a {
    align-items: center;
    color: #fff;
    display: grid;
    grid-template-columns: max-content;
    justify-items: center;
    justify-content: center;
    padding: 20px 60px 18px;
    text-decoration: none;
}

#announce-stripe a span::before {
    content: '';
    background: url(/common/images/icon-notebook-assistant.png) no-repeat;
    background-size: 30px auto;
    width: 30px;
    height: 30px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -1px;
    margin-right: 5px;
}

#announce-stripe a span::after {
    content: '\00BB';
    display: inline;
    margin-left: 2px;
}


/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */

/* styles for large screens (1200px)
   ========================================================================== */
@media all and (max-width: 1200px) {
    .feature-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* styles for medium screens (900px)
   ========================================================================== */
@media all and (max-width: 900px) {

    #features-wolfram-notebook-mobile,
    #how-notebooks-work-mobile {
        display: flex !important;
        justify-content: center !important;
        text-align: center;
        flex-direction: column;
    }
    .use_wolfram {
        display: flex !important;
    }
    .use_wolfram .left, .use_wolfram .right {
        max-width: 50%;
        width: 100%;
    }
    #used.use_wolfram {
        justify-content: flex-start;
        align-items: flex-end;
    } 
    #used.use_wolfram > * {
        width: 50%;
        text-align: left;
    }
    div[id$="-content"],  
    .features-intro,
    .feature-container { 
        padding: 0 1.5rem; 
        text-align: left;
    }
    #how-notebooks-work-content,
    #features-content { padding: 0; }  
    .feature-container {
        max-width: 100%;
    }

    #work-1 .background-video {
        top: 18.2%;
    }
    #work-1._slider-wrapper {
        background: url(/notebooks/img/slides/slide02.png) no-repeat;
        background-size: cover;
    }
    #work-2._slider-wrapper {
        background: url(/notebooks/img/slides/slide03.png) no-repeat;
        background-size: cover;
    }
    #work-3._slider-wrapper {
        background: url(/notebooks/img/slides/slide07.png) no-repeat;
        background-size: cover;
    }
    .background-video {
        width: 505px;
    }
    ._slider-wrapper ._bg {
        width: 516px;
        max-width: 100%;
    }
}

/* styles for small screens (600px)
   ========================================================================== */
@media all and (max-width: 600px) {
    #features-wolfram-notebook-mobile,
    #how-notebooks-work-mobile {
        padding-left: 20px;
        padding-right: 20px;
    }
    .slider-container {
        width: 100%;
        height: auto;
    }
    .slider-caption {
        max-width: 240px;
    }
    .slider-container.last .slider{
        margin: 15px auto;
    }
    .slider-controls {
        width: 300px;
    }
    .use_wolfram, .two-columns {
        flex-direction: column;
    }
    .two-columns {
        text-align: center;
    }
    .two-columns > * {
        flex: 1 1 auto;
    }
    .use_wolfram .left, .use_wolfram .right,
    .two-columns .left_col p, .two-columns .left_col h3,
    .two-columns .right_col p, .right_col .two-columns h3 {
        max-width: 100%;
    }
    .use_wolfram img {
/*        margin: 0 auto;*/
    }
    #used.use_wolfram {
        height: 0;
    }
    main #resources h2,
    main #useWolfram h2,
    main #why h2,
    main #resources h3,
    #resources .two-columns p {
        text-align: left;
    }
    #why h3 {
        line-height: unset;
    }
    #useWolfram h3{
        margin: .5rem 0 0 0;
    }   
    .grid-columns p:last-of-type { margin-bottom:0 }
    .grid-columns.grid-c-2 { 
        grid-template-columns: 1fr; 
        gap: 0;
    }
    /* use wolfram notebooks  */
    #useWolfram .grid-custom {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }
    #useWolfram .grid-custom img { max-width: 200px; }
    #useWolfram .grid-custom img:first-of-type,
    #useWolfram .grid-custom div:first-of-type,
    #useWolfram .grid-custom img:last-of-type,
    #useWolfram .grid-custom div:last-of-type {
        grid-column: 1;
        grid-row: unset;
        order: 9;
    }
    #useWolfram .grid-custom > img:first-of-type { order: 1; }
    #useWolfram .grid-custom > div:first-of-type { order: 2; }
    #useWolfram .grid-custom > img:last-of-type { order: 3; }
    #useWolfram .grid-custom > div:last-of-type { order: 4; }

    #announce-stripe a {
        padding: 20px 10px 18px;
        display: flex;
        justify-content: center;
        text-align: center; 
    }
}


/* styles for minimum supported screen width (320px)
   ========================================================================== */
@media all and (max-width: 320px) {
    header#hero {
        background: linear-gradient(to top, #ffffff 0%,#ffffff 50px,#ececec 50px,#ececec 50px,#ffffff 100%);
    }
}


/* printer styles
   ========================================================================== */
@media print {}
