
* {
  box-sizing: border-box;
}
body {
  background-color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  min-height: 100vh;
      -moz-user-select: none;
      -webkit-user-select: none;
      -ms-user-select: none;
      user-select: none;
}
button {
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  padding: 5px 15px;
}
select {
  width: 200px;
  padding: 5px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 0;
  background-color: #444;
  color: white;
}
select:focus,
button:focus {
  outline: none;
}
.setting-btn {
  position: absolute;
  bottom: 30px;
  left: 30px;
}

#xie {
  border: 0;
  border-radius: 5px;
  padding: 5px 2px;
  margin-top: 0px;
  text-align: center;
  background-color: #5C5;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 98%;
  z-index: 1;
}

.setting {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: #ccc;
  background-color: #222;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
  z-index: 0;
}
.setting.hide {
  transform: translateY(-100%);
}
.container {
  background-color: #444;
  color: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
  position: relative;
  text-align: center;
  width: 500px;
  padding-bottom: 40px;
}
h2 {
  background-color: #555;
  padding: 8px;
  border-radius: 5px;
  margin: 0 0 40px;
  font-weight:lighter;
}
h1 {
  margin: 0;  
  font-weight:lighter;
}
#word {
  color: #eee;
  font-size: 40px;
  font-weight:lighter;
}

small {
  color: #ee8;
  font-size: 20px;
}





.niu{
  position: relative;
  animation-name: example;
  animation-duration: 0.2s;
  animation-iteration-count: 1;
  animation-direction: alternate-reverse; 
}
@keyframes example {
  0%   {left:0px; top:0px;}
  50%  {left:10px; top:0px;}
  80%  {left:-10px; top:0px;}
  100% {left:0px; top:0px;}
}

#text {
  border: 0;
  border-radius: 5px;
  font-size: 30px;
  width: 350px;
  padding: 12px 20px;
  margin-top: 10px;
  text-align: center;
  background-color: #ddd;
  caret-color: rgba(0, 200, 0, 0.8);
}

#text:focus{
    outline: none;
}
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #bbb;
  font-size: 20px;
  opacity: 1; /* Firefox */
}

.score-container {
  position: absolute;
  top: 60px;
  right: 20px;
}
.time-container {
  position: absolute;
  top: 60px;
  left: 20px;
}

#myMuteCheckbox {
  position: absolute;
  top: 90px;
  left: 17px;
}


.end-game-container {
  background-color: inherit;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
