 *,
::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100vh;
  background-color: #e4f5e1;
  padding-top: 100px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.container{width:90%; margin:0 auto;}

.counter-box {
  width: 300px; /* Increased from 150px */
  height: 400px; /* Increased from 200px */
  position: relative;
  background-image: url(images/counter-body.png);
  background-size:100% 100%; /* Changed from contain to cover for better scaling */
  background-repeat: no-repeat;
  margin:30px auto;
  padding-top: 60px;
}

#tap {
  width: 140px; /* Increased from 70px */
  height: 140px; /* Increased from 70px */
  border-radius: 50%;
  position: absolute;
  bottom: 32px; /* Adjusted position */
  left: 80px; /* Adjusted position */
  border: none;
  outline: none;
  background-color: #143214;
  font-size: 2.8rem; /* Increased font size */
  font-weight: 800;
  color: rgb(0, 130, 35);
  transition: all 0.3s ease;
  transform-origin: center;
  border: 6px solid rgb(0, 130, 35); /* Adjusted border size */
}

#tap:is(:active) {
  width: 130px; /* Adjusted active state size */
  height: 130px; /* Adjusted active state size */
  font-size: 2.6rem; /* Adjusted font size */
  box-shadow: 0px 0px 20px 10px rgba(0, 0, 0, 0.2); /* Adjusted shadow */
}

#counter-number {
  width: 240px; /* Increased from 120px */
  height: 80px; /* Increased from 40px */
 margin: 0 auto;
  background-color: #143214;
  border: 6px solid #049b04; /* Adjusted border size */
  border-radius: 10px; /* Adjusted border radius */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Electrolize', sans-serif;
  font-size: 62px; /* Increased font size */
  color: rgb(0, 155, 41);

}

#reset,.btn-icon {
  width: 60px; /* Increased from 30px */
  height: 60px; /* Increased from 30px */
  background-color: #143214;
  border-radius: 50%;
  padding: 10px; /* Adjusted padding */
  position: absolute;
  border: 4px solid; /* Adjusted border size */
  color: rgb(0, 130, 35);
  top: 160px; /* Adjusted position */
  right: 44px; /* Adjusted position */
  transition: all 0.3s ease;
  cursor: pointer;
}
 .btn-icon{right:unset; left: 44px;}
#reset:active #reset-icon {
  transform: rotate(180deg);
}
#reset-icon {
  width: 40px; /* Increased from 20px */
  transition: all 0.6s ease;
}
#reset:active #reset-icon{
  transform: rotate(180deg);
}
.btn-icon:active img{width:115%}
#reset img,.btn-icon img{width: 100%;transition: all 0.3s ease;}

#text-box {
  /* background-color: red; */
  width: 80%;
  height: 100px;
  margin-bottom: 150px;
  margin: auto;
}
#text-box img {
  width: 90%;
}
    h1{font:bold 30px/48px "ui-sans-serif"; text-align: center; margin: 20px auto; color: #475069;}
    h2{font:bold 20px/42px "ui-sans-serif"; text-align: center; margin: 20px auto; color: #475069;}
    p{font:16px/28px "ui-sans-serif";margin-bottom: 10px; text-align: left; color: #475069;}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: #111827;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  margin-left: 0;  /* 移除左边距 */
  padding: 0;      /* 移除内边距 */
}

.language-switcher a {
  text-decoration: none;
  color: inherit;
}

.language-switcher a:hover {
  color: #4f46e5;
}

.language-switcher span {
  color: #111827;
}

/* 如果语言切换器在某个容器内，确保容器也左对齐 */
.container {
  padding: 0 1rem;  /* 如果需要整体页面留白，可以在外层容器设置 padding */
}

.footer-link {
  text-align: center;
  margin-top: 30px;
  padding: 20px 0;
}

.footer-link a {
  color: #888;
  text-decoration: none;
  font-size: 14px;
}

.footer-link a:hover {
  color: #666;
  text-decoration: underline;
}
