@charset "UTF-8";
body, ul, li, h1, h2, h3, h4, h5, h6, p {
  padding: 0;
  margin: 0;
}

ul, li {
  list-style: none;
}

body {
  overflow: hidden;
}

.begingame {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.begingame img {
  width: 200px;
  height: 200px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}

.banner img {
  float: left;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

#canvas {
  border: 2px solid #523714;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  margin: auto;
  background: url(../image/backg.png) no-repeat;
}

.zhezhao {
  display: none;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  position: absolute;
  top: 0;
  left: 0;
}

.chouse {
  width: 478px;
  height: 583px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  text-align: center;
  background: url(../image/tips.png) center center no-repeat;
}

.chouse span {
  display: inline-block;
  width: 159px;
  height: 76px;
  cursor: pointer;
}

.chouse .again {
  position: absolute;
  top: 350px;
  left: 130px;
  background: url(../image/again.png);
}

.chouse .qipu {
  position: absolute;
  top: 450px;
  left: 130px;
  background: url(../image/qipu.png);
}

.again:hover {
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

.qipu:hover {
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

.close {
  width: 83px;
  height: 72px;
  position: absolute;
  top: 5px;
  right: 7px;
  cursor: pointer;
  background: url(../image/close.png) no-repeat;
}

.close:hover {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.tips {
  font-family: '楷体';
  font-size: 60px;
  color: #422600;
  position: absolute;
  top: 150px;
  left: 96px;
}

.save {
  display: block;
  width: 230px;
  height: 100px;
  position: absolute;
  top: 0;
  right: 0;
  background: url(../image/save.png) no-repeat;
}

.rules {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  color: #fff;
  width: 200px;
  height: 237px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  background-image: url(../image/begin1.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  user-select: none;
  cursor: pointer;
}

.rule-popup {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}
