@charset "utf-8";

* {
    margin:0;
    padding:0;
}



section.game {
    padding: 0 3px 40px 0;
}

.game h2 {
    margin: 0 0 20px;
}

#game_start img {
    display: block;
    width: 500px;
    margin: 0 auto 20px;
}

#game_start img:hover {
    cursor: pointer;
    animation: game-start1 0.2s ease 0s 4 both;
}

@keyframes game-start1 {
    0% { transform: rotate(0); }
    30% { transform: rotate(-0.5deg); }
    70% { transform: rotate(0.5deg); }
    100% { transform: rotate(0); }
}



#game_play {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    height: 100%;
    color: #fff;
    background-color:  rgba(0, 0, 0, 0.85);
    overflow: auto;
}


#game_play section#landscape {
    display: block;
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%, 0);
}

#game_play section#portrait {
    display: none;
}



div.animation_pic1{
    animation: pic-large1 0.3s cubic-bezier(0.5,0.2,0.2,0.5) 0s 1 both;
}

@keyframes pic-large1 {
    0% { transform: scale(0.5, 0.5); }
    100% { transform: scale(1, 1); }  
}



#game_setting {
    width:760px;
    height:160px;
    box-sizing: border-box;
    position: relative;
    color:#fff;
    font-size:12px;
    background-color:#030;
}

#menu_shuffle {
    position: absolute;
    top: 20px;
    left: 40px;
}

#menu_start {
    position: absolute;
    top: 20px;
    left: 205px;
}

#menu_giveup {
    position: absolute;
    top: 20px;
    left: 370px;
}

#menu_continue {
    position: absolute;
    top: 20px;
    left: 505px;
}

.btn, .btn_act, .btn_off {
    width: 145px;
    height: 30px;
    margin: 0 0 10px;
    padding: 5px 10px 3px 20px;
    box-sizing: border-box;
    border: 1px solid #fff;
    font-size: 12px;
    color: #fff;
    user-select: none;
}

#menu_giveup, #menu_continue {
    width: 115px;
}

.btn:hover, .btn_act:hover {
    background-color: #97093f;
    cursor: pointer;
}

.btn, .btn:active {
    background-color: #00485f;
}

.btn_act {
    background-color: #97093f;
}

.btn_off {
    background-color: #666;
}


#menu_close {
    position: absolute;
    top: 25px;
    right: 50px;
}

#menu_close span {
    display: inline-block;
}

#game_play span:hover {
    cursor: pointer;
}


table#game_result {
    position: absolute;
    top: 70px;
    left: 50px;
    border:0;
    border-collapse:collapse;
}

table#game_result td {
    /* border: solid 1px #000; */
    font-size: 14px;
}

table#game_result .w1 {
    width: 100px;
    padding: 4px 8px;
    box-sizing: border-box;
}

table#game_result .w2 {
    width: 50px;
    padding: 0 8px;
    box-sizing: border-box;
}

table#game_result .w3 {
    width: 70px;
    padding: 0 8px;
    box-sizing: border-box;
    font-size: 24px;
}

table#game_result .w4 {
    width: 360px;
    padding: 0 8px;
    box-sizing: border-box;
    font-size: 14px;
}


#game_table {
    width: 760px;
    height:525px;
    box-sizing: border-box;
    background-color:#060;
    position: relative;
}

#b1, #b2, #b3, #b4, #b5, #b6, #b7, #b8 {
    width: 70px;
    height: 100px;
    border: solid 1px #fff;
    box-sizing: border-box;
    background-color:#060;
    position: absolute;
    top: 20px;
}

#b1 { left: 50px; }
#b2 { left: 125px; }
#b3 { left: 200px; }
#b4 { left: 275px; }
#b5 { left: 415px; }
#b6 { left: 490px; }
#b7 { left: 565px; }
#b8 { left: 640px; }

#z1, #z2, #z3, #z4, #z5, #z6, #z7, #z8 {
    width: 70px;
    height: 200px;
    position: absolute;
    top: 150px;
    z-index: 0;
}

#z1 { left: 30px; }
#z2 { left: 120px; }
#z3 { left: 210px; }
#z4 { left: 300px; }
#z5 { left: 390px; }
#z6 { left: 480px; }
#z7 { left: 570px; }
#z8 { left: 660px; }

#h1, #h2, #h3, #h4, #h5, #h6, #h7, #h8, #h9, #h10, #h11, #h12, #h13,
#s1, #s2, #s3, #s4, #s5, #s6, #s7, #s8, #s9, #s10, #s11, #s12, #s13,
#d1, #d2, #d3, #d4, #d5, #d6, #d7, #d8, #d9, #d10, #d11, #d12, #d13,
#c1, #c2, #c3, #c4, #c5, #c6, #c7, #c8, #c9, #c10, #c11, #c12, #c13 {
    position: absolute;
    display: none;
    width: 70px;
    height: 100px;
    box-sizing: border-box;
    border: solid 1px #000;
    background-color: #fff;
}

:is(.heart, .diamond) span {
    display: block;
    height:98px;
    color:#fd0000;
    cursor: pointer;
}

:is(.spade, .club) span {
    display: block;
    height: 98px;
    color:#000000;
    cursor: pointer;
}



#continue {
    width: 600px;
    height: 325px;
    margin: 0 0 0 -300px;
    padding: 45px 50px 0;
    box-sizing: border-box;
    position: absolute;
    top: 50px;
    left: 50%;
    z-index: 50;
    border: 1px solid #000;
    background-color: #fff;
    display: none;
}

#continue table {
    border: 0;
    border-collapse: collapse;
}

#continue table.t1 {
    width: 300px;
    margin: 0 100px;
}

#continue table.t1 td {
    color: #000;
}

#continue table.t1 .w1 {
    width: 100px;
    padding: 0 20px 10px;
    box-sizing: border-box;
}
#continue table.t1 .w2 {
    width: 200px;
    padding: 0 20px 15px;
    box-sizing: border-box;
}

#continue table.t1 .w2 input {
    font-size: 24px;
    padding: 5px 17px 4px;
}

#continue table.t2 {
    width: 500px;
    margin: 30px 0 0;
    box-sizing: border-box;
    /* border: solid 1px #000; */
}

#continue table.t2 .w1 {
    width: 220px;
    padding: 0 30px;
    box-sizing: border-box;
}

#continue table.t2 .w2 {
    width: 280px;
    padding: 0 30px;
    box-sizing: border-box;
}

#continue table.t2 span {
    display: block;
    border: 1px solid #000;
}

#continue table.t2 b {
    display: block;
    margin: 0 auto;
    padding: 7px 20px 5px;
    font-weight: normal;
    color: #fff;
    background-color: #000;
    text-align: center;
}

#continue table.t2 b:hover {
    color: #fff;
    background-color: #0CF;
}


