body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: black;
}

.container {
  position: relative;
  /* background-image: url("assets/landingBg.jpg"); */
  background-image: url("assets/Background_home.png");
  background-size: cover;
  width: 100%;
  height: 100vh;
}

.logo-box {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo {
  width: 20vw;
  height: auto;
}

.landing-title {
  width: 80vw;
  height: auto;
  margin-top: 7vw;
}

.background {
  width: 100%;
  height: auto;
  display: block;
}

.name-enter-box {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  color:#fff;
  display: none;
}

.enter-name-text{
  font-size: 4vw;
  margin-bottom: 4vw;
  white-space: nowrap;
}


.action-box {
  position: absolute;
  top: 60%; /* Adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.name-ipt{
  font-size: 30px;
  background-color: transparent;
  color: #fff;
  outline: 0;
  border-color: transparent;
  box-shadow: none;
  border-bottom: 2px solid #fff;
  text-align: center;
  font-weight: 300;
  padding:10px;
  max-width: 40vw;
}

/* .play-button {
  display: block;
  margin-bottom: 10px;
  background-color: #ff4c4c;
  color: rgb(254 233 0);
  border: none;
  padding: 15px 40px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  width: 100%;
}

.play-button:hover {
  background-color: #ff0000;
}

.result-button {
  display: block;
  margin-bottom: 10px;
  background-color: #ff4c4c;
  color: rgb(254 233 0);
  border: none;
  padding: 15px 40px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.play-rules {
  display: block;
  background-color: transparent;
  color: #fdeb1c;
  width: 100%;
  border: none;
  background-color: rgba(0, 0, 0, 0.5);
  width:auto;
  border-radius: 10px;
  margin:auto;
  height:20px;
  padding: 0 10px;
} */

/* 按钮的基础样式 */
.action-btn {
  font-family: Arial, sans-serif; /* 适配干净的字体 */
  font-size: 0.8rem; /* 字体大小 */
  color: #063763; /* 白色字体 */
  border: none; /* 移除默认边框 */
  border-radius: 8px; /* 圆角 */
  padding: 10px 20px; /* 内边距 */
  margin: 10px 0; /* 按钮之间的间距 */
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s; /* 动态效果 */
  width: 50vw;
}

/* PLAY 按钮样式 */
.play-button {
  background: #063763; /* 半透明白色背景 */
  font-weight: bold;
  font-size: 1.5rem; /* 字体稍大 */
  padding: 8px 30px; /* 调整内边距，增大按钮整体尺寸 */
  border: 3px solid #ffee00; /* 添加边框，半透明白色 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #d3e1ef;
}

.start{
  display: none;
}

.play-button:hover {
  transform: scale(1.05); /* 鼠标悬停放大效果 */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Rules 按钮样式 */
.play-rules {
  background: rgb(211, 225, 239, 0.9); /* 半透明黑色背景 */
  font-weight: normal;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 3px;
}

.play-rules:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Leaderboard 按钮样式 */
.result-button {
  background: rgb(211, 225, 239, 0.9); /* 半透明浅灰背景 */
  font-weight: lighter;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 3px;
}

.result-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Modal Styles */
.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;
  display: none; /* Hidden by default */
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.modal-content h2 {
  margin: 0;
  color: #333;
}

.modal-content p {
  color: #666;
  margin-top: 10px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  font-weight: bold;
  transition: color 0.3s;
}

.close-button:hover {
  color: #000;
}

/* Modal Styles */
.name-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;
  display: none; /* Hidden by default */
}

.name-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.name-modal-content h2 {
  margin: 0;
  color: #333;
}

.name-modal-content input {
  margin: 20px 0;
  width: 90%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.name-modal-content .start-button {
  background-color: #4caf50;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
}

.name-modal-content .start-button:hover {
  background-color: #45a049;
}

.error-message {
  color: red;
  font-size: 14px;
  margin-top: 10px;
}

.name-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  font-weight: bold;
  transition: color 0.3s;
}

.name-close-button:hover {
  color: #000;
}

.result-box {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 20vw;
  height: 20vw;
  background-color: #fff;
  border-radius: 50%;
}
.grinch {
  width: 100%;
  height: auto;
}


.name-ipt::placeholder {
  color: #fff; /* 设置占位符的字体颜色 */
  text-align: center;
  font-weight: 100;
  font-size: 40px;
}

/* 如果需要兼容旧版浏览器，可以加上这些前缀 */
.name-ipt::-webkit-input-placeholder {
  color: #fff; /* Webkit 内核（Chrome、Safari） */
  text-align: center;
  font-weight: 100;
  font-size: 40px;
}

.name-ipt:-moz-placeholder {
  color: #fff; /* Mozilla Firefox */
  text-align: center;
  font-weight: 100;
  font-size: 40px;
}

.name-ipt::-moz-placeholder {
  color: #fff; /* Mozilla Firefox */
  text-align: center;
  font-weight: 100;
  font-size: 40px;
}

.name-ipt:-ms-input-placeholder {
  color: #fff; /* Internet Explorer 10-11 */
  text-align: center;
  font-weight: 100;
  font-size: 40px;
}

.go-play{
  margin:auto;
  background: #063763;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 8px 30px; 
  border: 3px solid #ffee00; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #d3e1ef;
  border-radius: 8px; 
}

/* .go-play{
  font-family: Arial, sans-serif; 
  font-size: 1rem; 
  color: #063763; 
  border: none; 
  border-radius: 8px; 
  padding: 10px 20px; 
  margin: 10px 0; 
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s; 
  margin:auto;
  width:40vw;
} */

.m-auto{
  margin:auto;
}
