/* style.css */
@charset "utf-8";

*{
    margin: 0;
    padding: 0;
}
body {
    background-color: #008000; /* 背景色を緑に変更 */
    text-align: center; /* 中央寄せ */
    margin: auto; /* 要素を中央配置 */
    text-align: center; /* 中央寄せ */
    margin: auto; /* 要素を中央配置 */
    align-items: center;
    /* margin: 1em; */
    display: flex;
    flex-direction: column;
    font-size: 5vh;
    /* font-family: 'Righteous', cursive; */
}
h1{
    /* font-size: 5vh; */
    font-size: 36px;
    color: aqua;
    margin: 0 10px 0 0;

}

.timer{
    font-family: 'Courier Prime', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
}

#board-container {
    position: relative; /* 盤面の中央配置を行うために相対位置指定 */
    width: 324px; /* 盤面の幅と高さを指定 */
    height: 324px;
    margin: 0 auto; /* 水平方向に中央配置 */
    background-color: #840;
}

.board-cell {
    position: absolute; /* 盤面の各セルを絶対位置指定 */
    width: 64px;
    height: 64px;
    border: 2px solid #f80;
    font-size: 50px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


/* main{
    position: absolute;
    top: 10px;
    left:10px;
    cursor:pointer;

    /*width: 400px;*/
    /* margin: 50px;
    user-select: none;
} */ */

#table{
    border-collapse: collapse;
    background: #009944;
}

#table{
  overflow: hidden;
}
.main tr:hover{
    background-color: #f5b460;
    z-index: 998;  
}

#table td{
    border: 1px solid #6091d3 ; 
    background: #009944;
    text-align: center;
    font-size:30px;
    font-weight   : bold;
    width: 64px;
    height: 64px;
    position: relative;
}

.main td:hover {
    background-color: #f3ece3;
  }

.main td:hover:after {
    content: "";
    background-color: #f7fbf9;
    width: 100%;
    height: 200vh;
    position: absolute;
    top: -100vh;
    left: 0;
    z-index: -1;
  }

.select td:hover, .box div:hover{
    background: #f3ece3;
    cursor: pointer;
}

.main tr:first-child td{
    border-top: 4px solid #6091d3;
}

.main tr:nth-of-type(4n) td{
    border-bottom: 4px solid #6091d3;
}

.main td:nth-of-type(n){
    border-right: 4px solid #6091d3;
}
.main tr:nth-of-type(4n) tr{
    border-bottom: 4px solid #6091d3;
}


.board{
    display: grid;
    /* grid-template-rows: 12vh 12vh 12vh;
    grid-template-columns: 12vh 12vh 12vh; */
    grid-template-rows: 64px 64px 64px 64px;
    grid-template-columns: 64px 64px 64px 64px;
    background: #009944;
    justify-self: center;   /* 横方向中央揃え */
    align-self: center;     /* 縦方向中央揃え */
}

.cell{
    /*background: #be3455;*/
    border: solid 1px white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

.cell:hover{
    background-color:red;
    color: gold;
}

.btn{
    display: flex;
    align-items: center;
    justify-content: center;
}

#btnStart{
    /* font-family: 'Courier Prime', monospace; */
    /* width: 36vh; */
    width: 240px;
    /* padding: 1em; */
    padding: 10px;
    /* font-size: 3vh; */
    font-size: 24px;
    cursor: pointer;
}

#btnStart:hover{
    background-color:red;
    color: gold;
}

.message{
    display: flex;
    align-items: center;
    justify-content: center;
    color:red;
    font-size: 36px;
    cursor: pointer;
}
.message2{
    display: flex;
    align-items: center;
    justify-content: center;
    color:black;
    font-size: 24px;
    cursor: pointer;
}


/*ボタン設定  exit readme*/
.bbb {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 10px;
}

/*exit ボタン*/
#botan1 {
    background: #ffc33c;
    margin: 0px 40px;  /*ボタンの間隔設定*/
    border: 1px solid;
    border-radius: 4px;
    color: black;
    font-size: 20px;
    cursor: pointer;
}

#botan1:hover{
    background-color:red;
    color: gold;
}

/*replay ボタン*/
#botan2 {
    background: #ffc33c;
    margin: 0px 40px;  /*ボタンの間隔設定*/
    border: 1px solid;
    border-radius: 4px;
    color: black;
    font-size: 20px;
    cursor: pointer;
}

#botan2:hover{
    background-color:red;
    color: gold;
}

/*ボタン設定  検索・移動ボタン*/
.ccc {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 10px;
}

/*検索 ボタン*/
#botan3 {
    background: #ffc33c;
    margin: 0px 0px;  /*ボタンの間隔設定*/
    padding: 2px;
    border: 1px solid;
    border-radius: 4px;
    color: black;
    font-size: 20px;
    cursor: pointer;
}

#botan3:hover{
    background-color:red;
    color: gold;
}

/*移動実行 ボタン*/
#botan4 {
    background: #ffc33c;
    margin: 0px 0px;  /*ボタンの間隔設定*/
    padding: 2px;
    border: 1px solid;
    border-radius: 4px;
    color: black;
    font-size: 20px;
    cursor: pointer;
}

#botan4:hover{
    background-color:red;
    color: gold;
}

#botan5 {
    background: #ffc33c;
    margin: 0px 0px;  /*ボタンの間隔設定*/
    padding: 2px;
    border: 1px solid;
    border-radius: 4px;
    color: black;
    font-size: 20px;
    cursor: pointer;
}

#botan5:hover{
    background-color:red;
    color: gold;
}

#myform{
    margin-top: 0px;
    font-size: 18px;
}

#ddd{
    font-size: 16px;
}

