* {
    box-sizing: border-box;
}

body {
    /*background: #e9f4eb;*/
    background: #f0f0f0;
    color: #000000;
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    sans-serif;
}

A:link {
    color: #000066;
}

A:visited {
    color: #000066;
}

A:active {
    color: #000066;
}

A:hover {
    color: #000066;
}

a {
    font-weight: 600;
    color: #000066;
    font-size: 12px;
}

img {
    border-color: #ee2c1c;
}

h1 {
    font-size: 24px;
    margin: 15px auto 20px auto;
    padding-bottom: 10px;
    border-bottom: 2px dashed #333;
    float: left;
}

h2 {
    clear: both;
    color: rgb(237, 22, 78);
    font-size: 20px;
    margin: 15px auto 15px auto;
}

#title {
    position: relative;
    top: 140px;
    width: 150px;
    margin-top: 5px;
    margin-left: 20px;
    float: left;
    font-weight: 600;
    color: #000000;
    font-size: 18px;
}

#mobilead {
    position: absolute;
    float: left;
    left: 20px;
    top: 20px;
    z-index: 100500;
}

#space {
    clear: both;
}

#menu {
    width: 100%;
    height: 180px;
    margin: 0;
    border: 0;
    padding: 0;
    background-color: #9edbf5;
}

#gamecontent {
    width: 100%;
    height: 445px;
    top: 40px;
    margin: 0;
    border: 0;
    padding: 0;
}

#mobilead {
    position: absolute;
    float: left;
    left: 20px;
    top: 20px;
    z-index: 100500;
}

.ctrlbt {
    position: relative;
    top: 140px;
    cursor: pointer;
    float: left;
    width: auto;
    height: 30px;
    margin-left: 10px;
    margin-top: 5px;
    text-decoration: underline;
    font-weight: 600;
    color: #000066;
    font-size: 18px;
    z-index: 12001;
}

#ctrl-space {
    position: relative;
}

#container {
    position: absolute;
    left: 20px;
    top: 195px;
}

#exp {
    position: absolute;
    top: 845px;
    font-size: 16px;
    font-weight: bold;
    width: 640px;
    height: auto;
    margin-left: 20px;
    margin-bottom: 20px;
    border: solid 3px green;
    padding: 15px;
    color: #333333;
    line-height: 1.6em;
    background-color: #eeeeee;
    border-radius: 10px;
    z-index: 100600;
}

#totop a {
    color: rgb(237, 22, 78) !important;
}

#exp p {
    margin: 10px 0 10px 0;
    text-indent: 1em;
}

#deleteData {
    color: green;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 20px;
    margin-top: 20px;
    font-size: 16px;
    float: left;
}

#disp {
    position: absolute;
    font-weight: bold;
    background-color: #f2f2f2;
    line-height: 30px;
}


#contentright {
    position: absolute;
    float: left;
    left: 760px;
    top: 220px;
    width: auto;
    height: auto;
    z-index: 100500;
}

@media screen and (min-width: 960px) {
    /* 960px以上の幅の場合に適応される */
    #ctrl-space {
        padding-left: 150px;
    }

    #exp {
        left: 150px;
        width: 640px;
    }

    #container {
        left: 150px;
    }

    #mobilead {
        left: 160px;
    }

    #contentright {
        left: 880px;
    }
}


@media screen and (min-width: 1280px) {
    /* 1280px以上の幅の場合に適応される */
    #ctrl-space {
        padding-left: 220px;
    }

    #exp {
        left: 220px;
        width: 640px;
    }

    #container {
        left: 220px;
    }

    #mobilead {
        left: 260px;
    }

    #contentright {
        left: 960px;
    }
}

#txtspace {
    font-size: 64px;
    color: white;
    position: absolute;
    left: 230px;
    top: 150px;
    z-index: 7;
}

#command {
    position: absolute;
    left: 120px;
    top: 300px;
    z-index: 999999;
    width: 600px;
}

#resultDiv {
    position: absolute;

    z-index: 999996;
    width: 400px;
    background-color: #ddd;
    border: 3px solid #333;
    border-radius: 15px;
    opacity: 0.9;

    margin: auto;
}

#betcommand {
    position: absolute;
    left: 280px;
    top: 555px;
    z-index: 999999;
    width: 600px;
}

.betbt {
    float: left;
    width: 100px;
    font-size: 12px;
    border: 3px solid #666;
    /*border-radius: 4px;*/
    background-color: #f0f0f0;
    text-align: center;
    color: black;
    margin: 5px 5px auto 5px;
    padding: 5px 10px 5px 10px;
    cursor: pointer;
    font-weight: bold;
}

.betbt:hover {
    background-color: #777;
    color: white;
}

.commandspan:hover {
    background-color: #eee;
    color: white;
}

.commandspan {
    float: left;
    width: 150px;
    font-size: 24px;
    border: 5px solid #aaa;
    border-radius: 25px;
    background-color: #eee;
    text-align: center;
    color: black;
    margin: auto 25px auto 25px;
    padding: 10px 20px 10px 20px;
    cursor: pointer;
}

.commandspan:hover {
    background-color: #eee;
    color: white;
}

.coinspace {
    color: rgb(204, 178, 0)
}

.baloonout {
    text-align: center;
    position: relative;
    display: inline-block;
    margin: 1.5em 0;
    padding: 7px 10px;
    min-width: 100px;
    max-width: 100%;
    color: #555;
    font-size: 16px;
    background: #777;
    border-radius: 15px;
}

.balloon1 {
    font-weight: bold;
    text-align: center;
    position: absolute;
    display: inline-block;
    margin: 1.5em 0;
    padding: 7px 10px;
    min-width: 100px;
    max-width: 100%;
    color: #f946af;
    font-size: 16px;
    background: #ddd;
    border-radius: 15px;
}

.balloon1:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -15px;
    border: 15px solid transparent;
    border-top: 15px solid #ddd;
}

.balloon1 p {
    margin: 0;
    padding: 0;
}


.balloon2 {
    font-weight: bold;
    text-align: center;
    position: absolute;
    display: inline-block;
    margin: 1.5em 0;
    padding: 7px 10px;
    min-width: 100px;
    max-width: 100%;
    color: #555;
    font-size: 16px;
    background: #555;
    border-radius: 15px;
}

.balloon2:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -15px;
    border: 15px solid transparent;
    border-top: 15px solid #555;
}

.balloon2 p {
    margin: 0;
    padding: 0;
}


#soundspace {
    position: absolute;
    width: 52px;
    height: 52px;
    left: 620px;
    top: 450px;
    cursor: pointer;
    z-index: 9777778;
}

.spanButton {
    border: solid 2px #666;
    border-radius: 5px;
    background-color: #fcfcfc;
    padding: 3px 5px 3px 5px;
    width: 150px;
}

.assistButton {
    text-align: center;
    cursor: pointer;
    margin: 8px auto 0 auto;
    padding: 2px 5px 2px 5px;
    border: 2px solid #555;
    background-color: #fadfeb;
    border-radius: 5px;
    width: 100px;
}

.center {
    text-align: center;
    margin: 3px auto 3px auto;
}

.assistButton:hover {
    background-color: #666;
    color: white;
}

#resultDisplay {
    position: absolute;
    left: 160px;
    top: -500px;
    width: 340px;
    height: auto;
    border-radius: 15px;
    border: 3px solid #ddd;
    background-color: #eee;
    z-index: 999997;
    padding: 20px;
    opacity: 0.85;
    text-align: center;
}

#pointDiv {
    width: 500px;
    height: 250px;
    position: absolute;
    left: 0;
    top: 0;
    border: 3px solid rgb(188, 24, 119);
    border-radius: 5px;
    z-index: 999996;
}

#pointTable {
    width: 494px;
    height: 246px;
    border-collapse: collapse;
    padding: 3px 5px 3px 5px;
}

#pointTable th {
    width: 250px;
    font-family: Arial, "Aharoni", "Arial Black";
    font-weight: bold;
    color: rgb(116, 222, 255);
    background-color: rgb(80, 1, 143);
    /*border-radius: 5px;*/
    padding: 3px 6px 3px 6px;
    text-align: left;
}

#pintTable tr:first-child th {
    border-radius: 5px;
}

#pointTable td {
    font-family: Arial, "Aharoni", "Arial Black";
    font-weight: bold;
    color: rgb(214, 236, 254);
    background-color: rgb(80, 35, 227);
    /*border-radius: 5px;*/
    padding: 3px 6px 3px 6px;
    text-align: left;
}

.dealdiv {
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -500px;
    z-index: 49998;
    text-align: center;
    background-color: #eee;
    padding-top: 5px;
    width: 80px;
    height: auto;
    border: 3px solid #c2dde8;
    border-radius: 5px;
    cursor: pointer;
}

#changeCards {
    font-weight: bold;
    position: absolute;
    left: 230px;
    top: -290px;
    z-index: 899998;
    text-align: center;
    background-color: #eee;
    padding-top: 5px;
    width: 110px;
    height: auto;
    border: 3px solid #c2dde8;
    border-radius: 5px;
    cursor: pointer;
}

#changeCards:hover {
    background-color: pink;
}


#pointSpace {
    position: absolute;
    left: 500px;
    width: 140px;
    height: 250px;
    /*border: 3px solid rgb(188, 24, 119);*/
    /*border-radius: 5px;*/
}

#pointDisplay {
    position: absolute;
    left: 0;
    top: 50px;
    width: 140px;
    height: 200px;
    border: 3px solid rgb(188, 24, 119);
    border-radius: 5px;

    background-color: #666;
    color: white;
    z-index: 777777;
    padding: 5px 10px 5px 10px;
    font-size: 13px;
    text-align: left;
}

#pointDisplay div {
    margin-top: 2px;
    font-size: 12px;
}

#pointDispTable {
    font-size: 16px;
    text-align: center;
    font-weight: bold;
}

#pointResult {
    font-size: 24px;
    left: 0;
    top: 0;
    width: 140px;
    height: 50px;
    border: 3px solid rgb(188, 24, 119);
    border-radius: 5px;

    background-color: #666;
    color: white;
    padding-top: 8px;
    text-align: center;
}

.pdisplay {
    font-size: 16px;
    font-weight: bold;
    color: black;
    text-align: center;
}

.resultMove {
    font-size: 28px;
    left: 0;
    top: 0;
    border: 3px solid rgb(188, 24, 119);
    border-radius: 5px;
    background-color: #e63056;
    color: white;
    padding-top: 8px;
    text-align: center;
    font-weight: bold;
    font-style: oblique;
}

#handTable {
    border-collapse: collapse;
    border: 2px solid #666;
    border-radius: 5px;
    background-color: #f0faf0;
}

#handTable th,tr,td {
    /*border: 1px solid #333;*/
    padding: 5px;
}

#handTable tr {
    border: 2px solid #666;
}

#handTable th {
    background-color: #9edbf5;
}

#handTable td {
    background-color: #fafafa;
    text-align: center;
}

#handTable td:first-child  {
    text-align: right;
}

#handTable img {
    width: 48px;
    height: 64px;
}