.board {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.row {
    display: flex;
    justify-content: center;
}
.cell {
    width: 44px;
    height: 38px;
    line-height: 40px;
    text-align: center;
/*    border: 1px solid black;*/
    margin: 1px;
}
.empty-cell {
    width: 44px;
    height: 38px;
    line-height: 40px;
    text-align: center;
/*    border: 1px solid transparent;*/
    margin: 1px;
}
.hand {
    cursor: pointer;
}
.row#hand {
  margin-top: 0.5rem;
}
.highlight {
    background-color: yellow;
    cursor: pointer;
}
.cell.exchange-selected {
  box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.5) inset;
}
.collected-stones {
  display: flex;
  margin-top: 10px;
}


.collected-stone {
  width: 44px;
  height: 38px;
  background-size: contain; /* バックグラウンド画像が要素に収まるようにサイズを調整 */
  background-repeat: no-repeat; /* 画像が繰り返し表示されないようにする */
  background-position: center;
  line-height: 40px;
  margin-right: 5px;
}
/* スマホ画面用のスタイル */
@media (max-width: 600px) {
  .collected-stone {
    width: 22px; /* 画像の幅を縮小 */
    height: 19px; /* 画像の高さを縮小 */
  }
}
.selected {
  border-color: blue;
}


#status-bar {
  display: flex;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  padding: 10px;
}

.status-item {
  font-size: 16px;
  font-weight: bold;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 背景を半透明にする */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* 他の要素より上に表示 */
}

.round-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 背景を半透明にする */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* 他の要素より上に表示 */
}

.modal-stella {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 背景を半透明にする */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* 他の要素より上に表示 */
}

/*#end-game-message {
    text-align: center;
  margin-bottom: 20px;
  font-size: 48px;
  color: white;
  font-weight: bold;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}*/
#end-game-message {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 48px;
  font-weight: bold;
  color: white;
}

#round-message {
  font-size: 48px;
  color: white;
  font-weight: bold;
}
#stella-title {
  font-size: 2em;
  color: white;
  margin-bottom: 10px;
  font-weight: bold;
  margin-top: 50px; /* ここで上下にスペースを作る */
}

#stella {
  display: flex;
  justify-content: center;
}

.hidden {
  display: none;
}
.score-display {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  font-size: 24px;
  font-weight: bold;
}

.score-display span {
  color: white;
}

#cpu-score {
  margin-left: 10%;
}

#player-score {
  margin-right: 10%;
}



.incius-and-multa-container {
 display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem; 
}

.exchange-button-container {
   width: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 1.5rem;
}

#exchange-mode-text{
  font-size: 12px;

} 
h3 {
  margin-top: -0.5rem; /* 上方向へのマージンを削除 */
  margin-bottom: 0.5rem; /* 下方向へのマージンを追加 */
}

.incius-container{
  width: 30%;
} 
.multa-container {
  width: 60%;
}
#player-collected-stones {
  display: flex;
  flex-wrap: wrap;
}

@media screen and (max-width: 600px) {
  .incius-container, .multa-container {
    width: 50%;
  }
  .incius-container h3 {
    display: none;
  }
  .incius-container #hand {
    margin-top: 0;
  }
  .status-item {
    font-size: 8px;
  }

  h3 {
    font-size: 9px;
  }
}

.top-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.cpu-multa-container {
/*  margin-right: auto;*/
  flex: 1; /* 追加 */
  max-width: 33%; /* 必要に応じて調整 */
  text-align: left;
}
.collected-stones-container {
  display: flex;
  flex-wrap: wrap;
}

#cpu-multa {
  margin-right: auto;
}
.opponent-image {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
/*  margin-bottom: 20px;*/
}
.opponent-image img {
  max-width: 45%;

  object-fit: contain;
}
/*.opponent-image img {
  flex: 1; 
 max-width: 28%; 
  text-align: center;
}*/
.opponent-phrase {
  flex: 1;
  max-width: 35%;
  display: flex;
  justify-content: flex-start;
  align-items: left;
}

.opponent-phrase img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#win-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
#win-overlay img {
  max-width: 90%; /* 画面幅の 90% を最大値に */
  max-height: 90%; /* 画面高さの 90% を最大値に */
  object-fit: contain; /* 画像のアスペクト比を保ちながら、指定されたサイズに収まるように表示 */
  margin: auto; /* 画像を中央に配置 */
}

