@font-face {
    font-family: "BebasNeueBold";
    src: url("../fonts/BebasNeueBold.ttf");
}

@font-face {
    font-family: "BebasNeueRegular";
    src: url("../fonts/BebasNeueRegular.ttf");
}

* { margin: 0; padding: 0; }

body {
    background: url("../images/bg.svg") no-repeat;
    background-size: auto 1030px;
}

.wrapper {
    position: relative;
    width: 1200px;
    margin: 0 auto;
    height: 1010px;
}

.header_link {
    display: block;
    width: 1140px;
    margin: 20px auto 0;
    font: 51px/79px BebasNeueBold;
    color: #ffffff;
    text-decoration: none;
    background: url("../images/header_bg.svg");
    text-align: center;
    background-size: 100% auto;
    letter-spacing : 5.1px;
}

.site_description {
    width: 935px;
    margin: 20px auto;
    font: 24px/29px BebasNeueBold;
    color: #5e7b90;
    letter-spacing : 2.4px;
    background : rgba(234, 238, 239, 0.7);
    border-radius: 12px;
    padding: 10px 30px;
}

.game_items {
    display: flex;
    justify-content: space-around;
}

.game_items li {
    display: block;
    width: 360px;
}

.game_cover {
    position: relative;
    height: 244px;
    background-size: 360px auto;
}

.game_items li:nth-of-type(1) .game_cover { background-image: url("../images/game_bg_1.svg"); }
.game_items li:nth-of-type(2) .game_cover { background-image: url("../images/game_bg_2.svg"); }
.game_items li:nth-of-type(3) .game_cover { background-image: url("../images/game_bg_3.svg"); }

.play_button {
    display: block;
    position: absolute;
    top: 105px;
    left: 50%;
    width: 150px;
    margin-left: -75px;
    cursor: pointer;
}

.game_info {
    background: url("../images/game_info_bg.svg") no-repeat;
    background-size: 360px 50px;
    font: 16px/19px BebasNeueRegular;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    letter-spacing : 1.6px;
    padding: 6px 20px;
    margin-top: 10px;
}

.stat {
    position: relative;
    margin-top: 10px;
    border-top: 3px solid #ffffff;
    height: 202px;
    background-size: 360px auto;
    background-repeat: no-repeat;
    background-position: center bottom;
}

.game_items li:nth-of-type(1) .stat { background-image: url("../images/hill_1.svg"); }
.game_items li:nth-of-type(2) .stat { background-image: url("../images/hill_2.svg"); }
.game_items li:nth-of-type(3) .stat { background-image: url("../images/hill_3.svg"); }

.best_players {
    position: absolute;
    top: 10px;
    left: 0;
    font: 12px/16px BebasNeueBold;
    letter-spacing : 1.2px;
    color : #5E7B90;
    padding: 0 10px;
    background: rgba(234, 238, 239, 0.7);
    border-radius: 5px;
}

.score {
    position: absolute;
    top: 10px;
    left: 96px;
    font: 12px/16px BebasNeueBold;
    letter-spacing : 1.2px;
    color : #5E7B90;
    padding-left: 27px;
    padding-right: 10px;
    background: rgba(234, 238, 239, 0.7) url(../images/score.svg) no-repeat 10px center;
    background-size: auto 12px;
    border-radius: 5px;
}

.games_played {
    position: absolute;
    top: 10px;
    right: 0;
    font: 12px/16px BebasNeueBold;
    letter-spacing : 1.2px;
    color : #5E7B90;
    padding-left: 30px;
    padding-right: 10px;
    background: rgba(234, 238, 239, 0.7) url(../images/played.svg) no-repeat 10px center;
    background-size: auto 12px;
    border-radius: 5px;
}

.games_played_counter {
    position: absolute;
    right: 20px;
    top: 40px;
    font: 19px/32px BebasNeueBold;
    letter-spacing : 1.9px;
    color : #FFFFFF;
    padding: 0 20px;
    background : rgba(94, 123, 144, 0.5);
    border-radius: 3px;
}

.best_players_list {
    display: block;
    position: absolute;
    top: 35px;
}

.best_players_list li {
    display: block;
    font-size: 0;
}

.best_players_list li div {
    display: inline-block;
    vertical-align: top;
}

.best_players_list .name {
    position: relative;
    font: 12px/18px BebasNeueRegular;
    letter-spacing : 1.2px;
    color : #5E7B90;
    width: 60px;
    overflow: hidden;
    padding-left: 10px;
}

.best_players_list .name:before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 4px;
    background: #FFFFFF;
    border-radius: 2px;
}

.best_players_list .user_score {
    font: 12px/18px BebasNeueRegular;
    letter-spacing : 1.2px;
    color : #FFFFFF;
}

.top_20_button {
    position: absolute;
    top: 94px;
    left: 0;
    font: 12px/16px BebasNeueBold;
    letter-spacing: 1.2px;
    color: #5E7B90;
    background: rgba(234, 238, 239, 0.7) url("../images/top.svg") no-repeat 60px center;
    background-size: auto 12px;
    padding-right: 40px;
    padding-left: 10px;
    border-radius: 5px;
    border: 2px solid #587387;
    cursor: pointer;
}

.game_history {
    font: 13px/16px Roboto;
    color: #5e7b90;
    background : rgba(234, 238, 239, 0.7);
    border-radius: 12px;
    padding: 20px;
    letter-spacing : 0.76px;
    margin-top: 10px;
}

.read_more {
    width: 150px;
    text-align: center;
    background : #5A7589;
    font: 16px/28px Roboto;
    font-style: italic;
    color: #ffffff;
    text-transform: uppercase;
    margin: 20px auto 0;
    cursor: pointer;
    border-radius: 14px;
}

.arrow {
    position: absolute;
    left: 50%;
    bottom: 0;
    margin-left: -11px;
    display: block;
    width: 22px;
}

.cover {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(159,196,191,0.8);
}

.popup_top {
    display: none;
    position: absolute;
    width: 320px;
    height: 210px;
    top: 50%;
    left: 50%;
    margin-left: -160px;
    margin-top: -105px;
    background : rgba(234, 238, 239, 1);
    border-radius: 8px;
    padding: 20px 40px;
    overflow: hidden;
}

.exit {
    position: absolute;
    right: -17px;
    top: -17px;
    width: 34px;
    height: 34px;
    background: url("../images/exit.svg");
    background-size: 34px;
    cursor: pointer;
}

.top_title {
    font: 14px/18px BebasNeueRegular;
    color: #5e7b90;
    text-transform: uppercase;
    text-align: center;
    letter-spacing : 1.4px;
}

.top_title span {
    color: #f7b946;
}

.top_20_list {
    font-size: 0;
    border-top: 1px solid #5e7b90;
    border-bottom: 1px solid #5e7b90;
    padding: 5px 0;
}

.top_20_list li {
    display: inline-block;
    margin-right: 60px;
}

.top_20_list li:nth-of-type(2n) {
    margin-right: 0;
}

.top_20_list li div {
    display: inline-block;
    vertical-align: top;
}

.top_20_list .name {
    position: relative;
    font: 12px/18px BebasNeueRegular;
    letter-spacing : 1.2px;
    color : #5E7B90;
    width: 60px;
    overflow: hidden;
    padding-left: 10px;
    white-space: nowrap;
}

.top_20_list .name:before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 4px;
    background: #f7b946;
    border-radius: 2px;
}

.top_20_list .user_score {
    font: 12px/18px BebasNeueRegular;
    letter-spacing : 1.2px;
    color : #f7b946;
    width: 60px;
}

.popup_start {
    display: none;
    position: absolute;
    width: 320px;
    height: 280px;
    top: 50%;
    left: 50%;
    margin-left: -160px;
    margin-top: -140px;
    font: 16px/18px Roboto;
    color: #5e7b90;
    background : rgba(234, 238, 239, 0.7);
    border-radius: 12px;
    padding: 20px;
    letter-spacing: 0.76px;
}

.enter_name {
    width: 200px;
    margin: 20px auto 0;
    display: block;
    font: 13px/26px Roboto;
    color: #5e7b90;
    border: none;
    outline: none;
    padding: 0 13px;
    border-radius: 13px;
    text-align: center;
    text-transform: uppercase;
}

.game_popup {
    display: none;
    position: absolute;
    width: 800px;
    height: 600px;
    top: 50%;
    left: 50%;
    margin-left: -400px;
    margin-top: -300px;
    background : rgba(234, 238, 239, 0.7);
    border-radius: 12px;
    padding: 20px;
}

.finish_popup {
    display: none;
    position: absolute;
    width: 600px;
    height: 360px;
    top: 50%;
    left: 50%;
    margin-left: -300px;
    margin-top: -180px;
    background : rgba(234, 238, 239, 0.7);
    border-radius: 12px;
    padding: 20px;
    font: 24px/29px BebasNeueBold;
    color: #5e7b90;
    letter-spacing: 2.4px;
    text-align: center;
    text-transform: uppercase;
}

.finish_buttons {
    display: block;
    margin-top: 20px;
    text-align: center;
    font-size: 0;
}

.share_buttons_game {
    display: block;
    margin-top: 20px;
    text-align: center;
    font-size: 0;
}

.share_buttons_game a {
	cursor: pointer;
}

.finish_buttons li {
    display: inline-block;
    background: #d6d9da;
    width: 140px;
    border: 2px solid #567386;
    font: 24px/29px BebasNeueBold;
    color: #5e7b90;
    letter-spacing: 2.4px;
    border-radius: 5px;
    margin-right: 20px;
    cursor: pointer;
}

.finish_buttons li:last-of-type {
    margin-right: 0;
}

.gif_image {
    display: block;
    width: 250px;
    margin: 0 auto 20px;
}

.share_buttons {
    font-size: 0;
    position: absolute;
    bottom: 9px;
    left: 50%;
    margin-left: -140px;
    width: 280px;
    height: 22px;
    padding: 7px 0;
    border-radius: 18px;
    background: #859861;
    text-align: center;
}

.share_item {
    display: inline-block;
    margin: 0 6px;
}

.share_item img {
    display: block;
    width: 22px;
}

.required_share_popup {
	display: none;
    position: absolute;
    width: 320px;
    height: 300px;
    top: 50%;
    left: 50%;
    margin-left: -160px;
    margin-top: -150px;
    background: rgba(234, 238, 239, 1);
    border-radius: 8px;
    padding: 20px 40px;
}

.rep_1, .rep_2 {
	font: 31px/37px BebasNeueBold;
	color: #677a8e;
	text-align: center;
}

.rep_1 {
	border-top: 2px solid #677a8e;
	border-bottom: 2px solid #677a8e;
	margin-bottom: 20px;
}

.ops {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	background: #a9c2be url(../images/ops.svg) no-repeat center;
	background-size: 100% auto;
}

@media screen and (max-width: 540px) {
	.ops { display: block; }
}