* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(180deg, #000000 0%, #000000 100%);
  min-height: 100vh;
  font-family: "Noto Sans", sans-serif;
  font-style: normal;
  transition: all 0.3s ease-in;
}
body.active {
  background: linear-gradient(180deg, #ebf2fc 0%, #eef8f9 100%);
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px auto;
  padding: 15px;
  border-radius: 10px;
  width: 90%;
  max-width: 1200px;
  background-color: hsl(226, 11%, 37%);
  transition: all 0.3s ease-in;
  border: 1px solid hsl(195, 100%, 50%);
}
.header.active {
  background-color: hsl(200, 60%, 99%);
}
.header .logo {
  color: hsl(195, 100%, 50%);
}
.header button {
  background-color: hsl(225, 23%, 24%);
  padding: 10px;
  border-radius: 10px;
  border: none;
  color: hsl(200, 60%, 99%);
  font-size: 1rem;
  transition: all 0.3s ease-in;
}
.header button.active {
  background-color: hsl(217, 61%, 90%);
  color: hsl(227, 75%, 14%);
}
.header button.active:hover {
  background-color: hsl(0, 0%, 93%);
}
.header button:hover {
  background-color: hsl(226, 25%, 17%);
  cursor: pointer;
}
.header button:focus {
  outline: none;
  outline: 1px solid hsl(195, 100%, 50%);
  outline-offset: 2px;
}
.main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}
.main h1 {
  color: hsl(200, 60%, 99%);
  font-size: 3rem;
  max-width: 430px;
  text-align: center;
  transition: all 0.3s ease-in;
}
.main h1.active {
  color: hsl(226, 25%, 17%);
}
.textarea {
  width: 90%;
  max-width: 1200px;
  border-radius: 10px;
  padding: 10px 20px;
  background-color: hsl(226, 11%, 37%);
  color: hsl(200, 60%, 99%);
  font-style: italic;
  transition: all 0.3s ease-in;
  border: 1px solid hsl(195, 100%, 50%);
}
.textarea.active {
  background-color: hsl(200, 60%, 99%);
  color: hsl(226, 25%, 17%);
}
.textarea::placeholder {
  color: hsl(200, 60%, 99%);
}
.textarea.active::placeholder {
  color: hsl(226, 25%, 17%);
}
.counters {
  display: flex;
  gap: 10px;
  width: 80%;
  max-width: 1000px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 0 20px 0;
}
.counters > * {
  flex: 1 1 calc(33.33% - 20px);
}

.counter {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background-color: hsl(226, 11%, 37%);
  border-radius: 10px;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
  border: 1px solid hsl(195, 100%, 50%);
  transition: all 0.3s ease-in;
}
.counter.active {
  background-color: hsl(200, 60%, 99%);
}
.counter:hover {
  transform: translateY(-2px);
  cursor: pointer;
}
.text-counter,
.word-counter,
.sentence-counter {
  font-size: 3rem;
  font-weight: 600;
  color: hsl(200, 60%, 99%);
  transition: all 0.3s ease-in;
}
.counter.active .text-counter,
.counter.active .word-counter,
.counter.active .sentence-counter {
  color: hsl(227, 75%, 14%);
}
.counting {
  color: hsl(0, 0%, 93%);
  font-size: 1rem;
  font-weight: 500;
}

.counter.active .counting {
  color: hsl(227, 75%, 14%);
  transition: all 0.3s ease-in;
}

@media (max-width: 800px) {
  .header .logo {
    font-size: 0.75rem;
  }
  .main h1 {
    font-size: 2rem;
    max-width: 380px;
  }
  .counters > * {
    flex: 0 1 calc(50% - 10px);
  }
}
@media (max-width: 600px) {
  .counters > * {
    flex: 0 1 calc(100%);
  }
}
@media (max-width: 370px) {
  .header .logo {
    font-size: 0.55rem;
  }
}
