@charset "utf-8";

/* 基础样式重置 */
html, body, figure, figcaption, ul, li, h1 {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  text-align: inherit;
}

ul {
  list-style: none;
}

/* 页面样式 */
body {
  font-family: monospace;
  text-align: center;
  font-weight: bold;
  color: white;
  background: black;
}

a{
  color: white;
}

/* 游戏标题 */
.tron-logo {
  width: 400px;
  margin: auto;
  padding: 4em;
}

.tron-logo img {
  max-width: 100%;
}

/* 游戏区域 */
figure {
  display: inline-block;
  min-width: 800px;
  min-height: 560px;
  max-width: 850px;
  max-height: 580px;
  border: 10px solid #5EC4F2;
}

/* 游戏网格 */
li {
  float: left;
  width: 8px;
  height: 8px;
}

/* 玩家颜色 */
.player {
  background: blue;
  box-shadow: 0 0 16px blue;
}

.player2 {
  background: #FF4500;
  box-shadow: 0 0 16px #FF4500;
}

/* 文本样式 */
h1 {
  color: white;
  font-size: 30px;
}

/* 游戏界面布局 */
.display {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 560px; /* 确保有足够的高度 */
}

.game-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 800px;
  height: 0;
}

/* 游戏说明和按钮 */
.intro-outro {
  display: flex;
  align-items: center;
  flex-direction: column;
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: auto; /* 确保可以点击按钮 */
  justify-content: center;
}

/* 按钮样式 */
#start, #replay, #two-player, .easy, .medium, .hard {
  border: 4px solid red;
  border-radius: 10px;
  padding: 5px 30px;
  cursor: pointer;
  background-color: black;
  margin-bottom: 1em;
}

.easy {
  color: red;
}

#blue-win, #red-win {
  padding-bottom: 30px;
  font-size: 40px;
}

/* 分数显示 */
.score {
  font-size: 4em;
  margin: 0.5em;
}

.difficulty {
  display: flex;
  gap: 20px;
}

/* 分数颜色 */
.blue-wins {
  color: blue;
  margin-right: 10px;
}

.red-wins {
  color: #FF4500;
  margin-left: 10px;
}

#copyright{
  line-height: 3;
}