@import url(https://fonts.googleapis.com/css?family=Open+Sans);
.step-btn,
body {
    font-size: 16px;
}
.step-btn,
.step-item {
    width: 100%;
    color: #fff;
}
.step-btn,
.step-item h1 {
    text-transform: uppercase;
}
* {
    margin: 0;
    padding: 0;
    font-size: 100%;
    font: inherit;
    box-sizing: border-box;
}
body,
html {
    height: 100%;
}
body {
    min-width: 320px;
    overflow-x: hidden;
    font-family: Open Sans, Lato, Helvetica Neue, Helvetica, Arial, sans-serif;
    line-height: 1.4;
    font-weight: 400;
    color: #282828;
    z-index: 0;
}
.wrapper {
    z-index: 1;
}
.step-block,
.wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.step-btn {
    display: inline-flex;
    justify-content: center;
    background-color: #353536;
    padding: 18px 20px;
    flex: 1;
    text-align: center;
    align-self: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    -webkit-transition: 0.25s;
    transition: 0.25s;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}
.step-btn:hover {
    background-color: #282829;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.18), 0 8px 16px rgba(0, 0, 0, 0.36);
}
.step-btn:active {
    background-color: #1c1c1c;
}
.step-block {
    display: flex;
    -ms-align-items: center;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.step-item {
    max-width: 440px;
    padding: 20px;
    background: #1d2022;
    border-radius: 8px;
    display: none;
}
.step-item img {
    max-width: 100%;
}
.step-item h1 {
    border-radius: 8px;
    background: #353536;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    font-size: 1.6rem;
}
.step-item h2,
.step-item h5 {
    text-transform: uppercase;
    margin-bottom: 10px;
}
.step-item p {
    font-size: 1.125em;
    margin-bottom: 30px;
}
.step-item .circle {
    width: 60px;
    height: 60px;
    border: 4px solid hsla(0, 0%, 100%, 0.4);
    border-radius: 50%;
    margin: auto;
    line-height: 54px;
    text-align: center;
    font-size: 1.5em;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: 0.2s;
    transition: 0.2s;
}
.step-item .circle span {
    display: block;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.step-item-1 {
    display: block;
}
.step-item-2 .circle {
    border-top-color: #fff;
}
.step-item-3 .circle,
.step-item-4 .circle {
    border-top-color: #fff;
    border-right-color: #fff;
}
.step-item-4 .circle {
    border-bottom-color: #fff;
}
.step-item-5 .circle {
    border: 4px solid #fff;
}
.slider-block {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}
.slider {
    overflow: hidden;
    position: relative;
    width: 400px;
    height: 400px;
}
.slider-item,
.slider-item img {
    width: 100%;
    height: 100%;
}
.slider-item {
    position: absolute;
    top: 0;
    left: 0;
}
.slider-btn,
.slider-btn::before {
    position: absolute;
    top: 50%;
    display: block;
}
.slider-btn {
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    z-index: 1;
}
.slider-btn::before {
    content: "";
    border: 5px solid #000;
    width: 1rem;
    height: 1rem;
    -webkit-transform: translateY(-50%) rotate(45deg);
    transform: translateY(-50%) rotate(45deg);
}
.bg-block,
.bg-block:after {
    width: 100%;
    height: 100%;
    left: 0;
    z-index: -1;
}
#prev-btn {
    left: 10px;
}
#prev-btn::before {
    left: 10px;
    border-right: 0;
    border-top: 0;
}
#next-btn {
    right: 10px;
}
#next-btn::before {
    right: 10px;
    border-left: 1px;
    border-bottom: 1px;
}
.bg-block {
    position: fixed;
    top: 0;
    background-color: #fff;
    background-image: url(../img/pattern.png);
    background-repeat: repeat;
}
.bg-block:after {
    position: absolute;
    content: "";
    bottom: 0;
    display: block;
    background: rgba(29, 32, 34, 0.8);
}
.frame {
    position: absolute;
    z-index: 2;
    margin-top: -400px;
}
@media (min-width: 320px) and (max-width: 359px) {
    .next-btn,
    .slider-block,
    .step-item h1 {
        margin-bottom: 5px;
    }
    h1,
    h2 {
        font-size: 1.125em;
    }
    .next-btn {
        padding: 10px 20px;
    }
    .step-block {
        background: #1d2022;
    }
    .step-item h2,
    .step-item h5 {
        margin-bottom: 10px;
    }
    .step-item p {
        margin-bottom: 20px;
    }
    .step-item .stepprogress {
        margin-top: 20px;
    }
}
@media (min-width: 320px) and (max-width: 767px) {
    .step-item .stepprogress {
        margin-top: 20px;
    }
    .step-block {
        background: #1d2022;
    }
    .bg-block {
        background-color: #1d2022;
        background-image: none;
    }
}
@media screen and (max-width: 480px) {
    .step-item {
        max-width: 360px;
    }
    .slider {
        width: 320px;
        height: 320px;
    }
    .frame {
        margin-top: -320px;
    }
}
@media screen and (max-width: 360px) {
    .step-item {
        max-width: 320px;
        padding: 10px;
    }
    .slider {
        width: 300px;
        height: 300px;
    }
}
@media screen and (max-height: 730px) {
    .wrapper {
        height: auto;
    }
}
