@font-face {
    font-family: 'Intro-Book';
    src: url('fonts/Intro-Book.eot');
    src: url('fonts/Intro-Book.woff') format('woff'), url('fonts/Intro-Book.ttf') format('truetype'), url('fonts/Intro-Book.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background: url("./images/bg1.jpg") no-repeat center center fixed #18191d;
    background-size: cover;
    position: relative;
    font-family: 'Intro-Book', Arial, sans-serif;
    letter-spacing: 2.2px;
    color: #ffffff;
}

body.rendered {
    background: url("./images/bg2.jpg") no-repeat center center fixed;
    background-size: cover;
}

.w33 {
    width: 33.333333%;
    float: left;
}

.clear {
    clear: both;
    display: table;
    width: 0;
    height: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    height: 100%;
}
.container.loading:before{
    content: '';
    width:100%;
    height:100%;
    position: fixed;
    background: rgba(0,0,0,0.6);
    z-index: 2;
    left:0;
    top:0;
}
.container.loading:after {
    content: '';
    width:200px;
    height:200px;
    animation: rotate 800ms ease-in-out infinite;
    position: fixed;
    top:50%;
    left:50%;
    margin-top:-100px;
    margin-left:-100px;
    background: url('./images/loading.png') no-repeat center center;
    z-index:3;
}
@keyframes rotate {
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}
.main-header-logo, .main-footer-logo {
    background: url('./images/battle-logo.png') no-repeat center center;
    width: 261px;
    height: 48px;
    display: inline-block;
    font-size: 0;
    margin-top: 42px;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.eighteen-plus {
    background: url('./images/18plus.png') no-repeat left top;
    width: 60px;
    height: 50px;
    position: absolute;
    right: 0;
    top: 50px;
}

.app-login-call {
    font-size: 40px;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    line-height: 47px;
}

.second-screen {
    display: none;
    width: 740px;
    height: 550px;
    position: absolute;
    left: 50%;
    margin-left: -370px;
    top: 50%;
    margin-top: -350px;
}

.block-center {
    height: 260px;
    margin-top: -130px;
    position: absolute;
    top: 50%;
    width: 500px;
    left: 50%;
    margin-left: -250px;
}

.app-login-button-wrapper {
    letter-spacing: 20px;
}

.app-login-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: url('./images/share.png') no-repeat left center #f17f1a;
    display: inline-block;
    cursor: pointer;
    background-size: auto 22px;
}

.app-login-button:hover {
    background-color: #ff8f00;
}

.app-login-button_vk {
    background-position: -48px center;
}

.app-login-button_fb {
    background-position: 19px center;
}

.prepare-separator {
    display: block;
    margin: 0 auto 6px auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 15px;
    line-height: 35px;
    text-transform: uppercase;
    width: 340px;
}

.block-center:hover .prepare-separator {
    border-bottom: 1px solid rgba(255, 255, 255, 0.51);
}

.footer-target__link {
    padding: 0 15px;
    height: 50px;
    line-height: 50px;
    background: #f17f1a;
    color: #fff;
    text-align: center;
    font-size: 18px;
    display: inline-block;
    text-transform: uppercase;
    text-decoration: none;
}

.footer-date {
    text-align: center;
    line-height: 57px;
}

.footer-target {
    text-align: center;
}

.footer-share__label {
    text-transform: uppercase;
    font-size: 15px;
    text-align: right;
    display: inline-block;
    border-right: 1px solid rgba(255, 255, 255, 0.51);
    padding: 5px 18px 5px 40px;
    height: 50px;
    line-height: 20px;
    float: left;
    margin-right: 18px;
}

.footer-share-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: url('./images/share.png') no-repeat left center;
    display: inline-block;
    cursor: pointer;
    background-size: auto 22px;
    border: 2px solid #ffffff
}

.footer-share-wrapper {
    letter-spacing: 20px;
}

.footer-share-link:hover {
    border: 2px solid #ff8f00
}

.footer-share-link_vk {
    background-position: -50px center;
}

.footer-share-link_fb {
    background-position: 17px center;
}

.footer-share-link_tw {
    background-position: -118px center;
}

.footer-trailer {
    padding-right: 40px;
    text-align: right;
}

.footer-trailer-btn {
    padding: 0 60px 0 15px;
    height: 50px;
    border: 2px solid #ffffff;
    line-height: 46px;
    color: #fff;
    text-align: center;
    font-size: 18px;
    display: inline-block;
    text-transform: uppercase;
    position: relative;
    cursor: pointer;
}
.footer-trailer-btn:hover{
    border: 2px solid #f17f1a;
    color: #f17f1a;
}
.footer-trailer-btn:hover:after {
    border-left: 11px solid #f17f1a;
}

.footer-trailer-btn:after {
    content: '';
    position: absolute;
    border-left: 11px solid #ffffff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    right: 25px;
    top: 16px;
}

.footer-icons {
    height: 70px;
    background: url('./images/footer-logos.png') no-repeat center center;
    background-size: auto 40px;
}

.footer-rendered-logo {
    display: none;
}

.my-team-label {
    text-transform: uppercase;
    font-size: 40px;
    line-height: 74px;
    display: inline-block;
    position: relative;
    width:100%;
}

.battle-photo__list {
    padding-left: 20px;
    margin: 0 auto;
    width: 740px;
}

.battle-photo__img-wrapper {
    width: 160px;
    height: 160px;
    position: relative;

}

.battle-photo {
    float: left;
    margin: 0 20px 20px 0;
    position: relative;
}

.battle-photo__footer {
    font-size: 18px;
    text-transform: uppercase;
    text-align: left;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 50px;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.battle-photo__footer-text {
    position: absolute;
    bottom: 0;
    padding: 0 0 2px 11px;
}

.battle-photo__img-wrapper_state_default {
    background: url('./images/bs_default.png') center center / cover no-repeat;
}

.descriptions-column__left, .descriptions-column__right {
    width: 200px;
    top: 50%;
    position: absolute;
}

.descriptions-column__left {
    left: 0;
    margin-top: -119px;
}

.descriptions-column__right {
    right: 0;
    margin-top: -138px;
}

.descr-col__btn {
    display: block;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-size: 24px;
    line-height: 29px;
    margin-bottom: 28px;
    cursor: pointer;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}
.battle-photo__img-wrapper_state_loading:after{
    content: '';
    width: 50px;
    height:50px;
    position: absolute;
    top:50%;
    margin-top: -25px;
    left:50%;
    margin-left:-25px;
    background: url('./images/loading.png') no-repeat;
    background-size: 50px;
    animation: rotate 800ms ease-in-out infinite;
}
.popup-wrapper{
    position: fixed;
    top:0;
    left:50%;
    width: 1400px;
    height: 100%;
    display: none;
    margin-left:-700px;

}
.popup {
    display: none;
    opacity: 0;
    position: absolute;
    text-align: left;
    background: #ffffff;
    width: 400px;
    transition: opacity 200ms linear;
    top: 100px;
}

.popup-text {
    padding: 20px 30px;
    color: #000000;
    line-height: 24px;
    font-size: 13px;
    letter-spacing: 0;
}

.popup-heading {
    position: relative;
    border-bottom: 1px solid #e5e5e5;
    height: 101px;
    color: #f17f1a;
    font-size: 24px;
    text-transform: uppercase;
}

.popup-heading__text {
    position: absolute;
    bottom: 20px;
    left: 30px;
}

.popup-close {
    background: url('./images/popup-close.png') no-repeat left top;
    width: 15px;
    height: 15px;
    background-size: 15px;
    position: absolute;
    right: 13px;
    top: 13px;
    cursor: pointer;
}

.second-screen__share, .second-screen__retry {
    width: 50%;
    float: left;
}

.second-screen__share {
    padding: 0 10px 0 20px;
}

.second-screen__retry {
    padding: 0 20px 0 10px;
}
.second-screen__retry.vk .app-login-button_vk{
    display:none;
}
.second-screen__retry.fb .app-login-button_fb{
    display:none;
}
.second-screen__bts-descr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    font-size: 15px;
    line-height: 33px;
    margin-bottom: 10px;
}
.trailer-popup-wrapper{
    width: 100%;
    height: 100%;
    top:0;
    left:0;
    padding-top:50%;
    margin:0;
    background: rgba(0,0,0,0.6);
    display:none;
    position: fixed;
}
.trailer-popup-wrapper.opened{
    display: block;
}
.trailer-close{
    background: url('./images/popup-close.png') no-repeat left top;
    width: 15px;
    height: 15px;
    background-size: 15px;
    position: absolute;
    left:50%;
    top:50%;
    cursor: pointer;
    margin-left: 290px;
    margin-top: -180px;
}
.popup.right{
    right:0;
}
.your-squad-back{
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: url("./images/retry.png") no-repeat left top;
    width: 27px;
    height: 34px;
    cursor: pointer;
}
.your-squad-back.your-squad-back_show{
    display: block;
}
iframe {
    border: 0;
    outline: none;
    width: 560px;
    height: 315px;
    position: absolute;
    left: 50%;
    margin-left: -280px;
    margin-top: -157px;
    top: 50%;
}
body.rendered .footer-rendered-logo {
    display: block;
}

body.rendered .main-footer-logo {
    margin: 1px 0 0 40px
}

body.rendered .main-header-logo,
body.rendered .block-center,
body.rendered .footer-share,
body.rendered .descriptions-column__left,
body.rendered .descriptions-column__right {
    display: none;
}

body.rendered .second-screen {
    display: block;
}

@media screen and (max-width: 1300px) {
    .container {
        max-width: 1100px;
    }
    .popup-wrapper{
        width:1100px;
        margin-left:-550px;
    }
}
@media screen and (min-width: 640px) {
    body{
        min-width: 1230px;
    }
    body, .container{
        min-height: 780px;
    }
    .mobile-only{
        display: none;
    }
    .battle-photo__list.can-change .battle-photo{
        cursor: pointer;
    }

}
@media screen and (max-width: 640px) {
    body{
        background-attachment: scroll;
        background-size: 170% auto;
        background-position: top center;
    }
    footer{
        position: static;
    }
    body.rendered{
        background: url('./images/bg3.jpg') no-repeat top center #312c43 scroll;
        background-size: 100% auto;
    }
    .descriptions-column__left, .descriptions-column__right, .footer-share {
        display: none;
    }
    .main-header-logo, .main-footer-logo{
        width:130px;
        background-size: 130px auto;
        height: 24px;
    }
    .main-header-logo{
        margin-top: 20px;
        margin-bottom: 125px;
    }
    .eighteen-plus{
        display: none;
    }
    .app-login-call{
        font-size:20px;
        line-height: 24px;
    }
    .w33{
        width:100%;
    }
    .block-center{
        position: relative;
        top:0;
        left:0;
        margin: 0;
        width:100%;
    }
    .prepare-separator{
        width:170px;
        font-size: 10px;
        line-height:29px;
        margin-bottom:10px;
    }
    .second-screen__share{
        width:100%;
        padding: 0;
    }
    .second-screen__bts-descr{
        width:220px;
        margin:15px auto 10px auto;
        font-size: 10px;
        line-height:29px;
    }
    .footer-date{
        font-size:10px;
        line-height: 15px;
        width:200px;
        margin:0 auto 20px auto;
    }
    .footer-target__link{
        height:45px;
        line-height: 45px;
        font-size: 10px;
        margin: 0 15px;
        display: block;
    }
    .footer-trailer-btn{
        height:45px;
        line-height: 41px;
        font-size: 10px;
        display: block;
        margin: 0 15px;
        padding:0;

    }
    .footer-trailer{
        padding:10px 0;
    }
    .footer-trailer-btn:after{
        display: none;
    }
    .footer-icons{
        height:80px;
    }
    .second-screen{
        width:100%;
        position: relative;
        left:0;
        top:0;
        margin:0;
        height:auto;
    }
    .battle-photo__list{
        width: 290px;
        padding: 0 0 10px 10px;
    }
    .battle-photo {
        margin:0 10px 10px 0 ;
    }
    .battle-photo__img-wrapper {
        width:130px;
        height:130px;
    }
    .battle-photo__footer{
        font-size:13px;
        height:45px;
    }
    .battle-photo__footer-text{
        padding:0 0 5px 11px;
    }
    .my-team-label{
        font-size:20px;
        line-height:60px;
    }
    body.rendered .main-header-logo{
        display: inline-block;
        margin-bottom:80px;
    }
    .second-screen__retry{
        width:100%;
        padding: 0 20px 20px 20px;
    }
    body.rendered .footer-rendered-logo{
        display: none;
    }
    .container{
        height:auto;
    }
    .popup{
        position: fixed;
        top: 10px;
        left: 5%;
        width: 90%;
    }
    .popup-text{
        font-size:10px;
        line-height: 17px;
        padding:25px;
    }
    .popup-close{
        background-size: 15px;
    }
    .popup-heading{
        font-size:20px;
        line-height: 30px;
    }
    .popup-heading__text{
        left:25px;
        bottom:15px;
    }
    iframe{
        width: 100%;
        left: 0;
        top: 50%;
        height: 56.25vw;
        margin: -28.125vw 0;
    }
    .popup-wrapper{
        width:100%;
        left:0;
        margin-left:0;
    }
}