@font-face {
    font-family: 'vag_rounded_std_lightregular';
    src: url('vag_rounded_std_light-webfont.eot');
    src: url('vag_rounded_std_light-webfont.eot?#iefix') format('embedded-opentype'),
         url('vag_rounded_std_light-webfont.woff') format('woff'),
         url('vag_rounded_std_light-webfont.ttf') format('truetype'),
         url('vag_rounded_std_light-webfont.svg#vag_rounded_std_lightregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

#logo_holder {
	position: absolute;
	top: 10px;
	height: 15%;
	width: 18%;
	left: 41%;
}

#header a:link { color: #FFFFFF; text-decoration: none }
#header a:visited { color: #FFFFFF; text-decoration: none }
#header {
	position: absolute;
	top: 70px;
	font-size: 120%;
    width: 900px;
    margin-left: auto;
    margin-right: auto;
    /* Above the page's own content: the header is lined up from the left and
       the content is centred, so on wide windows they overlap (the Rankings
       title covered Store and Rankings). Only the links take clicks. */
    z-index: 2;
    pointer-events: none;
}
#header a { pointer-events: auto; }
#link_blog {
	position: relative;
	left: 10px;
}
#link_press {
	position: relative;
	left: 70px;
}
#link_tournaments {
	position: relative;
	left: 130px;
}
#link_store {
	position: relative;
	left: 700px;
}
#link_ratings {
	position: relative;
	top: 5px;
	left: 750px;
}
#link_support {
	position: relative;
	left: 800px;
}

a:link { color: #71d5fa }
a:visited { color: #00aeef }

body {
    background-color: #15519e;
    background-image:url('images/bg_inside.png');
    background-repeat:no-repeat;
    background-position:top center;
    background-attachment:fixed;
    font-family: 'vag_rounded_std_lightregular';
    color: white;
    font-size: 14;
}

body.index {
	background-image:url('images/bg_index.png');
}

h2 { font-size: 18 }

#scroller {
    position: absolute;
    top: 120px;
    width: 900px;
}

.home_button {
    height: 60px;
    position: absolute;
    top: 275px;
}

.home_icon {
    height: 37px;
    position: absolute;
    top: 287px;
}

.content_image { float: left }
.non_float { clear: left }

#left_graphic {
    position: absolute;
    top: 80px;
    left: 30px;
}

#left_graphic_store {
    position: absolute;
    top: 140px;
    left: 20px;
}

#title {
    position: absolute;
    top: 20px;
    left: 300px;
}

#text {
    display: block;
    position: absolute;
    top: 70px;
    left: 260px;
    width: 650px;
    height: 300px;
    overflow: scroll;
    overflow-x: hidden;
}

#ratings_table_scroller {
	position: relative;
	top: -50px;
	width: 768px;
}

#ratings_table_div {
    display: block;
    position: relative;
	margin-left: auto;
	margin-right: auto;
    top: 41px;
    width: 768px;
    height: 230px;
    overflow: scroll;
    overflow-x: hidden;
}
#table_header {
	position: relative;
	top: 45px;
	width: 768px;
}
#ratings_table {
	position: relative;
	left: -4px;
	width: 775px;
	border-spacing: 4px 0px;
}
#col_rank { width: 76px; }
#col_username { width: 226px; }
#col_score { width: 150px; }
#col_badges_game { width: 73px; }
#col_badges_play { width: 73px; }
#col_badges_count { width: 38px; }
.even { background-color: #2b8cc9; }
.odd { background-color: #1f66aa; } 
.table_rank { text-align: center; }
.table_username{ padding-left: 10px; }
.table_score { text-align: center; }
.table_badges_game { text-align: center; }
.table_badges_play { text-align: center; }
.table_badges_count { text-align: center; cursor: pointer }
#ratings_logo_left { position: absolute; top: 200px; left: 100px; }
#ratings_logo_right { position: absolute; top: 200px; right: 100px; }
#ratings_logo_top { position: relative; top: 55px; }

.rect {
    background-color: #0857a4;
    border-radius: 5px;
    margin: 20px;
    padding: 20px;
    clear: left;
}

.button {
    position:absolute;
    top: 0px;
}

#button_holder {
    position:absolute;
    top: 520px;
}

#button_holder_center {
    width: 920px;
    margin-left: auto;
    margin-right: auto;
}

#cp_notice {
    position:absolute;
	top: 640px;
    left: 10px;
    font-size: 13px;
}

.email {
	position: relative;
	top: 5px;
}

.fax {
	position: relative;
	top: 2px;
}

#home { left: 0px }
#faq { left: 80px }
#rules { left: 230px }
#terms { left: 380px }
#privacy { left: 530px }
#copyright { left: 680px }
#about { left: 830px }

#bottom_row { 
	position: relative;
	margin-left: auto;
	margin-right: auto;
	width: 920px;
	top: 580px;
}

#bottom_row_ratings { 
	position: relative;
	width: 920px;
	top: 81px;
}

#facebook { position: absolute; left: 10px; }
#twitter { position: absolute; left: 60px; }
#bottom_appstore { position: absolute; left: 240px; }
#bottom_facebook { position: absolute; left: 350px; }
#bottom_browser { position: absolute; left: 460px; }
#bottom_android { position: absolute; left: 570px; }

#claim {
	position: relative;
	top: 200px;
	width: 400px;
	height: 200px;
	margin-left: auto;
	margin-right: auto;
}

#badge_popup {
	position: absolute;
	visibility: hidden;
	width: 500px;
	height: 290px;
	top: 200px;
	right: 100px;
	background: #FFFFFF;
	color: #000000;
	border: 2px solid;
	box-shadow: 10px 10px 5px #000000;
}

#popup_1 { height: 20px; }
#popup_2 { height: 90px; }
#popup_3 { height: 20px; }
#popup_4 { height: 90px; }
#popup_5 { height: 20px; }
#popup_6 { height: 30px; }
#popup_7 { height: 20px; }

.badges_table {
	margin-left: auto;
	margin-right: auto;
}

#badges_table_game { border-spacing: 40px 0px; }
#badges_table_play { border-spacing: 15px 0px; }
.badges_table td {
	width: 70px;
	text-align: center;
}

#popup_row_total {
	padding-top: 7px;
	text-align: center;
	color: white;
}

#competition_register {
	position: relative;
	top: 200px;
	width: 400px;
	height: 200px;
	margin-left: auto;
	margin-right: auto;
}
#competition_register input {
	width: 200px;
}

/* Desktop: the text box grows with its content (up to 600 pixels, then it
   scrolls) and the footer follows it; layout.js sets --grow and the class
   "grow". Without the script the page keeps the 300-pixel box. */
@media (min-width: 940px) {
    html.grow #text {
        height: auto;
        min-height: 300px;
        max-height: 600px;
    }
    html.grow #ratings_table_div {
        height: auto;
        min-height: 230px;
        max-height: 460px;
    }
    html.grow #button_holder { top: calc(520px + var(--grow, 0px)); }
    html.grow #bottom_row { top: calc(580px + var(--grow, 0px)); }
    html.grow #cp_notice { top: calc(640px + var(--grow, 0px)); }

    /* The background grows too: bg_inside.png cut where its text band is
       plain (y 370), that band's row stretched by --grow, and the rest (the
       band's shaded edge and line, the big tiles) moved down by as much, so
       the line stays just above the page buttons. It scrolls with the page
       instead of staying fixed, or a tall page would slide over the line. */
    html.grow body:not(.index) {
        background-image: url('images/bg_inside_top.png'), url('images/bg_inside_band.png'), url('images/bg_inside_bottom.png');
        background-position: center top, center 370px, center calc(370px + var(--grow, 0px));
        background-size: auto, 1902px var(--grow, 0px), auto;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }
}
