body {
    color: #4b4b4b;
    background-color: #d0d8e7;
    margin: 0px auto;
    max-width: 1650px;
    min-width: 900px;
    font-family: Verdana, sans-serif;
    font-size: 14px;
}

#divHeader {
    background: #fff no-repeat center center;
    width: 100%;
    height: 393px;
}
    #divHeader.bg1   {background-image: url(/img/pub/site/title1.jpg);}
    #divHeader.bg2   {background-image: url(/img/pub/site/title2.jpg);}
    #divHeader.bg1ny {background-image: url(/img/pub/site/title1ny.jpg);}
    #divHeader.bg2ny {background-image: url(/img/pub/site/title2ny.jpg);}
    #divHeaderBorderL,
    #divHeaderBorderR {
        background-image: url(/img/pub/site/images3.png);
        width: 400px;
        height: 393px;
        margin-bottom: -75px;
    }
        #divHeaderBorderL {
            float: left;
            background-position: -50px 0;
        }
        #divHeaderBorderR {
            float: right;
            background-position: -550px 0;
        }

.tableMain {
    width: 75%;
    min-width: 900px;
    margin: -75px auto 0 auto;
    border: none;
    border:0;
    padding:0;
    border-collapse: collapse;
    position: relative;
}
    .tableMain td {padding:0;}

    .tdFlagL,
    .tdFlagR {
        background-image: url(/img/pub/site/images3.png);
        width: 45px;
    }
    .tdFlagL {background-position: 0px -400px;}
    .tdFlagR {background-position: -955px -400px;}

    .tdMenu {
        vertical-align: top;
        background: transparent url(/img/pub/site/images3.png) repeat-x center -515px;
        height: 113px;
    }

    .tdBorderIn,
    .tdBorderIn {
        width: 23px;
        background-color: #fff;
    }

    .tdBorderOut,
    .tdBorderOut {
        width: 22px;
    }


    .tdContent {
        background-color: #fff;
        height: 300px;
        vertical-align: top;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    .tdContent.first {
        padding-top: 0px !important;
    }
    .tdContent .divContent {
        display: inline-block;
        width: 100%;
    }

    .tdFooter {
        background: #f0f0f0 url(/img/pub/site/images3.png) no-repeat 18px -670px;
        height: 65px;
        padding-left: 150px !important;
        padding-right: 23px !important;
    }

    .tdFooter .left  {float: left;}
    .tdFooter .right {float: right;}

.strip {
    background-image: url(/img/pub/site/strips.png);
    background-repeat: repeat-x;
    height: 5px;
    clear: both;
    margin: 10px 0 10px 0;
}
.strip.WtoG {background-position: 0 -110px;}
.strip.GtoW {background-position: 0 -100px;}
.strip.hrW {background-position: 0 -130px; width: 100%;}
.strip.hrG {background-position: 0 -120px; width: 100%;}

h1, h2, h3, h4 {
    color: #4b4b4b;
    font-family: 'HaginCapsMedium';
    text-transform: uppercase;
    margin: 0;
    font-weight: normal;
    display: inline-block;
}
    h1 {font-size: 44px}
    h2 {font-size: 34px}
    h3 {font-size: 22px}
    h4 {font-size: 18px}
    h1.center {
        margin-top: 20px;
        font-size: 36px;
        display: block;
        width: 100%;
        text-align: center;
    }
    h1.center:after {
        content: ' ';
        display: block;
        width: 100%;
        background: url(/img/pub/site/strips.png) repeat-x 0 -130px;
        height: 5px;
        clear: both;
        margin: 10px 0px 20px 0px;
    }

div.middlecont {
    width: 750px;
    margin: auto;
}

.rednote {
    color: #c34237;
}

span.intro {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

a, a:visited {
    cursor: pointer;
    text-decoration: none;
    color: #0081bd;
}
a:hover {color: #589b30; text-decoration: underline;}

a.question {
    font-family: 'HaginCapsMedium';
    background-color: #009feb;
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    align-self: center;
    border-radius: 100%;
    color: #fff;
    font-size: 12px;
    text-align: center;
    line-height: 14px;
    font-weight: bold;
}
a.question:hover {background-color: #589b30; text-decoration: none;}

input {
    -webkit-appearance: none;
}
input[type=text],
input[type=email],
input[type=password] {
    width: 90%;
    font-size: 12px;
    padding: 7px;
    border: 1px solid #868686;
    border-radius: 5px;
}

input.doubleup   {border-radius: 5px 5px 0px 0px; margin-bottom: -1px}
input.doubledown {border-radius: 0px 0px 5px 5px;}



.divReady {
    clear: both;
    width: 100%;
    padding-top: 10px;
}
    input.button.ready,
    a.ready
    {
        clear: both;
        border: none;
        background-color: #589e30;
        box-shadow: 0 2px 0px 0px #3d6d21;
        padding: 7px 12px 5px 12px;
        border-radius: 3px;
        color: #fff;
        font-family: 'HaginCapsMedium';
        text-shadow: 0px 1px 0px #3d6d21;
        font-size: 18px;
        cursor: pointer;
        display: inline-block;
    }
        input.button.ready:hover {color: #92ff00;}
        .btngrayline {
            display: inline-block;
            margin: 0px 15px 0px 15px;
            height: 1px;
            background-color: #d8d8d8;
            vertical-align: middle;
        }
            .btngrayline.l1 {width: 65px;}
            .btngrayline.l2 {width: 150px;}



/* Menu */

#divMenu,
#divLogin {
    display: flex;
    align-items: center;
    width: 45%;
    margin-top: 40px;
    height: 53px;
    font-size: 18px;
}
#divLogin {
    float: right;
    box-sizing: border-box;
    padding-left: 50px;
}
#divLogin.loading {background: transparent url(/img/pub/site/signinloading.gif) center center no-repeat;}

#divMenu  {
    float: left;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding-right: 50px;
}
#divMenu a,
#divTrainer a {
    display: block;
    font-family: 'HaginCapsMedium';
    color: #fff;
    text-shadow: 0px 1px 0px #0a2c45;
    cursor: pointer;
    text-decoration: none;
    padding: 5px;
}
#divMenu a:hover,
#divTrainer a:hover {
    color: #92ff00;
}

#divPause {font-size: 12px; color: #fff; padding-left: 10px;}

/* Signin Fields */

#divSignin {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 7px;
}
    #iframeHidden {display: none;}
    #divLogin input[type=text],
    #divLogin input[type=password] {
        border: none;
        background-color: #fff;
        width: 100px;
        border-radius: 3px;
        font-size: 13px;
        padding: 7px;
    }
    #divLogin a.question {
        margin-left: -25px;
        margin-right: 3px;
    }
    #divLogin a.question:hover {opacity: 1.0}

    #divLogin input.button {
        border: none;
        vertical-align: top;
        background-color: #009feb;
        border-radius: 3px;
        color: #fff;
        font-family: 'HaginCapsMedium';
        text-shadow: 0px 1px 0px #0a2c45;
        font-size: 18px;
        cursor: pointer;
    }
    #divLogin input.button:hover{color: #92ff00}

    #divCaptchaSignin {
        position: absolute;
        z-index: 1000;
        background-color: #297fb8;
        padding: 10px;
        box-shadow: 7px 8px 0px rgba(200, 200, 200, 0.8);
        top: 93px;
    }

    #divF2a {
        width: 100%;
        display: flex;
        align-items: stretch;
        justify-content: flex-end;
        gap: 7px;
    }
        #divF2a #txtF2a {
            text-align: center;
            letter-spacing: 7px;
        }


/* Trainer Label */

#divTrainer {
    color: #fff;
    width: 100%;
    display: flex;
    align-items: center;
}

#divTrainer .title {}
    #divTrainer .title {flex: 1 1 auto}
    #divTrainer .title .uname {color: #fff;}
    #divTrainer .emblem {flex: 0 0 auto}
    #divTrainer #aToGame {text-wrap: nowrap; margin-left: 20px}



.divGraystipe {
    position: relative;
    left: 50%;
    top: 4px;
    width: 270px;
    height: 40px;
    background: transparent url(/img/pub/site/images3.png) no-repeat 0 -615px;
    margin-left: -135px;
    font-family: 'HaginCapsMedium';
    color: #7a8d8d;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
}



/* Locale switcher */
#divLocale {
    position: fixed;
    top: 0;
    right: 0;
    background-color: #C2C8D5;
    padding: 5px 6px 0 6px;
}

#divLocale img {
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
    width: 20px;
}


#divError {
    position: absolute;
    z-index: 10;
    top: 400px;
    left: 0;
    border-radius: 5px;
    padding: 10px 0px;
    background: #ffda01 url(/img/pub/site/images3.png) no-repeat 0 -745px;
    height: 30px;
    color: #2c384a;
    font-size: 11px;
    max-width: 400px;
}
    #divError:after {
            content: ' ';
            height: 0;
            position: absolute;
            width: 0;
            border: 7px solid transparent;
            border-top-color: #ffda01;
            border-bottom: none;
            top: 100%;
            left: 50%;
    }
    #divError > span {
        display: block;
        margin: 0px 10px 1px 50px;
    }

    #divError a {
        margin-left: 10px;
        color: #2c384a;
        text-decoration: underline;
    }



/* Rating Title */

.tdRatingTitle {
    background: #ebeef4 url(/img/pub/site/strips.png) 0 -150px repeat-x;
    height: 80px;
}

    .tdRatingTitle table {
        width: 100%;
        border: none;
        border:0;
        padding:0;
        border-collapse:collapse;
    }

    .tdRatingTitle table td {
        background-image: url(/img/pub/site/strips.png);
        background-repeat: repeat-x;
        width: 30px;
        height: 80px;
    }
    .tdRatingTitle table td.tdLOut   {background-position: 0     -240px;}
    .tdRatingTitle table td.tdLIn    {background-position: 0     -330px;}
    .tdRatingTitle table td.tdStrip  {background-position: 0     -150px; width: auto;}
    .tdRatingTitle table td.tdRIn    {background-position: -30px -330px;}
    .tdRatingTitle table td.tdROut   {background-position: -30px -240px;}
    .tdRatingTitle table td.tdTitle  {background-image: none;}
    .tdRatingTitle table td.tdTitle h1  {
        display: block;
        margin: auto;
        background-color: #ebeef4;
        width: 250px;
        text-align: center;
    }

.tdRatingContent {
    background-color: #f8f8f8;
    height: 180px;
    padding: 25px 10px 40px 10px !important;
}



/* Trainer Label */
.trainer {
    height: 40px;
}

    .trainer .emblem {
        width: 35px;
        height: 35px;
        border-radius: 100%;
        float: left;
        margin: 0 10px 0 0px;
    }
        .trainer .emblem      {border: 2px solid #6ea8cf;}
        .trainer .emblem.sexm {border-color: #0e69b3;}
        .trainer .emblem.sexf {border-color: #c562b6;}
        .trainer .emblem.sex0 {border-color: #a5afc0;}
    .trainer .title {float: left;}
        .trainer .title .uname {
            font-family: 'HaginCapsMedium';
            font-size: 18px;
        }
        .trainer .title .socstatus {
            font-size: 11px;
            line-height: 11px;
        }
    .uname           {color:#005aad;}
    .uname.ugroup1   {color:gray;}
    .uname.ugroup91  {color:#b89333;}
    .uname.ugroup93  {color:#7f31ba;}
    .uname.ugroup95  {color:#c34237;}
    .uname.ugroup98  {color:#4f751f;}


/* Main Page */

#divNews {
    width: 55%;
    float:left;
    font-size: 12px;
}

#divNews #aNewsL {float: left; font-size: 18px;}
#divNews #aNewsR {float: right; font-size: 18px;}
#divNewsList {
    min-height: 600px;
}
    #divNewsList .line {
        width: 100%;
        height: 1px;
        clear: both;
        background-color: #ECEEF3;
        margin: 10px 0 10px 0;
    }
    #divNewsList .trainer {
        margin-top: 10px;
        margin-bottom: 15px;
        float: left;
    }
    #divNewsList .trainer .socstatus {color: #858585; font-size: 10px;}

    #divNewsList .comment {
        display: block;
        cursor: pointer;
        margin-top: 20px;
        float: right;
    }

    #divNewsList .divNewsContent {
        text-align: justify;
    }
    #divNewsList .divNewsContent img {
        float: right;
        margin-left: 10px;
    }

#divEvents {
    width: 40%;
    float: right;
}
    #divEvents h2 {
        width: 100%;
        text-align: right;
    }
    #divEvents .divEvent {
        margin-bottom: 6px;
        font-size: 12px;
        background-image: url(/img/pub/site/events4.png);
        width: 100%;
        background-repeat: no-repeat;
    }
    #divEvents .divEvent span {
        display: table-cell;
        vertical-align: middle;
        padding-left: 50px;
        height: 40px;
    }
        #divEvents .divEvent.block    {background-image: none; font-weight: bold; height: 30px;}
        #divEvents .divEvent.text     {background-image: none;}
        #divEvents .divEvent.turn1    {background-position: 0px    5px;}
        #divEvents .divEvent.turn2    {background-position: 0px  -95px;}
        #divEvents .divEvent.turn3    {background-position: 0px -195px;}
        #divEvents .divEvent.league1  {background-position: 0px -295px;}
        #divEvents .divEvent.league2  {background-position: 0px -395px;}
        #divEvents .divEvent.league3  {background-position: 0px -495px;}
        #divEvents .divEvent.contest1 {background-position: 0px -595px;}
        #divEvents .divEvent.contest2 {background-position: 0px -695px;}
        #divEvents .divEvent.contest3 {background-position: 0px -795px;}
        #divEvents .divEvent.event    {background-position: 0px -895px;}
        #divEvents .divEvent.boost    {background-position: 0px -995px;}
        #divEvents .divEvent.star     {background-position: 0px -1095px;}
        #divEvents .divEvent.turn0,
        #divEvents .divEvent.turn9    {background-position: 0px -1195px;}
        #divEvents .divEvent.league4  {background-position: 0px -1295px;}



.framed {
    float: right;
    border: 1px solid #bcbcbc;
    width: 40%;
    margin-top: 50px;
}
    .framed h3 {
        position: relative;
        padding: 0 20px 0 20px;
        background-color: #fff;
        top: -15px;
        left: 32px;
    }

#divGoods .element {
    display: flex;
    align-items: center;
    margin: 10px 0 20px 22px;
}
    #divGoods .element .cover {
        width: 50px;
        margin-right: 10px;
        margin-left: -10px;
    }
    #divGoods .element a {display: block}
    #divGoods .element .descr {display: block; font-size: 12px}


.smallgray {font-size: 10px; color: #7E7E7E;}


#divAbout {
    float: right;
    width: 40%;
    text-align: justify;
    color: #7E7E7E;
    font-size: 12px;
    margin-top: 40px;
}
    #divAbout span {
        display: block;
        width: 100%;
        text-align: right;
    }


#divWidgets {
    width: 40%;
    float:right;
    clear: right;
    margin-top: 50px;
}
#divWidgets > div {
    margin: auto;
}

#divSocials {
    float: right;
    width: 220px;
    height: 95px;
    background: url(/img/pub/site/images3.png) no-repeat -1027px 0px;
    margin: 20px -33px 10px 0;
}
    #divSocials a {
    }
    #divSocials img {
        display: inline-block;
        width: 48px;
        height: 48px;
        margin: 18px 0 0 18px ;
    }


#divStats {
    background: url(/img/pub/site/images3.png) no-repeat -1390px -60px;
    width: 155px;
    height: 155px;
    font-family: 'HaginCapsMedium';
    text-align: center;
    color: #fff;
    text-shadow: 0px 1px 0px #3d6d21;
    padding-top: 35px;
    position: absolute;
    right: 12%;
    top: 150px;
    cursor: default;
}
    #divStats div {
        width: 100%;
        font-family: 'Corki';
        text-align: center;
    }
    #divStats .sp1 {font-size: 17px;}
    #divStats .sp2 {font-size: 14px;}
    #divStats #spOnlineNow  {font-size: 30px; margin-top: 3px;}
    #divStats #spOnlineDay  {font-size: 24px; margin-top: -2px;}

/* Ranks */
#divRanks {
    width: 100%;
}
    #divRanks > div {
        width: 20%;
        float: left;
        margin-left: 2%;
        margin-right: 2%;
    }

        #divRanks .line {
            font-family: 'HaginCapsMedium';
            font-size: 18px;
            padding-top: 15px;
            padding-bottom: 10px;
            border-bottom: 1px dotted #bcbcbc;
        }
        #divRanks .line span {
            display: block;
            float: right;
            font-family: 'Corki';
        }



/* Wins and Weather */
.flex {
    display: flex;
}

#divArena {
    flex: 1 1 50%;
}
    #divArena .element {
        margin: 0px 0 5px 0;
        font-size: 12px;
    }
    #divArena .element.active {font-weight: bold}

#divAntiq {
    flex: 1 1 50%;
    padding-left: 20px;
    box-sizing: border-box;
}

    #divAntiqList {
        width: 100%;
        font-size: 12px;
    }
    #divAntiqList div {
        margin-bottom: 7px;
    }
    #divAntiqList div .dat {
        color: #bcbcbc;
        font-size: 11px;
    }
    #divAntiqList div .uname {
        font-weight: bold;
    }


#divWeather {
    width: 30%;
    float: right;
}
#divWeatherList {
    width: 100%;
}
    #divWeatherList > div {
        clear: both;
        margin-bottom: 5px;
        height: 35px;
        width: 100%;
        border-bottom: 1px dotted #bcbcbc;
    }
        #divWeatherList .region {
            float: left;
        }
        #divWeatherList .weather {
            display: block;
            width: 40px;
            height: 32px;
            background: transparent url('/img/pub/site/weather.png') no-repeat 0 0;
            float: right;
        }
        #divWeatherList .w0 {background-position:    0px 0}
        #divWeatherList .w1 {background-position:  -40px 0}
        #divWeatherList .w2 {background-position:  -80px 0}
        #divWeatherList .w3 {background-position: -120px 0}
        #divWeatherList .w4 {background-position: -160px 0}





/* Registration */

#divAva {
    width: 315px;
    height: 550px;
    background-size: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    float: left;
    margin: 0;
}
#divAva.loading {background-image: url(/img/pub/site/avaloading.gif) !important; background-size: auto;}


#frmSignup {
    display: block;
    float: right;
    width: 370px;
    margin-top: 40px;
}
    #frmSignup.disabled .divReady {
        background: transparent url(/img/pub/site/avaloading.gif) no-repeat center center;
    }
    #frmSignup.disabled .divReady * {
        visibility: hidden;
    }

    #frmSignup label {
        font-family: 'HaginCapsMedium';
        color: #007cbb;
        display: block;
        float: left;
        width: 20%;
        text-align: right;
        clear: both;
        padding-top: 7px;
    }

    #frmSignup .divInput {
        display: block;
        float: right;
        width: 70%;
        margin-bottom: 15px;
    }
        #frmSignup .divInput.error   input {color: #c34237; border-color: #c34237;}
        #frmSignup .divInput.success input {background: url(/img/pub/site/images3.png) no-repeat -1730px 6px; color: #4f751f; border-color: #4f751f;}
        #frmSignup .divInput span {color: #c34237; font-size: 11px;}

    #divAvaControl .btngroup {
        display: inline-block;
        border: 1px solid #868686;
        border-radius: 5px;
        height: 30px;
        margin-bottom: 5px;
    }
        #divAvaControl .btngroup:hover a {color: #007cbb;}
        #divAvaControl .btngroup a {
            font-family: 'HaginCapsMedium';
            text-decoration: none;
            color: #4b4b4b;
            text-transform: uppercase;
            display: inline-block;
            text-align: center;
            padding-top: 5px;
            width: 50px;
        }
        #divAvaControl .btngroup a:first-child,
        #divAvaControl .btngroup a:last-child {
            width: 20px;
        }
        #txtAva {display: none;}

    .checkbox {
        display: inline-block;
        border: 2px solid #c1c1c1;
        width: 23px;
        height: 23px;
        vertical-align: middle;
        margin-right: 5px;
        cursor: pointer;
        border-radius: 2px;
        background-color: #fff;
    }
        .checkbox.checked {background: #fff url('/img/pub/site/images3.png') no-repeat -1297px 5px}

    .divAgree {
        clear: both;
        line-height: 26px;
        font-size: 12px;
        border: 1px solid #d3d3d3;
        background: #f9f9f9;
        width: 302px;
        padding: 15px 5px 10px 13px;
        box-sizing: border-box;
        border-radius: 2px;
        margin-bottom: 11px;
    }

    #divErrSignup {
        padding: 10px 10px;
        color: #c34237;
        font-size: 12px;
    }

/* Repass */

#frmRepass {
    width: 300px;
    margin: auto;
    text-align: center;
}
#frmRepass input {
    text-align: center;
    margin-bottom: 15px;
}
#frmRepass .divReady{
    text-align: center;
}

#spErrRepass {
    display: block;
    width: 100%;
    text-align: center;
}




/* PROMO */
.promo img {
    display: block;
    width: 80%;
    max-width: 800px;
    margin: 40px auto;
}
.promo h2,
.promo h3,
.promo a.button.ready {
    display: block;
    margin: auto;
    text-align: center;
}
.promo a.button.ready {
    text-decoration: none;
    margin-bottom: 40px;
    width: 80%;
    font-size: 24px;
}



/* ANIM */


.animated {
    -webkit-animation-fill-mode:both;
    -moz-animation-fill-mode:   both;
    -ms-animation-fill-mode:    both;
    -o-animation-fill-mode:     both;
    animation-fill-mode:        both;
    -webkit-animation-duration: 60s;
    -moz-animation-duration:    60s;
    -ms-animation-duration:     60s;
    -o-animation-duration:      60s;
    animation-duration:         60s;
    -webkit-animation-name:     moving;
    -moz-animation-name:        moving;
    -o-animation-name:          moving;
    animation-name:             moving;
    -webkit-animation-iteration-count:      infinite;
    -moz-animation-iteration-count:         infinite;
    -o-animation-iteration-count:           infinite;
    animation-iteration-count:              infinite;
    -webkit-animation-timing-function:      linear;
    -moz-animation-timing-function:         linear;
    -o-animation-timing-function:           linear;
    animation-timing-function:              linear;

}



@-webkit-keyframes moving {
	0% {
            background-position: center center;
        }       25% {
            background-position: left bottom;
	}	50% {
            background-position: center center;
	}	75% {
            background-position: right top;
	}	100% {
            background-position: center center;
	}
}

@-moz-keyframes moving {
	0% {
            background-position: center center;
        }       25% {
            background-position: left bottom;
	}	50% {
            background-position: center center;
	}	75% {
            background-position: right top;
	}	100% {
            background-position: center center;
	}
}

@-o-keyframes moving {
	0% {
            background-position: center center;
        }       25% {
            background-position: left bottom;
	}	50% {
            background-position: center center;
	}	75% {
            background-position: right top;
	}	100% {
            background-position: center center;
	}
}

@keyframes moving {
	0% {
            background-position: center center;
        }       25% {
            background-position: left bottom;
	}	50% {
            background-position: center center;
	}	75% {
            background-position: right top;
	}	100% {
            background-position: center center;
	}
}
