* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem;
  background: #f5f5f5;
  color: #111;
  font-family: 'Helvetica Neue', sans-serif;
  transition: background 0.3s, color 0.3s;
}

body.dark {
  background: #111;
  color: #eee;
}

textarea {
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 4rem);
  border: none;
  outline: none;
  resize: none;
  font-size: 1.1rem;
  padding: 1rem;
  background: transparent;
  color: inherit;
}

#toggleDarkMode {
  position: fixed;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  z-index: 100;
}

#downloadBtn {
  position: fixed;
  bottom: 10px;
  right: 10px;
  padding: 0.5rem 1rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  z-index: 100;
}

body.dark #downloadBtn {
  background: #eee;
  color: #111;
}

/* Splash Screen */
#splash {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #f5f5f5;
  color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  font-family: 'Helvetica Neue', sans-serif;
  z-index: 200;
  animation: fadeOut 1.5s ease-out 1.5s forwards;
}

body.dark #splash {
  background: #111;
  color: #eee;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 600px) {
  textarea {
    font-size: 1rem;
    padding: 1rem;
  }
}