:root {
    --fs-Offset-Y: 2rem;
    --resizeable-height: 600px;
}

/*  sidebar
    --------------------------------*/

    /*fix for dissarpering buttons */
#st-1 .st-btn[data-network='facebook'] {
    display: inline-block !important;
}

#st-1 .st-btn[data-network='twitter'] {
    display: inline-block !important;
}

#st-1 .st-btn[data-network='linkedin'] {
   display: inline-block !important;
}

/*tab fix*/
.sidebar a.tab:not(selected) {
top:1px;
border-bottom: 0.5px;
}

.sidebar .tabbed-item {
    min-width: 260px;
}



/*---------------------*/


.sidebar {
    display: table-cell;
    width: 277px;
    min-width: 277px;
    vertical-align: top;
    padding: 0 0 0 20px;
}
.sidebar li img {
    width: 50px;
    display: inline-block;
    vertical-align: top;
    margin: 0 .6rem .9rem 0;
}
.sidebar .details {
    width: 150px;
    display: inline-block;
    vertical-align: top;
    font-size: .875rem;
    margin: 0 0 .9rem;
    line-height: 1.4;
}
.sidebar a.author {
    color: #494949;
}
.sidebar .tabbed-item {
    display: none;
    border: 1px solid #e9e9e9;
    padding: .3rem .8rem .8rem .8rem;
    border-radius: 0 0 5px 5px;
    height: 350px;
    overflow: auto;
}
.sidebar .sidebar-heading {
    color: #494949;
    margin: 1rem 0 .6rem;
    font-size: 1rem;
}
.sidebar .sidebar-heading.first {
    margin: 0 0 .6rem;
}
.sidebar a.tab {
    font-size: 13px;
    color: #494949;
    padding: 5px 9px;
    border: 1px solid #e9e9e9;
    bottom: -2px;
    position: relative;
    border-radius: 5px 5px 0 0;
    background: #fff;
    display: inline-block;
    margin: 1.3rem 0 0 0;
}
.sidebar .tab.selected {
    border-bottom: 1.5px solid #fff;
}
.sidebar .sharethis-inline-share-buttons {
    display: inline-block !important;
    vertical-align: top;
}
.sidebar .embed-link {
    width: 32px;
    height: 32px;
    display: inline-block;
    border-radius: 4px;
    background: url('/app-files/assets/img/embed2x.png');
    background-size: cover;
    vertical-align: top;
    top: 0;
    transition: opacity 0.2s ease-in, top 0.2s ease-in;
}

a.embed-link{
    margin-left: 10px;
}

.sidebar .embed-link:hover {
    top: -4px;
    opacity: .8;
    position: relative;
}

a.embed-link.disabled {
    opacity: .5;
    position: relative;
    pointer-events: none;
}

.disabled {
    opacity: .5;
    position: relative;
    pointer-events: none;
}

.sidebar .related-topics a:after {
    content: '\00a0\00bb';
    display: inline-block;
}
.sidebar .related-topics a {
    font-size: .875rem;
    line-height: 1.4;
}
.sidebar .embed-container {
    font-size: 0;
    position: relative;
}
.sidebar .embed-container textarea {
    vertical-align: top;
    height: 35px;
    width: 191px;
    border: 1px solid #e5e5e5;
    resize: none;
    font-size: 12px !important;
    color: #777;
    padding: 5px;
    overflow: hidden;
}

textarea#embedCopy{
    resize: vertical;
}

.st-total {
    display: none !important;
}

/*  content
    --------------------------------*/
#publishdate {
    color: #7F7F7F;
}

.main a:not(.magnific):hover{
    color: #dd1100;
}

.demonstration ul.relatedLinkList {
    line-height: 1.4;
}

.demonstration li#relatedLinkListElem a:first-of-type {
    color: #f77700;
}

.demonstration li#relatedLinkListElem a:first-of-type:hover {
    color: #dd1100;
}

.demonstration span.citation-author a {
    color: #f77700; 
}

.demonstration section .inner {
    padding: 0 0 0 20px;
}
.demonstration section h1 {
    font-size: 2.25rem;
    font-weight: 400;
    color: #dd1100;
    margin: 2.5rem 0 1.75rem;
}
.demonstration section h2 {
    font-size: 1.125rem;
    font-weight: 400;
    color: #dd1100;
    margin: .5rem 0 .6rem;
    text-transform: uppercase;
}
.demonstration .details + .reference h2 {
    font-size: .875rem;
    color: #494949;
    line-height: 1.4;
    text-transform: none;
}
.demonstration section .left {
    width: 720px;
    display: table-cell;
}
.demonstration section p {
    font-size: .875rem;
    color: #494949;
    line-height: 1.4;
    margin: 0 0 1.35rem;
}
.demonstration section img {
    max-width: 100%;
}
.demonstration section .embed {
    max-width: 440px;
    margin: 0 auto 2rem;
    display: block;
    position: relative;
}
.demonstration section .embed:not(.playing):hover .popup {
    display: block;
}
.demonstration section .embed:not(.playing):hover .overlay {
    display: block;
}

.embed:not(.playing):hover video {
    filter: brightness(0.6);
}

 #fallback-overlay {
    opacity: 0;
 }

.embed:hover #fallback-overlay{
    opacity: 0.3;
}

.popup {
    border-radius: 3px;
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 250px;
    max-height: 240px;
    background: #fff;
    z-index: 10;
    line-height: 1;
    overflow: visible;
    text-align: left;
}

.demonstration section .popup div.popupInner{
    margin: 30px;
}

.demonstration section .popup img.overlayThumb{
    width: 20px;
    height: 20px;
    vertical-align: -25%;
    margin-right: 12px;
}

.demonstration section .popup p.overlayBtn:hover{
    cursor: pointer;
}

.demonstration section .popup p.overlayBtn:hover a{
    color: #f77700;
}

.demonstration section .popup p.title {
    color: #494949;
    font-size: 20px;
}
.demonstration section .popup a {
    color: #dd1100;
    font-size: 14px;
    line-height: 1.3;
}
.demonstration section .popup a:hover {
    color: #f77700;
}
.overlay {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    /*background: rgba(0,0,0,.6);*/
}
.demonstration section hr {
    border: 0;
    height: 3px;
    background: #e5e5e5;
    margin: 3.75rem 0 0;
}
.demonstration .description + hr {
    margin: 3.1rem 0 0;
}
.demonstration section ul li {
    line-height: 1.4;
    font-size: .875rem;
}
.demonstration section .contributed-by {
    border-top: 1px solid #e5e5e5;
    padding: .5rem 0 0 0;
    top: -.6rem;
    position: relative;
}
.demonstration section .pipe {
    margin: 0 10px;
}
.demonstration .object {
    position: relative;
    /*height: var(--resizeable-height);*/
}

.demonstration .object .resizable {
    overflow: hidden !important;
    /*overflow: auto;*/
    background: #fff;
    z-index: 100;
    height: var(--resizeable-height);
    font-size: 0;
    position: relative;
    visibility: hidden;
}
.demonstration.a-hybrid-benz-grignani-logo .resizable {
    height: 450px;
}
.demonstration.fermat-point-for-many-points .resizable {
    height: 645px;
}

.demonstration .object .cloudiframe {
    width: 99%;
    height: 99%;
    overflow: hidden;
}
.demonstration .object .animation {
    margin: 0 0 1rem;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: 0;
    z-index: 101;
}
.demonstration .citation a,
.demonstration .related-links a {
    color: #494949;
}
/*.demonstration .citation a:hover,
.demonstration .related-links a:hover {
    color: #f77700;
}*/

.demonstration .citations {
    display: block;
}
.demonstration .citation-author {
    display: block;
}
.demonstration .InlineFormula,
.demonstration .absmiddle {
    vertical-align: middle;
    font-size: 0;
    bottom: 3px;
    position: relative;
}
.demonstration code {
    font-size: .925rem;
}

/*fix for sidebar bold font*/
div#related-demonstrations-section ul li span.details a.title > b {
    font-weight: 400;
}




/*  snapshots
    --------------------------------*/
.snapshots {
    margin: .6rem auto 1.35rem;
    font-size: 0;
    width: 600px;
    text-align: center;
}
.snapshots a {
    width: 200px;
    display: inline-block;
}
.snapshots a.selected img {
    border-bottom: 5px solid #dd1100;
}

.snapshots .thumbs img {
    width: 189px;
    border-bottom: 5px solid transparent;
    padding-bottom: 3px;
}
.snapshots .thumbs a:hover img {
    opacity: .75;
}
.snapshots .current img {
    display: none;
}
.snapshots .current .show {
    display: block !important;
    width: 484px;
    margin: 1rem auto 0;
    padding: 0 0 .5rem;
}
.demonstration .snapshots + hr {
    margin: 3.35rem 0 0;
}

/*  embed object
    --------------------------------*/
.object {
    text-align: center;
}
.source {
    display: inline-block !important;
    margin: 0 0 2.2rem .7rem;
    position: relative;
}

ul.source-dropdown {
    display: none;
    width: 160px;
    border-collapse: collapse;
    position: absolute;
    top: 45px;
    text-align: left;
    white-space: nowrap;
    z-index: 10;
    right: -49px;
}

ul.source-dropdown:before {
    content: "";
    position: absolute;
    right: 79px;
    top: -9px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 5px 9px 5px;
    border-color: transparent transparent #ffffff transparent;
    z-index: 9999;
} 


ul.source-dropdown:after {
    content: "";
    position: absolute;
    right: 78px;
    top: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 10px 6px;
    border-color: transparent transparent #dd1201 transparent;
    z-index: 9998;
} 

.source.show a.arrow {
    width: 152px;
    border-radius: 3px 3px 0 0;
    color: #fff !important;
    background: #dd1100;
}
.source.show a.arrow:after {
    border-top: 9px solid #fff;
}
.source.show  .source-dropdown {
    display: block;
}
.source-dropdown li {
    display: block;
    height: 35px;
    overflow: visible;
}

/*.source-dropdown li:hover {
    border-top: 1px solid #f77700;
}*/

.source-dropdown a {
    color: #dd1100;
    display: block;
    border: 1px solid #dd1100;
    padding: .45rem .7rem;
    background: #fff;
    top: -1px;
    height: 37px;
    position: relative;
}
.source-dropdown li:first-of-type a:not(.disabled):hover {
    color: #fff;
    background: #f77700;
    border: 1px solid #f77700;
    z-index: 9999;
    top: -2px;
    height: 36px;
}

.source-dropdown li:last-of-type a:hover {
    color: #fff;
    background: #f77700;
    border: 1px solid #f77700;
    z-index: 10;
    top: -2px;
    height: 36px;
}

#srcBtnDropdown:hover{
    background: #dd1100;
    color: #fff !important;
}

div.source.show a#srcBtnDropdown{
    background: #dd1100;
    color: #fff !important;
}

.source .clipboard {
    position: relative;
}
#clipboard {
    width: 1px;
    height: 1px;
    border: 0;
    overflow: hidden;
    position: absolute;
    font-size: 0px;
}
.tooltip {
    background: #f5f5f5; 
    border: 1px solid #e5e5e5; 
    border-radius: 3px; 
    padding: 8px;
    position: absolute;
    top: -45px;
    left: 0;
    right: 0;
    margin: auto;
    color: #898989; 
    font-size: 12px; 
    font-family: 'Roboto', sans-serif;
    text-align: center;
    width: 150px;
    z-index: 200;
}
.tooltip:after {
    content: '';
    border-top: 10px solid #f5f5f5;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid transparent;
    display: block;
    position: absolute;
    top: 31px;
    width: 10px;
    right: 0;
    left: 0;
    margin: auto;
}
.tooltip:before {
    content: '';
    border-top: 10px solid #e5e5e5;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid transparent;
    display: block;
    position: absolute;
    top: 32px;
    width: 10px;
    right: 0;
    left: 0;
    margin: auto;
}
.embed-container .tooltip {
    top: -20px;
}
/*
@media all and (max-width: 600px) {
    .left {
        display: block;
        width: 100%;
    }
    .sidebar {
        display: block;
        width: 100%;
        padding: 0;
    }
    .sidebar .details {
        width: 80%;
    }
}*/

/*FULLSCREEN*/


div#fsbtn {
    margin-bottom: -12.8px;
    display: inline-block !important;
    position: relative;
    margin-left: 0.7rem;
    background: url("/img/fsbtn.png") -1px -35px;
    width: 37px;
    height: 37px;
    background-repeat: no-repeat;
}

div#fsbtn:not(.disabled):hover{
    margin-bottom: -12.8px;
    display: inline-block !important;
    position: relative;
    margin-left: 0.7rem;
    background: url("/img/fsbtn.png") -1px 1px;
    width: 37px;
    height: 37px;
    background-repeat: no-repeat;
    cursor: pointer;
}

@media 
  (-webkit-min-device-pixel-ratio: 1.5), 
  (min-resolution: 144dpi) { 
    div#fsbtn {
        margin-bottom: -12.8px;
        display: inline-block !important;
        position: relative;
        margin-left: 0.7rem;
        background: url("/img/fsbtn@2x.png") -1px -35px;
        background-size: 37px 72px;
        width: 37px;
        height: 37px;
        background-repeat: no-repeat;
    }

    div#fsbtn:not(.disabled):hover{
        margin-bottom: -12.8px;
        display: inline-block !important;
        position: relative;
        margin-left: 0.7rem;
        background: url("/img/fsbtn@2x.png") -1px 1px;
        background-size: 37px 72px;
        width: 37px;
        height: 37px;
        background-repeat: no-repeat;
        cursor: pointer;
    }
}

div#fsExitBtn {
    width: 20px;
    position: absolute;
    background-repeat: no-repeat;
    background-image: url(/img/x.png);
    height: 20px;
    right: 70px;
    top: 20px;
    cursor: pointer;
}

/*#fsbtn{
    width: 100px;
    font-size: 15px;
    position:absolute;
    top:0;
    left:0;
    height:40px;
    visibility: hidden;
}

.resizable:hover #fsbtn{
    visibility: visible;
    transition: 1s;
    }*/

.fullscreen{
    /*transform: scale(1.4, 1.4) translateX(0%) translateY(0%);*/
    transform: scale(1, 1) translateX(0%) translateY(0%);
    height: -webkit-fill-available;
    width: -webkit-fill-available;
}

/*.resizable{
    overflow: hidden !important;
    height: var();
}*/

/*tooltip*/
/*span.fstooltip {
    top: -40px; 
    right: 0px;
    visibility: hidden;
    background: #f5f5f5; 
    border: 1px solid #e5e5e5; 
    border-radius: 3px; 
    padding: 8px;
    position: absolute;
    margin: auto;
    color: #898989; 
    font-size: 12px; 
    font-family: 'Roboto', sans-serif;
    text-align: center;
    width: 150px;
    z-index: 200;
}

div#fsOverlay:hover + span.fstooltip {
    visibility: visible;
}

div#fsOverlay:hover {
    cursor: pointer;
}*/

/*scaling*/
div#fsExitBtn {
    margin: 0px;
    height: 0px;
    visibility: hidden;
}

div#fsHeader {
    font-size: 36px;
    font-weight: 400;
    color: #da1616;
    margin: 0px;
    height: 0px;
    visibility: hidden;
}

img#fsBranding {
    margin: 0px;
    height: 0px;
    visibility: hidden;
}


.resizable:-webkit-full-screen div#fsHeader {
    visibility: visible;
    margin-bottom: 0.6rem;
    margin-top: var(--fs-Offset-Y);
    height: auto;
}

.resizable:-moz-full-screen div#fsHeader {
    visibility: visible;
    margin-bottom: 0.6rem;
    margin-top: var(--fs-Offset-Y);
    height: auto;
}

.resizable:-ms-fullscreen div#fsHeader {
    visibility: visible;
    margin-bottom: 0.6rem;
    margin-top: var(--fs-Offset-Y);
    height: auto;
}


.resizable:-webkit-full-screen div#fsExitBtn {
    visibility: visible;
    width: 20px;
    position: absolute;
    background-repeat: no-repeat;
    background-image: url(/img/x.png);
    height: 20px;
    right: 13px;
    top: 13px;
    cursor: pointer;
}

.resizable:-moz-full-screen div#fsExitBtn{
    visibility: visible;
    width: 20px;
    position: absolute;
    background-repeat: no-repeat;
    background-image: url(/img/x.png);
    height: 20px;
    right: 70px;
    top: 20px;
    cursor: pointer;
}

.resizable:-ms-fullscreen div#fsExitBtn{
    visibility: visible;
    width: 20px;
    position: absolute;
    background-repeat: no-repeat;
    background-image: url(/img/x.png);
    height: 20px;
    right: 70px;
    top: 20px;
    cursor: pointer;
}


.resizable:-webkit-full-screen img#fsBranding {
    visibility: visible;
    height: auto;
}

.resizable:-moz-full-screen img#fsBranding {
    visibility: visible;
    height: auto;
}

.resizable:-ms-fullscreen img#fsBranding {
    visibility: visible;
    height: auto;
}




/*.resizable:-moz-full-screen h1#fsHeader {
    visibility: visible;
}


.resizable:-moz-full-screen img#fsBranding {
    visibility: visible;
}
*/

.resizable:-webkit-full-screen iframe.cloudiframe {
    height:600px;
}

.resizable:-moz-full-screen iframe.cloudiframe {
    height:600px;
}

.resizable:-ms-fullscreen iframe.cloudiframe {
    height:600px;
}



.demonstration .object .resizable:-moz-full-screen{
  width: -moz-available; 
  height: -moz-available; 
}

.demonstration .object .resizable:-webkit-full-screen {
  height: -webkit-fill-available;
  width: -webkit-fill-available;
}

.demonstration .object .resizable:-ms-fullscreen {
  height: 100%;
  width: 100%;
}



/*.object:-moz-full-screen #fsOverlay {
      visibility: hidden;
}

.object:-webkit-full-screen #fsOverlay {
      visibility: hidden;
}*/

a.button.red.magnific.inline:hover {
    background: #f77700;
    border: 1px solid #f77700;
}


/*demo specific fixes*/
/*embed[src="/includes/playback.swf?src=http://demonstrations.wolfram.com/ThePendulumFromSimpleHarmonicMotionToChaos/flash.swf&srcwidth=600&srcheight=540&preimage=http://demonstrations.wolfram.com/ThePendulumFromSimpleHarmonicMotionToChaos/preloadGraphic.jpg&notebookurl=/download-cdf-player.html&hightraffic=0"]{
    width: 670px;
}*/


/*BETA TAG*/

div#beta-tag-outer{
    box-sizing: content-box;
    top: 5px;
    display: inline-block !important;
    position: relative;
    width: 75px;
    height: 34px;
    padding-bottom: 10px;
}

div#beta-tag {
    box-sizing: content-box;
    padding-bottom: 5px;
    top: 5px;
    display: inline-block !important;
    position: relative;
    margin-left: 0.7rem;
    background: url("/img/beta-sprite.png") -0px -34px;
    width: 67px;
    height: 34px;
    background-repeat: no-repeat;
}

div#beta-tag:not(.disabled):hover{
    box-sizing: content-box;
    padding-bottom: 5px;
    top: 5px;
    display: inline-block !important;
    position: relative;
    margin-left: 0.7rem;
    background: url("/img/beta-sprite.png") -0px -0px;
    width: 67px;
    height: 34px;
    background-repeat: no-repeat;
    cursor: pointer;
}


@media 
  (-webkit-min-device-pixel-ratio: 1.5), 
  (min-resolution: 144dpi) { 
    div#beta-tag {
        box-sizing: content-box;
        padding-bottom: 5px;
        top: 5px;
        display: inline-block !important;
        position: relative;
        margin-left: 0.7rem;
        background: url("/img/beta-sprite@2x.png") -0px -0px;
        background-size: 67px 72px;
        width: 67px;
        height: 34px;
        background-repeat: no-repeat;
    }

    div#beta-tag:not(.disabled):hover{
        box-sizing: content-box;
        padding-bottom: 5px;
        top: 5px;
        display: inline-block !important;
        position: relative;
        margin-left: 0.7rem;
        background: url("/img/beta-sprite@2x.png") -0px -36px;
        background-size: 67px 72px;
        width: 67px;
        height: 34px;
        background-repeat: no-repeat;
        cursor: pointer;
    }
}

div#beta-tag.show ul.beta-dropdown{
    background: #dd1100;
    color: #fff !important;
}

ul.beta-dropdown {
    display: none;
    background: white;
    width: 160px;
    position: absolute;
    top: 45px;
    text-align: left;
    z-index: 999;
    right: -50px;
}

ul.beta-dropdown:hover{
    cursor: auto;
}

ul.beta-dropdown:before {
    content: "";
    position: absolute;
    right: 79px;
    top: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 5px 9px 5px;
    border-color: transparent transparent #ffffff transparent;
    z-index: 999;
} 


ul.beta-dropdown:after {
    content: "";
    position: absolute;
    right: 78px;
    top: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 10px 6px;
    border-color: transparent transparent #dd1201 transparent;
    z-index: 998;
} 

.beta-dropdown li {
    height: 35px;
    overflow: visible;
    right: -43px;
    position: absolute;
}

.beta-dropdown li p{
    line-height: 16px;
    border: 1px solid #dd1100;
    padding-top: 15px;
    height: 82px;
    overflow-wrap: break-word;
    display: inline-block;
    word-wrap: break-word;
    width: 253px;
    font-size: 12px;
    background: white;
    margin-bottom: 0px;
    padding-bottom: 15px;
    padding-left: 13px;
    padding-right: 13px;
    color: #000000;
}

.beta-dropdown li a{
    text-decoration: none;
    color: #dd1100;
}


/*.source-dropdown li:hover {
    border-top: 1px solid #f77700;
}*/

/*.beta-dropdown a {
    color: #dd1100;
    display: block;
    border: 1px solid #dd1100;
    padding: .45rem .7rem;
    background: #fff;
    top: -1px;
    height: 37px;
    position: relative;
}*/
/*.beta-dropdown li:first-of-type a:not(.disabled):hover {
    color: #fff;
    background: #f77700;
    border: 1px solid #f77700;
    z-index: 9999;
    top: -2px;
    height: 36px;
}

.beta-dropdown li:last-of-type a:hover {
    color: #fff;
    background: #f77700;
    border: 1px solid #f77700;
    z-index: 10;
    top: -2px;
    height: 36px;
}
*/