/*=== main ===*/
body{
    margin: 0px;
    background: #77b8d5;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

body #game-container{
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body a{
    text-decoration: none;
}

body a:hover,
body a:active,
body a:focus{
    text-decoration: none;
}

table.fullwidth {
    width: 100%;
}

.centered{
    text-align: center;
}

.uppercase{
    text-transform: uppercase;
}

.form-row{
    padding: 5px 0;
}

.form-row:last-child{
    padding: 20px 0;
}

label{
    padding-right: 10px;
    font-weight: bold;
    font-size: 130%;
}

label span{
    font-weight: normal;
}

/*============ Header and Footer ============*/
#header{
    width: 100%;
    min-width: 800px;
    position: static;
    z-index: 991;
}

#header .flexhandle{
    z-index: 992;
    display: none;
    position: absolute;
    bottom: -32px;
    width: 44px;
    height: 32px;
    right: 20px;
}

#header.flexible{
    position: absolute;
    top: 0px;
    transition-property: all;
    transition-duration: .5s;
    box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.75);
}

#header.flexible.hidden{
    top: -90px;
}

#header.flexible .flexhandle{
    display: block;
    background-image: url('../images/header-arrow.png');
    background-repeat: no-repeat;

    background-position-y: -32px;
}

#header.flexible.hidden .flexhandle{
    background-position-y: 0px;
}

#topbar{
    background:#598ba1;
}

#topbar h1,
h1.contest-date {
    font-family: 'wwf';
    color:#fff;
    text-align: right;
    margin: 0;
    padding: 10px 20px 10px 0;
    font-weight: 100;
    line-height: 40px;
}

#topbar h1.contest-title:before {
    font-family: 'icomoon';
    content: '\e904';
    padding-right: 10px;
}

#topbar > .inner {
  min-height: 60px;
}

h1.contest-date{
    text-align: center;
}

h1.contest-date:after{
    display: block;
    font-family: 'icomoon';
    content: '\e904';
    font-size: 76px;
    line-height: 86px;
}

#topbar .edition-logo{
    float: right;
    padding-left: 20px;
}

#topbar .logo{
    position: relative;
    top:0;
    left: 0;
}

#header.flexible #topbar .logo{
    opacity: 1;
    transition-property: all;
    transition-duration: .5s;
}

#header.flexible.hidden #topbar .logo{
    opacity: 0;
}

#topbar .logo a{
    position: absolute;
}

#navbar{
    font-family: Verdana, Geneva, sans-serif;
    background:#4d798c;
    font-size:14px;
    padding:5px 0;
    text-align:right;
}

#navbar ul{
    display: inline-block;
    list-style: none;
    margin: 0;
}

#navbar ul li{
    float: left;
    padding-left: 20px;
}

#navbar ul li a,
#navbar ul li a:active,
#navbar ul li a:visited{
    color:#b0e6ff;
}

#navbar ul li  a:hover{
    color: #fff;
}

#body-container{
    position: relative;
    width: 800px;
    margin-top: 60px;
    margin-left: auto;
    margin-right: auto;
}

#body-container a:hover {
}

.content-container {
    background-color: #fff;
}

#footer{
    background:#598ba1;
    display: inline-block;
    height:50px;
    position: absolute;
    bottom: 0;
    width: 100%;
    color: #2b434e;
}

#footer.static{
    position: static;
    margin-top: 40px;
}

.inner{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.clearfix:after {
   content: " ";
   display: block;
   height: 0;
   clear: both;
}

/*============ Game frame ============*/
.game-frame {
    border: 16px solid #fff;
    margin-left: -16px !important;
}

.game-frame-shadow {
    height: 40px;
    width: 832px;
    margin-left: -16px;
    background-image: url('../images/frame-shadow.png');
    background-repeat: no-repeat;
    background-position-x: center;
}

.game-frame-tape {
    z-index: 990;
    position: absolute;
    top: -20px;
    width: 120px;
    height: 45px;
    background-color: rgba(255,255,255,0.48);
    -ms-transform: rotate(7deg); /* IE 9 */
    -webkit-transform: rotate(7deg); /* Chrome, Safari, Opera */
    transform: rotate(-6.5deg);
    left: 50%;
    margin-left: -75px;
    -webkit-box-shadow: 1px 1px 3px -1px rgba(0,0,0,0.48);
    -moz-box-shadow: 1px 1px 3px -1px rgba(0,0,0,0.48);
    box-shadow: 1px 1px 3px -1px rgba(0,0,0,0.48);
}

/*============ Tools icons ============*/
.tool-icon {
    color: #fff;
    text-align: center;
    font-size: 20px;
    border-radius: 3px;
    display: inline-block;
    margin: 0 3px;
    font-family: 'icomoon';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    width: 30px;
    height: 30px;
    line-height: 30px;

    /* Initial status inactive */
    opacity: 0.4;

    /* Better Font Rendering  */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tools-container .tool-icon.active{
    cursor: pointer;
}

.tool-icon.active {
    opacity: 1;
}

.tool-icon.blue {
    background-color: #316881;
}

.tool-icon.orange {
    background-color: #ef9920;
}

.tool-icon-1:before {
    padding-left: 2px;
    content: "\e604";
}

.tool-icon-2:before {
    content: "\e605";
}

.tool-icon-3:before {
    content: "\e606";
}

.tool-icon-4:before {
    content: "\e607";
}

.tool-icon-5:before {
    content: "\e608";
}

.tool-icon-6:before {
    content: "\e61a";
}

/*============ Msg Box ============*/
#msg-box{
    display: block;
    z-index: 999;
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
    border-radius: 2px;
    width: 800px;
    border-width: 1px;
    border-style: solid;
}

#msg-box .text{
    padding: 20px 30px;
    display: block;
    line-height: 1.5em;
}

#msg-box.error{
    background-color: #ffdada;
    color: #B80000;
    border-color: #B80000;
}

#msg-box.message{
    background-color: #c4eec3;
    color: #049e00;
    border-color: #049e00;
}

/*============ Buttons ============*/
#body-container .button{
    display: inline-block;
    vertical-align: middle;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 110%;
    text-align: center;
    color: #fff;
    border-width: 1px;
    border-style: solid;
    padding: 10px 20px;
    margin: 20px 10px;
    font-weight: bold;
    border-radius: 10px;
}

#body-container .button:hover{
}

.button-container{
    text-align: center;
}

/*Orange Button with border*/
.orange-button{
    background-color: #ef9921;
    border-color: #ac6813;
}

.orange-button.no-border,
.blue-button.no-border{
    border: none;
}

.orange-button:hover{
    background-color: #cc831c;
}

.blue-button{
    background-color: #438eb0;
    border-color: #346e87;
}

.blue-button:hover{
    background-color: #387793;
}

/*Submit button*/
.orange-button.submit {
    padding: 10px 20px;
}

/*============ Page: Recover ============*/
#recover-container{
    padding: 60px 0;
    text-align: center;
}

#recover-container .title{
}

#recover-container .show-pass{
    font-size: 130%;
}

#recover-container .show-pass span{
    font-weight: bold;
}

#recover-container .steps{
    padding: 20px 0;
    color: #ccc;
}

#recover-container .steps .step{
    padding: 0 10px;
}

#recover-container .steps .step.active{
    color: #ef9921;
}

/*============ Page: Top Ten & Contest Report ============*/
#topten-container{
    color: #fff;
    text-align: center;
}

#topten-container .inner-container{
    display: inline-block;
}

#topten-container .column{
    display: inline-block;
    width: 100px;
}

#topten-container .column.name,
#topten-container .column.score{
    width: 200px;
}

#topten-container .column.score .inner-column,
#contestreport-container .column.score .inner-column{
    display: inline-block;
    cursor: pointer;
    border-bottom: 1px dashed #fff;
    line-height: 100%;
}

#topten-container .topten-title,
#contestreport-container .topcontest-title{
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

#topten-container .header-row{
    font-size: 120%;
    font-weight: bold;
    background-color: #5e90a7;
    line-height: 180%;
}

#topten-container .score-row{
    padding: 4px 0;
    position: relative;
}

#topten-container .score-row{
    font-size: 120%;
}

#topten-container .score-row .bonus-cup{
    width: 24px;
    height: 24px;
    background-image: url('../assets/trophy.png');
    position: absolute;
    display: block;
    right: 10px;
    top: 5px;
    margin-right: 20px;
    background-repeat: no-repeat;
    line-height: 120%;
    -webkit-animation: flip-cup 1s infinite;
    animation: flip-cup 1s infinite;
}

@-webkit-keyframes flip-cup { 100% { -webkit-transform: rotateY(180deg); } }
@keyframes flip-cup { 100% { -webkit-transform: rotateY(180deg); transform:rotateY(180deg); } }

#topten-container .inner-container .score-row:nth-child(2){ /*1st player*/
    font-weight: bold;
    font-size: 130%;
    line-height: 30px;
    background-repeat: no-repeat;
    background-position: 98% center;
    background-color: #f36e21 !important;
}

#topten-container .inner-container .score-row:nth-child(3){
    background-color: #f78e21 !important;
}

#topten-container .inner-container .score-row:nth-child(4){
    background-color: #fdb11d !important;
}

#topten-container .inner-container .score-row:nth-child(even){
    background-color: #6da6c1;
}

#topten-container .inner-container .score-row:nth-child(odd){
    background-color: #659bb5;
}


#contestreport-container {
    color: #fff;
}

#contestreport-container div.report-section {
    background-color: #6da6c1;
    width: 100%;
    padding: 10px 0;
    border-radius: 10px;
    border: 1px solid #fff;
}

/*============ Page: Status ============*/
#status-container{
    width: 100%;
}


#status-container,
#status-container a{
    text-align: center;
    color: #fff;
}

#status-container h2 {
    font-size: 130%;
}

#status-container .username-emphasis {
    font-size: 140%;
}

#status-container .row {
    margin: 30px 0;
}

#status-container .row .inner-row {
    display: inline-block;
}

#status-container .row .level-selector-container {
    float: left;
}

#status-container .row .level-selector-container .level-selector {
    height: 163px;
    width: 163px;
    display: block;
    margin: 0 35px;
    box-sizing: border-box;
}

#status-container .row .level-selector-container .level1 {
    background-image: url('../assets/level1-status.png');
    background-position: center -326px;
}

#status-container .row .level-selector-container .level2 {
    background-image: url('../assets/level2-status.png');
    background-position: center -326px;
}

#status-container .row .level-selector-container .level3 {
    background-image: url('../assets/level3-status.png');
    background-position: center -326px;
}

#status-container .row .level-selector-container .level-selector.active {
    background-position: center -163px;
}

#status-container .row .level-selector-container .level-selector.active:hover,
#status-container .row .level-selector-container .level-selector.focus{
    background-position: center 0;
}

#status-container .row .level-selector-container .level-score {
    display: inline-block;
    margin-top: 10px;
    font-size: 260%;
    font-weight: bold;
    cursor: default;
}

#status-container .row .level-selector-container .level-score.active {
    cursor: pointer;
}

#status-container .row .inventory-title,
#status-container .row .inventory-tools{
    width: 70%;
    background-color: #438eb0;
    margin: 0 auto;
    padding: 10px 0;
}

#status-container .row .inventory-title{
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    border-bottom: 1px solid #316881;
}

#status-container .row .inventory-tools {
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

#status-container .button-container .button {
    width: 150px;
}

#status-container .button-container .button.download {
    line-height: 17px !important;
}

/*============ Score popup ============*/
.popup{
    color: #000;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
    position: absolute;
    display: none;
    top: -30px;
    left: 0;
    padding: 15px 30px;
    background-color: #fffef1;
    background-image:none !important;
    border-radius: 10px;
    box-shadow: 0 0 5px 2px rgba(0,0,0,0.2);
    transition-property: all;
    transition-duration: .5s;
    z-index: 900;
}

.popup .row{
    padding-bottom: 2px;
    margin: 5px 0 !important;
    line-height: normal !important;
}

.popup .row.cat{
    border-bottom: 1px dashed #989890;
}

.popup .row.title{
    font-weight: bold;
    margin-bottom: 10px;
}

.popup .row.total{
    font-weight: bold;
}

.popup .row .label{
    display: inline-block;
    min-width: 250px;
}

/*score popup: specific*/
#status-container .level-score:hover .popup,
#topten-container .column.score .inner-column:hover .popup,
#contestreport-container .level-score:hover .popup{
    display: block;
}

#status-container .level-score .popup.level2{
    left: 210px;
}

#status-container .level-score .popup:after{
    background-image: url('../assets/score-popup-arrow.png');
    content: '';
    width: 48px;
    height: 20px;
    position: absolute;
    bottom: -20px;
}

#status-container .level-score .popup.level1:after{
    left: 140px;
}

#status-container .level-score .popup.level2:after{
    left: 50%;
}

#status-container .level-score.popup.level3:after{
    right: 140px;
}

#status-container .level-score .popup.level2{
    left: 200px;
}

#status-container .level-score .popup.level3{
    right: 0;
    left: initial;
}

/*============ Page: Login ============*/
#tabs-container .container{
    text-align: center
}

#tabs-container .form-container{
    display: inline-block;
    text-align: right;
}

#tabs-container .form-container a{
    color: #1a1a1a;
}

#tabs-container .form-container a:hover{
    color: #ffa424;
}

#tabs-container .text-container{
    padding: 20px 0;
}

#tabs-container #tabs-register .form-container select,
#tabs-container #tabs-register .form-container input[type=text],
#tabs-container #tabs-register .form-container input[type=password]{
    width: 300px;
}

input[type="text"],
input[type="password"],
select{
  -webkit-box-sizing: content-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: content-box;    /* Firefox, other Gecko */
  box-sizing: content-box;         /* Opera/IE 8+ */
  font-size: 18px;
  appearance: normal;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
  font-family: sans-serif;
  padding: 10px;
  border: solid 1px #dcdcdc;
  transition: box-shadow 0.3s, border 0.3s;
}

select{
    overflow:hidden;
    white-space:pre;
    text-overflow:ellipsis;

}

input[type="text"]:focus,
input[type="password"]:focus{
  outline: none;
  border: solid 1px #707070;
  box-shadow: 0 0 5px 1px #969696;
}

p.contest-reg-not{
    font-weight: bold;
    max-width: 70%;
    display: inline-block;
}

/*============== Page: Game ===============*/
#game-container{
    background-color: #fff;
    width: 800px;
    height: 600px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

#game-board{
    margin: 0;
    padding: 0;
    position: relative;
    top: 40px;
}

/*== Page: Articles ==*/
#article-container {
    background-color: #fff;
    border: 3px solid #4d798c;
    padding: 20px 40px;
    border-radius: 5px;
    font-family: Verdana, Geneva, sans-serif;
}

#article-container.contest-registration-form {
    padding: 0;
}

#article-container h2 {
    color: #ef9920;
    font-family: 'wwf';
    font-weight: normal;
    font-size: 30px;
    margin-top: 0;
}

#article-container h3,
#article-container h4{
    color: #598ba1;
    font-family: 'wwf';
    font-weight: normal;
}

#article-container h3{
    font-size: 20px;
}

#article-container h4{
    font-size: 16px;
}

#article-container a{
    color: #ef9920;
}

#article-container a:hover{
    text-decoration: underline;
}

#article-container .emphasis{
    text-align: center;
	font-weight: bold;
	font-style: italic;
}

#article-container a.fancybox.center{
    display: block;
    text-align: center;
}

#article-container a.fancybox img{
    padding: 5px;
    border: 1px solid #dedede;
}

/*============ Intro page ============*/
#intro-container {
    text-align: center;
    padding-top: 100px;
}

#intro-container .logo-container {
    display: inline-block;
    background-image: url('../images/intro-logo.png');
    background-repeat: no-repeat;
    width: 519px;
    height: 262px;

    margin-top: -60px;
}

#intro-container .logo-container h2 {
    padding-top: 40px;
    padding-right: 30px;
}

#intro-container h2 {
    font-family: 'wwf';
    font-weight: normal;
    font-size: 65px;
    line-height: 70px;
    color: #fff
}

#intro-container h2 a {
    color: #fff;
}

#intro-container h2 a:hover {
    text-shadow: 0px 0px 3px rgba(255, 255, 255, 1);
}

#intro-container h2 span {
    display: block;

}

#intro-container h2 .part2 {
    font-size: 85px;
}

/*==Countdown timer==*/
#clockdiv{
    padding-top: 20px;
    font-family: sans-serif;
    color: #fff;
    display: inline-block;
    font-weight: 100;
    text-align: center;
    font-size: 30px;
}

#clockdiv > div{
    padding: 10px;
    border-radius: 3px;
    background: #598ba1;
    display: inline-block;
}

#clockdiv div > span{
    padding: 15px;
    border-radius: 3px;
    background: #4d798c;
    display: inline-block;
}

#clockdiv .smalltext{
    padding-top: 5px;
    font-size: 16px;
}
