html {
  height: 100%;
}
body {
  background-color : #547AA5;
  color : #e2e2e2;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  font-family: Colfax, Arial, Helvetica, sans-serif;

}
header {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  padding-left: 30px;
  padding-right: 30px;
  background-color: #0d3e65;
  /*box-shadow: 2px 2px 2px black;*/

}
header h1 {
  padding: 10px;
  margin: 0;
}

header h1 a {
  text-decoration: none;
  color : #e2e2e2;
}

.navbar {
  display: flex;
  /**background-color : #0d3e65;**/
  list-style-type : none;
  padding: 0;
  margin: 0;


}


.navbar li a {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  color : #e2e2e2;
  font-weight: bold;
  padding: 0 30px;
  transition: background-color 0.5s, color 0.5s;

}


li a:hover{
  background-color : #e2e2e2;
  color: #0d3e65;


}

#text {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  align-content: flex-start;
  background-color: #e2e2e2;
  padding: 10px;
  font-family: consolas;
  color: Black;
  min-width: 600px;
  max-width: 50%;
  margin: 25px auto;
  font-size: 25px;
  box-shadow: 2px 2px 2px black;
  border-radius: 5px;
}


#container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 120px;
  width: 300px;
  margin: 0;


}

#message {
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  box-sizing: border-box;
  width: 80%;
  height: 50%;
  color: black;
  font-weight: bold;
  text-align: center;
  background-color: #e2e2e2;
  font-size: 30px;
  text-align: center;
  transition: height 0.5s, color 0.5s;
  padding: 10px;
  border-radius: 10px;
  border: 5px solid #0d3e65;
}

.counter {
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  box-sizing: border-box;
  width: 40%;
  height: 100%;
  color: transparent;
  font-weight: bold;
  text-align: center;
  background-color: #e2e2e2;
  font-size: 50px;
  text-align: center;
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  border: 5px solid #0d3e65;

}

#counter-time {
  color: transparent;
  transition: margin 1s, border-radius 1s, color 2s;
}
#counter-wpm {
  color: transparent;
  transition: margin 1s, border-radius 1s, color 2s;
}
.counter-margin {
  margin: 10px;
}
.counter-display-none {
  display: none;
}
.border {
  animation-name: border;
  animation-duration: 2s;
}

@keyframes border {
  from {border-radius: 5px;}
  to {border-radius: 50%;}
}

#counter1 {
  display: none;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  box-sizing: border-box;
  width: 80%;
  height: 60%;
  color: black;
  font-weight: bold;
  text-align: center;
  background-color: #e2e2e2;
  font-size: 30px;
  text-align: center;
  transition: height 0.5s;

  padding: 10px;
  border-radius: 5px;
  border: 5px solid #0d3e65;

}

.counter p {
  font-size: 15px;
  font-weight: normal;
  margin: 0;
}

#result {
  visibility: hidden;
  font-size: 40px;
  text-align: center;
  color: black;
  padding: 10px;
  border-radius: 10px;
  border: 5px solid #0d3e65;
  background-color: #e2e2e2;
  width: 500px;
  margin: 0;
  opacity: 0;
  transition: opacity 1s;


}

.input {
  visibility: hidden;
  color: transparent;
  position: absolute;
  box-sizing: border-box;
  padding: 5px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  outline: none;
  z-index: 5;
}

.words {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  align-content: flex-start;
  padding: 0;
  margin: 1px 0px;
}

.letters {
  display: flex;
  align-items: center;
  margin: 1px;
  padding: 0;
  border-radius: 2px;

}

.fadein {
  animation-name: fadein;
  animation-duration: 1s;
  animation-iteration-count: 1;
}

@keyframes fadein {
  from {color: transparent;}
  to {color: black;}
}

@keyframes cursor {
  from, to { background-color: transparent; }
  50% { background-color: gray; }
}

@keyframes wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}

@keyframes blink {
  from, to { opacity: 100%; }
  50% { opacity: 50%; }
}

@keyframes bounce {
  from to {transform: translateY(0);}
  50% {transform: translateY(20px);}
}

#button {
  visibility: hidden;
  transition: opacity 1s;
  opacity: 0;
  background-color : #0d3e65;
  color: #e2e2e2;
  padding: 0;
  width: 150px;
  margin: 0;
  font-size: 20px;
  border-radius: 4px;

}

#button a {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  color: #e2e2e2;
  transition: background-color 0.5s, color 0.5s;
  padding: 10px 30px;
  border-radius: 4px;


}

#button a:hover {
  background-color : #e2e2e2;
  color: black;
}

.start {
  animation-name: bounce;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.current {
  background-color: gray;
  animation-name: cursor;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}

.correct {
  background-color: #82d75d;
}

.incorrect {
  background-color: #fc5f61;
  animation-name: wiggle;
  animation-duration: 0.15s;
  animation-iteration-count: 3;


}

footer {
  align-self: flex-end;
  display: flex;
  box-sizing: border-box;
  padding: 10px;
  justify-content: flex-end;
  /**position: absolute;
  bottom: 0;**/
  width: 100%;
  font-size: 12px;
  margin-top: auto;

}

footer a {
  color: #e2e2e2;
  font-family: Colfax, Arial, Helvetica, sans-serif;
  margin-left: 5px;
  margin-right: 5px;
}

.content h3 {
  color: #547AA5;
}
.content {
  background-color: #e2e2e2;
  padding: 50px;
  padding-top: 20px;

  width: 90%;
  margin:0;
  box-sizing: border-box;
  box-shadow: 2px 2px 2px black;
  border-radius: 5px;
  color: black;
  font-size: 13pt;
  font-family:等线;

}
