@import url('https://fonts.googleapis.com/css?family=Fjalla+One');

#header {
    height: 50px;
}
.header_logo {
    font-size: 24px;
    line-height: 24px;
    top: 15px;
}

#home {
    background-image: none;
    background-color: #0a6c03;
}

.game_title {
    color: #fff;
    font-family: 'Fjalla One', sans-serif;
    font-weight: 700;
    font-size: 60px;
    margin: 50px auto;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}
.game_message {
    color: #fff;
    font-family: 'Fjalla One', sans-serif;
    font-weight: 400;
    font-size: 18px;
    margin: 50px auto;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}
.game_content {
    background: rgba(0,0,0,0.5);
    margin: 60px 0 10px;
    min-height: 400px;
    padding: 10px;
    position: relative;
    width: auto;
    overflow: hidden;
}
.game_block {
    display: inline-block;
    float: none;
    min-height: 400px;
    position: relative;
    width: 100%;
}
.turn_display {
    position: relative;
    margin: 0 auto;
    max-width: 280px;
    height: 400px;
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 2px solid #fff;
    border-radius: 5px;
    overflow-y: scroll;
}
.turn_display .msg {
    color: #bbb;
    font-family: 'Fjalla One', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 5px;
    border-bottom: 1px solid #bbb;
}

.turn_display .msg:first-child {
    color: #58ca67;
    border-bottom: 1px solid #fff;
}
.turn_display .msg:nth-child(2) {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.player_info {
    margin: 0 0 30px;
    border-bottom: 1px solid #bbb;
}

.player_info .cards_remaining {
    display: inline-block;
    color: #fff;
    font-family: 'Fjalla One', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 10px;
}
.player_info .cards_sort {
    display: inline-block;
    color: #fff;
    font-family: 'Fjalla One', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 10px;
}


.pile {
    position: relative;
    width: 100%;
}
.pile .pile_cont {
    position: relative;
    width: 90px;
    height: 125px;
    margin: 4px auto 0;
    border: 2px dashed #fff;
    border-radius: 5px;
    background: rgba(0,0,0,0.2);
}

.pile .pile_cont .turn_played .card {
    left: 0;
}
.pile .pile_cont .turn_played .card:nth-child(2) {
    left: 30px;
}
.pile .pile_cont .turn_played .card:nth-child(3) {
    left: 60px;
}
.pile .pile_cont .turn_played .card:nth-child(4) {
    left: 90px;
}

.player_turn {
    position: relative;
    width: 100%;
}
.player_turn .player_hand_cont {
    position: relative;
    width: auto;
    height: 150px;
    margin: 30px auto;
    padding: 10px 0;
    overflow-x: scroll;
    overflow-y: hidden;
}

.player_turn .player_hand {
    margin-top: 20px;
    position: relative;
}

.pile .card,
.player_turn .player_hand .card {
    cursor: pointer;
    position: absolute;
    width: 90px;
    height: 120px;
    top: 5px;
    opacity: 1;
    font-family: 'Fjalla One', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.5s;
}
.card[data-suit=joker] {
    background: url('../images/president/joker.png') no-repeat center/cover;
}
.card[data-suit=heart] {
    background: url('../images/president/heart.png') no-repeat center/cover;
}
.card[data-suit=diamond] {
    background: url('../images/president/diamond.png') no-repeat center/cover;
}
.card[data-suit=spade] {
    background: url('../images/president/spade.png') no-repeat center/cover;
}
.card[data-suit=club] {
    background: url('../images/president/club.png') no-repeat center/cover;
}

.player_turn .player_hand .card.active {
    top: -30px;
    opacity: 1;
}
.pile .card .number,
.player_turn .player_hand .card .number {
    margin-left: 12px;
    margin-top: 5px;
}

.player_turn .player_ctrl {
    position: relative;
    text-align: center;
    margin: 20px auto;
}
.player_turn .player_ctrl .btn {
    cursor: pointer;
    position: relative;
    display: block;
    background: #000;
    border: 1px solid #fff;
    border-radius: 10px;
    color: #fff;
    padding: 12px 30px;
    margin: 0 10px 10px;
    box-sizing: content-box;
    font-family: 'Fjalla One', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}


.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    background: #053601;
    color: #fff;
}
.screen .btn_start {
    background: #000;
    color: #fff;
    cursor: pointer;
    display: block;
    font-family: 'Fjalla One', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 2px;
    padding: 10px;
    position: relative;
    margin: 0 auto;
    text-align: center;
    text-transform: uppercase;
    width: 100px;
}
.screen.screen_next_player {
    display: none;
}
.whos_turn {
    font-family: 'Fjalla One', sans-serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 2px;
    margin: 50px auto;
    text-align: center;
    width: 100%;
}

@media all and (min-width: 600px) {
    .game_content {
        padding: 20px;
    }
    .player_turn .player_ctrl .btn {
        display: inline-block;
        margin: 0 10px;
    }
}

/* Desktop */
@media all and (min-width: 800px) {
    .game_block_left {
        float: left;
        width: 30%;
    }
    .game_block_right {
         float: right;
         width: 70%;
    }
}

@media screen and (max-width: 820px) {
    .page_content {
        padding: 0;
    }
    #footer {
        position: relative;
    }
}
