* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #edf2f5;
    color: #1b2b45;
    font-family: Arial, Helvetica, sans-serif;
}

button {
    font: inherit;
}

.demo-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 30px 34px;
}

.demo-intro {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 0 0 26px;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.demo-kicker,
.demo-intro h1,
.demo-intro p {
    margin-top: 0;
}

.demo-kicker {
    margin-bottom: 8px;
    color: #15965b;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.demo-intro h1 {
    margin-bottom: 8px;
    font-size: 34px;
    line-height: 1;
}

.demo-intro > div > p:last-child {
    margin-bottom: 0;
    color: #607089;
}

.demo-effects {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding-bottom: 2px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.demo-effects span {
    margin-right: 10px;
    color: #718096;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.demo-effects button {
    min-width: 62px;
    margin-left: 5px;
    padding: 8px 11px;
    border: 1px solid #c9d4dd;
    background: #fff;
    color: #4d5f75;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.demo-effects button:hover,
.demo-effects button:focus,
.demo-effects button[aria-pressed='true'] {
    border-color: #15965b;
    background: #5fd591;
    color: #173024;
    outline: 0;
}

.demo-hint {
    margin: 20px 0 0;
    color: #718096;
    font-size: 13px;
    text-align: center;
}

/* Stacked example sections */

.demo-examples {
    margin-top: 74px;
}

.demo-examples > header h2 {
    margin: 0 0 8px;
    font-size: 27px;
    line-height: 1;
}

.demo-examples > header p {
    margin: 0;
    color: #607089;
}

.demo-example {
    margin-top: 46px;
}

.demo-example > header {
    max-width: 760px;
    margin-bottom: 14px;
}

.demo-example > header h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.demo-example > header p {
    margin: 0;
    color: #607089;
    font-size: 14px;
    line-height: 1.55;
}

.demo-example code {
    padding: 1px 5px;
    background: #dde6ec;
    color: #1b2b45;
    font-family: Consolas, Menlo, monospace;
    font-size: 13px;
}

/* Compact slider variant used by the examples */

.demo-compact .dx-slide {
    min-height: 260px;
    padding: 42px 8% 100px;
}

.demo-compact .dx-slide__copy {
    width: 100%;
    max-width: 640px;
}

.demo-compact .dx-slide h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -1px;
}

.demo-compact .dx-slide__copy > p:last-child {
    font-size: 15px;
}

.demo-compact .dx-slide code {
    padding: 1px 5px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 13px;
}

.demo-compact .dx-footer {
    height: 56px;
    padding: 0 18px;
}

/* Examples without a footer bar */

.demo-bare .dx-slide {
    min-height: 220px;
    padding-bottom: 46px;
}

/* Auto height example: let slides take their natural height */

.demo-autoheight .dx-track {
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.demo-autoheight .dx-slide {
    min-height: 0;
}

/* Remote control example */

.demo-remote {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.demo-remote button {
    margin: 10px 8px 0 0;
    padding: 8px 12px;
    border: 1px solid #c9d4dd;
    background: #fff;
    color: #4d5f75;
    font-family: Consolas, Menlo, monospace;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.demo-remote button:hover,
.demo-remote button:focus {
    border-color: #15965b;
    background: #5fd591;
    color: #173024;
    outline: 0;
}

.demo-remote__state {
    margin: 10px 0 0 6px;
    color: #607089;
    font-family: Consolas, Menlo, monospace;
    font-size: 12px;
}

/* DOM events example */

.demo-log {
    margin: 12px 0 0;
    padding: 14px 18px;
    list-style: none;
    background: #1b2b45;
    color: #9fb1c9;
    font-family: Consolas, Menlo, monospace;
    font-size: 12px;
    line-height: 1.7;
}

.demo-log li:first-child {
    color: #5fd591;
}

@media (max-width: 760px) {
    .demo-shell {
        padding: 28px 16px;
    }

    .demo-intro {
        display: block;
    }

    .demo-intro h1 {
        font-size: 29px;
    }

    .demo-effects {
        margin-top: 18px;
        padding-bottom: 0;
    }

    .demo-examples {
        margin-top: 54px;
    }

    .demo-example {
        margin-top: 38px;
    }

    .demo-compact .dx-slide {
        min-height: 240px;
        padding: 30px 18px 96px;
    }

    .demo-compact .dx-slide h3 {
        font-size: 25px;
    }

    .demo-bare .dx-slide {
        min-height: 200px;
        padding-bottom: 38px;
    }

    .demo-autoheight .dx-slide {
        min-height: 0;
    }
}
