@import url('https://fonts.googleapis.com/css2?family=Inter&family=Lato&family=Libre+Baskerville&family=Merriweather:wght@700&family=Work+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Work Sans', sans-serif;
}

html {
  color: rgb(96 101 123);
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  background: #fefbf3;
  position: relative;
}

.container {
  padding: 30px;
  margin-top: 80px;
}

h2 {
  text-align: center;
  font-size: 48px;
  letter-spacing: -0.2px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

p {
  max-width: 670px;
  text-align: center;
  margin-top: 24px;
  margin-bottom: 100px;
}

textarea {
  width: 100%;
  height: 316px;
  padding: 18px;
  position: relative;
  resize: none;
  box-shadow: 0 12px 48px 0px rgb(109 117 141 / 20%);
  background: rgb(255 255 255);
  border: 0.5px solid rgb(231 233 245);
  border-radius: 16px;
}

textarea:focus {
  border: 0.3px solid rgb(43, 45, 56, 0.3);
  outline: none;
}

p,
textarea {
  font-size: 18px;
  letter-spacing: 1px;
  word-spacing: 2px;
  line-height: 1.6;
}

#copytext {
  margin-top: 15px;
  margin-left: 10rem;
  padding: 16px 25px;
  margin-right: 20px;
  border-radius: 10px;
  border: none;
  background-color: #A3E4DB;
}
#resetbutton {
  margin-top: 15px;
  padding: 16px 25px;
  border-radius: 10px;
  border: none;
  background-color: #A3E4DB;
}

#copytext:hover {
  cursor: pointer;
  filter: drop-shadow(0 0 0.75rem #1E5128);
}
#resetbutton:hover {
  cursor: pointer;
  filter: drop-shadow(0 0 0.75rem #1E5128);
}



.counter-container {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
}

.dark-light-mode {
  position: absolute;
  top: 36px;
  right: 102px;
}
.dark-light-mode i {
  font-size: 28px;
  cursor: pointer;
}

.dark_mode_toggle {
  background-color: #041C32;
  color: white;
}


@media screen and (max-width: 768px) {
  .container {
    margin-top: 20px;
  }

  h2 {
    font-size: 28px;
  }

  p {
    font-size: 16px;
    word-spacing: normal;
    margin-bottom: 40px;
    margin-top: 15px;
  }

  textarea {
    font-size: 16px;
    word-spacing: normal;
  }

  #copytext {
    padding: 12px 28px;
    font-size: 16px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
  }
  #resetbutton {
    padding: 12px 28px;
    font-size: 16px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
  }

  .counter-container {
    flex-direction: column;
  }

  .counter-container p:first-child {
    margin-bottom: 0;
  }

  .dark-light-mode {
    top: 15px;
  }
}
