@charset "utf-8";
/* CSS Document */

body {
    margin: 0;
    padding: 0;
    font-family: 'Avenir-Book';
    font-size: 16px;
    background-color: #FFF;
}
.container {
    max-width: 1000px;
}
h1 {
    font-family: 'Chronic-Regular';
    color: #F3410E;
    font-size: 48px;
    font-weight: normal;
    margin: 0 0 20px 0;
    padding: 0;
    line-height: 1.1;
}
strong {
    font-family: 'Avenir-Heavy';
    font-weight: normal;
}
p a {
    color: #F3410E;
    text-decoration: none;
}
section {
    transition: 1s all;
}
section .tabs.main {
    height: 100%;
}
p.note {
    font-size: 14px;
}

/* HEADER FOOTER */

header {
    width: 100%;
    height: 50px;
    position: relative;
    z-index: 10;
}
footer {
    width: 100%;
    position: relative;
    z-index: 10;
    margin-top: -70px;
}
.popup .placer {
    max-width: 660px;
    padding: 40px;
}
.popup .closeBtn {
    width: 30px;
    height: 30px;
    background: url('../images/closeBtn.png') center no-repeat;
    background-size: contain;
    border: none;
    border-radius: 0;
}
.popup .closeBtn:before,
.popup .closeBtn:after {
    display: none;
}

/* BUTTONS */

.link {
    color: #009fe5;
    font-family: 'Avenir-Medium';
}
.actions {
    text-align: center;
}
.button {
    min-width: 180px;
    background: #F3410E;
    display: inline-block;
    padding: 5px 20px 10px 20px;
    box-sizing: border-box;
    color: #FFF;
    font-family: 'Chronic-Regular';
    font-weight: normal;
    font-size: 24px;
    border-radius: 20px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border: 0px;
    position: relative;
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    transition: 0.3s all;
    margin: 5px;
    cursor: pointer;
}

/*.button:hover {*/
/*    background: #F3410E;*/
/*}*/

.button span.shape {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.button span span {
    content:"";
    position: absolute;
    margin: auto;
    height: 8px;
    width: 2px;
    background: #F3410E;
    opacity: 0;
}

.button span span:nth-of-type(1) {
    top: -15px;
    left: 0;
    right: 0;
}

.button span span:nth-of-type(2) {
    bottom: -15px;
    left: 0;
    right: 0;
}

.button span span:nth-of-type(3) {
    top:0;
    bottom: 0;
    left: -10px;
}

.button span span:nth-of-type(4) {
    top:0;
    bottom: 0;
    right: -10px;
}

.button span span:nth-of-type(5) {
    top: -15px;
    left: -70%;
    right: 0;
    transform:rotate(-30deg);
}

.button span span:nth-of-type(6) {
    top: -15px;
    left: 0;
    right: -70%;
    transform:rotate(30deg);
}

.button span span:nth-of-type(7) {
    bottom: -15px;
    right: 0;
    left: -70%;
    transform:rotate(30deg);
}

.button span span:nth-of-type(8) {
    bottom: -15px;
    left: 0;
    right: -70%;
    transform:rotate(-30deg);
}

@keyframes bounce {
    0%{transform: scale(1);}
    50%{transform: scale(1.1);}
    100%{transform: scale(1);}
}

.button.active {
    animation: bounce 0.3s ease-out 1;
}

.button.active span span:nth-of-type(1) {
    animation: anim1 0.4s ease-out 1;
}
.button.active span span:nth-of-type(2) {
    animation: anim2 0.4s ease-out 1;
}
.button.active span span:nth-of-type(3) {
    animation: anim3 0.4s ease-out 1;
}
.button.active span span:nth-of-type(4) {
    animation: anim4 0.4s ease-out 1;
}
.button.active span span:nth-of-type(5) {
    animation: anim5 0.4s ease-out 1;
}
.button.active span span:nth-of-type(6) {
    animation: anim6 0.4s ease-out 1;
}
.button.active span span:nth-of-type(7) {
    animation: anim7 0.4s ease-out 1;
}
.button.active span span:nth-of-type(8) {
    animation: anim8 0.4s ease-out 1;
}

@keyframes anim1 {
    0%{transform: scaleY(0.5);opacity: 0;}
    50%{transform: translateY(-10px) scaleY(1.4); opacity: 1;}
    100%{transform: translateY(-20px) scaleY(0.5);opacity: 0;}
}
@keyframes anim2 {
    0%{transform: scaleY(1);opacity: 0;}
    50%{transform: translateY(10px) scaleY(1.4); opacity: 1;}
    100%{transform: translateY(20px) scaleY(0.5);opacity: 0;}
}
@keyframes anim3 {
    0%{transform: rotate(90deg) scaleX(0.5);opacity: 0;}
    50%{transform: rotate(90deg) translateY(10px) scaleX(1.4); opacity: 1;}
    100%{transform: rotate(90deg) translateY(20px) scaleX(0.5);opacity: 0;}
}
@keyframes anim4 {
    0%{transform: rotate(90deg) scaleX(0.5);opacity: 0;}
    50%{transform: rotate(90deg) translateY(-10px) scaleX(1.4); opacity: 1;}
    100%{transform: rotate(90deg) translateY(-20px) scaleX(0.5);opacity: 0;}
}
@keyframes anim5 {
    0%{transform: rotate(-30deg) scaleY(0.5);opacity: 0;}
    50%{transform: rotate(-30deg) translateY(-8px) scaleY(1.4); opacity: 1;}
    100%{transform: rotate(-30deg) translateY(-16px) scaleY(0.5);opacity: 0;}
}
@keyframes anim6 {
    0%{transform: rotate(30deg) scaleY(0.5);opacity: 0;}
    50%{transform: rotate(30deg) translateY(-8px) scaleY(1.4); opacity: 1;}
    100%{transform: rotate(30deg) translateY(-16px) scaleY(0.5);opacity: 0;}
}
@keyframes anim7 {
    0%{transform: rotate(30deg) scaleY(0.5);opacity: 0;}
    50%{transform: rotate(30deg) translateY(8px) scaleY(1.4); opacity: 1;}
    100%{transform: rotate(30deg) translateY(16px) scaleY(0.5);opacity: 0;}
}
@keyframes anim8 {
    0%{transform: rotate(-30deg) scaleY(0.5);opacity: 0;}
    50%{transform: rotate(-30deg) translateY(8px) scaleY(1.4); opacity: 1;}
    100%{transform: rotate(-30deg) translateY(16px) scaleY(0.5);opacity: 0;}
}

.linkBtn {
    text-decoration: none;
    display: inline-block;
    color: #F3410E;
    font-family: 'Chronic-Regular';
    font-weight: normal;
    font-size: 16px;
    margin: 20px;
    transition: 0.3s all;
}
.linkBtn:after {
    content: '';
    width: 100%;
    height: 1px;
    display: block;
    background: #F3410E;
    margin-top: 5px;
    transition: 0.3s all;
}
.linkBtn:hover {
    color: #000;
}
.linkBtn:hover:after {
    transform: scaleX(1.2);
}

/* FORM */

.inwrap {
    margin: 0 0 20px 0;
}
.inwrap:after {
    content: '';
    clear: both;
    display: block;
}
.inwrap input[type=text],
.inwrap input[type=date]{
    height: 48px;
    border: 4px #F3410E solid;
    font-size: 20px;
    border-radius: 20px;
}
.inwrap .check label .mark:after,
.inwrap .radio label .mark:after{
    display: none;
}
.inwrap .check label .mark:before,
.inwrap .radio label .mark:before{
    content: '';
    width: 24px;
    height: 24px;
    line-height: 24px;
    display: inline-block;
    box-sizing: content-box;
    border: 4px #F3410E solid;
    color: #F3410E;
    background-color: #FFF;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 20px;
    border-radius: 10px;
    margin-right: 12px;
    cursor: pointer;
}
.inwrap .check label .mark:before {
    margin-top: 1px;
    vertical-align: top;
}
.inwrap .check label .mark .option{
    width: calc(100% - 44px);
    display: inline-block;
    vertical-align: middle;
}
.inwrap .check label .mark .option {
    font-size: 13px;
    font-weight: 500;
    color: #FFF;
}
.inwrap .check label .mark .option a {
    color: #FFF;
}
.inwrap .check label input[type=checkbox]:checked + .mark:before {
    content: '✓';
}
.inwrap textarea {
    height: 140px;
    border: 4px #F3410E solid;
    font-size: 20px;
    border-radius: 20px;
}
.inwrap .select {
    height: 48px;
    border: 4px #F3410E solid;
    border-radius: 20px;
}
.inwrap .select select {
    font-family: 'Chronic-Regular';
    font-size: 20px;
    padding: 0 6px;
}
.inwrap textarea,
.inwrap input[type=text],
.inwrap input[type=date] {
    font-family: 'Avenir-Heavy';
    font-size: 16px;
}
.inwrap textarea::placeholder,
.inwrap input[type=text]::placeholder,
.inwrap input[type=date]::placeholder {
    font-family: 'Chronic-Regular';
    font-size: 20px;
}
.inwrap .field.error input[type=text],
.inwrap .field.error input[type=date],
.inwrap .field.error textarea,
.inwrap .field.error .select{
    border: 4px #F3410E solid;
}

/* STORYBOOK */

.storyBook {
    height: 100%;
}
.storyBook .bookPage {
    height: 100%;
    position: relative;
}
.storyBook .bookPage.pageContent {
    max-width: 45%;
    height: 100%;
    position: relative;
    background: #FFF;
    padding: 80px 0 110px 0;
    text-align: center;
    box-sizing: border-box;
    z-index: 2;
}
.storyBook .bookPage.pageContent:after {
    content: '';
    width: 1000px;
    height: 100%;
    display: block;
    position: absolute;
    right: -1000px;
    top: 0;
    margin-left: -2px;
    background: url('../images/bookPageCurveSeparator.svg') center left no-repeat;
    background-size: auto 100%;
    pointer-events: none;
}
.storyBook .bookPage.pageContent .tabs.main {
    height: 100%;
}
.storyBook .bookPage.pageContent .tabs.main .tab.main {
    height: 100%;
}
.storyBook .bookPage.pageContent .container {
    max-width: 460px;
}
.storyBook .bookPage.pageContent .content {
    text-align: left;
}
.storyBook .bookPage.pageContent h1 {
    margin: 0 0 60px 0;
}
.storyBook .bookPage.pageContent .actions {
    /*margin: 60px 0 0 0;*/
    margin: 60px 0px 40px 0px;
}
.storyBook .bookPage.pagePicture {
    width: 55%;
    position: fixed;
    left: 45%;
    top: 55px;
    bottom: 0;
    z-index: 1;
}
.storyBook .bookPage.pagePicture .tabs.main {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}
.storyBook .bookPage.pagePicture .picture {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-size: cover;
}

/* CONTEST */

section#contest {
    background: url('../images/contestBg.jpg') center no-repeat;
    background-size: cover;
    text-align: center;
    padding: 40px 0 110px 0;
}
section#contest form .actions {
    margin: 0 0 60px 0;
}
section#contest form {
    max-width: 400px;
    margin: auto;
}
section#contest .link {
    color: #F3410E;
}

/* SUCCESS */

.popup .success {
    text-align: left;
}
.popup .success h1 {
    font-size: 36px;
    text-align: left;
}
.popup .success .block {
    display: inline-block;
    vertical-align: middle;
}
.popup .success .block:nth-of-type(1) {
    max-width: 240px;
}
.popup .success .block:nth-of-type(2) {
    max-width: 320px;
}

/* BOOKSTORE */

section#bookstore {
    background: #fff8f0;
    text-align: center;
    padding: 40px 0 0 0;
}
section#bookstore h1 {
    text-align: center;
}
section#bookstore .tab.main {
    overflow: hidden;
}
section#bookstore .bookshelf {
    max-width: 500px;
    position: relative;
    margin: 60px auto 60px auto;
}
section#bookstore .bookshelf .stories {
    position: relative;
}
section#bookstore .bookshelf .stories .scaler {
    padding-bottom: 100%;
}
section#bookstore .bookshelf .stories .shelf {
    width: 300%;
    max-width: none;
    display: block;
    position: absolute;
    left: -100%;
    top: 0;
}
section#bookstore .bookshelf .stories .story {
    position: absolute;
}
section#bookstore .bookshelf .stories .story .toy {
    width: 100%;
    max-width: none;
    position: relative;
    transition: 0.3s all;
    transform: scale(1.1);
    opacity: 0;
}
section#bookstore .bookshelf .stories .story.highlight .toy,
section#bookstore .bookshelf .stories .story:hover .toy {
    opacity: 1;
    transform: scale(1);
}
section#bookstore .bookshelf .stories .story.s3 {
    width: 23.7%;
    left: 53%;
    top: 52.3%;
    z-index: 3;
}
section#bookstore .bookshelf .stories .story.s6 {
    width: 29%;
    left: 49.1%;
    top: 26.3%;
    z-index: 2;
}
section#bookstore .bookshelf .stories .story.s10 {
    width: 33.8%;
    left: 59%;
    top: -1.7%;
    z-index: 1;
}
section#bookstore .bookshelf .stories .story .symbol {
    width: 42px;
    height: 30px;
    background: #F3410E;
    border-radius: 20px;
    position: absolute;
    right: 10%;
    bottom: 100%;
    margin-bottom: 10px;
    font-family: 'Chronic-Regular';
    color: #FFF;
    line-height: 26px;
    font-size: 20px;
    text-align: center;
    transition: 0.3s all;
    transform: translateY(0);
    opacity: 1;
}
section#bookstore .bookshelf .stories .story .symbol:after {
    content: '';
    width: 10px;
    height: 10px;
    display: block;
    position: absolute;
    left: 50%;
    bottom: -5px;
    margin-left: -5px;
    background: #F3410E;
    transform: rotate(45deg);
}
section#bookstore .bookshelf .stories .story:hover .symbol {
    opacity: 1;
    transform: translateY(0);
}
section#bookstore .bookshelf .stories .story .symbol span {
    font-size: 36px;
    display: inline-block;
    vertical-align: top;
    margin-top: -2px;
}
section#bookstore .bookshelf .stories .story .tooltip {
    width: 140px;
    height: 94px;
    position: absolute;
    left: 100%;
    top: 50%;
    margin-top: -47px;
    margin-left: 10px;
    padding: 10px;
    color: #FFF;
    font-family: 'Chronic-Regular';
    font-size: 18px;
    box-sizing: border-box;
    transform: translateX(0);
    transition: 0.3s all;
    opacity: 0;
    line-height: 1;
}
section#bookstore .bookshelf .stories .story:hover .tooltip {
    transform: translateX(0);
    opacity: 1;
}
section#bookstore .bookshelf .stories .story .tooltip .bg {
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    background: #F3410E;
    left: 0;
    top: 0;
    border-radius: 20px;
    opacity: 0.8;
}
section#bookstore .bookshelf .stories .story .tooltip .bg:after {
    content: '';
    width: 10px;
    height: 10px;
    display: block;
    position: absolute;
    left: -5px;
    top: 50%;
    margin-top: -5px;
    background: #F3410E;
    transform: rotate(45deg);
}
section#bookstore .bookshelf .stories .story .tooltip .content {
    position: relative;
}

/* CUSTOM */

section#custom {
    padding: 60px 0 130px 0;
}
section#custom .sides {
    margin: 0 0 40px 0;
}
section#custom .sides:after {
    content: '';
    display: block;
    clear: both;
}
section#custom .side:nth-of-type(1) {
    width: calc(50% - 40px);
    margin: 0 40px 0 0;
    float: left;
}
section#custom .side:nth-of-type(2) {
    width: 50%;
    margin: 0;
    float: left;
    position: relative;
}
section#custom .side .floater {
    position: relative;
    top: 0;
    transition: 0.5s all;
}
section#custom h1 {
    color: #000;
    text-align: left;
}
section#custom .formblock:after {
    content: '';
    clear: both;
    display: block;
}
section#custom .formblock .slice .inwrap {
    margin: 0;
}
section#custom .formblock .slice {
    width: calc((100% - 20px) / 2);
    float: left;
    margin: 0 20px 0 0;
}
section#custom .formblock .slice:last-of-type {
    margin: 0;
}
section#custom .side:nth-of-type(1) .avatar {
    display: none;
}
section#custom .makeup {
    margin: 40px 0;
}
section#custom .parts .part {
    margin: 0 0 20px 0;
}
section#custom .parts .part .label {
    width: 180px;
    display: inline-block;
    vertical-align: middle;
    font-family: 'Chronic-Regular';
    font-size: 20px;
    transition: 0.3s all;
}
section#custom .parts .part:hover .label {
    color: #F3410E;
}
section#custom .parts .part .options {
    display: inline-block;
    vertical-align: middle;
}
section#custom .parts .part .options:after {
    content: '';
    display: block;
    clear: both;
}
section#custom .parts .part .options .option {
    position: relative;
}
section#custom .parts .part .options .option.radio {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    box-sizing: content-box;
    float: left;
    border: 4px #FFF solid;
    margin: 1px;
    background: #FFE6CB;
    transition: 0.3s all;
    cursor: pointer;
}
section#custom .parts .part .options .option.radio:hover {
    transform: scale(1.1);
}
section#custom .parts .part .options .option.radio.active {
    border-color: #000;
}
section#custom .parts .part .options .option.check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #FFE6CB;
    float: left;
    box-sizing: content-box;
    border: 4px #FFF solid;
    margin: 1px;
    transition: 0.3s all;
    position: relative;
    cursor: pointer;
}
section#custom .parts .part .options .option.check:hover {
    transform: scale(1.1);
}
section#custom .parts .part .options .option.check.active {
    border-color: #000;
}
section#custom .parts .part .options .option.check:before,
section#custom .parts .part .options.models .option.radio:before{
    content: '';
    width: 34px;
    height: 28px;
    background: url('../images/check.svg') center no-repeat;
    display: block;
    background-size: contain;
    position: absolute;
    left: 50%;
    margin-left: -10px;
    top: 50%;
    margin-top: -19px;
    transition: 0.3s all;
    transform: scale(0.7);
    opacity: 0;
}
section#custom .parts .part .options .option.check.active:before {
    opacity: 1;
    transform: scale(1);
}
section#custom .parts .part .options.models .option {
    border-radius: 50%;
}
section#custom .parts .part .options.models .option:after {
    content: attr(data-option);
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    text-align: center;
    font-family: 'Chronic-Regular';
    font-size: 20px;
    opacity: 1;
    transition: 0.3s all;
}
section#custom .parts .part .options.models .option.radio.active:after {
    opacity: 0;
}
section#custom .parts .part .options.models .option.radio.active:before {
    opacity: 1;
    transform: scale(1);
}
section#custom .side:after {
    content: '';
    display: block;
    clear: both;
}
section#custom .avatar {
    width: calc(70% - 20px);
    margin-right: 20px;
    float: left;
}
section#custom .avatar img {
    width: 80%;
    max-width: none;
    display: block;
    margin: 0 auto 20px auto;
    position: relative;
}
section#custom .avatar[data-avatar="10"] img {
    width: 60%;
}
section#custom .avatar[data-avatar="6"] img {
    width: 116%;
    left: -8%;
}
section#custom .avatar[data-avatar="3"] img {
    width: 80%;
}
section#custom .avatar .nav {
    max-width: 140px;
    margin: 0 auto 20px auto;
}
section#custom .avatar .nav:after {
    content: '';
    display: block;
    clear: both;
}
section#custom .avatar .nav .prevBtn {
    width: 50px;
    height: 50px;
    background: url('../images/prevBtn.svg') center no-repeat;
    background-size: contain;
    cursor: pointer;
    transition: 0.3s all;
    float: left;
}
section#custom .avatar .nav .prevBtn:hover {
    transform: scale(1.2);
}
section#custom .avatar .nav .nextBtn {
    width: 50px;
    height: 50px;
    background: url('../images/nextBtn.svg') center no-repeat;
    background-size: contain;
    cursor: pointer;
    transition: 0.3s all;
    float: right;
}
section#custom .avatar .nav .nextBtn:hover {
    transform: scale(1.2);
}
section#custom .myAvatars {
    width: 30%;
    float: left;
    text-align: center;
}
section#custom .myAvatars .actions {
    text-align: center;
}
section#custom .myAvatars .items {

}
section#custom .myAvatars .myAvatar {
    width: 144px;
    height: 144px;
    display: inline-block;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 50%;
    position: relative;
    background: #137bbe;
    border: 4px #FFF solid;
    box-sizing: border-box;
    cursor: pointer;
    transition: 0.3s all;
}
section#custom .myAvatars .myAvatar:hover,
section#custom .myAvatars .myAvatar.selected{
    border-color: #000;
}
section#custom .myAvatars .myAvatar img {
    position: absolute;
    left: 0;
    top: 0;
}
section#custom .myAvatars .myAvatar.story3 img {
    width: 84%;
    left: 9%;
    top: -5%;
}
section#custom .myAvatars .myAvatar.story6 img {
    width: 84%;
    left: 9%;
}
section#custom .myAvatars .myAvatar.story6.boy img {
    top: 13%;
}
section#custom .myAvatars .myAvatar.story6.girl img {
    top: 13%;
}
section#custom .myAvatars .myAvatar.story10 img {
    width: 80%;
    left: 13%;
}
section#custom .myAvatars .myAvatar.story10.boy img {
    top: 8%;
}
section#custom .myAvatars .myAvatar.story10.girl img {
    top: -10%;
}
section#custom .myAvatars .title {
    font-family: 'Chronic-Regular';
    color: #000;
    font-size: 20px;
    font-weight: normal;
    text-align: center;
    text-transform: uppercase;
}
section#custom .avatar .actions {
    display: none;
}
section#custom .avatar .resetAvatar {
    min-width: auto;
    max-width: 180px;
    display: block;
    margin: auto;
}
section#custom .actions {
    text-align: left;
}

/* STORY */

section#story {
    min-height: 700px;
}
section#story .title {
    margin: 0 0 40px 0;
    font-family: 'Georgia';
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}
section#story .title .name {
    font-size: 42px;
    letter-spacing: 10px;
    margin: 0 0 8px 0;
}
section#story .title .world {
    font-size: 16px;
    display: inline-block;
    position: relative;
    margin: 0 0 8px 0;
}
section#story .content[data-part='middle'] .actions {
    text-align: left;
}
section#story .title .world:before {
    content: '';
    width: 30px;
    height: 2px;
    display: block;
    background: #000;
    position: absolute;
    right: 100%;
    top: 50%;
    margin-right: 10px;
    margin-top: -1px;
}
section#story .title .world:after {
    content: '';
    width: 30px;
    height: 2px;
    display: block;
    background: #000;
    position: absolute;
    left: 100%;
    top: 50%;
    margin-left: 10px;
    margin-top: -1px;
}
section#story .title .about {
    font-size: 26px;
}
section#story .title .about span {
    font-size: 42px;
}
section#story .storyBook .bubbleBtn .label {
    height: 100%;
    position: relative;
}
section#story .storyBook .bubbleBtn.imageBtn {
    width: 170px;
    height: 170px;
    display: inline-block;
    margin: 10px;
    transition: 0.3s all;
    cursor: pointer;
}
section#story .bubbleBtn.imageBtn:hover {
    transform: scale(1.1) rotate(5deg);
}
section#story .storyBook .bubbleBtn.arrowBtn {
    width: 210px;
    height: 105px;
    display: block;
    margin: 10px;
    color: #FFF;
    font-family: 'Chronic-Regular';
    text-align: center;
    font-size: 16px;
    line-height: 1.1;
    transition: 0.3s all;
    position: relative;
    cursor: pointer;
}
section#story .storyBook .bubbleBtn.arrowBtn:before {
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    background: url('../images/arrowBubble.svg') center no-repeat;
    background-size: contain;
}
section#story .storyBook .bubbleBtn.arrowBtn:nth-of-type(1) {
    float: right;
    transform: rotate(-8deg);
}
section#story .storyBook .bubbleBtn.arrowBtn:nth-of-type(1):hover {
    transform: scale(1.1) rotate(-3deg);
}
section#story .storyBook .bubbleBtn.arrowBtn:nth-of-type(2) {
    float: left;
    clear: both;
    transform: rotate(8deg);
}
section#story .storyBook .bubbleBtn.arrowBtn:nth-of-type(2):hover {
    transform: scale(1.1) rotate(13deg);
}
section#story .storyBook .bubbleBtn.arrowBtn:nth-of-type(2):before {
    transform: scaleX(-1);
}
section#story .message {
    text-align: center;
    margin: 0 0 60px 0;
}
section#story .storyBook[data-part="back"] .container {
    max-width: none;
}
section#story .end {
    margin: 0;
    text-align: center;
    font-family: 'Chronic-Regular';
    font-size: 28px;
}
section#story .heart {
    width: 140px;
    display: block;
    margin: 20px auto 0 auto;
}

/* END */

section#end .container {
    max-width: none;
}
section#end .myStories {
    transform: scale(1.6);
}
section#end .myStories .myStory {
    width: calc((100% - 90px)/3);
    float: left;
    margin: 15px;
}
section#end .myStories .myStory:nth-of-type(1),
section#end .myStories .myStory:nth-of-type(3){
    filter: grayscale(100%);
}
section#end .myStories:after {
    content: '';
    display: block;
    clear: both;
}

/* MYSTORIES */

section#myStories {
    text-align: center;
    padding: 40px 0 110px 0;
}
section#myStories h1 {
    color: #000;
    margin: 0 0 40px 0;
    text-align: center;
}
section#myStories .myStories {
    margin: 0 0 40px 0;
}
section#myStories .myStories a {
    text-decoration: none;
}
section#myStories .myStories .myStory {
    width: 160px;
    height: 225px;
    margin: 10px;
    display: inline-block;
    transition: 0.3s all;
}
section#myStories .myStories .myStory:hover {
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* AUDIO */

section#audio {
    text-align: center;
}
section#audio .player {
    display: inline-block;
}
section#audio .player audio {
    outline: none;
}

/* WINNERS */

section#winners {
    text-align: left;
}
section#winners .button {
    margin: 0;
}
section#winners h1 {
    color: #000;
    text-align: left;
}
section#winners .storyBook .bookPage.pageContent {
    text-align: left;
}
section#winners .storyBook .bookPage.pagePicture {
    position: fixed;
}
section#winners .storyBook .bookPage.pagePicture .picture {
    background: url('../images/winnersStoryBook.jpg?v=5') center right;
    background-size: cover;
    padding: 50px 0 50px 0;
    box-sizing: border-box;
}
section#winners .storyBook .bookPage.pagePicture .picture .prizes {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto;
}
section#winners .storyBook .bookPage.pageContent:after {
    position: fixed;
    left: 45%;
    right: 0;
}
section#winners .winners {
    margin: 60px 0 0 0;
}
section#winners .winners .inwrap {
    max-width: 200px;
}
section#winners .winners table.items th {
    font-family: 'Chronic-Regular';
    font-size: 20px;
    padding: 5px;
    color: #000;
}
section#winners .winners table.items tbody tr:nth-of-type(odd) {
    background: #fcdbd3;
    color: #000;
}
section#winners .winners table.items td {
    font-size: 16px;
    padding: 5px 10px;
}
.loginBox {
    max-width: 300px;
    margin: auto;
}

@media screen and (max-width: 960px) {
    h1 {
        font-size: 36px;
    }
    .storyBook {
        padding: 100% 0 0 0;
    }
    .storyBook .bookPage.pageContent {
        max-width: none;
        width: auto;
        height: auto;
        padding: 40px 0 110px 0;
    }
    .storyBook .bookPage.pageContent:after {
        content: '';
        width: 100%;
        height: auto;
        padding-top: 100%;
        display: block;
        position: absolute;
        left: 0;
        right: auto;
        bottom: 100%;
        top: auto;
        margin-left: 0;
        margin-bottom: -2px;
        background: url('../images/bookPageCurveSeparator.svg?v=3') center left no-repeat;
        background-size: auto 100%;
        transform-origin: center;
        transform: rotate(-90deg);
    }
    .storyBook .bookPage.pageContent h1 {
        margin: 0 0 20px 0;
    }
    .storyBook .bookPage.pageContent .actions {
        margin: 20px 0 0 0;
    }
    .storyBook .bookPage.pagePicture {
        width: 100%;
        height: auto;
        padding-bottom: 100%;
        left: 0;
        bottom: auto;
        top: 50px;
        z-index: 1;
    }
    section#contest form .actions {
        margin: 0 0 20px 0;
    }
    section#custom .side:nth-of-type(1) {
        width: auto;
        margin: 0 0 40px 0;
        float: none;
    }
    section#custom .side:nth-of-type(2) {
        width: auto;
        margin: 0;
        float: none;
    }
    section#custom .parts .part .label {
        width: auto;
        font-size: 18px;
        display: block;
        margin: 0 0 5px 0;
    }
    section#custom .parts .part .options {
        width: auto;
        display: block;
    }
    section#custom .parts .part .options .option.radio {
        width: 30px;
        height: 30px;
        margin: 1px;
    }
    section#custom .parts .part .options .option.check:before,
    section#custom .parts .part .options.models .option.radio:before{
        width: 26px;
        height: 21px;
        margin-left: -8px;
        margin-top: -14px;
    }
    section#custom .parts .part .options .option.radio {
        border: 2px #FFF solid;
    }
    section#custom .parts .part .options.models .option:after {
        font-size: 16px;
        line-height: 24px;
    }
    section#custom form .actions {
        text-align: center;
    }
    section#custom .formblock .slice {
        width: auto;
        float: none;
        margin: 0;
    }
    section#custom .avatar {
        width: auto;
        float: none;
    }
    section#custom .myAvatars {
        width: auto;
        float: none;
    }
    section#custom .side:nth-of-type(1) .avatar {
        display: block;
    }
    section#custom .side:nth-of-type(2) .avatar {
        display: none;
    }
    section#custom .makeup {
        max-width: 500px;
    }
    section#custom .makeup:after {
        content: '';
        clear: both;
        display: block;
    }
    section#custom .makeup .parts {
        width: 50%;
        float: left;
    }
    section#custom .parts .part {
        margin: 0 0 10px 0;
    }
    section#custom .makeup .avatar {
        width: 50%;
        float: left;
        margin: auto;
    }
    section#custom .myAvatars .myAvatar {
        width: 120px;
        height: 120px;
    }
    section#custom .avatar .nav {
        display: none;
    }
    section#custom .avatar[data-avatar="10"] img {
        width: 80%;
    }
    section#custom .avatar[data-avatar="6"] img {
        width: 150%;
        left: -25%;
    }
    section#custom .avatar[data-avatar="3"] img {
        width: 100%;
    }
    section#custom .formblock .slice .inwrap {
        margin: 0 0 10px 0;
    }
    section#bookstore .bookshelf .stories {
        width: 140%;
        margin-left: -40%;
    }
    section#bookstore .bookshelf .stories .story .toy {
        opacity: 1;
        transform: scale(1);
    }
    section#bookstore .bookshelf .stories .story .symbol {
        opacity: 1;
        transform: translateY(0);
    }
    section#bookstore .bookshelf .stories .story.s6 .symbol {
        left: -10px;
        top: -10px;
    }
    section#bookstore .bookshelf .stories .story.s3 .symbol {
        left: -20px;
        bottom: 30px;
    }
    section#bookstore .bookshelf .stories .story .tooltip {
        display: none;
    }
    section#story .title {
        margin: 0 0 20px 0;
    }
    section#story .title .name {
        font-size: 30px;
        margin: 0;
    }
    section#story .title .world {
        font-size: 14px;
    }
    section#story .title .about {
        font-size: 22px;
    }
    section#story .title .about span {
        font-size: 34px;
    }
    section#story .storyBook .bubbleBtn.imageBtn {
        width: 150px;
        height: 150px;
        margin: 5px;
    }
    section#story .message {
        margin: 0 0 20px 0;
    }
    section#story .storyBook .title {
        display: none !important;
    }
    section#story .storyBook[data-part="front"] {
        padding: 130% 0 0 0;
    }
    section#story .storyBook[data-part="front"] .bookPage.pageContent {
        background: none;
        padding: 0;
    }
    section#story .storyBook[data-part="front"] .bookPage.pageContent:after {
        display: none;
    }
    section#story .storyBook[data-part="front"] .bookPage.pagePicture {
        height: 100%;
        padding-bottom: 0;
    }
    section#story .storyBook .bookPage.pagePicture .picture {
        background-position: center top !important;
    }
    section#end .storyBook {
        padding-top: 90%;
    }
    section#end .storyBook .bookPage.pageContent {
        padding: 20px 0 90px 0;
    }
    section#end .storyBook .bookPage.pageContent:after {
        display: none;
    }
    section#end .storyBook .bookPage.pagePicture {
        padding-bottom: 90%;
    }
    section#end .myStories .myStory {
        width: calc((100% - 30px)/3);
        float: left;
        margin: 5px;
    }
    .button:hover {
        background: #F3410E;
    }
    section#story .bubbleBtn.imageBtn:hover {
        transform: scale(1) rotate(0deg);
    }
    .pop .tabs.main .tab.main {
        padding: 15px;
    }
    .popup .placer {
        max-width: 640px;
        padding: 30px 20px;
    }
    .popup .success h1 {
        font-size: 24px;
    }
    .popup .success .block:nth-of-type(1) {
        max-width: none;
        display: block;
        margin: 0 0 20px 0;
    }
    .popup .success .block:nth-of-type(2) {
        max-width: none;
        display: block;
    }
    section#winners .storyBook .bookPage.pagePicture .picture {
        padding: 25px 0;
    }
    section#winners .storyBook .bookPage.pageContent:after {
        position: absolute;
        left: auto;
    }
}

@media screen and (max-width: 370px) {
    section#story .storyBook .bubbleBtn.imageBtn {
        width: 120px;
        height: 120px;
    }
}

@media screen and (min-width: 1600px) {
    body {
        font-size: 20px;
    }
    h1 {
        font-size: 64px;
    }
    section#bookstore .bookshelf {
        max-width: 750px;
    }
    section#story .title .name {
        font-size: 62px;
    }
    section#story .title .world {
        font-size: 24px;
    }
    section#story .title .about {
        font-size: 40px;
    }
    section#story .title .about span {
        font-size: 62px;
    }
    .storyBook .bookPage.pageContent .container {
        max-width: 640px;
    }
}

@media screen and (max-width: 415px) {
    section#story .button.storyBtn{
        min-width: 130px;
    }
}

@media screen and (max-width: 325px) {
    section#story .button.storyBtn{
        min-width: 125px;
    }
}
