body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: rgb(94, 56, 39);
}
/* 大厅 */
.section-Welcome {
  display: block;
  text-align: center;
}


/* 井字棋LOGO容器 */
.logo-container {
  display: flex;
  height: 50%;
  position: relative;
  top: 20px;
  justify-content: center;
  align-items: center;
}

.logo {
  display: flex;
  margin-top: 20px;
  height: 50%;
}
/* 开始按钮容器 */
.start-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  height: 300px;

}

.startBtn :active {
  transform: scale(1.2);
}

.startBtn {
  display: inline-block;
  background-size: 60% auto;
  background-repeat: no-repeat;
  background-position: center;
  width: 244px;
  height: 110px;
  border: none;
  cursor: pointer;
  background-color: transparent;
}

.startAI-Btn {
  background-image: url('./img/vsAI.png');
}

.startFriend-Btn {
  background-image: url('./img/vsFriend.png');
}

.startRandom-Btn {
  background-image: url('./img/vsRandom.png');
}

.startNormal-Btn {
  background-image: url('./img/normalBtn.png');
}
/* 游戏界面 */
.section-game {
  display: none;
  text-align: center;
}
.container {
  position: relative;
  text-align: center;
  margin: 2px auto;
  background-image: url('./img/pompBG.png');
  background-size: 100% 100%;

}

.back-Btn {
  position: absolute;
  background-image: url('./img/returnHome.png');
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: contain;
}

.back-Btn:active {
  transform: scale(1.3);
}

.mode {
  max-height: 100px;
  padding-top: 20px;
  padding-bottom: 40px;
  margin-top: 30px;
  height: 60px;
  display: grid;
  grid-template-columns: repeat(4, 2fr);
  grid-template-rows: repeat(1, 1fr);
  grid-gap: 10px;
  justify-content: center;
  align-items: center;
}

.table {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.player-img {
  display: block;
  height: 40px;
  margin: 0 auto;
  /* 居中图片 */
  max-width: 100%;
  max-height: 100%;
  padding: 25px;
  border: none;
}

.toet-img {
  width: auto;
  height: 40px;
  padding: 5px;
  border: none;
}

.myAvater {
  background-image: url('./img/myTurn.png');
}

.compterAvater {
  background-image: url('./img/turn.png');
}

.board {
  margin: auto;
  background-image: url('./img/boardNine.png');
  background-repeat: no-repeat;
  background-position-y: center;
  background-size: contain;
  width: 323px;
  height: 323px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-gap: 7px;
  padding: 7px;
}

.turn-label {
  font-size: 1.5em;
  margin-top: 10px;

}



.cell {
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
  background-position: center;
  background-size: 60%;
}



.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.message-box {
  background-image: url('./img/mesOverLay.png');
  background-repeat: no-repeat;
  background-size: contain;
  margin-top: 50px;
  padding: 20px;
  text-align: center;
  position: fixed;
  width: 200px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.button-container {
  width: 200px;
  height: 100px;
  border: none;
  cursor: pointer;
  margin: 0 5px;
  display: flex;
  justify-content: space-between;
  background-color: transparent;
}

.buttonSquare {
  width: 80px;
  height: 80px;
  border: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: transparent;
  cursor: pointer;
  margin: 10px 10px 5px;
}

#play-again-button {
  background-image: url('./img/nextTurn.png');
}

#return-button {
  background-image: url('./img/backToChooseMo.png');
}

.message-text {
  /* background-image: url('./img/youWin.png'); */
  background-repeat: no-repeat;
  background-size: contain;
  width: 150px;
  height: 50px;
  margin-top: 10px;
  transform: translate(17%, -90%);
}

.textTip {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  padding: 20px;
  border: none;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
}

/* 闪烁动画 */
.blink-animation {
  animation: blink 0.4s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* 变大动画 */
.scale-up-center {
  -webkit-animation: scale-up-center 0.4s cubic-bezier(0.600, -0.280, 0.735, 0.045) 0.2s alternate;
  animation: scale-up-center 0.4s cubic-bezier(0.600, -0.280, 0.735, 0.045) 0.2s alternate;
}

@-webkit-keyframes scale-up-center {
  0% {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes scale-up-center {
  0% {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}