/* STYLES FOR USES EXAMPLES CDF

   developer:   suef
   requires:    /cdf/css/global.css
   ========================================================================== */

section h1 {
    display: inline-block;
}

#bottom-banners .pod {
    display: inline-block;
    padding: 1rem 1.5rem;
    vertical-align: top;
}

#bottom-banners .download {
    width: 64%;
    height: 71px;
}

.caption {
    font-family: 'Walter Turncoat', Arial, Helvetica, sans-serif;
    text-shadow: 0 0 0;
    line-height: 1;
}

#bottom-banners .contact {
    width: 35%;
    line-height: 1;
    height: 71px;
}

#bottom-banners .caption {
    display: inline-block;
    vertical-align: middle;
}

#bottom-banners .button,
#bottom-banners img {
    vertical-align: middle;
    margin: 0 1rem 0 0;
}

#bottom-banners .button {
    margin: 0 0 0 1rem;
}

html[lang="de"] #bottom-banners .contact {
    font-size: .9rem;
}

html[lang="ru"] #bottom-banners .download,
html[lang="ru"] #bottom-banners .contact {
    height: 80px;
}

html[lang="pt-br"] #bottom-banners .contact {
    font-size: .9rem;
}

.grey {
    color: #545454;
}

/* ==========================================================================
   EXAMPLES NAV
   ========================================================================== */

#exampleNav {
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    padding: 0 0 80px 0;
    text-align: center;
}

#exampleNav ul {
    padding: 10px 0 0 9px;
    background: #f1f1f1;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    height: 127px;
}

.exampleNav-item {
    display: inline-block;
    vertical-align: top;
    line-height: 1;
    text-align: center;
}

.exampleNav-item img {
    display: block;
    border: 1px solid #ccc;
    margin: 0 0 7px 0;
}

.exampleNav-item a {
    color: #545454;
    font-size: .7rem;
    padding:7px;
    margin: 0 8px 0 0;
    border: 1px solid #ccc;
    display: inline-block;
    box-shadow: 0 3px 10px 0 #aaa;
    height: 105px;
    background: #fff;
}

html[lang="ru"] .exampleNav-item a,
html[lang="es"] .exampleNav-item a {
    font-size: .6rem;
}

.exampleNav-item a .one-line {
    margin: 6px 0 0 0;
    display: inline-block;
}

.uses1 #item1 a,
.uses2 #item2 a,
.uses3 #item3 a,
.uses4 #item4 a,
.uses5 #item5 a,
.uses6 #item6 a,
.uses7 #item7 a,
.uses8 #item8 a,
.uses9 #item9 a {
    color: #dd1100 !important;
    border-top: 3px solid #dd1100;
    height: 120px;
    box-shadow: 0 0 10px #aaa;
}

section h1+.button {
    margin: 1.5rem 0 0 0;
}

html[lang="zh"] section h1+.button {
    margin: 0;
}

#exampleNav+h2 {
    padding: 1.5rem 0 0 2rem;
    background: #fff;
    margin: -80px 1px 0 1px;
    position: relative;
    font-size:2.3rem;
    font-weight:400;
}

h2+.introLeft {
    margin: 1rem 0 1rem 2rem;
    width: 70%;
    display: inline-block;
}

.introLeft+.alignright {
    margin: 2.5rem 2rem 0 0;
}

.hide {
    display: none;
}

.embedTable {
    margin: 0 1rem;
}
.uses3 .embedTable {
    margin: 0 1rem 3rem 1rem;
}
#embedOuter {
    box-shadow: 0 0 0.6rem #ccc;
    border: 1px solid #ccc;
    padding: 0;
    position: relative;
}

#embedOuter img {
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   CALLOUTS
   ========================================================================== */

.exampleTable td.calloutLeft,
.exampleTable td.calloutRight {
    width: 195px;
    padding-top: 2.5rem;
    position: relative;
}

.calloutLeft div.callout {
    position: absolute;
    width: 195px;
    background: url('/cdf/images/examples-callout-arrow-left.gif') no-repeat top right;
    padding-top: 43px;
}

.calloutLeft .callout.gears {
    background-image: url('/cdf/images/examples-callout-arrow-left-gears.gif');
    padding-top: 45px;
}

.calloutLeft .callout p {
    margin: 0 10px;
}

.calloutLeft .callout img {
    margin-left: 10px;
}

.calloutRight div.callout {
    position: absolute;
    width: 195px;
    background: url('/cdf/images/examples-callout-arrow-right.gif') no-repeat;
    padding-top: 43px;
}

.calloutRight div.callout.yellow {
    padding: 0.6em 0 0 0.9rem;
    box-sizing: border-box;
    background: #ffeaa1;
    box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.4);
    height: 6.625rem;
    width: 175px;
}

.calloutRight div.callout.yellow:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    margin-left: 0;
    bottom: 4em;
    left: 0.05rem;
    box-sizing: border-box;
    border: 0.4em solid #dbdbda;
    border-color: transparent transparent #ffeaa1 #ffeaa1;
    transform-origin: 0 0;
    transform: rotate(45deg);
    box-shadow: -1px 1px 1px -1px rgba(0, 0, 0, 0.4);
}

.calloutRight .callout.gears {
    background-image: url('/cdf/images/examples-callout-arrow-right-gears.gif');
    padding-top: 45px;
}

.calloutRight .callout p {
    margin: 0 10px 0 0;
}

.calloutRight .callout img {
    margin-right: 10px;
}

.calloutRight .callout.yellow img {
    margin-right: 10px;
    vertical-align: middle;
}

.callout p.alt {
    margin-top: 8px;
}

/* ==========================================================================
   OTHER
   ========================================================================== */

.callout p.caption {
    white-space: nowrap;
    margin-bottom: .5rem;
}

p.captionText {
    font-size: .8rem;
    color: #666;
}

.callout.yellow p.captionText {
    font-size: 0.75rem;
    color: #535353;
}

.callout.yellow p.title {
    font-size: 1.25rem;
    color: #535353;
    vertical-align: top;
}

.embedCell #textbook #interactnow,
.embedCell #journal #interactnow,
.embedCell #knowledge #interactnow {
    display: none;
}

.embedCell #interactnow {
    display: block;
    position: absolute;
    width: 16.5rem;
    height: 4rem;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    text-align: center;
    font-size: 1.25rem;
}

.embedCell #interactnow small {
    font-size: .75rem;
}

.embedCell.download #interactnow {
    display: none;
}

.embedCell.download:hover #interactnow {
    display: block;
}

.embedCell.download:hover #interactnow span {
    font-size: 1.25rem;
    width: 12rem;
    display: inline-block;
    text-align: left;
    margin-left: 2.8rem;
}

.embedCell.download:hover #interactnow {
    display: block;
    position: absolute;
    width: 16rem;
    height: 4.8125rem;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    background: url('/cdf/images/download-cdf.png') no-repeat 0.8rem 1.4rem #dd1100;
}

.embedCell.download:hover #interactnow small {
    font-size: .67rem;
    width: 12.1rem;
    display: inline-block;
    text-align: left;
    margin: 0.8rem auto 0.2rem 2.8rem;
}

#trouble {
    margin: 2rem 0 0 0;
}

iframe {
    overflow: hidden;
    margin: 0 auto;
    padding-left: 0.2rem;
}

html[lang="ru"] #interactnow.button {
    font-size: 1.2rem;
    width: 26rem;
}

html[lang="pt-br"] #interactnow.button {
    width: 20rem;
}

html[lang="de"] #interactnow.button {
    width: 22rem;
}

html[lang="es"] #interactnow.button {
    width: 20rem;
}

/* ==========================================================================
   THICKBOX
   ========================================================================== */

#TB_window #TB_ajaxContent {
    font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
    text-align: center;
    width: 100% !important;
    line-height: 1.5;
}

#TB_window #TB_ajaxContent h2 {
    line-height: 1.2;
    margin: 0;
}

#TB_ajaxContent a.button {
    display: block;
    width: 100%;
    text-decoration: none;
    color: #fff;
    margin: 1rem 0 0;
}