/* Homepage styles.

   developer:   marionm
   requires:    /common/framework/css/framework.ru.css
                /common/framework/css/gui.ru.css
   ========================================================================== */

/* ==========================================================================
   global overrides
   ========================================================================== */

html {
    color: #393939;
    font-family: 'Noto Sans', Arial, Helvetica, sans-serif;
}

/* ==========================================================================
   shared page styles
   ========================================================================== */

.page-width {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1rem;
    width: 100%;
}

/* ==========================================================================
   site license & alternate stripes
   ========================================================================== */

#stripe {
    background: #585858;
    font-size: 1.15rem;
    font-weight: 300;
    padding: 1rem 0;
}

#stripe a { color: #fff; }

#stripe a:hover { color: #fa9a3d; }

#stripe img {
    margin-right: .5rem;
    vertical-align: middle;
}

#stripe .name { font-weight: 400; }

#stripe .separator {
    color: #8d8d8d;
    margin: 0 1rem;
}

#stripe .special { font-weight: 300; }

/* ==========================================================================
   carousel
   ========================================================================== */

#carousel { background: #3c3c3c; }

/* hero slider
   ========================================================================== */

.cd-hero { position: relative; }

.cd-hero__slider {
    height: 610px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.cd-hero__slide {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    /* Force Hardware Acceleration */
    -webkit-transform: translateZ(0px);
    transform: translateZ(0px);
    will-change: transform;
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cd-hero__slide.cd-hero__slide--selected {
    /* this is the visible slide */
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

.cd-hero__slide.cd-hero__slide--move-left {
    /* slide hidden on the left */
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
}

.cd-hero__slide.cd-hero__slide--is-moving,
.cd-hero__slide.cd-hero__slide--selected {
    /* the cd-hero__slide--is-moving class is assigned to the slide which is moving outside the viewport */
    -webkit-transition: -webkit-transform 0.5s;
    transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    transition: transform 0.5s, -webkit-transform 0.5s;
}

.cd-hero__content {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
    /* Force Hardware Acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.cd-hero__content h2,
.cd-hero__content p,
.cd-hero__btn,
.cd-hero__content--img img {
    /* Force Hardware Acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.cd-hero__btn {
    -webkit-transition: background-color 0.2s;
    transition: background-color 0.2s;
}

html:not(.js-enabled) .cd-hero__slide { display: none; }

html:not(.js-enabled) .cd-hero__slide.cd-hero__slide--selected { display: block; }

/* hero slider content
   ========================================================================== */

#carousel .flexbox {
    height: 485px;
    padding: 0 1rem;
}

#carousel .left { width: 60%; }

#carousel .heading1 {
    color: #fff;
    font-size: 2.225rem;
}

#carousel .heading1 span {
    font-size: 1.625rem;
    font-style: italic;
    font-weight: 300;
}

#carousel .heading2 { font-size: 2rem; }

#carousel .p {
    color: #bdbdbd;
    font-size: 1.1rem;
    font-weight: 300;
    margin: 1.5rem 0 1rem;
    max-width: 650px;
}

#carousel .button {
    background: transparent;
    border-radius: .25rem;
    border: 2px solid #fff;
    color: #fff;
    display: inline-block;
    font-size: 0.9625rem;
    margin: 1rem 1rem 0 0;
    padding: .75rem 1.25rem;
}

#carousel .button:hover { background: #4d4d4d; }

#carousel .links {
    font-size: 1rem;
    margin-top: 1.5rem;
}

#carousel .links a { color: #fff; }

#carousel .right {
    text-align: right;
    width: 40%;
}

#carousel .cd-hero__content--img img { max-height: 420px; }

/* color coding
   ================================== */

#carousel .heading2.code-red { color: #ee1f22; }
#carousel .button.code-red { border-color: #ee1f22; }
#carousel .button.code-red:hover {
    background: #ee1f22;
    color: #fff;
}
#carousel a.code-red-link:hover { color: #ee1f22; }

#carousel .heading2.code-orange { color: #ff8420; }
#carousel .button.code-orange { border-color: #ff8420; }
#carousel .button.code-orange:hover {
    background: #ff8420;
    color: #fff;
}
#carousel a.code-orange-link:hover { color: #ff8420; }

#carousel .heading2.code-yellow { color: #ffbe22; }
#carousel .button.code-yellow { border-color: #ffbe22; }
#carousel .button.code-yellow:hover {
    background: #ffbe22;
    color: #272727;
}
#carousel a.code-yellow-link:hover { color: #ffbe22; }

#carousel .heading2.code-magenta { color: #d53160; }
#carousel .button.code-magenta { border-color: #d53160; }
#carousel .button.code-magenta:hover {
    background: #d53160;
    color: #fff;
}
#carousel a.code-magenta-link:hover { color: #d53160; }

#carousel .heading2.code-purple { color: #a578fa; }
#carousel .button.code-purple { border-color: #a578fa; }
#carousel .button.code-purple:hover {
    background: #a578fa;
    color: #fff;
}
#carousel a.code-purple-link:hover { color: #a578fa; }

#carousel .heading2.code-green { color: #57c54f; }
#carousel .button.code-green { border-color: #57c54f; }
#carousel .button.code-green:hover {
    background: #57c54f;
    color: #fff;
}
#carousel a.code-green-link:hover { color: #57c54f; }

/* snowflake hell (◔_◔)
   ================================== */

#carousel .cd-hero__slide.carousel-wolfram-alpha .heading2 { font-size: 2.6rem; }

#carousel .cd-hero__slide.carousel-mathematica img { max-height: none; }

#carousel .cd-hero__slide.carousel-mathematica .left { width: 55%; }

#carousel .cd-hero__slide.carousel-mathematica .right { width: 45%; }

#carousel .cd-hero__slide.carousel-mathematica .heading1 { font-size: 2.225rem; }

#carousel .cd-hero__slide.carousel-mathematica .heading2 { font-size: 2rem; }

#carousel .cd-hero__slide.carousel-mathematica .heading2 span { font-weight: 600; }

#anim-link {
    background: url('/homepage/img/just-use-wolfram/spikeyload.png') no-repeat top left;
    background-size: cover;
    display: block;
    height: 417px;
    width: 499px;
}

#anim-link.alt-animation { background: url('/homepage/img/just-use-wolfram/spikeyload2.png') no-repeat top left; }

#anim-container {
    height: 417px;
    position: relative;
    width: 499px;
}

#anim-inner img {
    height: auto;
    width: 100%;
}

#spikeymask,
#spikeylink {
    height: 417px;
    left: 0;
    position: absolute;
    top: 0;
    width: 499px;
}

#spikeymask img {
    height: 417px;
    width: 499px;
}

@keyframes animFadeInOut {
    0% {
        margin-left: -56%;
        opacity: 1;
    }
    75% {
        margin-left: 8%;
        opacity: 1;
    }
    100% {
        margin-left: 8%;
        opacity: 0;
    }
}

@keyframes animFadeInOutShort {
    0% {
        margin-left: -56%;
        opacity: 1;
    }
    75% {
        margin-left: 0;
        opacity: 1;
    }
    100% {
        margin-left: 0;
        opacity: 0;
    }
}

#i1,
#i2,
#i3,
#i4,
#i5,
#i6,
#i7 {
    height: 413px;
    left: 2px;
    overflow: hidden;
    position: absolute;
    top: 2px;
    width: 495px;
}

#i1 img,
#i2 img,
#i3 img,
#i4 img,
#i5 img,
#i6 img,
#i7 img {
    animation-duration: 3s;
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-name: animFadeInOut;
    animation-play-state: paused;
    animation-timing-function: ease-in-out;
    background-size: cover;
    height: 413px;
    width: 671px;
}

#anim-container:not(.hide) #i1 img,
#anim-container:not(.hide) #i2 img,
#anim-container:not(.hide) #i3 img,
#anim-container:not(.hide) #i4 img,
#anim-container:not(.hide) #i5 img,
#anim-container:not(.hide) #i6 img,
#anim-container:not(.hide) #i7 img { animation-play-state: running; }

#i1 img { animation-delay: 0s; }

#i2 img { animation-delay: 3s; }

#i3 img { animation-delay: 6s; }

#i4 img { animation-delay: 9s; }

#i5 img {
    animation-delay: 12s;
    animation-name: animFadeInOutShort;
}

#i6 img {
    animation-delay: 15s;
    animation-name: animFadeInOut;
}

#i7 img { animation-name: none; }

#i1 img { background-image: url('/homepage/img/just-use-wolfram/bg-optics.png'); }
#i2 img { background-image: url('/homepage/img/just-use-wolfram/bg-edtech.png'); }
#i3 img { background-image: url('/homepage/img/just-use-wolfram/bg-ai.png'); }
#i4 img { background-image: url('/homepage/img/just-use-wolfram/bg-fem.png'); }
#i5 img { background-image: url('/homepage/img/just-use-wolfram/bg-medical-imaging.png'); }
#i6 img { background-image: url('/homepage/img/just-use-wolfram/bg-environment.png'); }
#i7 img { background-image: url('/homepage/img/just-use-wolfram/bg-other.png'); }

#anim-link.alt-animation #i1 img { background-image: url('/homepage/img/just-use-wolfram/bg-chemical-engineering.png'); }
#anim-link.alt-animation #i2 img { background-image: url('/homepage/img/just-use-wolfram/bg-control-systems.png'); }
#anim-link.alt-animation #i3 img { background-image: url('/homepage/img/just-use-wolfram/bg-quantum.png'); }
#anim-link.alt-animation #i4 img { background-image: url('/homepage/img/just-use-wolfram/bg-finance.png'); }
#anim-link.alt-animation #i5 img { background-image: url('/homepage/img/just-use-wolfram/bg-image-analysis.png'); }
#anim-link.alt-animation #i6 img { background-image: url('/homepage/img/just-use-wolfram/bg-ai.png'); }
#anim-link.alt-animation #i7 img { 
	background-image: url('/homepage/img/just-use-wolfram/bg-other2.png'); 
	background-size: contain;
}

@keyframes txtFadeInOut {
    0% {
        opacity: .3;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: .3;
    }
}

@keyframes txtIn {
    0% {
        opacity: .3;
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

#t1,
#t2,
#t3 { text-align: right; }

#t4,
#t5,
#t6,
#t7 { text-align: left; }

#t1,
#t2,
#t3,
#t4,
#t5,
#t6,
#t7 {
    animation-duration: 3s;
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-name: txtFadeInOut;
    animation-play-state: paused;
    animation-timing-function: ease-in-out;
    color: #fff;
    font-size: .72rem;
    height: auto;
    opacity: .3;
    position: absolute;
}

#t1a,
#t2a,
#t3a,
#t4a,
#t5a,
#t6a,
#t7a {
    color: #fff;
    font-size: .72rem;
    height: auto;
    opacity: 1;
    position: absolute;
    text-align: right;
    z-index: 999;
}

#t4a,
#t5a,
#t6a,
#t7a { text-align: left; }

#anim-container:not(.hide) #t1,
#anim-container:not(.hide) #t2,
#anim-container:not(.hide) #t3,
#anim-container:not(.hide) #t4,
#anim-container:not(.hide) #t5,
#anim-container:not(.hide) #t6,
#anim-container:not(.hide) #t7 { animation-play-state: running; }

#t1,
#t1a {
    animation-delay: 0s;
    bottom: 18.5%;
    left: 6.5%;
    width: 70px;
}

#t2,
#t2a {
    animation-delay: 2.5s;
    bottom: 45%;
    left: -2%;
    width: 83px;
}

#t3,
#t3a {
    animation-delay: 5.5s;
    bottom: 70%;
    left: -8%;
    width: 148px;
}

#t4,
#t4a {
    animation-delay: 8.5s;
    bottom: 71%;
    right: -6%;
    width: 145px;
}

#t5,
#t5a {
    animation-delay: 11.5s;
    bottom: 45.5%;
    right: -4%;
    width: 100px;
}

#t6,
#t6a {
    animation-delay: 14.5s;
    bottom: 19.5%;
    right: 5.5%;
    width: 85px;
}

#t7,
#t7a {
    animation-delay: 17.5s;
    animation-name: txtIn;
    bottom: 7.5%;
    right: 32.5%;
    width: 50px;
}

#t1a a,
#t2a a,
#t3a a,
#t4a a,
#t5a a,
#t6a a,
#t7a a {
    color: #fff;
    opacity: .1;
}

#t1a a:hover,
#t2a a:hover,
#t3a a:hover,
#t4a a:hover,
#t5a a:hover,
#t6a a:hover,
#t7a a:hover { opacity: 1; }

/* hero slider nav
   ========================================================================== */

.cd-hero__nav {
    background: #606060;
    border-bottom: 4px solid #3c3c3b;
    border-top: 4px solid #3c3c3b;
    bottom: 0;
    height: 150px;
    position: absolute;
    width: 100%;
    z-index: 2;
}

.cd-hero__nav nav,
.cd-hero__nav ul,
.cd-hero__nav li,
.cd-hero__nav a { height: 100%; }

.cd-hero__nav nav {
    display: block;
    margin:  0 auto;
    position: relative;
}

.cd-hero__nav ul.outer-ul {
    align-items: stretch;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.cd-hero__nav ul.outer-ul li:not(.scroll) {
    border-left: 2px solid #3c3c3b;
    border-right: 2px solid #3c3c3b;
    width: 186px;
}

.cd-hero__nav ul.outer-ul li.arrow {
    -webkit-transition: background-color 0.2s;
    background-color: #777;
    min-height: 100px;
    top: 0;
    transition: background-color 0.2s;
    width: 32px;
    z-index: 999999;
}

.cd-hero__nav ul.outer-ul li.arrow:hover { background-color: #ff7d2f; }

.cd-hero__nav ul.outer-ul li.arrow-left {
    background-image: url('/homepage/img/carousel-arrow-left.svg');
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: 22px 42px;
    border: none;
    box-shadow: 2px 0 4px #3c3c3b;
    left: 0;
}

.cd-hero__nav ul.outer-ul li.arrow-right {
    background-image: url('/homepage/img/carousel-arrow-right.svg');
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: 22px 42px;
    border: none;
    box-shadow: -2px 0 4px #3c3c3b;
    right: 0;
}

.cd-hero__nav ul.outer-ul li.scroll {
    overflow-x: hidden;
    width: 100%;
}

.cd-hero__nav ul.inner-ul {
    align-items: stretch;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: hidden;
}

.cd-hero__nav ul.inner-ul > li { flex: 0 0 auto; }

.cd-hero__nav ul.inner-ul li:first-child { border-left: 4px solid #3c3c3b; }

.cd-hero__nav ul.inner-ul li:last-child { border-right: 4px solid #3c3c3b; }

.cd-hero__nav a {
    color: #fff;
    font-size: 0.8rem;
    padding: 1rem;
    width: 100%;
    -webkit-transition: background-color 0.2s;
    transition: background-color 0.2s;
}

.cd-hero__nav ul.inner-ul li a:hover {
    background: inherit;
    color: #ff9f4d;
}

.cd-hero__nav ul.inner-ul li.cd-selected {
    background: #484848;
    color: #fff;
    position: relative;
}

.cd-hero__nav ul.inner-ul li.cd-selected a { color: #fff; }

.cd-hero__nav ul.inner-ul li.cd-selected img { filter: brightness(1.105) hue-rotate(-34deg) saturate(2); }

.cd-hero__nav .dot {
    color: #606060;
    font-size: 4rem;
    font-weight: 600;
    height: 30px;
    line-height: 0;
    margin: 1rem 0 -.6rem;
    text-align: center;
    width: 30px;
}

.cd-hero__nav li.cd-selected .dot { color: #da3034; }

/* delivering computation
   ========================================================================== */

#power {
    background: #fff;
    background: linear-gradient(-90deg, #fff 0%, #fff 50%, #f3f3f3 50%, #f3f3f3 100%);
    padding: 0 1.25rem;
}

#power .page-width:before {
    background: url('/homepage/img/computation-bg.png') no-repeat center -80px;
    background-size: 1153px;
    content: '';
    display: block;
    height: 100%;
    left: -230px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}

#power .page-width { z-index: 0; }

#power h1 {
    color: #db1a10;
    font-size: 1.8125rem;
    font-weight: 600;
    margin: 0 auto;
    max-width: 1075px;
    padding: 6rem 0 0 .7rem;
}

#power h2 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 auto;
    max-width: 1075px;
    padding: 0 0 1rem .7rem;
}

#power .flexbox {
    align-items: center;
    display: flex;
    justify-content: space-between;
    max-width: 1070px;
    overflow: hidden;
}

#power p {
    color: #626262;
    font-size: .95rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 1075px;
    padding-left: .7rem;
}

#power p span {
    display: inline-block;
    max-width: 420px;
}

/* left column
   ================================== */

#power .left {
    width: 490px;
    z-index: 1;
}

#power .left a.button {
    -webkit-transition: background-color 0.2s;
    background: #fff;
    border: 2px solid #bfbfbf;
    border-radius: .25rem;
    color: #dd1100;
    display: table;
    font-size: 0.9rem;
    font-weight: 600;
    height: 62px;
    margin: 0 1rem 1.05rem 0;
    max-width: 225px;
    padding: 0 1rem;
    position: relative;
    text-align: center;
    transition: background-color 0.2s;
    width: 100%;
}

#power .left a.button:hover {
    background: #e76d0c;
    color: #fff;
}

#power .left a.button span {
    display: table-cell;
    vertical-align: middle;
}

#power .left .col1 {
    max-width: 234px;
    padding-right: .3rem;
    width: 100%;
}

#power .left .col1 a.button { border-color: #bfbfbf; }

#power .left .col1 a.button:hover {
    background: #dd1100;
    border-color: #dd1100;
}

#power .left .col2 {
    max-width: 234px;
    padding-left: 10px;
    width: 100%;
}

#power .left .col2 a.button { border-color: #bfbfbf; }

#power .left .col2 a.button:hover {
    background: #dd1100;
    border-color: #dd1100;
}

#power .left .col2 a.button:last-child {
    background: none;
    border: none;
    color: #505050;
    height: auto;
    padding: 0;
}

#power .left .col2 a:hover.button:last-child { color: #dd1100; }

/* right column
   ================================== */

#power .right {
    height: 384px;
    width: 396px;
    z-index: 1;
}

#power .flower {
    -moz-transform-origin: top right;
    -moz-transform: scale(.8);
    background: url('/homepage/img/computation-right.png') no-repeat top center;
    background-size: cover;
    float: right;
    height: 480px;
    overflow: hidden;
    position: relative;
    transform-origin: top right;
    transform: scale(.8);
    width: 495px;
}

#power .flower:before {
    background-image: none;
    background-size: cover;
    background: no-repeat top center;
    content: '';
    display: block;
    height: 480px;
    position: relative;
    width: 100%;
    width: 495px;
}

#power .flower.hover-knowledgebase:before { background-image: url('/homepage/img/computation-right-knowledgebase.png'); }

#power .flower.hover-algorithmbase:before { background-image: url('/homepage/img/computation-right-algorithmbase.png'); }

#power .flower.hover-notebooks:before { background-image: url('/homepage/img/computation-right-notebooks.png'); }

#power .flower.hover-linguistic:before { background-image: url('/homepage/img/computation-right-linguistic.png'); }

#power .flower.hover-language:before { background-image: url('/homepage/img/computation-right-language.png'); }

#power .flower.hover-spikey:before {
    background: url('/homepage/img/computation-right-spikey.png') 50% 50%;
    background-size: 495px 480px;
}

#flowerhover {
    /* background: url('powerhover.svg') no-repeat top center; */
    background-size: cover;
    height: 480px;
    position: absolute;
    top: 0;
    width: 495px;
}

#power .right a {
    color: #333;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.15;
    position: absolute;
    text-align: center;
}

#power .right a:nth-child(2) {
    left: 36%;
    top: 14%;
}

#power .right a:nth-child(3) {
    left: 70%;
    top: 30%;
}

#power .right a:nth-child(4) {
    left: 66%;
    top: 71%;
}

#power .right a:nth-child(5) {
    left: 33%;
    top: 77%;
}

#power .right a:nth-child(6) {
    left: 15%;
    top: 47%;
}

#power .right a:nth-child(7) {
    height: 90px;
    left: calc(50% - 45px);
    top: calc(50% - 20px);
    width: 90px;
}

/* optimal computation
   ========================================================================== */

#optimal { background: #3c3c3d; }

#optimal h1 {
    color: #fff;
    font-size: 1.8125rem;
    font-weight: 600;
    margin-bottom: .5rem;
    text-align: center;
}

#optimal h1 span { color: #ed9d2a; }

#optimal p {
    color: #bbb;
    font-size: 1.125rem;
    line-height: 1.6;
    padding-bottom: 2em;
    text-align: center;
}

#optimal .first.large {
    margin: auto;
    max-width: 1400px;
}

#optimal .first.large svg {
    background-image: url('/homepage/img/optimal-spread-1.png');
    background-repeat: no-repeat;
    background-size: contain;
    height: auto;
    max-width: 1400px;
    width: 100%;
}

#optimal .first.medium {
    display: none !important;
    margin: auto;
}

#optimal .first.medium svg {
    background-image: url('/homepage/img/optimal-spread-1__900.png');
    background-repeat: no-repeat;
    background-size: contain;
    height: auto;
    width: 100%;
}

#optimal .second.large {
    margin: auto;
    max-width: 1400px;
}

#optimal .second.large svg {
    background-image: url('/homepage/img/optimal-spread-2.png');
    background-repeat: no-repeat;
    background-size: contain;
    height: auto;
    max-width: 1400px;
    width: 100%;
}

#optimal .second.medium {
    display: none !important;
    margin: auto;
}

#optimal .second.medium svg {
    background-image: url('/homepage/img/optimal-spread-2__900.png');
    background-repeat: no-repeat;
    background-size: contain;
    height: auto;
    width: 100%;
}

#optimal svg a:hover .st0,
#optimal svg a:hover .st1 {
    border: solid 2px;
    fill: #ff790010;
    opacity: 1;
    stroke-dasharray: 2,2;
    stroke-linejoin: round;
    stroke-width: 4px;
    stroke: #ff79007a;
}

/* news & events
   ========================================================================== */

#news {
    column-count: 3;
    column-gap: 1rem;
}

#news > div {
    display: inline-block;
    margin-bottom: 1rem;
    width: 100%;
}

#news > div > div {
    border: 1px solid #cecece;
    border-top-width: 6px;
    padding: .5rem 1rem 1.25rem 1rem;
}

#news a {
    border-bottom: 1px solid #d9d9d8;
    color: #222;
    display: block;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

#news a:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#news a:hover { color: #222; }

#news > div > div:before {
    display: block;
    font-size: .8rem;
    margin-bottom: .5rem;
}

#news .technology { border-top-color: #de1705; }
#news .technology a:hover { color: #de1705; }
#news .technology:before {
    color: #de1705;
    content: 'ТЕХНОЛОГИЯ';
}

#news .computation { border-top-color: #ff6c0a; }
#news .computation a:hover { color: #ff6c0a; }
#news .computation:before {
    color: #ff6c0a;
    content: 'ВЫЧИСЛЕНИЯ';
}

#news .events { border-top-color: #c04194; }
#news .events a:hover { color: #c04194; }
#news .events:before {
    color: #c04194;
    content: 'СОБЫТИЯ';
}

#news .education { border-top-color: #82c097; }
#news .education a:hover { color: #5b9e71; }
#news .education:before {
    color: #82c097;
    content: 'ОБРАЗОВАНИЕ И ОБУЧЕНИЕ';
}

#news .data { border-top-color: #177fd4; }
#news .data a:hover { color: #177fd4; }
#news .data:before {
    color: #177fd4;
    content: 'ИССЛЕДОВАНИЯ И НАУКА О ДАННЫХ';
}

#news .explorations { border-top-color: #7363a8; }
#news .explorations a:hover { color: #7363a8; }
#news .explorations:before {
    color: #7363a8;
    content: 'ИССЛЕДОВАНИЯ';
}

#news .thumbnail {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: .3125rem;
    border: 1px solid #cecece;
    display: block;
    height: 100px;
    margin: 1.125rem auto;
    max-width: 20.5rem;
    width: 75%;
}

/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */

/* styles for large screens (1200px)
   ========================================================================== */

@media all and (max-width: 1200px) {
    #carousel .flexbox { padding: 0 1rem 0 2.5rem; }

    #carousel .cd-hero__slide.carousel-mathematica .left { width: 45%; }
    #carousel .cd-hero__slide.carousel-mathematica .right { width: 55%; }

	ul.cd-hero__slider li:first-of-type p.buttons { max-width:380px; }

    #power .page-width:before {
        background: url('/homepage/img/computation-bg__1200.png') no-repeat center -80px;
        background-size: 1153px;
    }

    #power h1,
    #power p { max-width: 955px; }

    #power .flexbox { max-width: 950px; }

    #power .left { max-width: 440px; }

    #power .right {
        height: 384px;
        width: 396px;
    }

    #power .right a { font-size: 1.01rem; }

    #power .flower {
        -moz-transform-origin: top right;
        -moz-transform: scale(.8);
        transform-origin: top right;
        transform: scale(.8);
    }
}

/* super special snowflake styles (950px) DO NOT DO THIS ELSEWHERE
   ========================================================================== */

@media all and (max-width: 950px) {
    #carousel .cd-hero__slide.carousel-mathematica .left { width: 50%; }
    #carousel .cd-hero__slide.carousel-mathematica .right { width: 50%; }

    #anim-link,
    #anim-container,
    #spikeymask,
    #spikeylink,
    #spikeymask img {
        height: 380px;
        width: 455px;
    }

    #i1,
    #i2,
    #i3,
    #i4,
    #i5,
    #i6,
    #i7 {
        height: 376px;
        width: 451px;
    }

    #i1 img,
    #i2 img,
    #i3 img,
    #i4 img,
    #i5 img,
    #i6 img,
    #i7 img {
        height: 376px;
        width: 611px;
    }
}

/* styles for medium screens (900px)
   ========================================================================== */

@media all and (max-width: 900px) {
    #carousel .flexbox { padding: 0 1rem; }

    .cd-hero__slider { height: 640px; }
    #carousel .cd-hero__content--img img { max-height: 200px; }
    
    ul.cd-hero__slider li:first-of-type p.buttons { max-width:unset; }

    #anim-link {
        background: url('/homepage/img/just-use-wolfram/spikeyload__900.png') no-repeat top left;
        background-size: cover;
    }

    #anim-link.alt-animation {
        background: url('/homepage/img/just-use-wolfram/spikeyload2__900.png') no-repeat top left;
        background-size: cover;
    }

    #anim-link,
    #anim-container,
    #spikeymask,
    #spikeylink,
    #spikeymask img {
        height: 200px;
        width: 239px;
    }

    #i1,
    #i2,
    #i3,
    #i4,
    #i5,
    #i6,
    #i7 {
        height: 196px;
        width: 235px;
    }

    #i1 img,
    #i2 img,
    #i3 img,
    #i4 img,
    #i5 img,
    #i6 img,
    #i7 img {
        height: 196px;
        width: 318px;
    }

    #t1,
    #t1a {
        bottom: 35px;
        left: -31px;
    }

    #anim-link.alt-animation #t1,
    #anim-link.alt-animation #t1a {
        bottom: 27px;
        left: -29px
    }

    #t2,
    #t2a {
        bottom: 85px;
        left: -60px;
    }

    #t3,
    #t3a {
        bottom: 140px;
        left: -110px;
    }

    #t4,
    #t4a {
        bottom: 140px;
        right: -95px;
    }

    #t5,
    #t5a {
        bottom: 85px;
        right: -65px;
    }

    #t6,
    #t6a {
        bottom: 25px;
        right: -40px;
    }

    #t7,
    #t7a {
        bottom: 5px;
        display: none;
        right: 50px;
    }

    #power { background: #f0f0f0; }

    #power .page-width:before { display: none; }
    #power .page-width { background: url('/homepage/img/computation-bg__900.png') no-repeat 50% -265px; }

    #power h1 {
        padding-top: 3.5rem;
        text-align: center;
    }

    #power h2 { text-align: center; }

    #power p,
    #power p span { max-width: 480px; }

    #power .left .col1 a.button,
    #power .left .col2 a.button { border: 2px solid #bfbfbf; }

    #power .left .col1 a.button:hover,
    #power .left .col2 a.button:hover { background: #dd1100; }

    #power .left a.button,
    #power .left .col1,
    #power .left .col2 { max-width: 268px; }

    #power .left a.button { margin: 0 1rem 1.05rem 0; }

    #power .left .col1 { padding-right: .3rem; }

    #power .left .col2 { padding-top: 0; }

    #power .left .col2 a.button:last-child:hover { background: none; }

    #power .right {
        height: 400px;
        margin-left: 0;
        width: 495px;
    }

    #power .flower {
        -moz-transform: scale(.8);
        float: none;
        margin: 0 auto;
        transform-origin: top center;
        transform: scale(.8);
    }

    #power .right a {
        font-size: 0.9rem;
        line-height: 1.15;
    }

    #power .right a:nth-child(2) {
        left: 36%;
        top: 14%;
    }

    #power .right a:nth-child(3) {
        left: 70%;
        top: 30%;
    }

    #power .right a:nth-child(4) {
        left: 66%;
        top: 71%;
    }

    #power .right a:nth-child(5) {
        left: 33%;
        top: 77%;
    }

    #power .right a:nth-child(6) {
        left: 15%;
        top: 47%;
    }

    #optimal .large.show { display: none !important; }
    #optimal .medium.show { display: block !important; }

    #news { column-count: 2; }
}

/* styles for small screens (600px)
   ========================================================================== */

@media all and (max-width: 600px) {
    #carousel .flexbox { height: 600px; }

    .cd-hero__nav {
        background: rgba(42, 42, 42, .8);
        border: none;
        height: auto;
        position: sticky;
        width: auto;
    }

    .cd-hero__nav ul.outer-ul li:not(.scroll) {
        border: none;
        width: auto;
    }

    .cd-hero__nav ul.outer-ul li.scroll {
        overflow-x: auto;
        width: 100%;
    }

    .cd-hero__nav ul.outer-ul li.arrow { display: none; }

    .cd-hero__nav ul.inner-ul {
        justify-content: center !important;
        overflow: hidden;
    }

    .cd-hero__nav ul.inner-ul li {
        border: none;
        width: auto;
    }

    .cd-hero__nav ul.inner-ul li:first-child,
    .cd-hero__nav ul.inner-ul li:last-child { border: none }

    .cd-hero__nav ul.inner-ul a {
        min-height: auto;
        padding: 0;
    }

    .cd-hero__nav ul.inner-ul li.cd-selected a,
    .cd-hero__nav ul.inner-ul li a:hover { background-color: transparent; }

    .cd-hero__nav ul.inner-ul li.cd-selected {
        background-color: transparent;
        border: none;
        box-sizing: content-box;
        outline: none;
        position: relative;
        top: 0;
        width: auto;
    }

    .cd-hero__nav ul.inner-ul li.cd-selected:before { display: none; }

    #power .page-width { background-position: 50% -405px; }

    #power .flexbox { overflow: visible; }

    #power h1 { max-width: 350px; }

    #power h2 { padding-top: 1.5rem; }

    #power .left {
        max-width: 430px;
        width: 100%;
    }

    #power .left .col1 { padding-right: 0; }

    #power .left a.button { margin: 0 1rem .8rem 0; }

    #power .right {
        height: 73vw;
        margin-left: 0;
        width: 100%;
    }

    #power .right a:nth-child(6) {
        left: 9%;
        top: 47%;
    }

    #power .flower {
        -moz-transform: scale(.8);
        height: 90vw;
        margin: inherit;
        transform-origin: top center;
        transform: scale(.8);
        width: 100%;
    }

    #power .flower:before { display: none; }

    #flowerhover { display: none; }

    #optimal .large.show { display: block !important; }
    #optimal .medium.show { display: none !important; }

    #optimal .large svg {
        height: auto;
        max-width: 1400px;
        position: absolute;
        right: 0px;
        width: 280vw !important;
    }

    #optimal .large {
        display: block;
        height: 75vw;
        max-height: 390px;
        position: relative;
    }

    #news { column-count: 1; }
}

/* styles for small screens (500px)
   ========================================================================== */

@media all and (max-width: 500px) {
	ul.cd-hero__slider li:first-of-type p.buttons {
		margin: auto;
		max-width: 330px;
	}
}

/* printer styles
   ========================================================================== */

@media print {
}
