* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

.container h2{
  font-size: 24px;
  margin-bottom: 15px;
  line-height: 1;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
}

.game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
   padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.controls {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
  gap: 20px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.container label {
  margin-right: 10px;
  font-weight: bold;
}

.container select,
.container input {
  padding: 12px 15px;
  width: 250px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

button {
  padding: 12.5px 46px;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #1c8d4c;
}

#copy-btn{
  background-color: #3498db;
}

#copy-btn:hover{
  background-color: #2980b9;
}

#clear-btn{
  background-color: #db8134;
}

#clear-btn:hover{
  background-color: #cd6914;
}

button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.display-box {
  width: 100%;
  height: 394px;
}

.display-area {
  width: 100%;
  height: 260px;
  background-color: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.emoji-display {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  text-align: center;
  transition: opacity 0.3s;
}

.emoji-display span{
  font-size: 38px;
}

.options-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.option {
  font-size: 50px;
  padding: 20px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  background-color: white;
}

.option:hover {
  border-color: #3498db;
  transform: scale(1.05);
}

.option.correct {
  border-color: #2ecc71;
  background-color: rgba(46, 204, 113, 0.1);
}

.option.wrong {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
}

.stats {
  width: 100%;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.stats p {
  margin: 5px 0;
  font-size: 14px;
}

.records-box{
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.records-box h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.records {
  width: 100%;
  border-collapse: collapse;
}

.records th,
.records td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.records th {
  background-color: #9baab4;
  color: white;
}

.records tr:nth-child(even) {
  background-color: #f8f9fa;
}

.info-section {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.info-box {
  flex: 1;
  background-color: #fff;
  border-radius: 12px;
  padding: 15px;
}

.info-box h3 {
  font-size: 18px;
  color: #2c3e50;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.info-box p {
  margin-top: 10px;
  line-height: 1.5;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.show-notice {
  opacity: 1;
}

footer {
  text-align: center;
  color: #7f8c8d;
  font-size: 14px;
}

.progress-container {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 5px;
  margin-bottom: 10px;
}

.progress-bar {
  height: 15px;
  background-color: #3498db;
  border-radius: 5px;
  width: 0%;
  transition: width 0.3s;
}

.progress-tip{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.timer {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
}

.highlight {
  color: #e74c3c;
  font-weight: bold;
}

.difficulty-label {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 5px;
}

.level-1 {
  background-color: #2ecc71;
  color: white;
}

.level-2 {
  background-color: #27ae60;
  color: white;
}

.level-3 {
  background-color: #f39c12;
  color: white;
}

.level-4 {
  background-color: #e67e22;
  color: white;
}

.level-5 {
  background-color: #d35400;
  color: white;
}

.level-6 {
  background-color: #e74c3c;
  color: white;
}

.level-7 {
  background-color: #c0392b;
  color: white;
}

.level-8 {
  background-color: #9b59b6;
  color: white;
}
