/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
#root, #__next {
  isolation: isolate;
}
/* End of CSS Reset */

/* Custom styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #2e2e2e;
  color: #dedede;
  min-height: 100vh;
}
main {
  max-width: 400px;
  margin: auto;
  padding: 1rem;
}
h1 {
  margin-block: 2rem;
  text-align: center;
}
#form-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#text-input {
  outline: none;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  background-color: #fff;
  color: #404040;
  font-size: 1.2rem;
}
#check-btn {
  outline: none;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  background-color: #088442;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fafafa;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
#result-container {
  margin-block: 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}
#result.not-palindrome {
  color: #ff7864;
}
#result.is-palindrome {
  color: #28c462;
}
/* End of custom styles */
