body {
    color: #000000;
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    sans-serif;
    box-sizing: border-box;
    height: 3000px;
    background-color: #e9f4eb;
}

A:link {
    color: #333;
}

A:visited {
    color: #333;
}

A:active {
    color: #333;
}

A:hover {
    color: #333;
}

a {
    font-weight: 600;
    color: #333;
}

h1 {
    font-size: 24px;
    margin: 15px auto 20px auto;
    padding-bottom: 10px;
    border-bottom: 2px dashed #333;
}

h2 {
    color: rgb(237, 22, 78);
    font-size: 20px;
    margin: 15px auto 15px auto;
}

img {
    border-color: #ee2c1c;
}

footer {
    width: 100%;
    background-color: #fafafa;
    color: #333;
    padding: 6px 0;
    text-align: left;
    z-index: 70000000;
    position: fixed;
    bottom: 0;
    left: 0;
    -webkit-transform: translate3d(0,0,0);
    border-top: 2px solid #333;
}

footer a {
    margin: 0 10px;
    color: #333 !important;
    font-size: 0.8rem;
    font-weight: bold;
}

#title {
    position: relative;
    top: 140px;
    width: auto;
    margin-top: 6px;
    margin-left: 20px;
    margin-right: 10px;
    float: left;
    font-weight: 600;
    color: #333;
    font-size: 24px;
}

.ctrlbt {
    position: relative;
    top: 144px;
    cursor: pointer;
    float: left;
    width: auto;
    height: 30px;
    margin-left: 20px;
    margin-top: 2px;
    text-decoration: underline;
    font-weight: 600;
    color: #333;
    font-size: 24px;
    z-index: 12001;
}

#exp img {
    border: 3px solid #333;
}

.ctrlbt a {
    color: #333;
}

#container {
    position: absolute;
    left: 20px;
    top: 210px;
}


#ctrl-space {
    position: relative;
}

#menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 190px;
    margin: 0;
    border: 0;
    padding: 0;
    background-color: #8bbada;
}

#menuContainer {
    font-family: 'Noto Sans JP', sans-serif;
    width: 542px;
    height: auto;
    margin: 0 auto 0 auto;
    position: absolute;
    top: -2500px;
    left: 15px;
    text-align: center;
    padding: 20px 10px;
    z-index: 319999;
    background: rgba(244, 244, 244, 0.8);
    /*background: linear-gradient(180deg, rgba(228,228,228,1) 0%, rgba(212,197,176,1) 100%);*/
    border-radius: 12px;
    border: 4px solid #666;
    /*opacity: 0.9;*/

    font-weight: bold;
    font-size: 20px;
}

select {
    padding: 4px;
    border-radius: 2px;
    font-weight: bold;
    font-size: 24px;
    margin: 10px;
    display:inline;
    width:280px;
    text-align:center;
}


.selectDiv {
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
    /*padding-left: 60px;*/
}

.dispButton {
    display: inline-block;
    font-size: 1.45rem !important;
    font-weight: bold;
    text-align: center;
    margin: 20px 5px 10px 5px;
    padding: 6px 0 5px 0;
    border: 2px solid #666;
    border-radius: 5px;
    color: #333 !important;
    background-color: #eee;
    width: auto;
    min-width: 80%;
    cursor: pointer;
    text-decoration: none !important;
}

#deleteData {
    text-decoration :underline;
    cursor: pointer;
}

#resultSpace {
    position: absolute;
    left: 30px;
    top: -1500px;
    width: 460px;
    border: 3px solid #333;
    border-radius: 10px;
    text-align: center;
    z-index: 9999999;
    background-color: rgb(248, 248, 248, 0.8);
    opacity: 1;
    overflow:hidden;
    padding: 12px 8px;
    height: auto;
}

#canNotMove {
    display: none;
    position: absolute;
    top: 100px;
    width: 380px;
    left: 90px;
    border: 3px solid #333;
    border-radius: 10px;
    text-align: center;
    z-index: 19999;background-color: rgb(248, 248, 248, 0.9);
    opacity: 1;
    overflow:hidden;
    padding: 16px;
    font-size: 24px;
    font-weight: bold;
    height: auto;
    font-family: 'Noto Sans JP', sans-serif;
}

#untouch {
    display: none;
    position: absolute;
    width: 640px;
    height: 600px;
    background-color: #f0f0f0;
    opacity: 0;
    z-index: 19000;
}

#doubleSpace {
    display: none;
    position: absolute;
    top: 80px;
    width: 380px;
    left: 90px;
    border: 3px solid #333;
    border-radius: 10px;
    text-align: center;
    z-index: 20000;
    background-color: rgb(248, 248, 248, 0.9);
    opacity: 1;
    overflow:hidden;
    padding: 16px;
    font-size: 22px;
    font-weight: bold;
    height: auto;
    font-family: 'Noto Sans JP', sans-serif;
}

.inputspace {
    margin: 10px auto 10px 10px;
}

.inputspace2 {
    margin: 20px auto 10px auto;
    text-align: center;
}

input[type="text"] {
    border: solid 2px #666;
    border-radius: 5px;
    background-color: #fcfcfc;
    padding: 3px 5px 3px 5px;
    height:  36px;
    width: 200px;
    font-size: 24px;
}

#difficultySpan {
    text-align: center;
}

#resultSpace div {
    margin: 20px 0;
    font-size: 28px;
}

.resultStr {
    display: inline-block;
    font-size: 24px;
    width: 100px;
}

#resultSpace div:first-of-type {
    font-weight: bold;
    /*color: #E9546B;*/
}

#exp {
    position: absolute;
    top: 920px;
    font-size: 28px;
    font-weight: bold;
    width: 540px;
    height: auto;
    left: 10px;
    margin-bottom: 20px;
    border: solid 3px #333;
    border-radius: 10px;
    padding: 15px;
    color: #333333;
    line-height: 1.6em;
    background-color: #eeeeee;
}

#scoreSpace {
    position: absolute;
    top: 10px;
    width: 380px;
    padding-left: 15px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #666;
}

#score1 {
    float: left;
}

#score2 {
    float: right;
}

#exp p {
    margin: 10px 0 10px 0;
    text-indent: 1em;
}

#consoleSpace {
    position: absolute;
    top: 550px;
    left: 20px;
    width: 390px;
    z-index: 66699;
    text-align: right;
}

#consoleSpace span {
    font-size: 20px;
    font-weight: bold;
    color: palevioletred;
    margin: 8px;
    display: inline-block;
}

#totop a {
    /*color: rgb(237, 22, 78) !important;*/
}

#mobilead {
    position: absolute;
    float: left;
    left: 20px;
    top: 10px;
    z-index: 39;
}

#gamecontent {
    width: 100%;
    height: 405px;
    top: 40px;
    margin: 0;
    border: 0;
    padding: 0;
}


#contentright {

    position: absolute;
    float: left;
    left: 680px;
    top: 190px;
    width: auto;
    height: auto;

    z-index: 100500;
}


#disp {
    position: absolute;
    font-weight: bold;
    background-color: #f2f2f2;
    line-height: 30px;
}


@media screen and (min-width: 1024px) {

    footer {
        text-align: center;
    }

    /* 1024px以上の幅の場合に適応される */
    #ctrl-space {
        padding-left: 160px;
    }

    #exp {
        font-size: 20px;
        left: 180px;
    }

    #container {
        left: 160px;
    }

    #mobilead {
        left: 140px;
    }

    #contentright {
        left: 850px;
    }
}

@media screen and (min-width: 1280px) {
    /* 1280px以上の幅の場合に適応される */
    #ctrl-space {
        padding-left: 300px;
    }

    #exp {
        left: 300px;
    }

    #container {
        left: 300px;
    }

    #mobilead {
        left: 280px;
    }

    #contentright {
        left: 960px;
    }
}


#line1 {
    position: absolute;
    top: 185px;
    width: 100%;
    height: 5px;
    background-color: #187FC4;
}

#boardSpace {
    width: 696px;
    height: auto;
    background-color: #835e43;
    border-radius: 60px;
    margin: 50px 0;
    padding: 8px;
    box-sizing: border-box;
    border: 3px solid #251407;
    /*background-image:url("../mancalaimage/wood.png");*/
    box-shadow: 3px 3px #333;
}

.partClass {
    display: inline-block;
    width: 80px;
    height: auto;
    text-align: center;
    /*border: 3px solid red;*/
    margin: 4px auto;
    padding: 0;
}

.holeClass {
    width: 72px;
    height: 72px;
    border-radius: 36px;
    background-color: #bb987c;
    border: 3px solid #46370d;
    margin: 4px 0;
    box-shadow: inset 4px 4px #333;
    /*cursor: pointer;*/
}

.holeClass2 {
    width: 72px;
    height: 96px;
    border-radius: 36px;
    background-color: #bb987c;
    border: 3px solid #46370d;
    margin: 8px 0;
    padding: 24px 0;
    box-shadow: inset 4px 4px #333;
    /*cursor: pointer;*/
}

#msgSpace {
    font-family: 'Noto Sans JP', sans-serif;
    position: absolute;
    width: 540px;
    top: 580px;
    left: 20px;
    font-size: 36px;
    font-weight: bold;
    z-index: 2074;
    color: #888;
}

#infoSpace {
    position: absolute;
    width: 400px;
    top: 0px;
    left: 20px;
    font-size: 26px;
    font-weight: bold;
    z-index: 2075;
    color: #999;
}


#phaseSpace {
    position: absolute;
    width: 300px;
    top: -10px;
    left: 240px;
    font-size: 48px;
    font-weight: bold;
    text-align: right;
    z-index: 2075;
    color: #999;
}

#consoleSpace {
    position: absolute;
    top: 490px;
    left: 200px;
    font-size: 24px;
    font-weight: bold;
    z-index: 2076;
}

#rollDice {
    cursor: pointer;
    background-color: #41b280;
    border-radius: 5px;
    display: inline-block;
    font-size: 20px;
    padding: 3px 6px;
    color: white;
}

#autoMode {
    cursor: pointer;
    background-color: #999;
    border-radius: 5px;
    display: inline-block;
    font-size: 20px;
    padding: 3px 6px;
    color: white;
    margin: 3px;
}

#doubleButton {

    cursor: pointer;
    background-color: #999;
    border-radius: 5px;
    display: inline-block;
    font-size: 20px;
    padding: 3px 6px;
    color: white;
    margin: 3px;
}


#doubleDisplay {

    cursor: pointer;
    background-color: #999;
    border-radius: 5px;
    display: inline-block;
    font-size: 20px;
    padding: 3px 6px;
    color: white;
    margin: 3px;
}

#diceSpace {
    display: inline-block;
    background-color: #eee;
    border-radius: 5px;
    padding: 5px;
    min-width: 44px;
    height: 44px;
}

#diceSpace div {
    display: inline-block;
}

#diceSpace img {
    width: 41px;
    height: 41px;
}